1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2013, 2014, 2015, 2016, 2019 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2014, 2017 Eric Bavier <bavier@member.fsf.org>
7 ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
8 ;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
9 ;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
10 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
11 ;;; Copyright © 2015, 2016, 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 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2015, 2017, 2020 Kyle Meyer <kyle@kyleam.com>
19 ;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
20 ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
21 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
22 ;;; Copyright © 2016, 2018, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
23 ;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org>
24 ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
25 ;;; Copyright © 2016, 2017 Troy Sankey <sankeytms@gmail.com>
26 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
27 ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
28 ;;; Copyright © 2016 David Craven <david@craven.ch>
29 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
30 ;;; Copyright © 2016, 2017 Stefan Reichör <stefan@xsteve.at>
31 ;;; Copyright © 2016, 2017, 2019 Alex Vong <alexvong1995@gmail.com>
32 ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
33 ;;; Copyright © 2016, 2017, 2018, 2020 Julien Lepiller <julien@lepiller.eu>
34 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
35 ;;; Copyright © 2016, 2017 Thomas Danckaert <post@thomasdanckaert.be>
36 ;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
37 ;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com>
38 ;;; Copyright © 2017, 2018 Adriano Peluso <catonano@gmail.com>
39 ;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
40 ;;; Copyright © 2017, 2018, 2019 Mathieu Othacehe <m.othacehe@gmail.com>
41 ;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.org>
42 ;;; Copyright © 2017, 2020 Roel Janssen <roel@gnu.org>
43 ;;; Copyright © 2017, 2018, 2019 Kei Kebreau <kkebreau@posteo.net>
44 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
45 ;;; Copyright © 2017 Muriithi Frederick Muriuki <fredmanglis@gmail.com>
46 ;;; Copyright © 2017, 2019 Brendan Tildesley <mail@brendan.scot>
47 ;;; Copyright © 2018 Ethan R. Jones <ethanrjones97@gmail.com
48 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
49 ;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
50 ;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
51 ;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
52 ;;; Copyright © 2016, 2018 Tomáš Čech <sleep_walker@gnu.org>
53 ;;; Copyright © 2018, 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
54 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
55 ;;; Copyright © 2018, 2019 Clément Lassieur <clement@lassieur.org>
56 ;;; Copyright © 2018, 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
57 ;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com>
58 ;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
59 ;;; Copyright © 2015, 2018 Pjotr Prins <pjotr.guix@thebird.nl>
60 ;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
61 ;;; Copyright © 2019 Sam <smbaines8@gmail.com>
62 ;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
63 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
64 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
65 ;;; Copyright © 2019, 2020 Pierre Langlois <pierre.langlois@gmx.com>
66 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
67 ;;; Copyright © 2019, 2020 Giacomo Leidi <goodoldpaul@autistici.org>
68 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
69 ;;; Copyright © 2019, 2020 Tanguy Le Carrour <tanguy@bioneland.org>
70 ;;; Copyright © 2019 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
71 ;;; Copyright © 2020 Riku Viitanen <riku.viitanen@protonmail.com>
72 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
73 ;;; Copyright © 2020 sirgazil <sirgazil@zoho.com>
74 ;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org>
75 ;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
76 ;;; Copyright © 2020 Josh Marshall <joshua.r.marshall.1991@gmail.com>
77 ;;; Copyright © 2020 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 Vinicius Monego <monego@posteo.net>
86 ;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@disroot.org>
87 ;;; Copyright © 2020 Hendursaga <hendursaga@yahoo.com>
88 ;;; Copyright © 2020 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
89 ;;; Copyright © 2020 Joseph LaFreniere <joseph@lafreniere.xyz>
90 ;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
91 ;;; Copyright © 2020 Bonface Munyoki Kilyungi <bonfacemunyoki@gmail.com>
92 ;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
93 ;;; Copyright © 2020 Diego N. Barbato <dnbarbato@posteo.de>
94 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
95 ;;; Copyright © 2019 Kristian Trandem <kristian@devup.no>
97 ;;; This file is part of GNU Guix.
99 ;;; GNU Guix is free software; you can redistribute it and/or modify it
100 ;;; under the terms of the GNU General Public License as published by
101 ;;; the Free Software Foundation; either version 3 of the License, or (at
102 ;;; your option) any later version.
104 ;;; GNU Guix is distributed in the hope that it will be useful, but
105 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
106 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
107 ;;; GNU General Public License for more details.
109 ;;; You should have received a copy of the GNU General Public License
110 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
112 (define-module (gnu packages python-xyz)
113 #:use-module ((guix licenses) #:prefix license:)
114 #:use-module (gnu packages)
115 #:use-module (gnu packages algebra)
116 #:use-module (gnu packages adns)
117 #:use-module (gnu packages aidc)
118 #:use-module (gnu packages attr)
119 #:use-module (gnu packages backup)
120 #:use-module (gnu packages bash)
121 #:use-module (gnu packages check)
122 #:use-module (gnu packages cmake)
123 #:use-module (gnu packages compression)
124 #:use-module (gnu packages crypto)
125 #:use-module (gnu packages databases)
126 #:use-module (gnu packages dbm)
127 #:use-module (gnu packages djvu)
128 #:use-module (gnu packages docker)
129 #:use-module (gnu packages enchant)
130 #:use-module (gnu packages file)
131 #:use-module (gnu packages fontutils)
132 #:use-module (gnu packages gcc)
133 #:use-module (gnu packages geo)
134 #:use-module (gnu packages ghostscript)
135 #:use-module (gnu packages gl)
136 #:use-module (gnu packages glib)
137 #:use-module (gnu packages gnome)
138 #:use-module (gnu packages gnupg)
139 #:use-module (gnu packages graphviz)
140 #:use-module (gnu packages graphics)
141 #:use-module (gnu packages gsasl)
142 #:use-module (gnu packages gstreamer)
143 #:use-module (gnu packages gtk)
144 #:use-module (gnu packages haskell-xyz)
145 #:use-module (gnu packages icu4c)
146 #:use-module (gnu packages image)
147 #:use-module (gnu packages kerberos)
148 #:use-module (gnu packages libevent)
149 #:use-module (gnu packages libffi)
150 #:use-module (gnu packages libidn)
151 #:use-module (gnu packages linux)
152 #:use-module (gnu packages llvm)
153 #:use-module (gnu packages man)
154 #:use-module (gnu packages maths)
155 #:use-module (gnu packages monitoring)
156 #:use-module (gnu packages multiprecision)
157 #:use-module (gnu packages networking)
158 #:use-module (gnu packages ncurses)
159 #:use-module (gnu packages openstack)
160 #:use-module (gnu packages pcre)
161 #:use-module (gnu packages perl)
162 #:use-module (gnu packages photo)
163 #:use-module (gnu packages pkg-config)
164 #:use-module (gnu packages python)
165 #:use-module (gnu packages python-check)
166 #:use-module (gnu packages python-compression)
167 #:use-module (gnu packages python-crypto)
168 #:use-module (gnu packages python-science)
169 #:use-module (gnu packages python-web)
170 #:use-module (gnu packages qt)
171 #:use-module (gnu packages rdf)
172 #:use-module (gnu packages readline)
173 #:use-module (gnu packages sdl)
174 #:use-module (gnu packages search)
175 #:use-module (gnu packages shells)
176 #:use-module (gnu packages sphinx)
177 #:use-module (gnu packages ssh)
178 #:use-module (gnu packages terminals)
179 #:use-module (gnu packages tex)
180 #:use-module (gnu packages texinfo)
181 #:use-module (gnu packages textutils)
182 #:use-module (gnu packages time)
183 #:use-module (gnu packages tls)
184 #:use-module (gnu packages version-control)
185 #:use-module (gnu packages video)
186 #:use-module (gnu packages web)
187 #:use-module (gnu packages wxwidgets)
188 #:use-module (gnu packages base)
189 #:use-module (gnu packages xml)
190 #:use-module (gnu packages xorg)
191 #:use-module (gnu packages xdisorg)
192 #:use-module (gnu packages tcl)
193 #:use-module (gnu packages bdw-gc)
194 #:use-module (gnu packages serialization)
195 #:use-module (guix packages)
196 #:use-module (guix download)
197 #:use-module (guix git-download)
198 #:use-module (guix hg-download)
199 #:use-module (guix utils)
200 #:use-module (guix build-system gnu)
201 #:use-module (guix build-system cmake)
202 #:use-module (guix build-system python)
203 #:use-module (guix build-system trivial)
204 #:use-module (srfi srfi-1)
205 #:use-module (srfi srfi-26))
207 (define-public python-slixmpp
209 (name "python-slixmpp")
216 (url "https://lab.louiz.org/poezio/slixmpp.git")
218 (string-append "slix-" version))))
220 (git-file-name name version))
222 (base32 "15mqxcws14bjvh5jcfwl86zsvrymkdw3ya07vb44md7vfnsnclwx"))))
223 (build-system python-build-system)
226 (modify-phases %standard-phases
227 (add-after 'unpack 'patch
229 (substitute* "setup.py"
234 `(("cython" ,python-cython)
236 ("pkg-config" ,pkg-config)))
238 `(("python-aiodns" ,python-aiodns)
239 ("python-aiohttp" ,python-aiohttp)
240 ("python-pyasn1" ,python-pyasn1)
241 ("python-pyasn1-modules" ,python-pyasn1-modules)))
244 ("python" ,python))) ; We are building a Python extension.
245 (synopsis "XMPP library without threads")
246 (description "Slixmpp is a XMPP library for Python 3.7+. It is a fork of
247 SleekXMPP. Its goal is to only rewrite the core of the library (the low level
248 socket handling, the timers, the events dispatching) in order to remove all
250 (home-page "https://lab.louiz.org/poezio/slixmpp")
251 (license license:expat)))
253 (define-public python-tenacity
255 (name "python-tenacity")
259 (uri (pypi-uri "tenacity" version))
262 "1j36v9fcpmmd4985ix0cwnvcq71rkrn5cjiiv0id9vkl4kpxh0gv"))))
263 (build-system python-build-system)
265 `(("python-setuptools-scm" ,python-setuptools-scm)
266 ("python-sphinx" ,python-sphinx)
267 ("python-tornado" ,python-tornado)
268 ("python-pytest" ,python-pytest)))
270 `(("python-six" ,python-six)))
272 `(#:phases (modify-phases %standard-phases
277 (home-page "https://github.com/jd/tenacity")
278 (synopsis "Retrying library for python")
279 (description "Tenacity is a general-purpose python library to simplify the
280 task of adding retry behavior to just about anything.")
281 (license license:asl2.0)))
283 (define-public python-pytelegrambotapi
285 (name "python-pytelegrambotapi")
291 (url "https://github.com/eternnoir/pyTelegramBotAPI")
293 (file-name (git-file-name name version))
295 (base32 "0r7g5zs0fk3g2dxvbpl0pi730x7r2kalrhn30fs0pvc15a59fmxz"))))
296 (build-system python-build-system)
299 (modify-phases %standard-phases
301 (lambda* (#:key tests? #:allow-other-keys)
303 (with-directory-excursion "tests"
307 `(("python-requests" ,python-requests)))
309 `(("python-pytest" ,python-pytest)))
310 (home-page "https://github.com/eternnoir/pyTelegramBotAPI")
311 (synopsis "Python Telegram bot api")
312 (description "This package provides a simple, but extensible Python
313 implementation for the Telegram Bot API.")
314 (license license:gpl2)))
316 (define-public python-colorlog
318 (name "python-colorlog")
322 (uri (pypi-uri "colorlog" version))
325 "1lpk8zmfv8vz090h5d0hzb4n39wgasxdd3x3bpn3v1x1n9dfzaih"))))
326 (build-system python-build-system)
328 `(("python-pytest" ,python-pytest)))
330 `(#:phases (modify-phases %standard-phases
333 ;; Extend PYTHONPATH so the built package will be found.
335 (string-append (getcwd) "/build/lib:"
336 (getenv "PYTHONPATH")))
337 (invoke "pytest" "-p" "no:logging")
339 (home-page "https://github.com/borntyping/python-colorlog")
340 (synopsis "Log formatting with colors for python")
341 (description "The @code{colorlog.ColoredFormatter} is a formatter for use
342 with Python's logging module that outputs records using terminal colors.")
343 (license license:expat)))
345 (define-public python-pyprind
347 (name "python-pyprind")
351 (uri (pypi-uri "PyPrind" version))
354 "0xg6m5hr33h9bdlrr42kc58jm2m87a9zsagy7n2m4n407d2snv64"))))
355 (build-system python-build-system)
357 `(("python-psutil" ,python-psutil)))
358 (home-page "https://github.com/rasbt/pyprind")
359 (synopsis "Python Progress Bar and Percent Indicator Utility")
360 (description "The PyPrind (Python Progress Indicator) module provides a
361 progress bar and a percentage indicator object that let you track the progress
362 of a loop structure or other iterative computation.")
363 (license license:bsd-3)))
365 (define-public python-gphoto2
367 (name "python-gphoto2")
371 (uri (pypi-uri "gphoto2" version))
374 "118zm25c8mlajfl0pzssnwz4b8lamj9dgymla9rn4nla7l244a0r"))))
375 (build-system python-build-system)
377 `(("pkg-config" ,pkg-config)))
379 `(("libgphoto2" ,libgphoto2)))
380 (home-page "https://github.com/jim-easterbrook/python-gphoto2")
381 (synopsis "Python interface to libgphoto2")
382 (description "@code{python-gphoto2} is a comprehensive Python interface
383 (or binding) to @code{libgphoto2}. It is built using @code{SWIG} to
384 automatically generate the interface code.")
385 (license license:gpl3+)))
387 (define-public python-colour
389 (name "python-colour")
393 (uri (pypi-uri "colour" version))
396 "1visbisfini5j14bdzgs95yssw6sm4pfzyq1n3lfvbyjxw7i485g"))))
397 (build-system python-build-system)
399 `(("python-d2to1" ,python-d2to1)))
400 (home-page "https://github.com/vaab/colour")
401 (synopsis "Convert and manipulate various color representations")
402 (description "Pythonic way to manipulate color representations (HSL, RVB,
404 (license license:expat)))
406 (define-public python-d2to1
408 (name "python-d2to1")
409 (version "0.2.12.post1")
412 (uri (pypi-uri "d2to1" version))
415 "09fq7pq1z8d006xh5z75rm2lk61v6yn2xhy53z4gsgibhqb2vvs9"))))
416 (build-system python-build-system)
418 `(("python-nose" ,python-nose)))
419 (home-page "https://github.com/embray/d2to1")
420 (synopsis "Allows for distutils2-like setup.cfg files as package metadata
422 (description "The python package d2to1 (the d is for distutils) allows
423 using distutils2-like setup.cfg files for a package's metadata with a
424 distribute/setuptools setup.py script.")
425 (license license:bsd-2)))
427 (define-public python-rawkit
429 (name "python-rawkit")
433 (uri (pypi-uri "rawkit" version))
436 "0vrhrpr70i61y5q5ysk341x1539ff1q1k82g59zq69lv16s0f76s"))))
437 (build-system python-build-system)
439 `(("python-pytest" ,python-pytest)
440 ("python-mock" ,python-mock)))
442 `(("libraw" ,libraw)))
443 (home-page "https://rawkit.readthedocs.io")
444 (synopsis "Ctypes-based LibRaw binding for Python")
445 (description "The rawkit package provides two modules: rawkit and libraw.
446 The rawkit module provides a high-level Pythonic interface for developing raw
447 photos, while the libraw module provides a CTypes based interface for
448 interacting with the low-level LibRaw C APIs.")
449 (license license:expat)))
451 (define-public python-easygui
453 (name "python-easygui")
457 (uri (pypi-uri "easygui" version))
460 "1zmvmwgxyzvm83818skhn8b4wrci4kmnixaax8q3ia5cn7xrmj6v"))))
461 (build-system python-build-system)
463 `(("python-tkinter" ,python "tk")))
464 (home-page "https://github.com/robertlugg/easygui")
465 (synopsis "GUI programming module for Python")
466 (description "EasyGUI is a module for very simple, very easy GUI
467 programming in Python. EasyGUI is different from other GUI generators in that
468 EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by
469 simple function calls.")
470 (license license:bsd-3)))
472 (define-public python-pymediainfo
474 (name "python-pymediainfo")
479 (uri (pypi-uri "pymediainfo" version))
482 "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
483 (build-system python-build-system)
485 `(("python-setuptools-scm" ,python-setuptools-scm)
486 ("python-pytest" ,python-pytest)))
488 `(("libmediainfo" ,libmediainfo)))
491 (modify-phases %standard-phases
492 (add-after 'unpack 'patch-libmediainfo
494 (substitute* "pymediainfo/__init__.py"
495 (("libmediainfo.so.0")
496 (string-append (assoc-ref %build-inputs "libmediainfo")
497 "/lib/libmediainfo.so.0")))
501 ;; Extend PYTHONPATH so the built package will be found.
503 (string-append (getcwd) "/build/lib:"
504 (getenv "PYTHONPATH")))
505 ;; Skip the only failing test "test_parse_url"
506 (invoke "pytest" "-vv" "-k" "not test_parse_url")
509 "https://github.com/sbraz/pymediainfo")
511 "Python wrapper for the mediainfo library")
513 "Python wrapper for the mediainfo library to access the technical and tag
514 data for video and audio files.")
515 (license license:expat)))
517 (define-public python-psutil
519 (name "python-psutil")
524 (uri (pypi-uri "psutil" version))
526 (base32 "1svv985vmqsls35kmvp3vhh26nsgz229324s9k29awf6qgqhm6ch"))))
527 (build-system python-build-system)
529 ;; FIXME: some tests do not return and time out. Some tests fail because
530 ;; some processes survive kill().
532 (home-page "https://www.github.com/giampaolo/psutil")
533 (synopsis "Library for retrieving information on running processes")
535 "psutil (Python system and process utilities) is a library for retrieving
536 information on running processes and system utilization (CPU, memory, disks,
537 network) in Python. It is useful mainly for system monitoring, profiling and
538 limiting process resources and management of running processes. It implements
539 many functionalities offered by command line tools such as: ps, top, lsof,
540 netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
541 pidof, tty, taskset, pmap.")
542 (properties `((python2-variant . ,(delay python2-psutil))))
543 (license license:bsd-3)))
545 (define-public python2-psutil
546 (let ((base (package-with-python2 (strip-python2-variant python-psutil))))
550 `(("python2-enum34" ,python2-enum34) ;optional
551 ,@(package-propagated-inputs base))))))
553 (define-public python-shapely
555 (name "python-shapely")
560 (uri (pypi-uri "Shapely" version))
563 "0adiz4jwmwxk7k1awqifb1a9bj5x4nx4gglb5dz9liam21674h8n"))
564 (modules '((guix build utils)))
567 (delete-file "shapely/speedups/_speedups.c")
568 (delete-file "shapely/vectorized/_vectorized.c")
570 (build-system python-build-system)
572 `(("python-cython" ,python-cython)
573 ("python-matplotlib" ,python-matplotlib)
574 ("python-pytest" ,python-pytest)
575 ("python-pytest-cov" ,python-pytest-cov)))
579 `(("python-numpy" ,python-numpy)))
582 (modify-phases %standard-phases
583 (add-after 'unpack 'patch-geos-path
584 (lambda* (#:key inputs #:allow-other-keys)
585 (let ((geos (assoc-ref inputs "geos"))
586 (glibc (assoc-ref inputs ,(if (%current-target-system)
587 "cross-libc" "libc"))))
588 (substitute* '("shapely/geos.py" "shapely/_buildcfg.py")
589 (("_lgeos = load_dll\\('geos_c', fallbacks=.*\\)")
590 (string-append "_lgeos = load_dll('geos_c', fallbacks=['"
591 geos "/lib/libgeos_c.so'])"))
592 (("free = load_dll\\('c'\\)\\.free")
593 (string-append "free = load_dll('c', fallbacks=['"
594 glibc "/lib/libc.so.6']).free"))
595 (("free = load_dll\\('c', fallbacks=.*\\)\\.free")
596 (string-append "free = load_dll('c', fallbacks=['"
597 glibc "/lib/libc.so.6']).free"))))
599 (home-page "https://github.com/Toblerity/Shapely")
600 (synopsis "Library for the manipulation and analysis of geometric objects")
601 (description "Shapely is a Python package for manipulation and analysis of
602 planar geometric objects. It is based on the @code{GEOS} library.")
603 (license license:bsd-3)))
605 (define-public python-shortuuid
607 (name "python-shortuuid")
612 (uri (pypi-uri "shortuuid" version))
615 "1f8i4zwj5vmpzbz6b17bljy4399gx5aq7vsyw63sz2qgyjcd73yh"))))
616 (build-system python-build-system)
618 `(("python-pep8" ,python-pep8)))
619 (home-page "https://github.com/skorokithakis/shortuuid")
620 (synopsis "Generator library for concise, unambiguous and URL-safe UUIDs")
622 "@code{shortuuid} is a Python library for generating concise, unambiguous
623 and URL-safe UUIDs. UUIDs are generated using the built-in Python @code{uuid}
624 module and then similar looking characters are removed.")
625 (license license:bsd-3)))
627 (define-public python-logwrap
629 (name "python-logwrap")
634 (uri (pypi-uri "logwrap" version ".zip"))
637 "1d2k0hvpbi51vl410y8fbs5m0nxnlh2k7gr2nrh3k81ibhzscsra"))))
638 (build-system python-build-system)
640 `(("python-six" ,python-six)
641 ("python-typing" ,python-typing)))
644 ("python-cython" ,python-cython)
645 ("python-pytest" ,python-pytest)
646 ("python-pytest-cov" ,python-pytest-cov)
647 ("python-pytest-runner" ,python-pytest-runner)))
648 (home-page "https://github.com/penguinolog/logwrap")
649 (synopsis "Decorator for logging function arguments")
650 (description "This package provides a decorator to log function arguments
651 and function call return values in a human-readable way.")
652 (license license:asl2.0)))
654 (define-public python2-shapely
655 (package-with-python2 python-shapely))
657 (define-public python-clyent
659 (name "python-clyent")
664 (uri (pypi-uri "clyent" version))
667 "1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj"))))
668 (build-system python-build-system)
670 `(("python-mock" ,python-mock)))
671 (home-page "https://github.com/Anaconda-Platform/clyent")
672 (synopsis "Command line client library")
673 (description "Clyent is a Python command line utility library. It is used
674 by @code{binstar}, @code{binstar-build}, and @code{chalmers}.")
675 (license license:bsd-3)))
677 (define-public python2-clyent
678 (package-with-python2 python-clyent))
680 (define-public python-babel
682 (name "python-babel")
687 (uri (pypi-uri "Babel" version))
690 "0f0f2vvs1mpdpz2c0mg1mnc3sih8bizmc1h9m67kdsnqs3i2mb0s"))))
691 (build-system python-build-system)
693 `(("python-freezegun" ,python-freezegun)
694 ("python-pytest" ,python-pytest)))
696 `(("python-pytz" ,python-pytz)))
698 `(#:phases (modify-phases %standard-phases
701 (invoke "pytest" "-vv" "-k"
703 ;; XXX: These tests fail when using Pytest 4.x and
704 ;; Babel 2.6.0. Try removing this for later versions.
705 "not test_no_inherit_metazone_marker_never_in_output"
706 " and not test_smoke_dates"
707 " and not test_smoke_numbers")))))))
708 (home-page "http://babel.pocoo.org/")
710 "Tools for internationalizing Python applications")
712 "Babel is composed of two major parts:
713 - tools to build and work with gettext message catalogs
714 - a Python interface to the CLDR (Common Locale Data Repository), providing
715 access to various locale display names, localized number and date formatting,
717 (license license:bsd-3)))
719 (define-public python2-babel
720 (package-with-python2 python-babel))
722 (define-public python2-backport-ssl-match-hostname
724 (name "python2-backport-ssl-match-hostname")
729 (uri (pypi-uri "backports.ssl_match_hostname" version))
732 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
733 (build-system python-build-system)
736 #:tests? #f)) ; no test target
737 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
738 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
740 "This backport brings the ssl.match_hostname() function to users of
741 earlier versions of Python. The function checks the hostname in the
742 certificate returned by the server to which a connection has been established,
743 and verifies that it matches the intended target hostname.")
744 (license license:psfl)))
746 (define-public python-bitarray
748 (name "python-bitarray")
752 (uri (pypi-uri "bitarray" version))
755 "177fj6wbw5jln54wpp6plcqy2329wjkwqwvgz7022rrg3xfrq49g"))))
756 (build-system python-build-system)
757 (home-page "https://github.com/ilanschnell/bitarray")
758 (synopsis "Efficient arrays of booleans")
759 (description "This package provides an object type which efficiently
760 represents an array of booleans. Bitarrays are sequence types and behave very
761 much like usual lists. Eight bits are represented by one byte in a contiguous
762 block of memory. The user can select between two representations:
763 little-endian and big-endian. All of the functionality is implemented in C.
764 Methods for accessing the machine representation are provided. This can be
765 useful when bit level access to binary files is required, such as portable
766 bitmap image files. Also, when dealing with compressed data which uses
767 variable bit length encoding, you may find this module useful.")
768 (license license:psfl)))
770 (define-public python-boolean.py
772 (name "python-boolean.py")
776 ;; There's no source tarball on PyPI.
779 (url "https://github.com/bastikr/boolean.py")
780 (commit (string-append "v" version))))
781 (file-name (git-file-name name version))
783 (base32 "1wc89y73va58cj7dsx6c199zpxsy9q53dsffsdj6zmc90inqz6qs"))))
784 (build-system python-build-system)
785 (home-page "https://github.com/bastikr/boolean.py")
786 (synopsis "Boolean algebra in one Python module")
788 "This is a small Python library that implements boolean algebra.
789 It defines two base elements, @code{TRUE} and @code{FALSE}, and a
790 @code{Symbol} class that can take on one of these two values. Calculations
791 are done only in terms of @code{AND}, @code{OR}, and @code{NOT}---other
792 compositions like @code{XOR} and @code{NAND} are emulated on top of them.
793 Expressions are constructed from parsed strings or directly in Python.")
794 (license license:bsd-2)))
796 (define-public python-hdf4
803 (uri (pypi-uri name version))
806 "1hjiyrxvxk9817qyqky3nar4y3fs4z8wxz0n884zzb5wi6skrjks"))))
807 (build-system python-build-system)
808 (native-inputs `(("nose" ,python-nose)))
809 (propagated-inputs `(("numpy" ,python-numpy)))
812 ("libjpeg" ,libjpeg-turbo)
816 (modify-phases %standard-phases
819 ;; The 'runexamples' script sets PYTHONPATH to CWD, then goes
820 ;; on to import numpy. Somehow this works on their CI system.
821 ;; Let's just manage PYTHONPATH here instead.
822 (substitute* "runexamples.sh"
823 (("export PYTHONPATH=.*") ""))
825 (string-append (getcwd) ":"
826 (getenv "PYTHONPATH")))
827 (invoke "./runexamples.sh")
828 (invoke "nosetests" "-v"))))))
829 (home-page "https://github.com/fhs/python-hdf4")
830 (synopsis "Python interface to the NCSA HDF4 library")
832 "Python-HDF4 is a python wrapper around the NCSA HDF version 4 library,
833 which implements the SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API’s.
834 NetCDF files can also be read and modified. Python-HDF4 is a fork of
835 @url{http://hdfeos.org/software/pyhdf.php,pyhdf}.")
836 (license license:expat)))
838 (define-public python2-hdf4
839 (package-with-python2 python-hdf4))
841 (define-public python-h5py
848 (uri (pypi-uri "h5py" version))
851 "0baipzv8n93m0dq0riyi8rfhzrjrfrfh8zqhszzp1j2xjac2fhc4"))))
852 (build-system python-build-system)
854 `(#:tests? #f ; no test target
856 (modify-phases %standard-phases
857 (add-after 'unpack 'fix-hdf5-paths
858 (lambda* (#:key inputs #:allow-other-keys)
859 (let ((prefix (assoc-ref inputs "hdf5")))
860 (substitute* "setup_build.py"
861 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
862 (string-append "['" prefix "/lib" "']"))
863 (("'/opt/local/include', '/usr/local/include'")
864 (string-append "'" prefix "/include" "'")))
865 (substitute* "setup_configure.py"
866 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
867 (string-append "['" prefix "/lib" "']")))
870 `(("python-six" ,python-six)
871 ("python-numpy" ,python-numpy)))
873 `(("hdf5" ,hdf5-1.10)))
875 `(("python-cython" ,python-cython)
876 ("python-pkgconfig" ,python-pkgconfig)
877 ("pkg-config" ,pkg-config)))
878 (home-page "https://www.h5py.org/")
879 (synopsis "Read and write HDF5 files from Python")
881 "The h5py package provides both a high- and low-level interface to the
882 HDF5 library from Python. The low-level interface is intended to be a
883 complete wrapping of the HDF5 API, while the high-level component supports
884 access to HDF5 files, datasets and groups using established Python and NumPy
886 (license license:bsd-3)))
888 (define-public python2-h5py
889 (package-with-python2 python-h5py))
891 (define-public python-sh
898 (uri (pypi-uri "sh" version))
901 "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm"))))
902 (build-system python-build-system)
905 (modify-phases %standard-phases
908 ;; XXX: A Python 2 test fails when HOME=/homeless-shelter.
909 (setenv "HOME" "/tmp")
910 (invoke "python" "sh.py" "test"))))))
912 `(("python-coverage" ,python-coverage)))
913 (home-page "https://github.com/amoffat/sh")
914 (synopsis "Python subprocess replacement")
915 (description "This package provides a replacement for Python's
916 @code{subprocess} feature.")
917 (license license:expat)))
919 (define-public python2-sh
920 (package-with-python2 python-sh))
922 (define-public python-cftime
924 (name "python-cftime")
929 (uri (pypi-uri "cftime" version))
931 (base32 "0w0gi6jnch38hiygl62j4xkcirv4y3dcwrvxl9p7bsk6j27lzihs"))))
932 (build-system python-build-system)
934 `(("python-numpy" ,python-numpy)))
936 `(("python-coveralls" ,python-coveralls)
937 ("python-cython" ,python-cython)
938 ("python-pytest-cov" ,python-pytest-cov)))
939 (home-page "https://github.com/Unidata/cftime")
940 (synopsis "Library for time handling")
942 "This package provides time-handling functionality that used to be part
943 of the netcdf4 package before.")
944 ;; This package claims to include code under the GPLv3 but is released
946 (license (list license:isc license:gpl3+))))
948 (define-public python-netcdf4
950 (name "python-netcdf4")
955 (uri (pypi-uri "netCDF4" version))
958 "1gn35mb2yc263pci720aik8ymz41lrvxlrn3z83vyjwghiashg1a"))))
959 (build-system python-build-system)
962 (modify-phases %standard-phases
963 (add-after 'unpack 'configure-locations
964 (lambda* (#:key inputs #:allow-other-keys)
965 (setenv "HDF5_DIR" (assoc-ref inputs "hdf5"))
968 `(("python-cython" ,python-cython)))
970 `(("python-numpy" ,python-numpy)
971 ("python-cftime" ,python-cftime)))
976 (home-page "https://github.com/Unidata/netcdf4-python")
977 (synopsis "Python/numpy interface to the netCDF library")
978 (description "Netcdf4-python is a Python interface to the netCDF C
979 library. netCDF version 4 has many features not found in earlier
980 versions of the library and is implemented on top of HDF5. This module
981 can read and write files in both the new netCDF 4 and the old netCDF 3
982 format, and can create files that are readable by HDF5 clients. The
983 API is modelled after @code{Scientific.IO.NetCDF}, and should be familiar
984 to users of that module.")
985 ;; The software is mainly ISC, but includes some files covered
986 ;; by the Expat license.
987 (license (list license:isc license:expat))))
989 (define-public python-license-expression
991 (name "python-license-expression")
996 (uri (pypi-uri "license-expression" version))
998 (base32 "1g0sgphss8hbi1rpl4avy1nmbixmy9v194xdbvkjgl90vzgy2q3r"))))
999 (build-system python-build-system)
1001 `(("python-boolean.py" ,python-boolean.py)))
1002 (home-page "https://github.com/nexB/license-expression")
1003 (synopsis "Apply boolean logic to license expressions")
1005 "This Python module defines a tiny language to evaluate and compare
1006 license expressions using boolean logic. Logical combinations of licenses can
1007 be tested for equality, containment, and equivalence. They can be normalised
1008 and simplified. It supports SPDX license expressions as well as other naming
1009 conventions and aliases in the same expression.")
1010 (license license:gpl2+)))
1012 (define-public python-lockfile
1014 (name "python-lockfile")
1019 (uri (pypi-uri "lockfile" version))
1022 "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
1023 (build-system python-build-system)
1024 (arguments '(#:test-target "check"))
1026 `(("python-pbr" ,python-pbr)))
1027 (home-page "https://launchpad.net/pylockfile")
1028 (synopsis "Platform-independent file locking module")
1030 "The lockfile package exports a LockFile class which provides a simple
1031 API for locking files.")
1032 (license license:expat)))
1034 (define-public python2-lockfile
1035 (package-with-python2 python-lockfile))
1037 (define-public python-filelock
1039 (name "python-filelock")
1044 (uri (pypi-uri "filelock" version))
1047 "0ngzlvb5j8gqs2nxlp2b0jhzii792h66wsn694qm8kqixr225n0q"))))
1048 (build-system python-build-system)
1050 "https://github.com/benediktschmitt/py-filelock")
1051 (synopsis "Platform independent file lock")
1052 (description "@code{filelock} contains a single module implementing
1053 a platform independent file lock in Python, which provides a simple way of
1054 inter-process communication.")
1055 (license license:unlicense)))
1057 (define-public python-semantic-version
1059 (name "python-semantic-version")
1064 (uri (pypi-uri "semantic_version" version))
1067 "1h2l9xyg1zzsda6kjcmfcgycbvrafwci283vcr1v5sbk01l2hhra"))))
1068 (build-system python-build-system)
1070 `(#:tests? #f)) ; PyPI tarball lacks tests
1071 (home-page "https://github.com/rbarrois/python-semanticversion")
1072 (synopsis "Semantic versioning module for Python")
1074 "The @code{semantic_version} class is a small library for handling
1075 @uref{https://semver.org/, semantic versioning} (@dfn{SemVer}) in Python.
1077 It can compare versions, generate a new version that represents a bump in one of
1078 the version levels, and check whether any given string is a proper semantic
1079 version identifier.")
1080 (license license:bsd-3)))
1082 (define-public python2-semantic-version
1083 (package-with-python2 python-semantic-version))
1085 (define-public python-serpent
1087 (name "python-serpent")
1092 (uri (pypi-uri "serpent" version))
1094 (base32 "1arnckykpkvv2qrp49l1k7q5mr5pisswl0rvdx98x8wsl1n361pk"))))
1095 (build-system python-build-system)
1097 `(("python-attrs" ,python-attrs)
1098 ("python-pytz" ,python-pytz)))
1099 (home-page "https://github.com/irmen/Serpent")
1100 (synopsis "Serializer for literal Python expressions")
1102 "Serpent provides @code{ast.literal_eval()}-compatible object tree
1103 serialization. It serializes an object tree into bytes (an utf-8 encoded
1104 string) that can be decoded and then passed as-is to @code{ast.literal_eval()}
1105 to rebuild the original object tree.
1107 Because only safe literals are encoded, it is safe to send serpent data to
1108 other machines, such as over the network.")
1109 (properties `((python2-variant . ,(delay python2-serpent))))
1110 (license license:expat)))
1112 (define-public python2-serpent
1113 (let ((base (package-with-python2 (strip-python2-variant python-serpent))))
1117 `(("python-enum34" ,python2-enum34)
1118 ,@(package-propagated-inputs base))))))
1120 (define-public python-setuptools
1122 (name "python-setuptools")
1127 (uri (pypi-uri "setuptools" version ".zip"))
1130 "04sns22y2hhsrwfy1mha2lgslvpjsjsz8xws7h2rh5a7ylkd28m2"))
1131 (modules '((guix build utils)))
1134 ;; Remove included binaries which are used to build self-extracting
1135 ;; installers for Windows.
1136 ;; TODO: Find some way to build them ourself so we can include them.
1137 (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$"))
1139 (build-system python-build-system)
1140 ;; FIXME: Tests require pytest, which itself relies on setuptools.
1141 ;; One could bootstrap with an internal untested setuptools.
1144 (home-page "https://pypi.org/project/setuptools/")
1146 "Library designed to facilitate packaging Python projects")
1148 "Setuptools is a fully-featured, stable library designed to facilitate
1149 packaging Python projects, where packaging includes:
1150 Python package and module definitions,
1151 distribution package metadata,
1153 project installation,
1154 platform-specific details,
1156 ;; TODO: setuptools now bundles the following libraries:
1157 ;; packaging, pyparsing, six and appdirs. How to unbundle?
1158 (license (list license:psfl ; setuptools itself
1159 license:expat ; six, appdirs, pyparsing
1160 license:asl2.0 ; packaging is dual ASL2/BSD-2
1163 (define-public python2-setuptools
1164 (package-with-python2 python-setuptools))
1166 ;; The setuptools provided by Python 3.7.4 is too new for Tensorflow.
1167 (define-public python-setuptools-for-tensorflow
1170 (inherit python-setuptools)
1173 (inherit (package-source python-setuptools))
1174 (uri (pypi-uri "setuptools" version ".zip"))
1177 "1mzdhvfhnv4lggxa8rjl0dzqxvfx377gg5sqs57v89wrp09lwj65")))))))
1179 (define-public python-uniseg
1181 (name "python-uniseg")
1186 (uri (pypi-uri "uniseg" version ".zip"))
1189 "05jsazvz6nbmh6l3v1rph5ydkqn1hzx1pyggdyvgp2qgmgrnmiz2"))))
1190 (build-system python-build-system)
1192 '(#:tests? #f)) ; The test suite requires network access.
1194 `(("unzip" ,unzip)))
1196 "https://bitbucket.org/emptypage/uniseg-python")
1198 "Python library to determine Unicode text segmentations")
1200 "Uniseg is a Python package used to determine Unicode text segmentations.
1201 Supported segmentations include:
1203 @item @dfn{Code point} (any value in the Unicode codespace)
1204 @item @dfn{Grapheme cluster} (user-perceived character made of a single or
1205 multiple Unicode code points, e.g. \"G\" + acute-accent)
1207 @item Sentence break
1210 (license license:expat)))
1212 (define-public python2-uniseg
1213 (package-with-python2 python-uniseg))
1215 (define-public python-humanfriendly
1217 (name "python-humanfriendly")
1222 (uri (pypi-uri "humanfriendly" version))
1225 "04ixg8b7p6xc8x8lffhi7wfl77xhszakhd0s6j0cf6a84j8yqlmz"))))
1226 (build-system python-build-system)
1228 `(;; XXX: Tests depend on coloredlogs, which in turn depends on humanfriendly.
1230 (home-page "https://humanfriendly.readthedocs.io")
1231 (synopsis "Human-friendly input and output in Python")
1233 "The functions and classes in @code{humanfriendly} can be used to make
1234 text interfaces more user-friendly. It includes tools to parse and format
1235 numbers, file sizes, and timespans, timers for long-running operations, menus
1236 to allow the user to choose from a list of options, and terminal interaction
1238 (properties `((python2-variant . ,(delay python2-humanfriendly))))
1239 (license license:expat)))
1241 (define-public python2-humanfriendly
1242 (let ((base (package-with-python2
1243 (strip-python2-variant python-humanfriendly))))
1244 (package (inherit base)
1246 `(("python2-monotonic" ,python2-monotonic)
1247 ,@(package-propagated-inputs base))))))
1249 (define-public python-textparser
1251 (name "python-textparser")
1256 (uri (pypi-uri "textparser" version))
1259 "0w5lyhrsvzs5a9q1l3sjgxgljrvd3ybf796w93kc39wayzvd02gh"))))
1260 (build-system python-build-system)
1261 (home-page "https://github.com/eerimoq/textparser")
1262 (synopsis "Fast text parser for Python")
1263 (description "This library provides a text parser written in the Python
1264 language. It aims to be fast.")
1265 (license license:expat)))
1267 (define-public python-aenum
1269 (name "python-aenum")
1274 (uri (pypi-uri "aenum" version))
1276 (base32 "0r1812bjm72x73pl7y4yhffr4zbdjgxa08avsy4b3di0pqgqv0l1"))))
1277 (build-system python-build-system)
1279 `(#:phases (modify-phases %standard-phases
1282 (format #t "current working dir ~s~%" (getcwd))
1283 (setenv "PYTHONPATH"
1284 (string-append ".:" (getenv "PYTHONPATH")))
1285 ;; We must run the test suite module directly, as it
1286 ;; fails to define the 'tempdir' variable in scope for
1287 ;; the tests otherwise
1288 ;; (see:https://bitbucket.org/stoneleaf/aenum/\
1289 ;; issues/32/running-tests-with-python-setuppy-test).
1290 (invoke "python3" "aenum/test.py")
1291 ;; This one fails with "NameError: name
1292 ;; 'test_pickle_dump_load' is not defined" (see:
1293 ;; https://bitbucket.org/stoneleaf/aenum/issues/33
1294 ;; /error-running-the-test_v3py-test-suite).
1295 ;; (invoke "python3" "aenum/test_v3.py")
1297 (home-page "https://bitbucket.org/stoneleaf/aenum")
1298 (synopsis "Advanced enumerations, namedtuples and constants for Python")
1299 (description "The aenum library includes an @code{Enum} base class, a
1300 metaclass-based @code{NamedTuple} implementation and a @code{NamedConstant}
1302 (license license:bsd-3)))
1304 (define-public python-can
1311 (uri (pypi-uri "python-can" version))
1314 "123lz1bl6xf3d0fvxzr4bg4884yg4m9s21z6xd2m68zhnbv9rmpc"))))
1315 (build-system python-build-system)
1317 `(#:phases (modify-phases %standard-phases
1318 (add-after 'unpack 'relax-version-requirements
1320 (substitute* "setup.py"
1321 (("mock~=2\\.0") "mock")
1322 (("coverage<5") "coverage")
1323 (("pytest~=4\\.3") "pytest")
1324 (("hypothesis~=4\\.56") "hypothesis"))
1326 (add-after 'unpack 'fix-broken-tests
1327 ;; The tests try to run two scripts it expects should be
1328 ;; in PATH, but they aren't at this time (see:
1329 ;; https://github.com/hardbyte/python-can/issues/805).
1331 (substitute* "test/test_scripts.py"
1332 (("\"can_logger\\.py --help\"") "")
1333 (("\"can_player\\.py --help\"") ""))
1336 `(("python-aenum" ,python-aenum)
1337 ("python-wrapt" ,python-wrapt)))
1339 `(("python-codecov" ,python-codecov)
1340 ("python-coverage" ,python-coverage)
1341 ("python-future" ,python-future)
1342 ("python-hypothesis" ,python-hypothesis)
1343 ("python-mock" ,python-mock)
1344 ("python-pyserial" ,python-pyserial)
1345 ("python-pytest" ,python-pytest)
1346 ("python-pytest-cov" ,python-pytest-cov)
1347 ("python-pytest-runner" ,python-pytest-runner)
1348 ("python-pytest-timeout" ,python-pytest-timeout)))
1349 (home-page "https://github.com/hardbyte/python-can")
1350 (synopsis "Controller Area Network (CAN) interface module for Python")
1351 (description "This package defines the @code{can} module, which provides
1352 controller area network (CAN) support for Python developers; providing common
1353 abstractions to different hardware devices, and a suite of utilities for
1354 sending and receiving messages on a CAN bus.")
1355 (license license:lgpl3+)))
1357 (define-public python-diskcache
1359 (name "python-diskcache")
1364 (uri (pypi-uri "diskcache" version))
1367 "1q2wz5sj16zgyy1zpq516qgbnfwsavk1pl2qks0f4r62z5cmmvmw"))))
1368 (build-system python-build-system)
1370 `(#:tests? #f)) ;test suite not included in the release
1371 (home-page "http://www.grantjenks.com/docs/diskcache/")
1372 (synopsis "Disk and file backed cache library")
1373 (description "DiskCache is a disk and file backed persistent cache.")
1374 (license license:asl2.0)))
1376 (define-public python-bitstruct
1378 (name "python-bitstruct")
1383 (uri (pypi-uri "bitstruct" version))
1386 "1fpc1qh1vss05ap29xvhjp200fm0q4pvgcjl0qpryh7ay6xgr5vx"))))
1387 (build-system python-build-system)
1388 (home-page "https://github.com/eerimoq/bitstruct")
1389 (synopsis "Python values to and C bit field structs converter")
1390 (description "This module performs conversions between Python values and C
1391 bit field structs represented as Python byte strings. It is intended to have
1392 a similar interface as the @code{struct} module from Python, but working on
1393 bits instead of primitive data types like @code{char}, @code{int}, etc.")
1394 (license license:expat)))
1396 (define-public python-cantools
1398 (name "python-cantools")
1402 ;; We take the sources from the Git repository as the documentation is
1403 ;; not included with the PyPI archive.
1406 (url "https://github.com/eerimoq/cantools")
1408 (file-name (git-file-name name version))
1411 "1aad137yd8b4jkfvlv812qsxmxcgra7g1p4wbxfsjy1cbf8fbq9q"))))
1412 (build-system python-build-system)
1415 (modify-phases %standard-phases
1416 (add-after 'build 'build-doc
1418 ;; See: https://github.com/eerimoq/cantools/issues/190.
1419 (substitute* "README.rst"
1420 (("https://github.com/eerimoq/cantools/raw/master\
1423 (with-directory-excursion "docs"
1424 (invoke "make" "man" "info"))))
1425 (add-after 'install 'install-doc
1426 (lambda* (#:key outputs #:allow-other-keys)
1427 (let* ((out (assoc-ref outputs "out"))
1428 (info (string-append out "/share/info"))
1429 (man1 (string-append out "/share/man/man1")))
1430 (format #t "CWD: ~s~%" (getcwd))
1431 (install-file "docs/_build/texinfo/cantools.info" info)
1432 (install-file "docs/_build/man/cantools.1" man1)
1435 `(("sphinx" ,python-sphinx)
1436 ("texinfo" ,texinfo)))
1438 `(("python-bitstruct" ,python-bitstruct)
1439 ("python-can" ,python-can)
1440 ("python-diskcache" ,python-diskcache)
1441 ("python-textparser" ,python-textparser)))
1442 (home-page "https://github.com/eerimoq/cantools")
1443 (synopsis "Tools for the Controller Area Network (CAN) bus protocol")
1444 (description "This package includes Controller Area Network (CAN) related
1445 tools that can be used to:
1447 @item parse DBC, KCD, SYM, ARXML 4 and CDD files
1448 @item encode and decode CAN messages
1449 @item multiplex simple and extended signals
1450 @item diagnose DID encoding and decoding
1451 @item dump the CAN decoder output
1452 @item test CAN nodes
1453 @item generate C source code
1454 @item monitor the CAN bus
1456 (license license:expat)))
1458 (define-public python-capturer
1460 (name "python-capturer")
1465 (uri (pypi-uri "capturer" version))
1468 "05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089"))))
1469 (build-system python-build-system)
1473 `(("python-humanfriendly" ,python-humanfriendly)))
1474 (home-page "https://capturer.readthedocs.io")
1475 (synopsis "Capture stdout and stderr streams of the current process")
1477 "The capturer package makes it easy to capture the stdout and stderr
1478 streams of the current process and subprocesses. Output can be relayed
1479 to the terminal in real time but is also available to the Python program
1480 for additional processing.")
1481 (license license:expat)))
1483 (define-public python2-capturer
1484 (package-with-python2 python-capturer))
1486 (define-public python-case
1488 (name "python-case")
1493 (uri (pypi-uri "case" version))
1496 "1cagg06vfph864s6l5jb0zqliwxh647bki8j6lf4a4qrv40jnhs8"))))
1497 (build-system python-build-system)
1499 `(("python-mock" ,python-mock)
1500 ("python-nose" ,python-nose)
1501 ("python-six" ,python-six)
1502 ("python-unittest2" ,python-unittest2)))
1504 `(("python-coverage" ,python-coverage)))
1505 (home-page "https://github.com/celery/case")
1506 (synopsis "Unittest utilities and convenience methods")
1508 "The @code{case} package provides utilities on top of unittest, including
1509 some helpful Python 2 compatibility convenience methods.")
1510 (license license:bsd-3)))
1512 (define-public python-verboselogs
1514 (name "python-verboselogs")
1519 (uri (pypi-uri "verboselogs" version))
1522 "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3"))))
1523 (build-system python-build-system)
1526 (modify-phases %standard-phases
1529 ;; Do not run pylint plugin test, as astroid is an old
1530 ;; unsupported version.
1531 (invoke "pytest" "-v" "-k" "not test_pylint_plugin"
1532 "verboselogs/tests.py"))))))
1534 `(("python-mock" ,python-mock)
1535 ("python-pytest" ,python-pytest)))
1536 (home-page "https://verboselogs.readthedocs.io")
1537 (synopsis "Verbose logging level for Python's logging module")
1539 "The @code{verboselogs} package extends Python's @code{logging} module to
1540 add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.")
1541 (license license:expat)))
1543 (define-public python2-verboselogs
1544 (package-with-python2 python-verboselogs))
1546 (define-public python-coloredlogs
1548 (name "python-coloredlogs")
1553 (uri (pypi-uri "coloredlogs" version))
1556 "0dkw6xp0r1dwgz4s2f58npx5nxfq51wf4l6qkm5ib27slgfs4sdq"))))
1557 (build-system python-build-system)
1559 `(;Tests require some updated modules
1562 `(("python-capturer" ,python-capturer)))
1563 (home-page "https://coloredlogs.readthedocs.io")
1564 (synopsis "Colored stream handler for Python's logging module")
1566 "The @code{coloredlogs} package enables colored terminal output for
1567 Python's logging module. The @code{ColoredFormatter} class inherits from
1568 @code{logging.Formatter} and uses ANSI escape sequences to render your logging
1569 messages in color.")
1570 (license license:expat)))
1572 (define-public python2-coloredlogs
1573 (package-with-python2 python-coloredlogs))
1575 (define-public python-editorconfig
1577 (name "python-editorconfig")
1582 (uri (pypi-uri "EditorConfig" version))
1585 "0v55z351p9qkyp3bbspwywwn28sbcknhirngjbj779n3z52z63hv"))))
1586 (build-system python-build-system)
1587 (home-page "https://editorconfig.org/")
1588 (synopsis "EditorConfig bindings for python")
1589 (description "The EditorConfig project consists of a file format for
1590 defining coding styles and a collection of text editor plugins that enable
1591 editors to read the file format and adhere to defined styles. EditorConfig
1592 files are easily readable and they work nicely with version control systems.")
1593 ;; "fnmatch.py" and "ini.py" are licensed under psfl, the rest is bsd-2.
1594 (license (list license:bsd-2 license:psfl))))
1596 (define-public dosage
1603 (uri (pypi-uri "dosage" version))
1606 "0vmxgn9wd3j80hp4gr5iq06jrl4gryz5zgfdd2ah30d12sfcfig0"))))
1607 (build-system python-build-system)
1609 `(("python2-backports-functools-lru-cache"
1610 ,python2-backports-functools-lru-cache)
1611 ("python2-backports-shutil-get-terminal-size"
1612 ,python2-backports-shutil-get-terminal-size)
1613 ("python-cached-property" ,python-cached-property)
1614 ("python-colorama" ,python-colorama)
1615 ("python-imagesize" ,python-imagesize)
1616 ("python-importlib-metadata" ,python-importlib-metadata)
1617 ("python-lxml" ,python-lxml)
1618 ("python-requests" ,python-requests)
1619 ("python-six" ,python-six)))
1621 `(("python-pytest-cov" ,python-pytest-cov)
1622 ("python-pytest-xdist" ,python-pytest-xdist)
1623 ("python-responses" ,python-responses)
1624 ("python-setuptools-scm" ,python-setuptools-scm)))
1625 (home-page "https://github.com/webcomics/dosage")
1626 (synopsis "Comic strip downloader and archiver")
1627 (description "Dosage is designed to keep a local copy of specific webcomics and other
1628 picture-based content such as Picture of the Day sites. With the @command{dosage}
1629 command-line script you can get the latest strip of a webcomic, catch-up to the last strip
1630 downloaded, or download a strip for a particular date or index, if possible.")
1631 (license license:expat)))
1633 (define-public python-et-xmlfile
1635 (name "python-et-xmlfile")
1640 (uri (pypi-uri "et_xmlfile" version))
1643 "0nrkhcb6jdrlb6pwkvd4rycw34y3s931hjf409ij9xkjsli9fkb1"))))
1644 (build-system python-build-system)
1646 `(#:phases (modify-phases %standard-phases
1649 (invoke "pytest"))))))
1651 `(("python-pytest" ,python-pytest)
1652 ("python-lxml" ,python-lxml))) ;used for the tests
1653 (home-page "https://bitbucket.org/openpyxl/et_xmlfile")
1654 (synopsis "Low memory implementation of @code{lxml.xmlfile}")
1655 (description "This Python library is based upon the @code{xmlfile} module
1656 from @code{lxml}. It aims to provide a low memory, compatible implementation
1657 of @code{xmlfile}.")
1658 (license license:expat)))
1660 (define-public python2-et-xmlfile
1661 (package-with-python2 python-et-xmlfile))
1663 (define-public python-openpyxl
1665 (name "python-openpyxl")
1669 ;; We use the upstream repository, as the tests are not included in the
1673 (url "https://foss.heptapod.net/openpyxl/openpyxl")
1674 (changeset version)))
1675 (file-name (string-append name "-" version "-checkout"))
1677 (base32 "0s6fgwwkcfz1bnrp5gjd4g2lcbl4a76147ylkrmkbabi2nf4xlli"))))
1678 (build-system python-build-system)
1680 `(#:phases (modify-phases %standard-phases
1683 (invoke "pytest"))))))
1685 ;; For the test suite.
1686 `(("python-lxml" ,python-lxml)
1687 ("python-pillow" ,python-pillow)
1688 ("python-pytest" ,python-pytest)))
1690 `(("python-et-xmlfile" ,python-et-xmlfile)
1691 ("python-jdcal" ,python-jdcal)))
1692 (home-page "https://openpyxl.readthedocs.io")
1693 (synopsis "Python library to read/write Excel 2010 XLSX/XLSM files")
1694 (description "This Python library allows reading and writing to the Excel XLSX, XLSM,
1695 XLTX and XLTM file formats that are defined by the Office Open XML (OOXML)
1697 (properties `((python2-variant . ,(delay python2-openpyxl))))
1698 (license license:expat)))
1700 (define-public python2-openpyxl
1701 (let ((base (package-with-python2
1702 (strip-python2-variant python-openpyxl))))
1705 ;; This is the latest version that has python2 support
1710 (uri (pypi-uri "openpyxl" version))
1713 "1qzjj8nwj4dn0mhq1j64f136afiqqb81lvqiikipz3g1g0b80lqx"))))
1714 (arguments '(#:tests? #f))))) ; No test suite.
1716 (define-public python-eventlet
1718 (name "python-eventlet")
1723 (uri (pypi-uri "eventlet" version))
1726 "1hgz8jq19wlz8vwqj900ry8cjv578nz4scc91mlc8944yid6573c"))))
1727 (build-system python-build-system)
1729 `(("python-greenlet" ,python-greenlet)))
1731 ;; TODO: Requires unpackaged 'enum-compat'.
1733 (home-page "https://eventlet.net")
1734 (synopsis "Concurrent networking library for Python")
1736 "Eventlet is a concurrent networking library for Python that
1737 allows you to change how you run your code, not how you write it.
1738 It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O.
1739 Coroutines ensure that the developer uses a blocking style of programming
1740 that is similar to threading, but provide the benefits of non-blocking I/O.
1741 The event dispatch is implicit, which means you can easily use @code{Eventlet}
1742 from the Python interpreter, or as a small part of a larger application.")
1743 (license license:expat)))
1745 (define-public python-six
1752 (uri (pypi-uri "six" version))
1755 "02lw67hprv57hyg3cfy02y3ixjk3nzwc0dx3c4ynlvkfwkfdnsr3"))))
1756 (build-system python-build-system)
1759 (modify-phases %standard-phases
1762 (invoke "py.test" "-v"))))))
1764 `(("python-pytest" ,python-pytest-bootstrap)))
1765 (home-page "https://pypi.org/project/six/")
1766 (synopsis "Python 2 and 3 compatibility utilities")
1768 "Six is a Python 2 and 3 compatibility library. It provides utility
1769 functions for smoothing over the differences between the Python versions with
1770 the goal of writing Python code that is compatible on both Python versions.
1771 Six supports every Python version since 2.5. It is contained in only one
1772 Python file, so it can be easily copied into your project.")
1773 (license license:x11)))
1775 (define-public python2-six
1776 (package-with-python2 python-six))
1778 (define-public python-six-bootstrap
1780 (inherit python-six)
1781 (name "python-six-bootstrap")
1783 (arguments `(#:tests? #f))))
1785 (define-public python2-six-bootstrap
1786 (package-with-python2 python-six-bootstrap))
1788 (define-public python-schedule
1790 (name "python-schedule")
1795 (uri (pypi-uri "schedule" version))
1798 "0vplyjcbfrq50sphlwya749z8p2pcyi2nycw3518i0qpd9a6189i"))))
1799 (build-system python-build-system)
1801 `(("python-pytest" ,python-pytest)
1802 ("python-mock" ,python-mock)))
1803 (home-page "https://github.com/dbader/schedule")
1804 (synopsis "Schedule periodic function calls in Python")
1806 "Schedule is an in-process scheduler for periodic jobs that uses the
1807 builder pattern for configuration. Schedule lets you run Python functions (or
1808 any other callable) periodically at pre-determined intervals using a simple,
1809 human-friendly syntax.")
1810 (license license:expat)))
1812 (define-public python2-schedule
1813 (package-with-python2 python-schedule))
1815 (define-public python-scour
1817 (name "python-scour")
1824 (url "https://github.com/scour-project/scour")
1826 (string-append "v" version))))
1827 (file-name (git-file-name name version))
1829 (base32 "0rgiypb9ig8x4rl3hfzpy7kwnx1q3064nvlrv4fk0dnp84girn0v"))))
1831 `(("python-six" ,python-six)))
1832 (build-system python-build-system)
1833 (home-page "https://github.com/scour-project/scour")
1834 (synopsis "Scour is an SVG optimizer/cleaner written in Python")
1835 (description "The goal of Scour is to output a file that renderes
1836 identically at a fraction of the size by removing a lot of redundant
1837 information created by most SVG editors. Optimization options are typically
1838 lossless but can be tweaked for more aggressive cleaning.")
1839 (license license:asl2.0)))
1841 (define-public python-mechanize
1843 (name "python-mechanize")
1848 (uri (pypi-uri "mechanize" version))
1851 "1z9kqcwb8gfq2l6i42z624kxpd8692a0c8gw2x5bbm7n848w2mb3"))))
1852 (build-system python-build-system)
1854 `(("python-html5lib" ,python-html5lib)))
1855 (home-page "https://github.com/python-mechanize/mechanize")
1857 "Stateful programmatic web browsing in Python")
1859 "Mechanize implements stateful programmatic web browsing in Python,
1860 after Andy Lester’s Perl module WWW::Mechanize.")
1861 (license license:bsd-3)))
1863 (define-public python2-mechanize
1864 (package-with-python2 python-mechanize))
1866 (define-public python-simpleaudio
1868 (name "python-simpleaudio")
1873 (uri (pypi-uri "simpleaudio" version))
1876 "07glihg0fpca0gvbbvqs9q815w8xhflzdvg72yvlsm23j9j8h739"))))
1877 (build-system python-build-system)
1881 `(("alsa-lib" ,alsa-lib)))
1883 "https://github.com/hamiltron/py-simple-audio")
1884 (synopsis "Simple, asynchronous audio playback for Python 3")
1886 "The @code{simplaudio} package provides cross-platform, dependency-free
1887 audio playback capability for Python 3 on OSX, Windows, and Linux.")
1888 (license license:expat))) ; MIT license
1890 (define-public python-simplejson
1892 (name "python-simplejson")
1897 (uri (pypi-uri "simplejson" version))
1900 "108yf3252fy4ndqab7h46raksxfhcn113bzy2yd8369vidrjnjrb"))))
1901 (build-system python-build-system)
1902 (home-page "http://simplejson.readthedocs.org/en/latest/")
1904 "Json library for Python")
1906 "JSON (JavaScript Object Notation) is a subset of JavaScript
1907 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
1910 Simplejson exposes an API familiar to users of the standard library marshal
1911 and pickle modules. It is the externally maintained version of the json
1912 library contained in Python 2.6, but maintains compatibility with Python 2.5
1913 and (currently) has significant performance advantages, even without using
1914 the optional C extension for speedups. Simplejson is also supported on
1916 (license license:x11)))
1918 (define-public python2-simplejson
1919 (package-with-python2 python-simplejson))
1922 (define-public python-pyicu
1924 (name "python-pyicu")
1929 (uri (pypi-uri "PyICU" version))
1932 "075bw66b3w0nw6mc5k32fwmrhyrmq3d7da3q2mw212qfmm0pgjn0"))))
1933 (build-system python-build-system)
1935 `(("icu4c" ,icu4c)))
1937 `(("python-pytest" ,python-pytest)
1938 ("python-six" ,python-six)))
1939 (home-page "https://github.com/ovalhub/pyicu")
1940 (synopsis "Python extension wrapping the ICU C++ API")
1942 "PyICU is a python extension wrapping the ICU C++ API.")
1943 (license license:x11)))
1945 (define-public python2-pyicu
1946 (package-with-python2 python-pyicu))
1948 (define-public python-dogtail
1950 (name "python-dogtail")
1956 "https://gitlab.com/dogtail/dogtail/-/raw/released/"
1957 "dogtail-" version ".tar.gz"))
1960 "0sr38z7b2n12bvfd4xw4b5dnnhkn5zl3h0ymmnnzavcihfqia6l0"))))
1961 (build-system python-build-system)
1963 `(#:tests? #f ; TODO Launching dbus for the tests
1966 (modify-phases %standard-phases
1968 (lambda* (#:key tests? #:allow-other-keys)
1970 (system "Xvfb :1 &")
1971 (setenv "DISPLAY" ":1")
1972 (invoke "dbus-run-session" "--" "nosetests" "-v" "tests/"))
1975 `(("python-pygobject" ,python-pygobject)
1976 ("python-pycairo" ,python-pycairo)
1977 ("python-pyatspi" ,python-pyatspi)))
1979 `(("python-nose" ,python-nose)
1981 ("xvfb" ,xorg-server)
1983 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1984 ("gobject-introspection" ,gobject-introspection)))
1985 (home-page "https://gitlab.com/dogtail/dogtail/")
1986 (synopsis "GUI test tool and automation framework written in Python")
1988 "Dogtail is a GUI test tool and automation framework written in Python.
1989 It uses Accessibility (a11y) technologies to communicate with desktop
1990 applications. dogtail scripts are written in Python and executed like any
1991 other Python program.")
1992 (license license:gpl2+)))
1994 (define-public python2-dogtail
1995 (package-with-python2 python-dogtail))
1997 (define-public python-empy
1999 (name "python-empy")
2003 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
2007 "1mxfy5mgp473ga1pgz2nvm8ds6z4g3hdky8523z6jzvcs9ny6hcq"))))
2008 (build-system python-build-system)
2010 `(#:tests? #f)) ; python2 only
2011 (home-page "http://www.alcyone.com/software/empy/")
2012 (synopsis "Templating system for Python")
2014 "EmPy is a system for embedding Python expressions and statements in
2015 template text; it takes an EmPy source file, processes it, and produces
2016 output. This is accomplished via expansions, which are special signals to the
2017 EmPy system and are set off by a special prefix (by default the at sign, @@).
2018 EmPy can expand arbitrary Python expressions and statements in this way, as
2019 well as a variety of special forms. Textual data not explicitly delimited in
2020 this way is sent unaffected to the output, allowing Python to be used in
2021 effect as a markup language. Also supported are callbacks via hooks,
2022 recording and playback via diversions, and dynamic, chainable filters. The
2023 system is highly configurable via command line options and embedded
2025 (license license:lgpl2.1+)))
2027 (define-public python2-empy
2028 (let ((base (package-with-python2 (strip-python2-variant python-empy))))
2031 (arguments `(,@(package-arguments base)
2034 (define-public python2-element-tree
2036 (name "python2-element-tree")
2041 "http://effbot.org/media/downloads/elementtree-"
2042 version "-20050316.tar.gz"))
2045 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
2046 (build-system python-build-system)
2048 `(#:python ,python-2 ; seems to be part of Python 3
2049 #:tests? #f)) ; no 'test' sub-command
2050 (synopsis "Toolkit for XML processing in Python")
2052 "ElementTree is a Python library supporting lightweight XML processing.")
2053 (home-page "https://effbot.org/zone/element-index.htm")
2054 (license (license:x11-style
2055 "http://docs.python.org/2/license.html"
2056 "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\"."))))
2058 (define-public python2-pybugz
2060 (name "python2-pybugz")
2065 "http://bits.liquidx.net/projects/pybugz/pybugz-"
2069 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
2070 (patches (search-patches "pybugz-stty.patch"
2071 "pybugz-encode-error.patch"))))
2072 (build-system python-build-system)
2074 `(#:python ,python-2 ; SyntaxError with Python 3
2075 #:tests? #f)) ; no 'test' sub-command
2077 `(("element-tree" ,python2-element-tree)))
2078 (synopsis "Python and command-line interface to Bugzilla")
2080 "PyBugz is a Python library and command-line tool to query the Bugzilla
2081 bug tracking system. It is meant as an aid to speed up interaction with the
2083 (home-page "http://www.liquidx.net/pybugz/")
2084 (license license:gpl2)))
2086 (define-public python2-enum
2088 (name "python2-enum")
2092 (uri (pypi-uri "enum" version))
2095 "13lk3yrwj42vl30kw3c194f739nrfrdg64s6i0v2p636n4k8brsl"))))
2096 (build-system python-build-system)
2098 `(#:python ,python-2))
2099 (home-page "https://pypi.org/project/enum/")
2100 (synopsis "Robust enumerated type support in Python")
2102 "This provides a module for robust enumerations in Python. It has
2103 been superseded by the Python standard library and is provided only for
2105 ;; Choice of either license.
2106 (license (list license:gpl3+ license:psfl))))
2108 (define-public python-enum34
2110 (name "python-enum34")
2115 (uri (pypi-uri "enum34" version))
2118 "1cgm5ng2gcfrkrm3hc22brl6chdmv67b9zvva9sfs7gn7dwc9n4a"))))
2119 (build-system python-build-system)
2120 (home-page "https://pypi.org/project/enum34/")
2121 (synopsis "Backported Python 3.4 Enum")
2123 "Enum34 is the new Python stdlib enum module available in Python 3.4
2124 backported for previous versions of Python from 2.4 to 3.3.")
2125 (license license:bsd-3)))
2127 (define-public python2-enum34
2128 (package-with-python2 python-enum34))
2130 (define-public python-parse-type
2132 (name "python-parse-type")
2137 (uri (pypi-uri "parse_type" version))
2140 "0g3b6gsdwnm8dpkh2vn34q6dzxm9gl908ggyzcv31n9xbp3vv5pm"))))
2141 (build-system python-build-system)
2143 `(("python-six" ,python-six)
2144 ("python-parse" ,python-parse)))
2146 `(("python-pytest" ,python-pytest)
2147 ("python-pytest-runner" ,python-pytest-runner)))
2148 (home-page "https://github.com/jenisys/parse_type")
2149 (synopsis "Extended parse module")
2151 "Parse_type extends the python parse module.")
2153 `((python2-variant . ,(delay python2-parse-type))))
2154 (license license:bsd-3)))
2156 (define-public python2-parse-type
2157 (let ((base (package-with-python2
2158 (strip-python2-variant python-parse-type))))
2159 (package (inherit base)
2161 `(("python2-enum34" ,python2-enum34)
2162 ,@(package-propagated-inputs base))))))
2164 (define-public python-parse
2166 (name "python-parse")
2171 (uri (pypi-uri "parse" version))
2174 "19063x4xdjpaf7rfxai6jpgm2k4yvkq7wha8aa8cagbjsqr60rli"))))
2175 (build-system python-build-system)
2178 (modify-phases %standard-phases
2180 (lambda _ (invoke "python" "test_parse.py"))))))
2181 (home-page "https://github.com/r1chardj0n3s/parse")
2182 (synopsis "Parse strings")
2184 "Parse strings using a specification based on the Python @code{format()}
2186 (license license:x11)))
2188 (define-public python-polib
2190 (name "python-polib")
2194 (uri (pypi-uri "polib" version))
2197 "1pq2hbm3m2q0cjdszk8mc4qa1vl3wcblh5nfyirlfnzb2pcy7zss"))))
2198 (build-system python-build-system)
2199 (home-page "https://bitbucket.org/izi/polib/wiki/Home")
2200 (synopsis "Manipulate, create and modify gettext files")
2201 (description "Polib can manipulate any gettext format (po, pot and mo)
2202 files. It can be used to create po files from scratch or to modify
2204 (license license:expat)))
2206 (define-public python2-polib
2207 (let ((base (package-with-python2 (strip-python2-variant python-polib))))
2210 (arguments `(,@(package-arguments base)
2211 ;; Tests don't work with python2.
2214 (define-public python-poyo
2216 (name "python-poyo")
2221 (uri (pypi-uri "poyo" version))
2224 "1pflivs6j22frz0v3dqxnvc8yb8fb52g11lqr88z0i8cg2m5csg2"))))
2225 (build-system python-build-system)
2226 (home-page "https://github.com/hackebrot/poyo")
2227 (synopsis "Lightweight YAML Parser for Python")
2229 "This package provides a lightweight YAML Parser for Python. It supports
2230 only a chosen subset of the YAML format that is required to parse cookiecutter
2231 user configuration files. It does not have support for serializing into YAML
2232 and is not compatible with JSON.")
2233 (license license:expat)))
2235 (define-public scons
2242 (url "https://github.com/SCons/scons")
2244 (file-name (git-file-name name version))
2247 "1xy8jrwz87y589ihcld4hv7wn122sjbz914xn8h50ww77wbhk8hn"))))
2248 (build-system python-build-system)
2250 `(#:use-setuptools? #f ; still relies on distutils
2251 #:tests? #f ; no 'python setup.py test' command
2253 (modify-phases %standard-phases
2254 (add-before 'build 'bootstrap
2256 (substitute* "src/engine/SCons/compat/__init__.py"
2257 (("sys.modules\\[new\\] = imp.load_module\\(old, \\*imp.find_module\\(old\\)\\)")
2258 "sys.modules[new] = __import__(old)"))
2259 (substitute* "src/engine/SCons/Platform/__init__.py"
2260 (("mod = imp.load_module\\(full_name, file, path, desc\\)")
2261 "mod = __import__(full_name)"))
2262 (invoke "python" "bootstrap.py" "build/scons" "DEVELOPER=guix")
2263 (chdir "build/scons")
2265 (home-page "https://scons.org/")
2266 (synopsis "Software construction tool written in Python")
2268 "SCons is a software construction tool. Think of SCons as an improved,
2269 cross-platform substitute for the classic Make utility with integrated
2270 functionality similar to autoconf/automake and compiler caches such as ccache.
2271 In short, SCons is an easier, more reliable and faster way to build
2273 (license license:x11)))
2275 (define-public scons-python2
2277 (inherit (package-with-python2 scons))
2278 (name "scons-python2")))
2280 (define-public python-extras
2282 (name "python-extras")
2287 (uri (pypi-uri "extras" version))
2290 "0khvm08rcwm62wc47j8niyl6h13f8w51c8669ifivjdr23g3cbhk"))))
2291 (build-system python-build-system)
2293 ;; FIXME: Circular dependency on testtools.
2295 (home-page "https://github.com/testing-cabal/extras")
2296 (synopsis "Useful extensions to the Python standard library")
2298 "Extras is a set of extensions to the Python standard library.")
2299 (license license:expat)))
2301 (define-public python2-extras
2302 (package-with-python2 python-extras))
2304 (define-public python-mimeparse
2306 (name "python-mimeparse")
2311 (uri (pypi-uri "python-mimeparse" version))
2314 "0y2g6cl660bpz11srgqyvvm8gmywpgyx8g0xfvbiyr0af0yv1r3n"))))
2315 (build-system python-build-system)
2318 (modify-phases %standard-phases
2321 (invoke "./mimeparse_test.py"))))))
2323 "https://github.com/dbtsai/python-mimeparse")
2324 (synopsis "Python library for parsing MIME types")
2326 "Mimeparse provides basic functions for parsing MIME type names and
2327 matching them against a list of media-ranges.")
2328 (license license:expat)))
2330 (define-public python2-mimeparse
2331 (package-with-python2 python-mimeparse))
2333 (define-public python-miniboa
2335 (name "python-miniboa")
2340 (uri (pypi-uri "miniboa" version))
2343 "09jh3pn4rh7kh7jayanf8jzy6gp03791b5a193w6148cf3i6k9m3"))))
2344 (build-system python-build-system)
2345 (home-page "https://github.com/shmup/miniboa")
2346 (synopsis "Simple, single-threaded Telnet server")
2348 "Miniboa is a simple, asynchronous, single-threaded, poll-based Telnet
2350 (license license:asl2.0)))
2352 (define-public python2-miniboa
2353 (package-with-python2 python-miniboa))
2355 (define-public python-pafy
2357 (name "python-pafy")
2362 (uri (pypi-uri "pafy" version))
2365 "1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim"))))
2366 (build-system python-build-system)
2368 `(#:tests? #f)) ; Currently pafy can not find itself in the tests
2370 ;; Youtube-dl is a python package which is imported in the file
2371 ;; "backend_youtube_dl.py", therefore it needs to be propagated.
2372 `(("youtube-dl" ,youtube-dl)))
2373 (home-page "https://np1.github.io/pafy/")
2374 (synopsis "Retrieve YouTube content and metadata")
2376 "@code{pafy} is a python library to retrieve YouTube content and metadata.")
2377 (license license:lgpl3+)))
2379 (define-public python2-funcsigs
2381 (name "python2-funcsigs")
2385 (uri (pypi-uri "funcsigs" version))
2388 "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7"))))
2389 (build-system python-build-system)
2391 `(#:python ,python-2))
2393 `(("python2-unittest2" ,python2-unittest2)))
2394 (home-page "http://funcsigs.readthedocs.org")
2395 (synopsis "Python function signatures from PEP362")
2397 "Backport of @code{funcsigs} which was introduced in Python 3.3.")
2398 (license license:asl2.0)))
2400 (define-public python2-funcsigs-bootstrap
2402 (inherit python2-funcsigs)
2403 (name "python2-funcsigs-bootstrap")
2407 ,@(package-arguments python2-funcsigs)))))
2409 (define-public python-py
2416 (uri (pypi-uri "py" version))
2419 "1ajjazg3913n0sp3vjyva9c2qh5anx8ziryng935f89604a0h9sy"))))
2420 (build-system python-build-system)
2422 ;; FIXME: "ImportError: 'test' module incorrectly imported from
2423 ;; '/gnu/store/...-python-pytest-mimimal-3.0.5/lib/python3.5/site-packages'.
2424 ;; Expected '/tmp/guix-build-python-py-1.4.31.drv-0/py-1.4.31/py'.
2425 ;; Is this module globally installed?"
2428 `(("python-setuptools-scm" ,python-setuptools-scm)))
2429 (home-page "https://github.com/pytest-dev/py")
2430 (synopsis "Python library for parsing, I/O, instrospection, and logging")
2432 "Py is a Python library for file name parsing, .ini file parsing, I/O,
2433 code introspection, and logging.")
2434 (license license:expat)))
2436 (define-public python-py-next
2443 (uri (pypi-uri "py" version))
2446 "0hpk0gzd4v1pcnq7zinwg5n219czi23qghcswykqskkbwly8i9lw"))))))
2448 (define-public python2-py
2449 (package-with-python2 python-py))
2451 ;; Recent versions of python-fixtures and python-testrepository need
2452 ;; python-pbr for packaging, which itself needs these two packages for
2454 ;; To fix this circular dependency, we use a build of python-pbr, based on the
2455 ;; same source, just without any test dependencies and with tests disabled.
2456 ;; python-pbr-minmal is then used to package python-fixtures and
2457 ;; python-testrepository.
2458 ;; Strictly speaking we currently could remove the test-requirements from the
2459 ;; normal python-pbr package (and save this package) since test are disabled
2460 ;; there anyway. But this may change in future.
2461 (define-public python-pbr-minimal
2463 (name "python-pbr-minimal")
2468 (uri (pypi-uri "pbr" version))
2471 "14fs5acnalnb3h62s7q7av239j541fk0n0z0lawh4h09b1s93s6p"))))
2472 (build-system python-build-system)
2475 (home-page "https://docs.openstack.org/pbr/latest/")
2476 (synopsis "Minimal build of python-pbr used for bootstrapping")
2478 "Used only for bootstrapping python2-pbr, you should not need this.")
2479 (license license:asl2.0)))
2481 (define-public python2-pbr-minimal
2482 (package-with-python2 python-pbr-minimal))
2484 (define-public python-pbr
2486 (inherit python-pbr-minimal)
2489 `(#:tests? #f)) ;; Most tests seem to use the Internet.
2491 `(("git" ,git))) ;; pbr actually uses the "git" binary.
2493 `(("python-fixtures" ,python-fixtures-bootstrap)
2494 ;; discover, coverage, hacking, subunit
2495 ("python-mock" ,python-mock)
2496 ("python-six" ,python-six)
2497 ("python-sphinx" ,python-sphinx)
2498 ("python-testrepository" ,python-testrepository-bootstrap)
2499 ("python-testresources" ,python-testresources-bootstrap)
2500 ("python-testscenarios" ,python-testscenarios-bootstrap)
2501 ("python-testtools" ,python-testtools-bootstrap)
2502 ("python-virtualenv" ,python-virtualenv)))
2503 (synopsis "Enhance the default behavior of Python’s setuptools")
2505 "Python Build Reasonableness (PBR) is a library that injects some useful
2506 and sensible default behaviors into your setuptools run. It will set
2507 versions, process requirements files and generate AUTHORS and ChangeLog file
2508 from git information.
2511 (define-public python2-pbr
2512 (package-with-python2 python-pbr))
2514 (define-public python-pyrsistent
2516 (name "python-pyrsistent")
2518 (home-page "https://github.com/tobgu/pyrsistent")
2521 (uri (pypi-uri "pyrsistent" version))
2524 "1lrsjgblnapfimd0alsi1as5nz2lfqv97131l7d6anbjzq2rjri8"))))
2525 (build-system python-build-system)
2527 '(#:phases (modify-phases %standard-phases
2528 ;; The package works fine with newer Pytest and Hypothesis, but
2529 ;; has pinned older versions to stay compatible with Python 2.
2530 (add-before 'check 'loosen-pytest-requirement
2532 (substitute* "setup.py"
2533 (("pytest<5") "pytest")
2534 (("hypothesis<5") "hypothesis"))
2537 `(("python-hypothesis" ,python-hypothesis)
2538 ("python-pytest" ,python-pytest)
2539 ("python-pytest-runner" ,python-pytest-runner)))
2541 `(("python-six" ,python-six)))
2542 (synopsis "Persistent data structures for Python")
2544 "Pyrsistent is a number of persistent collections (by some referred to as
2545 functional data structures). Persistent in the sense that they are immutable.
2547 All methods on a data structure that would normally mutate it instead return a
2548 new copy of the structure containing the requested updates. The original
2549 structure is left untouched.")
2550 (license license:expat)))
2552 (define-public python2-pyrsistent
2553 (package-with-python2 python-pyrsistent))
2555 (define-public python-exif-read
2557 (name "python-exif-read")
2561 (uri (pypi-uri "ExifRead" version))
2564 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
2565 (build-system python-build-system)
2566 (arguments `(#:tests? #f)) ; no tests
2567 (home-page "https://github.com/ianare/exif-py")
2568 (synopsis "Python library to extract EXIF data from image files")
2570 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
2572 (license license:bsd-3)))
2574 (define-public python2-exif-read
2575 (package-with-python2 python-exif-read))
2577 (define-public python-pyld
2579 (name "python-pyld")
2583 (uri (pypi-uri "PyLD" version))
2586 "1ywbdbsrkg533qh8xn9ifjh2mvam6v5msrjyqq73jfpvcp89qvff"))))
2587 (build-system python-build-system)
2588 (home-page "https://github.com/digitalbazaar/pyld")
2589 (synopsis "Python implementation of the JSON-LD specification")
2591 "PyLD is an implementation of the JSON-LD specification.")
2592 (license license:bsd-3)))
2594 (define-public python2-pyld
2595 (package-with-python2 python-pyld))
2597 (define-public python-cli-helpers
2599 (name "python-cli-helpers")
2603 ;; There's no source tarball on PyPI.
2606 (url "https://github.com/dbcli/cli_helpers")
2607 (commit (string-append "v" version))))
2608 (file-name (git-file-name name version))
2610 (base32 "1bg2iw9l5dip0kbs00hajdk2v18wvhssbnq8hdf71278qf0wks5l"))))
2611 (build-system python-build-system)
2613 `(("python-pytest" ,python-pytest)))
2615 `(("python-wcwidth" ,python-wcwidth)
2616 ("python-configobj" ,python-configobj)
2617 ("python-tabulate" ,python-tabulate)
2618 ("python-terminaltables" ,python-terminaltables)))
2619 (home-page "https://github.com/dbcli/cli_helpers")
2620 (synopsis "Helpers for building command-line apps")
2622 "CLI Helpers is a Python package that makes it easy to perform common
2623 tasks when building command-line apps. It's a helper library for command-line
2625 (license license:bsd-3)))
2627 (define-public python-click
2629 (name "python-click")
2634 (uri (pypi-uri "click" version))
2637 "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"))))
2638 (build-system python-build-system)
2641 (modify-phases %standard-phases
2642 (add-after 'unpack 'fix-paths
2643 (lambda* (#:key inputs #:allow-other-keys)
2644 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
2645 "cross-libc" "libc"))))
2646 (substitute* "src/click/_unicodefun.py"
2648 (string-append "'" glibc "/bin/locale'"))))
2652 (setenv "PYTHONPATH" (string-append "./src:" (getenv "PYTHONPATH")))
2653 (invoke "python" "-m" "pytest"))))))
2655 `(("python-pytest" ,python-pytest)))
2656 (home-page "https://palletsprojects.com/p/click/")
2657 (synopsis "Command line library for Python")
2659 "Click is a Python package for creating command line interfaces in a
2660 composable way with as little code as necessary. Its name stands for
2661 \"Command Line Interface Creation Kit\". It's highly configurable but comes
2662 with sensible defaults out of the box.")
2663 (license license:bsd-3)))
2665 (define-public python2-click
2666 (package-with-python2 python-click))
2668 (define-public python-click-5
2669 (package (inherit python-click)
2670 (name "python-click")
2675 (uri (pypi-uri "click" version))
2677 (base32 "0njsm0wn31l21bi118g5825ma5sa3rwn7v2x4wjd7yiiahkri337"))))
2680 (define-public python-wheel
2682 (name "python-wheel")
2687 (uri (pypi-uri "wheel" version))
2690 "0ii6f34rvpjg3nmw4bc2h7fhdsy38y1h93hghncfs5akfrldmj8h"))))
2691 (build-system python-build-system)
2693 ;; FIXME: The test suite runs "python setup.py bdist_wheel", which in turn
2694 ;; fails to find the newly-built bdist_wheel library, even though it is
2695 ;; available on PYTHONPATH. What search path is consulted by setup.py?
2697 (home-page "https://bitbucket.org/pypa/wheel/")
2698 (synopsis "Format for built Python packages")
2700 "A wheel is a ZIP-format archive with a specially formatted filename and
2701 the @code{.whl} extension. It is designed to contain all the files for a PEP
2702 376 compatible install in a way that is very close to the on-disk format. Many
2703 packages will be properly installed with only the @code{Unpack} step and the
2704 unpacked archive preserves enough information to @code{Spread} (copy data and
2705 scripts to their final locations) at any later time. Wheel files can be
2706 installed with a newer @code{pip} or with wheel's own command line utility.")
2707 (license license:expat)))
2709 (define-public python2-wheel
2710 (package-with-python2 python-wheel))
2712 (define-public python-vcversioner
2714 (name "python-vcversioner")
2715 (version "2.16.0.0")
2719 (uri (pypi-uri "vcversioner" version))
2722 "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
2723 (build-system python-build-system)
2724 (synopsis "Python library for version number discovery")
2725 (description "Vcversioner is a Python library that inspects tagging
2726 information in a variety of version control systems in order to discover
2728 (home-page "https://github.com/habnabit/vcversioner")
2729 (license license:isc)))
2731 (define-public python2-vcversioner
2732 (package-with-python2 python-vcversioner))
2734 (define-public python-jdcal
2736 (name "python-jdcal")
2741 (uri (pypi-uri "jdcal" version))
2744 "1ja6j2xq97bsl6rv09mhdx7n0xnrsfx0mj5xqza0mxghqmkm02pa"))))
2745 (build-system python-build-system)
2747 `(#:phases (modify-phases %standard-phases
2750 (invoke "pytest"))))))
2752 `(("python-pytest" ,python-pytest)))
2753 (home-page "https://github.com/phn/jdcal")
2754 (synopsis "Functions to convert between Julian dates Gregorian dates")
2755 (description "This Python library provides functions for converting
2756 between Julian dates and Gregorian dates.")
2757 (license license:bsd-2)))
2759 (define-public python2-jdcal
2760 (package-with-python2 python-jdcal))
2762 (define-public python-jsondiff
2764 (name "python-jsondiff")
2769 (uri (pypi-uri "jsondiff" version))
2772 "00v3689175aqzdscrxpffm712ylp8jvcpqdg51ca22ni6721p51l"))))
2773 (build-system python-build-system)
2775 `(("python-nose" ,python-nose)
2776 ("python-nose-random" ,python-nose-random)))
2778 "https://github.com/fzumstein/jsondiff")
2779 (synopsis "Compare JSON and JSON-like structures in Python")
2780 (description "@code{jsondiff} is a Python library which lets you
2781 compare, diff, and patch JSON and JSON-like structures in Python.")
2782 (license license:expat)))
2784 (define-public python-jsonschema
2786 (name "python-jsonschema")
2790 (uri (pypi-uri "jsonschema" version))
2793 "0ykr61yiiizgvm3bzipa3l73rvj49wmrybbfwhvpgk3pscl5pa68"))))
2794 (build-system python-build-system)
2797 (modify-phases %standard-phases
2799 (lambda* (#:key inputs outputs #:allow-other-keys)
2800 (add-installed-pythonpath inputs outputs)
2801 (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
2802 (invoke "trial" "jsonschema"))))))
2804 `(("python-setuptools_scm" ,python-setuptools-scm)
2805 ("python-twisted" ,python-twisted)))
2807 `(("python-attrs" ,python-attrs)
2808 ("python-importlib-metadata" ,python-importlib-metadata) ;; python < 3.8
2809 ("python-pyrsistent" ,python-pyrsistent)
2810 ("python-six" ,python-six)))
2811 (home-page "https://github.com/Julian/jsonschema")
2812 (synopsis "Implementation of JSON Schema for Python")
2814 "Jsonschema is an implementation of JSON Schema for Python.")
2815 (license license:expat)
2816 (properties `((python2-variant . ,(delay python2-jsonschema))))))
2818 (define-public python2-jsonschema
2819 (let ((jsonschema (package-with-python2
2820 (strip-python2-variant python-jsonschema))))
2821 (package (inherit jsonschema)
2823 `(("python2-functools32" ,python2-functools32)
2824 ,@(package-propagated-inputs jsonschema))))))
2826 (define-public python-schema
2828 (name "python-schema")
2833 (uri (pypi-uri "schema" version))
2836 "1lw28j9w9vxyigg7vkfkvi6ic9lgjkdnfvnxdr7pklslqvzmk2vm"))))
2837 (build-system python-build-system)
2839 `(("python-pytest" ,python-pytest)))
2840 (home-page "https://github.com/keleshev/schema")
2841 (synopsis "Simple data validation library")
2843 "@code{python-schema} is a library for validating Python data
2844 structures, such as those obtained from config-files, forms, external
2845 services or command-line parsing, converted from JSON/YAML (or
2846 something else) to Python data-types.")
2847 (license license:psfl)))
2849 (define-public python2-schema
2850 (package-with-python2 python-schema))
2852 (define-public python-schema-0.5
2853 (package (inherit python-schema)
2858 (uri (pypi-uri "schema" version))
2861 "10zqvpaky51kgb8nd42bk7jwl8cn2zvayxjpdc1wwmpybj92x67s"))))))
2863 (define-public python2-schema-0.5
2864 (package-with-python2 python-schema-0.5))
2866 (define-public python-kitchen
2868 (name "python-kitchen")
2873 (uri (pypi-uri "kitchen" version))
2876 "1zakh6l0yjvwic9p0nkvmbidpnkygkxbigh2skmb5gccyrhbp7xg"))))
2877 (build-system python-build-system)
2879 `(("python-chardet" ,python-chardet)))
2880 (home-page "https://github.com/fedora-infra/kitchen")
2881 (synopsis "Python API for snippets")
2882 (description "@code{kitchen} module provides a python API for all sorts of
2883 little useful snippets of code that everybody ends up writing for their projects
2884 but never seem big enough to build an independent release. Use kitchen and stop
2885 cutting and pasting that code over and over.")
2886 (license (list license:lgpl2.1+
2887 ;; subprocess.py, test_subprocess.py,
2888 ;; kitchen/pycompat25/defaultdict.py:
2891 (define-public python2-kitchen
2892 (package-with-python2 python-kitchen))
2894 (define-public python-unidecode
2896 (name "python-unidecode")
2900 (uri (pypi-uri "Unidecode" version))
2903 "1s6cp2lv4m0f00hjckjz8p6m7d3n3v16jvg353llf5ia1iqsnsib"))))
2904 (build-system python-build-system)
2905 (home-page "https://pypi.org/project/Unidecode/")
2906 (synopsis "ASCII transliterations of Unicode text")
2908 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
2909 useful when integrating with legacy code that doesn't support Unicode, or for
2910 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
2911 machine identifiers from human-readable Unicode strings that should still be
2912 somewhat intelligible.")
2913 (license license:gpl2+)))
2915 (define-public python2-unidecode
2916 (package-with-python2 python-unidecode))
2918 (define-public python-text-unidecode
2920 (name "python-text-unidecode")
2924 (uri (pypi-uri "text-unidecode" version))
2927 "14xb99fdv52j21dsljgsbmbaqv10ps4b453p229r29sdn4xn1mms"))))
2928 (build-system python-build-system)
2930 '(#:phases (modify-phases %standard-phases
2933 (setenv "PYTHONPATH"
2934 (string-append "./build/lib:"
2935 (getenv "PYTHONPATH")))
2936 (invoke "pytest" "-vv"))))))
2938 `(("python-pytest" ,python-pytest)))
2939 (home-page "https://github.com/kmike/text-unidecode/")
2940 (synopsis "Decode Unicode data")
2942 "@code{text-unidecode} is a basic Python port of the @code{Text::Unidecode}
2943 Perl library. It can create ASCII representations of Unicode data. In general
2944 users should prefer the @code{python-unidecode} package which offers better
2945 memory usage and transliteration quality.")
2946 ;; The user can choose either license.
2947 (license (list license:clarified-artistic license:gpl2+))))
2949 (define-public python2-text-unidecode
2950 (package-with-python2 python-text-unidecode))
2952 (define-public python-pyjwt
2954 (name "python-pyjwt")
2959 (uri (pypi-uri "PyJWT" version))
2962 "15hflax5qkw1v6nssk1r0wkj83jgghskcmn875m3wgvpzdvajncd"))
2963 (modules '((guix build utils)))
2966 (for-each delete-file-recursively
2967 (find-files "." "\\.pyc$"))
2969 (build-system python-build-system)
2971 '(#:phases (modify-phases %standard-phases
2974 ;; Mimic upstream commit 3a20892442b34c7 to get
2975 ;; rid of dependency on pytest-runner < 5.0.
2976 ;; Remove substitution for PyJWT > 1.7.1.
2977 (substitute* "setup.py"
2978 ((".*pytest-runner.*")
2980 (invoke "pytest" "-vv"))))))
2982 `(("python-pytest" ,python-pytest)
2983 ("python-pytest-cov" ,python-pytest-cov)))
2984 (home-page "https://github.com/progrium/pyjwt")
2985 (synopsis "JSON Web Token implementation in Python")
2987 "PyJWT is a JSON Web Token implementation written in Python.")
2988 (license license:expat)))
2990 (define-public python2-pyjwt
2991 (package-with-python2 python-pyjwt))
2993 (define-public python-pykka
2995 (name "python-pykka")
3000 (uri (pypi-uri "Pykka" version))
3003 "049w3r0mdnnw7xv19jiq7rvls9k7xs73x05b4qs5d6z4vvmgyiz8"))))
3004 (build-system python-build-system)
3006 `(("python-mock" ,python-mock)
3007 ("python-nose" ,python-nose)
3008 ("python-gevent" ,python-gevent)
3009 ("python-eventlet" ,python-eventlet)))
3010 (home-page "https://www.pykka.org/")
3011 (synopsis "Pykka is a Python implementation of the actor model")
3013 "Pykka is a Python implementation of the actor model.
3014 The actor model introduces some simple rules to control the sharing
3015 of state and cooperation between execution units, which makes it
3016 easier to build concurrent applications.")
3017 (license license:asl2.0)))
3019 (define-public python-pymsgbox
3021 (name "python-pymsgbox")
3027 ;; LICENSE.txt is not present on pypi
3028 (url "https://github.com/asweigart/PyMsgBox")
3029 (commit "55926b55f46caa969c5ddb87990ebea2737bd66f")))
3030 (file-name (git-file-name name version))
3033 "0zy7rjfpwlrd8b64j7jk2lb8m2npc21rnpwakpfvwgl4nxdy80rg"))))
3035 ;; Circular dependency to run tests:
3036 ;; Tests need pyautogui, which depends on pymsgbox.
3038 (build-system python-build-system)
3039 (home-page "https://github.com/asweigart/PyMsgBox")
3040 (synopsis "Python module for JavaScript-like message boxes")
3042 "PyMsgBox is a simple, cross-platform, pure Python module for
3043 JavaScript-like message boxes. Types of dialog boxes include:
3051 (license license:bsd-3)))
3053 (define-public python-pympler
3055 (name "python-pympler")
3056 (home-page "https://pythonhosted.org/Pympler/")
3060 (uri (pypi-uri "Pympler" version))
3063 "08mrpnb6cv2nvfncvr8a9a8bpwhnasa924anapnjvnaw5jcd4k7p"))))
3064 (build-system python-build-system)
3066 `(#:phases (modify-phases %standard-phases
3068 (add-after 'install 'check
3069 (lambda* (#:key inputs outputs #:allow-other-keys)
3070 (add-installed-pythonpath inputs outputs)
3071 (invoke "python" "setup.py" "test"))))))
3072 (synopsis "Measure, monitor and analyze memory behavior")
3074 "Pympler is a development tool to measure, monitor and analyze
3075 the memory behavior of Python objects in a running Python application.
3077 By pympling a Python application, detailed insight in the size and the
3078 lifetime of Python objects can be obtained. Undesirable or unexpected
3079 runtime behavior like memory bloat and other @samp{pymples} can easily
3082 A web profiling frontend exposes process statistics, garbage
3083 visualisation and class tracker statistics.")
3084 (license license:asl2.0)))
3086 (define-public python2-pympler
3087 (package-with-python2 python-pympler))
3089 (define-public python-itsdangerous
3091 (name "python-itsdangerous")
3096 (uri (pypi-uri "itsdangerous" version))
3099 "068zpbksq5q2z4dckh2k1zbcq43ay74ylqn77rni797j0wyh66rj"))))
3100 (build-system python-build-system)
3101 (home-page "https://palletsprojects.com/p/itsdangerous/")
3102 (synopsis "Python library for passing data to/from untrusted environments")
3104 "Itsdangerous provides various helpers to pass trusted data to untrusted
3105 environments and back.")
3106 (license license:bsd-3)))
3108 (define-public python2-itsdangerous
3109 (package-with-python2 python-itsdangerous))
3111 (define-public python-pyyaml
3113 (name "python-pyyaml")
3118 (uri (pypi-uri "PyYAML" version))
3121 "0pb4zvkfxfijkpgd1b86xjsqql97ssf1knbd1v53wkg1qm9cgsmq"))))
3122 (build-system python-build-system)
3124 `(("libyaml" ,libyaml)))
3125 (home-page "https://pyyaml.org")
3126 (synopsis "YAML parser and emitter for Python")
3128 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
3129 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
3130 API, and sensible error messages. PyYAML supports standard YAML tags and
3131 provides Python-specific tags that represent an arbitrary Python object.")
3132 (license license:expat)))
3134 (define-public python2-pyyaml
3135 (package-with-python2 python-pyyaml))
3137 (define-public python-vine
3139 (name "python-vine")
3144 (uri (pypi-uri "vine" version))
3147 "0wkskb2hb494v9gixqnf4bl972p4ibcmxdykzpwjlfa5picns4aj"))))
3148 (build-system python-build-system)
3150 `(("python-pytest" ,python-pytest)
3151 ("python-case" ,python-case)))
3152 (home-page "https://github.com/celery/vine")
3153 (synopsis "Promises for Python")
3155 "@code{vine} provides a special implementation of promises in that it can
3156 be used both for \"promise of a value\" and lazy evaluation. The biggest
3157 upside for this is that everything in a promise can also be a promise,
3158 e.g. filters, callbacks and errbacks can all be promises.")
3159 (license license:bsd-3)))
3161 (define-public python-virtualenv
3163 (name "python-virtualenv")
3168 (uri (pypi-uri "virtualenv" version))
3171 "1rd6wmymsgv0cdsn50jwybcvbbslzym3mzffcjbl42l8br9cgap0"))))
3172 (build-system python-build-system)
3174 `(("python-mock" ,python-mock)
3175 ("python-pytest" ,python-pytest)
3176 ;; NOTE: guix lint remarks that "python-setuptools should probably not
3177 ;; be an input at all". However, removing the input makes the build error:
3178 ;; File "setup.py", line 4, in <module>
3179 ;; raise RuntimeError("setuptools >= 41 required to build")
3180 ("python-setuptools" ,python-setuptools)
3181 ("python-setuptools-scm" ,python-setuptools-scm)))
3183 `(("python-appdirs" ,python-appdirs)
3184 ("python-distlib" ,python-distlib/next)
3185 ("python-filelock" ,python-filelock)
3186 ("python-six" ,python-six)
3187 ("python-importlib-metadata" ,python-importlib-metadata)))
3188 (home-page "https://virtualenv.pypa.io/")
3189 (synopsis "Virtual Python environment builder")
3191 "Virtualenv is a tool to create isolated Python environments.")
3192 (properties `((python2-variant . ,(delay python2-virtualenv))))
3193 (license license:expat)))
3195 (define-public python2-virtualenv
3196 (let ((base (package-with-python2 (strip-python2-variant python-virtualenv))))
3200 `(#:python ,python-2
3202 (modify-phases %standard-phases
3203 (add-after 'set-paths 'adjust-PYTHONPATH
3204 (lambda* (#:key inputs #:allow-other-keys)
3205 (let* ((python (assoc-ref inputs "python"))
3206 (python-sitedir (string-append python "/lib/python2.7"
3208 ;; XXX: 'python2' always comes first on PYTHONPATH
3209 ;; and shadows the 'setuptools' input. Move python2
3210 ;; last: this should be fixed in python-build-system
3211 ;; in a future rebuild cycle.
3212 (setenv "PYTHONPATH"
3213 (string-append (string-join (delete python-sitedir
3215 (getenv "PYTHONPATH")
3218 ":" python-sitedir))
3219 (format #t "environment variable `PYTHONPATH' changed to `~a'~%"
3220 (getenv "PYTHONPATH"))
3223 `(("python-contextlib2" ,python2-contextlib2)
3224 ,@(package-propagated-inputs base))))))
3226 (define-public python-markupsafe
3228 (name "python-markupsafe")
3233 (uri (pypi-uri "MarkupSafe" version))
3236 "0sqipg4fk7xbixqd8kq6rlkxj664d157bdwbh93farcphf92x1r9"))))
3237 (build-system python-build-system)
3239 `(#:modules ((ice-9 ftw)
3243 (guix build python-build-system))
3244 #:phases (modify-phases %standard-phases
3247 (let ((cwd (getcwd))
3248 (libdir (find (cut string-prefix? "lib." <>)
3249 (scandir "build"))))
3250 (setenv "PYTHONPATH"
3251 (string-append cwd "/build/" libdir ":"
3252 (getenv "PYTHONPATH")))
3253 (invoke "pytest" "-vv")))))))
3255 `(("python-pytest" ,python-pytest)))
3256 (home-page "https://github.com/mitsuhiko/markupsafe")
3257 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
3259 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
3261 (license license:bsd-3)))
3263 (define-public python2-markupsafe
3264 (package-with-python2 python-markupsafe))
3266 (define-public python-jinja2
3268 (name "python-jinja2")
3273 (uri (pypi-uri "Jinja2" version))
3276 "1c1v3djnr0ymp5xpy1h3h60abcaqxdlm4wsqmls9rxby88av5al9"))))
3277 (build-system python-build-system)
3279 '(#:phases (modify-phases %standard-phases
3281 (lambda* (#:key tests? #:allow-other-keys)
3284 (setenv "PYTHONPATH"
3285 (string-append "./build/lib:"
3286 (getenv "PYTHONPATH")))
3287 (invoke "pytest" "-vv"))
3288 (format #t "test suite not run~%"))
3291 `(("python-pytest" ,python-pytest)))
3293 `(("python-markupsafe" ,python-markupsafe)))
3294 (home-page "http://jinja.pocoo.org/")
3295 (synopsis "Python template engine")
3297 "Jinja2 is a small but fast and easy to use stand-alone template engine
3298 written in pure Python.")
3299 (license license:bsd-3)))
3301 (define-public python2-jinja2
3302 (package-with-python2 python-jinja2))
3304 (define-public python-jinja2-time
3306 (name "python-jinja2-time")
3311 (uri (pypi-uri "jinja2-time" version))
3314 "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"))))
3315 (build-system python-build-system)
3317 `(("python-arrow" ,python-arrow)
3318 ("python-jinja2" ,python-jinja2)))
3320 "https://github.com/hackebrot/jinja2-time")
3321 (synopsis "Jinja2 Extension for Dates and Times")
3323 "This package provides an extension for the template engine Jinja2. It
3324 adds a 'now' tag providing a convenient access to the arrow.now() API from
3325 templates. A format string can be provided to control the output.")
3326 (license license:expat)))
3328 (define-public python-pystache
3330 (name "python-pystache")
3334 (uri (pypi-uri "pystache" version))
3337 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
3338 (build-system python-build-system)
3340 '(#:tests? #f)) ; FIXME: Python 3 tests are failing.
3341 (home-page "http://defunkt.io/pystache/")
3342 (synopsis "Python logic-less template engine")
3344 "Pystache is a Python implementation of the framework agnostic,
3345 logic-free templating system Mustache.")
3346 (license license:expat)
3347 (properties `((python2-variant . ,(delay python2-pystache))))))
3349 (define-public python2-pystache
3350 (package (inherit (package-with-python2
3351 (strip-python2-variant python-pystache)))
3353 `(#:python ,python-2
3355 (modify-phases %standard-phases
3358 (invoke "python" "test_pystache.py"))))))))
3360 (define-public python-joblib
3362 (name "python-joblib")
3366 (uri (pypi-uri "joblib" version))
3369 "1j464w137w6s367gl697j1l63g52akydrxgv4czlck36ynjfwc06"))))
3370 (build-system python-build-system)
3373 (modify-phases %standard-phases
3375 (lambda _ (invoke "pytest" "-v" "joblib"))))))
3377 `(("python-pytest" ,python-pytest)))
3378 (home-page "https://joblib.readthedocs.io/")
3379 (synopsis "Using Python functions as pipeline jobs")
3381 "Joblib is a set of tools to provide lightweight pipelining in Python.
3382 In particular, joblib offers: transparent disk-caching of the output values
3383 and lazy re-evaluation (memoize pattern), easy simple parallel computing
3384 logging and tracing of the execution.")
3385 (license license:bsd-3)))
3387 (define-public python2-joblib
3388 (package-with-python2 python-joblib))
3390 (define-public python-daemon
3392 (name "python-daemon")
3397 (uri (pypi-uri "python-daemon" version))
3400 "09fcjdjzk9ywmpnrj62iyxqgcygzdafsz41qlrk2dknzbagcmzmg"))))
3401 (build-system python-build-system)
3404 (modify-phases %standard-phases
3405 (add-before 'check 'disable-tests
3407 ;; FIXME: Determine why test fails
3408 (substitute* "test/test_daemon.py"
3409 (("test_detaches_process_context")
3410 "skip_test_detaches_process_context"))
3413 `(("python-lockfile" ,python-lockfile)))
3415 `(("python-unittest2" ,python-unittest2)
3416 ("python-testtools" ,python-testtools)
3417 ("python-testscenarios" ,python-testscenarios)
3418 ("python-mock" ,python-mock)
3419 ("python-docutils" ,python-docutils)))
3420 (home-page "https://pagure.io/python-daemon/")
3421 (synopsis "Python library for making a Unix daemon process")
3422 (description "Python-daemon is a library that assists a Python program to
3423 turn itself into a well-behaved Unix daemon process, as specified in PEP 3143.
3425 This library provides a @code{DaemonContext} class that manages the following
3426 important tasks for becoming a daemon process:
3428 @item Detach the process into its own process group.
3429 @item Set process environment appropriate for running inside a chroot.
3430 @item Renounce suid and sgid privileges.
3431 @item Close all open file descriptors.
3432 @item Change the working directory, uid, gid, and umask.
3433 @item Set appropriate signal handlers.
3434 @item Open new file descriptors for stdin, stdout, and stderr.
3435 @item Manage a specified PID lock file.
3436 @item Register cleanup functions for at-exit processing.
3438 ;; Only setup.py is gpl3+, everything else is apache 2.0 licensed.
3439 (license (list license:asl2.0 license:gpl3+))))
3441 (define-public python-anytree
3443 (name "python-anytree")
3447 (uri (pypi-uri "anytree" version))
3450 "1aycpc387wqz7h9w2p53qxn43qsh3m6by6ak4kkc66x9aprr63rz"))))
3451 (build-system python-build-system)
3453 `(("python-six" ,python-six)))
3456 ("graphviz" ,graphviz) ;for 'dot'
3457 ("python-nose" ,python-nose)))
3458 (home-page "https://github.com/c0fec0de/anytree")
3459 (synopsis "Lightweight tree data library")
3461 "@code{anytree} is a simple, lightweight, and extensible tree data
3462 structure for Python.")
3463 (license license:asl2.0)))
3465 (define-public python-docutils
3467 (name "python-docutils")
3472 (uri (pypi-uri "docutils" version))
3475 "1z3qliszqca9m719q3qhdkh0ghh90g500avzdgi7pl77x5h3mpn2"))))
3476 (build-system python-build-system)
3478 '(#:phases (modify-phases %standard-phases
3480 (lambda* (#:key tests? #:allow-other-keys)
3482 (invoke "python" "test/alltests.py")
3483 (format #t "test suite not run~%"))
3485 (home-page "http://docutils.sourceforge.net/")
3486 (synopsis "Python Documentation Utilities")
3488 "Docutils is a modular system for processing documentation into useful
3489 formats, such as HTML, XML, and LaTeX. It uses @dfn{reStructuredText}, an
3490 easy to use markup language, for input.
3492 This package provides tools for converting @file{.rst} files to other formats
3493 via commands such as @command{rst2man}, as well as supporting Python code.")
3494 ;; Most of the source code is public domain, but some source files are
3495 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
3496 (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
3498 (define-public python2-docutils
3499 (package-with-python2 python-docutils))
3501 ;; python2-sphinx fails its test suite with newer versions.
3502 (define-public python2-docutils-0.14
3504 (inherit python2-docutils)
3508 (uri (pypi-uri "docutils" version))
3511 "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji"))))))
3513 (define-public python-restructuredtext-lint
3515 (name "python-restructuredtext-lint")
3520 (uri (pypi-uri "restructuredtext-lint" version))
3523 "026rdy5h82ng4vqxk8fnprii9d6qxf7hkygiv0a8afjvdlsxmcwp"))))
3524 (build-system python-build-system)
3527 (modify-phases %standard-phases
3529 (add-after 'install 'check
3530 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3532 (add-installed-pythonpath inputs outputs)
3533 (invoke "nosetests" "-v"))
3536 `(("python-docutils" ,python-docutils)))
3538 `(("python-nose" ,python-nose)))
3539 (home-page "https://github.com/twolfson/restructuredtext-lint")
3540 (synopsis "reStructuredText linter")
3541 (description "This package provides a linter for the reStructuredText
3543 (license license:unlicense)))
3545 (define-public python-doc8
3547 (name "python-doc8")
3552 (uri (pypi-uri "doc8" version))
3555 "0hw5w8mpgsp51qg8nnq28p7y1jiksvz7a0axnn5bkgss3af9zy1d"))))
3556 (build-system python-build-system)
3559 (modify-phases %standard-phases
3561 (add-after 'install 'check
3562 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3564 (add-installed-pythonpath inputs outputs)
3565 (invoke "pytest" "-v"))
3568 `(("python-chardet" ,python-chardet)
3569 ("python-docutils" ,python-docutils)
3570 ("python-restructuredtext-lint" ,python-restructuredtext-lint)
3571 ("python-six" ,python-six)
3572 ("python-stevedore" ,python-stevedore)))
3574 `(("python-testtools" ,python-testtools)
3575 ("python-pytest" ,python-pytest)))
3576 (home-page "https://launchpad.net/doc8")
3578 "Style checker for Sphinx (or other) RST documentation")
3580 "Doc8 is an opinionated style checker for reStructured Text and plain
3581 text styles of documentation.")
3582 (license license:asl2.0)))
3584 (define-public python-pygments
3586 (name "python-pygments")
3591 (uri (pypi-uri "Pygments" version))
3594 "0i4gnd4q0mgkq0dp5wymn7ca8zjd8fgp63139svs6jf2c6h48wv4"))))
3595 (build-system python-build-system)
3597 ;; FIXME: Tests require sphinx, which depends on this.
3599 (home-page "https://pygments.org/")
3600 (synopsis "Syntax highlighting")
3602 "Pygments is a syntax highlighting package written in Python.")
3603 (license license:bsd-2)
3604 (properties `((python2-variant . ,(delay python2-pygments))))))
3606 ;; Pygments 2.6 and later does not support Python 2.
3607 (define-public python2-pygments
3608 (let ((base (package-with-python2 (strip-python2-variant python-pygments))))
3614 (uri (pypi-uri "Pygments" version))
3617 "1zmhnswy0wxfn0xprs9aqsvx2c3kmzfn2wx14q8cv3vpkxdamj4q")))))))
3619 (define-public python-bumpversion
3621 (name "python-bumpversion")
3626 (uri (pypi-uri "bumpversion" version))
3629 "0zn7694yfipxg35ikkfh7kvgl2fissha3dnqad2c5bvsvmrwhi37"))))
3630 (build-system python-build-system)
3631 (home-page "https://github.com/peritus/bumpversion")
3632 (synopsis "Tool to bump software version")
3633 (description "This tool provides a command-line interface (CLI) to bump a
3634 software version simply.")
3635 (license license:expat)))
3637 (define-public python-deprecated
3639 (name "python-deprecated")
3645 (url "https://github.com/tantale/deprecated")
3646 (commit (string-append "v" version))))
3647 (file-name (git-file-name name version))
3650 "14909glxxwwc4b9qpz2b9jdriwzi5n65ichw85xqppap5f79wcwz"))))
3651 (build-system python-build-system)
3653 `(#:phases (modify-phases %standard-phases
3656 (invoke "pytest"))))))
3658 `(("python-wrapt" ,python-wrapt)))
3660 `(("python-bumpversion" ,python-bumpversion)
3661 ("python-pytest" ,python-pytest)
3662 ("python-pytest-cov" ,python-pytest-cov)
3663 ("python-sphinx" ,python-sphinx)
3664 ("python-tox" ,python-tox)))
3665 (home-page "https://github.com/tantale/deprecated")
3666 (synopsis "Python decorator to deprecate classes, functions or methods")
3667 (description "The @code{deprecated} decorator provides a convenient way to deprecate
3668 to deprecate classes, functions or methods.")
3669 (license license:expat)))
3671 (define-public python-pygithub
3673 (name "python-pygithub")
3676 ;; We fetch from the Git repo because there are no tests in the PyPI
3681 (url "https://github.com/PyGithub/PyGithub")
3682 (commit (string-append "v" version))))
3683 (file-name (git-file-name name version))
3685 (base32 "1625v558xga5mwhl9jqmibywy5qafmg1vqrirqz6zfq1la1d22mw"))))
3686 (build-system python-build-system)
3688 `(#:phases (modify-phases %standard-phases
3689 ;; Some tests rely on the network.
3690 (add-after 'unpack 'disable-failing-tests
3692 (substitute* "tests/Issue142.py"
3693 (("testDecodeJson") "disabled_testDecodeJson"))
3695 (add-before 'check 'prepare-for-tests
3697 (for-each (lambda (f)
3699 (find-files "./tests"))
3700 (system* "python" "-m" "lib2to3" "-w" "-n" "tests")
3701 (setenv "PYTHONPATH"
3702 (string-append "./tests:" (getenv "PYTHONPATH")))
3705 `(("python-deprecated" ,python-deprecated)
3706 ("python-pyjwt" ,python-pyjwt)
3707 ("python-requests" ,python-requests)))
3708 (native-inputs `(("python-httpretty" ,python-httpretty)))
3709 (home-page "https://pygithub.readthedocs.io/en/latest/")
3710 (synopsis "Python library for the GitHub API")
3711 (description "This library allows managing GitHub resources such as
3712 repositories, user profiles, and organizations in your Python applications,
3713 using version 3 of the GitHub application programming interface (API).")
3714 (license license:lgpl3+)))
3716 (define-public python-rellu
3718 (name "python-rellu")
3723 (uri (pypi-uri "rellu" version))
3726 "1w0arpj1sm7vh29nrbnca4pnp8sx42l07r17inwqcjjf9bhng66x"))))
3727 (build-system python-build-system)
3729 `(("python-invoke" ,python-invoke)
3730 ("python-pygithub" ,python-pygithub)))
3731 (home-page "https://github.com/robotframework/rellu")
3732 (synopsis "Utilities to create PyPI releases")
3733 (description "This collection of utilities contains tooling and templates
3734 to assist in creating releases on GitHub and publishing them on PyPI. It is
3735 designed to be used by Robot Framework and tools and libraries in its
3736 ecosystem, but can naturally be used also by other projects.")
3737 (license license:asl2.0)))
3739 (define-public python-robotframework
3741 (name "python-robotframework")
3743 ;; There are no tests in the PyPI archive.
3748 (url "https://github.com/robotframework/robotframework")
3749 (commit (string-append "v" version))))
3750 (file-name (git-file-name name version))
3752 (base32 "0if0h3myb9m3hgmn1phrhq8pfp89kfqsaq32vmfdjkyjdj7y59ds"))
3753 (patches (search-patches
3754 "python-robotframework-source-date-epoch.patch"))))
3755 (build-system python-build-system)
3757 `(#:phases (modify-phases %standard-phases
3758 (add-before 'build 'build-and-install-doc
3759 (lambda* (#:key outputs #:allow-other-keys)
3760 (let* ((doc-output (assoc-ref outputs "doc"))
3761 (doc (string-append doc-output "/share/"
3762 ,name "-" ,version "/")))
3763 (invoke "invoke" "library-docs" "all")
3765 (copy-recursively "doc/libraries"
3766 (string-append doc "/libraries"))
3769 (lambda* (#:key inputs #:allow-other-keys)
3770 ;; Some tests require timezone data. Otherwise, they
3771 ;; look up /etc/localtime, which doesn't exist, and fail
3774 ;; OverflowError: mktime argument out of range
3776 (string-append (assoc-ref inputs "tzdata")
3778 (setenv "TZ" "Europe/Paris")
3780 (invoke "python" "utest/run.py"))))))
3782 `(("python-invoke" ,python-invoke)
3783 ("python-rellu" ,python-rellu)
3784 ("python:tk" ,python "tk") ;used when building the HTML doc
3785 ("tzdata" ,tzdata-for-tests)))
3786 (outputs '("out" "doc"))
3787 (home-page "https://robotframework.org")
3788 (synopsis "Generic automation framework")
3789 (description "Robot Framework is a generic automation framework for
3790 acceptance testing, acceptance test driven development (ATDD), and robotic
3791 process automation (RPA).")
3792 (license license:asl2.0)))
3794 (define-public python-robotframework-lint
3795 ;; There is no properly tagged release; the commit below seems to correspond
3796 ;; to the 0.9 stable release available from PyPI. The tests are not
3797 ;; included in the PyPI archive, so we fetch the sources from the upstream
3799 (let ((commit "b0619ac58a8b1be125f9c98856a664594614570f")
3802 (name "python-robotframework-lint")
3803 (version (git-version "1.1" ;version taken from 'rflint/version.py'
3809 (url "https://github.com/boakley/robotframework-lint")
3811 (file-name (git-file-name name version))
3814 "180npmvzqync25b2scs878gv8q4y17dsinxyjcc10bw22msfap6b"))))
3815 (build-system python-build-system)
3818 (modify-phases %standard-phases
3821 (invoke "python" "-m" "robot" "-A"
3822 "tests/conf/default.args" "tests"))))))
3824 `(("python-robotframework" ,python-robotframework)))
3825 (home-page "https://github.com/boakley/robotframework-lint/")
3826 (synopsis "Static analysis tool (linter) for Robot Framework")
3827 (description "This package provides the @code{rflint} command-line
3828 utility, a static analysis tool (linter) for Robot Framework source files.")
3829 (license license:asl2.0))))
3831 (define-public python-robotframework-sshlibrary
3833 (name "python-robotframework-sshlibrary")
3835 ;; There are no tests in the PyPI archive.
3840 (url "https://github.com/robotframework/SSHLibrary")
3841 (commit (string-append "v" version))))
3842 (file-name (git-file-name name version))
3845 "1mk6dz2jqqndbx4yji09012q6rmadnqdywi7czvj62b0s07dr3r2"))))
3846 (build-system python-build-system)
3849 (modify-phases %standard-phases
3850 (add-before 'build 'build-and-install-doc
3851 (lambda* (#:key outputs #:allow-other-keys)
3852 (let* ((doc-output (assoc-ref outputs "doc"))
3853 (doc (string-append doc-output "/share/"
3854 ,name "-" ,version "/")))
3855 (invoke "chmod" "-R" "+w" "docs")
3856 (invoke "invoke" "kw-docs" "project-docs")
3858 (for-each delete-file (find-files "docs" "\\.rst"))
3859 (copy-recursively "docs" doc)
3863 ;; Some tests require an SSH server; we remove them.
3864 (delete-file "utest/test_client_api.py")
3865 (delete-file "utest/test_scp.py")
3866 (invoke "python" "utest/run.py"))))))
3868 `(("python-robotframework" ,python-robotframework)
3869 ("python-paramiko" ,python-paramiko)
3870 ("python-scp" ,python-scp)))
3872 `(("openssh" ,openssh)
3874 ;; To generate the documentation
3875 ("python-docutils" ,python-docutils)
3876 ("python-invoke" ,python-invoke)
3877 ("python-pygments" ,python-pygments)
3878 ("python-rellu" ,python-rellu)))
3879 (outputs '("out" "doc"))
3880 (home-page "https://github.com/robotframework/SSHLibrary")
3881 (synopsis "Robot Framework library for SSH and SFTP")
3882 (description "SSHLibrary is a Robot Framework library providing support
3883 for SSH and SFTP. It has the following main usages:
3885 @item Executing commands on the remote machine, either blocking or non-blocking.
3886 @item Writing and reading in an interactive shell.
3887 @item Transferring files and directories over SFTP.
3888 @item Ensuring that files and directories exist on the remote machine.
3890 (license license:asl2.0)))
3892 (define-public python-rstr
3894 (name "python-rstr")
3899 (uri (pypi-uri "rstr" version))
3902 "197dw8mbq0pjjz1l6h1ksi62vgn7x55d373ch74y06744qiq5sjx"))))
3903 (build-system python-build-system)
3905 "http://bitbucket.org/leapfrogdevelopment/rstr/overview")
3906 (synopsis "Generate random strings in Python")
3907 (description "This package provides a python module for generating
3908 random strings of various types. It could be useful for fuzz testing,
3909 generating dummy data, or other applications. It has no dependencies
3910 outside the standard library.")
3911 (license license:bsd-3)))
3913 (define-public python-scp
3920 (uri (pypi-uri "scp" version))
3922 (base32 "1m2v09m407p097cy3xy5rxicqfzrqjwf8v5rd4qhfqkk7lllimwb"))))
3923 (build-system python-build-system)
3925 '(#:tests? #f)) ;tests require an SSH server
3927 `(("python-paramiko" ,python-paramiko)))
3928 (home-page "https://github.com/jbardin/scp.py")
3929 (synopsis "SCP protocol module for Python and Paramiko")
3930 (description "The scp module extends the Paramiko library to send and
3931 receive files via the SCP1 protocol, as implemented by the OpenSSH
3932 @command{scp} program.")
3933 (license license:gpl2+)))
3935 (define-public python-rst.linker
3937 (name "python-rst.linker")
3942 (uri (pypi-uri "rst.linker" version))
3944 (base32 "0pqsfqqx8h0pq21k8l3k62kznrgaj2ala93c64s4d9rpbr4mgkd2"))))
3945 (build-system python-build-system)
3947 `(("python-dateutil" ,python-dateutil)
3948 ("python-six" ,python-six)))
3950 `(("python-setuptools-scm" ,python-setuptools-scm)))
3951 ;; Test would require path.py, which would introduce a cyclic dependence.
3952 (arguments `(#:tests? #f))
3953 ;; Note: As of version 1.7 the documentation is not worth building.
3954 (home-page "https://github.com/jaraco/rst.linker")
3955 (synopsis "Sphinx plugin to add links and timestamps")
3956 (description "rst.linker automatically replaces text by a
3957 reStructuredText external reference or timestamps. It's primary purpose is to
3958 augment the changelog, but it can be used for other documents, too.")
3959 (license license:expat)))
3961 (define-public python2-rst.linker
3962 (package-with-python2 python-rst.linker))
3964 (define-public python-sshpubkeys
3966 (name "python-sshpubkeys")
3968 (home-page "https://github.com/ojarva/python-sshpubkeys")
3973 (commit (string-append "v" version))))
3974 (file-name (git-file-name name version))
3977 "1h4gwmcfn84kkqh83km1vfz8sc5kr2g4gzgzmr8gz704jmqiv7nq"))))
3978 (build-system python-build-system)
3980 `(("python-cryptography" ,python-cryptography)
3981 ("python-ecdsa" ,python-ecdsa)))
3982 (synopsis "OpenSSH public key parser")
3984 "This package provides a library for parsing and validating OpenSSH
3986 (license license:bsd-3)))
3988 (define-public python-feedgenerator
3990 (name "python-feedgenerator")
3995 (uri (pypi-uri "feedgenerator" version))
3998 "01mirwkm7xfx539hmvj7g9da1j51gw5lsx74dr0glizskjm5vq2s"))
3999 (modules '((guix build utils)))
4002 ;; Remove pre-compiled .pyc files from source.
4003 (for-each delete-file-recursively
4004 (find-files "." "__pycache__" #:directories? #t))
4005 (for-each delete-file (find-files "." "\\.pyc$"))
4007 (build-system python-build-system)
4009 `(("python-pytz" ,python-pytz)
4010 ("python-six" ,python-six)))
4011 (home-page "https://github.com/getpelican/feedgenerator")
4013 "Standalone version of Django's Atom/RSS feed generator")
4015 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
4016 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
4017 (license license:bsd-3)))
4019 (define-public python2-feedgenerator
4020 (package-with-python2 python-feedgenerator))
4022 (define-public python-toml
4024 (name "python-toml")
4029 (uri (pypi-uri "toml" version))
4032 "03wbqm5cn685cwx2664hjdpz370njl7lf0yal8s0dkp5w4mn2swj"))))
4033 (build-system python-build-system)
4035 `(#:tests? #f)) ;no tests suite in release
4036 (home-page "https://github.com/uiri/toml")
4037 (synopsis "Library for TOML")
4039 "@code{toml} is a library for parsing and creating Tom's Obvious, Minimal
4040 Language (TOML) configuration files.")
4041 (license license:expat)))
4043 (define-public python-jsonrpc-server
4045 (name "python-jsonrpc-server")
4050 (uri (pypi-uri "python-jsonrpc-server" version))
4053 "1585ybn3djvx5r5zbxkzlhz2wb1d47y4wrfwaxdyq0gi87jl7ib2"))))
4054 (build-system python-build-system)
4056 `(("python-mock" ,python-mock)
4057 ("python-pytest" ,python-pytest)
4058 ("python-ujson" ,python-ujson)))
4060 "https://github.com/palantir/python-jsonrpc-server")
4061 (synopsis "JSON RPC 2.0 server library")
4063 "This package provides a JSON RPC 2.0 server library for Python.")
4064 (license license:expat)))
4066 (define-public python-pydantic
4068 (name "python-pydantic")
4074 (url "https://github.com/samuelcolvin/pydantic")
4075 (commit (string-append "v" version))))
4076 (file-name (git-file-name name version))
4078 (base32 "1380s9k77g6q15by9fkxndczjk89q6xpz09jdrqip535xws2z3j8"))))
4079 (build-system python-build-system)
4082 (modify-phases %standard-phases
4083 ;; Reported upstream:
4084 ;; <https://github.com/samuelcolvin/pydantic/issues/1580>.
4085 ;; Disable the faulty test as the fix is unclear.
4086 (add-before 'check 'disable-test
4088 (substitute* "tests/test_validators.py"
4089 (("test_assert_raises_validation_error")
4090 "_test_assert_raises_validation_error"))
4093 (lambda _ (invoke "pytest" "-vv" "tests"))))))
4095 `(("python-pytest" ,python-pytest)))
4096 (home-page "https://github.com/samuelcolvin/pydantic")
4097 (synopsis "Python data validation and settings management")
4099 "Pydantic enforces type hints at runtime, and provides user friendly
4100 errors when data is invalid.")
4101 (license license:expat)))
4103 (define-public python-pydocstyle
4105 (name "python-pydocstyle")
4110 (uri (pypi-uri "pydocstyle" version))
4113 "1m1xv9clkg9lgzyza6dnj359z04vh5g0h49nhzghv7lg81gchhap"))))
4114 (build-system python-build-system)
4116 `(("python-six" ,python-six)
4117 ("python-snowballstemmer" ,python-snowballstemmer)))
4119 "https://github.com/PyCQA/pydocstyle/")
4120 (synopsis "Python docstring style checker")
4122 "This package provides a style checker for the Python Language
4124 (license license:expat)))
4126 (define-public python-language-server
4128 (name "python-language-server")
4133 (uri (pypi-uri "python-language-server" version))
4136 "1c0pnk2aibfhfaanrs0a5gkabkvz81gj20z7r0152b7fcx5ci14r"))))
4137 (build-system python-build-system)
4139 `(("python-autopep8" ,python-autopep8)
4140 ("python-configparser" ,python-configparser)
4141 ("python-pydocstyle" ,python-pydocstyle)
4142 ("python-future" ,python-future)
4143 ("python-jedi" ,python-jedi)
4144 ("python-jsonrpc-server" ,python-jsonrpc-server)
4145 ("python-pluggy" ,python-pluggy)
4146 ("python-pycodestyle" ,python-pycodestyle)
4147 ("python-pyflakes" ,python-pyflakes)
4148 ("python-rope" ,python-rope)
4149 ("python-ujson" ,python-ujson)
4150 ("python-yapf" ,python-yapf)))
4152 `(("python-coverage" ,python-coverage)
4153 ("python-flaky" ,python-flaky)
4154 ("python-matplotlib" ,python-matplotlib)
4155 ("python-mock" ,python-mock)
4156 ("python-numpy" ,python-numpy)
4157 ("python-pandas" ,python-pandas)
4158 ("python-pylint" ,python-pylint)
4159 ("python-pytest" ,python-pytest)
4160 ("python-pytest-cov" ,python-pytest-cov)
4161 ("python-versioneer" ,python-versioneer)))
4162 (home-page "https://github.com/palantir/python-language-server")
4163 (synopsis "Python implementation of the Language Server Protocol")
4165 "The Python Language Server (pyls) is an implementation of the Python 3
4166 language specification for the Language Server Protocol (LSP). This tool is
4167 used in text editing environments to provide a complete and integrated
4168 feature-set for programming Python effectively.")
4169 (license license:expat)))
4171 (define-public python-pathspec
4173 (name "python-pathspec")
4178 (uri (pypi-uri "pathspec" version))
4181 "15lvs4awlg8xzl0l4gk9y53xx4yqmqvsv44pglv39m70y85afajn"))))
4182 (build-system python-build-system)
4183 (home-page "https://github.com/cpburnz/python-path-specification")
4184 (synopsis "Utility library for gitignore style pattern matching of file paths")
4186 "This package provides a utility library for gitignore style pattern
4187 matching of file paths.")
4188 (license license:mpl2.0)))
4190 (define-public python-black
4192 (name "python-black")
4197 (uri (pypi-uri "black" version))
4200 "1spv6sldp3mcxr740dh3ywp25lly9s8qlvs946fin44rl1x5a0hw"))))
4201 (build-system python-build-system)
4204 (modify-phases %standard-phases
4205 (add-after 'patch-source-shebangs 'patch-extra-shebangs
4207 (let ((python3 (which "python3")))
4208 (substitute* '("tests/data/fmtonoff.py"
4209 "tests/data/string_prefixes.py"
4210 "tests/data/function.py"
4211 "tests/data/python37.py")
4212 (("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version)
4213 (string-append "#!" python3 (if (string? minor-version)
4217 (add-after 'unpack 'disable-broken-tests
4218 (lambda* (#:key outputs inputs #:allow-other-keys)
4219 ;; Make installed package available for running the tests
4220 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
4221 ":" (getenv "PATH")))
4223 ;; These tests are supposed to be skipped when the blackd
4224 ;; dependencies are missing, but this doesn't quite work.
4225 (substitute* "tests/test_black.py"
4226 (("( *)class BlackDTestCase.*" match indent)
4227 (string-append indent "@unittest.skip(\"no blackd deps\")\n"
4228 indent "class BlackDTestCase(unittest.TestCase):\n"))
4229 (("web.Application") "False")
4230 (("@unittest_run_loop") ""))
4232 ;; Patching the above file breaks the self test
4233 (substitute* "tests/test_black.py"
4234 (("( *)def test_self" match indent)
4235 (string-append indent "@unittest.skip(\"guix\")\n" match)))
4237 (substitute* "tests/test_black.py"
4238 (("( *)def test_python38" match indent)
4239 (string-append indent "@unittest.skip(\"guix\")\n" match)))
4242 `(("python-click" ,python-click)
4243 ("python-attrs" ,python-attrs)
4244 ("python-appdirs" ,python-appdirs)
4245 ("python-pathspec" ,python-pathspec)
4246 ("python-mypy-extensions" ,python-mypy-extensions)
4247 ("python-regex" ,python-regex)
4248 ("python-toml" ,python-toml)
4249 ("python-typed-ast" ,python-typed-ast)
4250 ("python-typing-extensions" ,python-typing-extensions)))
4252 `(("python-setuptools-scm" ,python-setuptools-scm)))
4253 (home-page "https://github.com/ambv/black")
4254 (synopsis "The uncompromising code formatter")
4255 (description "Black is the uncompromising Python code formatter.")
4256 (license license:expat)))
4258 (define-public python-black-macchiato
4260 (name "python-black-macchiato")
4265 (uri (pypi-uri "black-macchiato" version))
4268 "1drp5p697ni1xn5y2lbjpalgpkzy2i4cyxjj5pk4dxr0vk97dd7i"))))
4269 (build-system python-build-system)
4271 `(("python-black" ,python-black)))
4272 (home-page "https://github.com/wbolster/black-macchiato")
4273 (synopsis "Partial @code{python-black} formatting")
4275 "This package is built on top the @{python-black} code formatter to
4276 enable formatting of partial files.")
4277 (license license:bsd-3)))
4279 (define-public python-blinker
4281 (name "python-blinker")
4286 (uri (pypi-uri "blinker" version))
4289 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
4290 (build-system python-build-system)
4291 (home-page "https://pythonhosted.org/blinker/")
4292 (synopsis "Fast, simple object-to-object and broadcast signaling")
4294 "Blinker provides a fast dispatching system that allows any number of
4295 interested parties to subscribe to events, or \"signals\".")
4296 (license license:expat)))
4298 (define-public python2-blinker
4299 (package-with-python2 python-blinker))
4301 (define-public pelican
4308 (uri (pypi-uri "pelican" version))
4311 "0mp7hjyhs38ag1hyfcy882g400z0babqi72pnli46dqijfhajzmy"))))
4312 (build-system python-build-system)
4314 `(("python-blinker" ,python-blinker)
4315 ("python-dateutil" ,python-dateutil)
4316 ("python-docutils" ,python-docutils)
4317 ("python-feedgenerator" ,python-feedgenerator)
4318 ("python-jinja2" ,python-jinja2)
4319 ("python-markdown" ,python-markdown)
4320 ("python-pygments" ,python-pygments)
4321 ("python-pytz" ,python-pytz)
4322 ("python-six" ,python-six)
4323 ("python-unidecode" ,python-unidecode)))
4324 (home-page "https://getpelican.com/")
4326 `(;; XXX Requires a lot more packages to do unit tests :P
4328 (synopsis "Python-based static site publishing system")
4330 "Pelican is a tool to generate a static blog from reStructuredText,
4331 Markdown input files, and more. Pelican uses Jinja2 for templating
4332 and is very extensible.")
4333 (license license:agpl3+)))
4335 (define-public mallard-ducktype
4337 (name "mallard-ducktype")
4342 ;; git-reference because tests are not included in pypi source tarball
4343 ;; https://issues.guix.gnu.org/issue/36755#2
4345 (url "https://github.com/projectmallard/mallard-ducktype")
4347 (file-name (git-file-name name version))
4350 "1jk9bfz7g04ip78s03b0xak6d54rj4h9zpgadkziy1ji216g6y4c"))))
4351 (build-system python-build-system)
4354 (modify-phases %standard-phases
4357 (with-directory-excursion "tests"
4358 (invoke "sh" "runtests")))))))
4359 (home-page "http://projectmallard.org")
4360 (synopsis "Convert Ducktype to Mallard documentation markup")
4362 "Ducktype is a lightweight syntax that can represent all the semantics
4363 of the Mallard XML documentation system. Ducktype files can be converted to
4364 Mallard using the @command{ducktype} tool. The yelp-tools package
4365 provides additional functionality on the produced Mallard documents.")
4366 (license license:expat)))
4368 (define-public python-cython
4370 (name "python-cython")
4375 (uri (pypi-uri "Cython" version))
4378 "1bcwpra7c6k30yvic3sw2v3rq2dr40ypc4zqif6kr52mpn4wnyp5"))))
4379 (build-system python-build-system)
4380 ;; we need the full python package and not just the python-wrapper
4381 ;; because we need libpython3.3m.so
4383 `(("python" ,python)))
4386 (modify-phases %standard-phases
4387 (add-before 'check 'set-HOME
4388 ;; some tests require access to "$HOME/.cython"
4389 (lambda _ (setenv "HOME" "/tmp") #t))
4392 ;; Disable compiler optimizations to greatly reduce the running
4393 ;; time of the test suite.
4394 (setenv "CFLAGS" "-O0")
4396 (invoke "python" "runtests.py" "-vv"
4397 "-j" (number->string (parallel-job-count))
4398 ;; XXX: On 32-bit architectures, running the parallel tests
4399 ;; fails on many-core systems, see
4400 ;; <https://github.com/cython/cython/issues/2807>.
4401 ,@(if (not (target-64bit?))
4402 '("-x" "run.parallel")
4404 (home-page "https://cython.org/")
4405 (synopsis "C extensions for Python")
4406 (description "Cython is an optimising static compiler for both the Python
4407 programming language and the extended Cython programming language. It makes
4408 writing C extensions for Python as easy as Python itself.")
4409 (license license:asl2.0)
4410 (properties `((python2-variant . ,(delay python2-cython))))))
4412 (define-public python2-cython
4413 (let ((base (package-with-python2 (strip-python2-variant python-cython))))
4416 (name "python2-cython")
4418 `(("python-2" ,python-2))) ;this is not automatically changed
4420 (substitute-keyword-arguments (package-arguments base)
4422 `(modify-phases ,phases
4423 (add-before 'check 'adjust-test_embed
4425 (substitute* "runtests.py"
4426 ;; test_embed goes great lengths to find the static libpythonX.Y.a
4427 ;; so it can give the right -L flag to GCC when embedding static
4428 ;; builds of Python. It is unaware that the Python "config"
4429 ;; directory (where the static library lives) was renamed in
4430 ;; Python 3, and falls back to sysconfig.get_config_var('LIBDIR'),
4431 ;; which works fine, because that is where the shared library is.
4433 ;; It also appears to be unaware that the Makefile in Demos/embed
4434 ;; already unconditionally pass the static library location to GCC,
4435 ;; after checking sysconfig.get_config_var('LIBPL).
4437 ;; The effect is that the linker is unable to resolve libexpat
4438 ;; symbols when building for Python 2, because neither the Python 2
4439 ;; shared library nor Expat is available. To fix it, we can either
4440 ;; add Expat as an input and make it visible to the linker, or just
4441 ;; prevent it from overriding the Python shared library location.
4442 ;; The end result is identical, so we take the easy route.
4443 ((" or libname not in os\\.listdir\\(libdir\\)")
4447 ;; The RPython toolchain currently does not support Python 3.
4448 (define-public python2-rpython
4450 (name "python2-rpython")
4455 (uri (pypi-uri "rpython" version))
4458 "02z9cvxf0y41dcvwnvf2zn0albhhw1drvjjbq27m6i1piw1k6fc0"))))
4459 (build-system python-build-system)
4460 (arguments `(#:python ,python-2))
4462 `(("python2-pytest" ,python2-pytest))) ; needed for running tests
4463 (home-page "https://rpython.readthedocs.org")
4464 (synopsis "Framework for implementing interpreters and virtual machines")
4465 (description "RPython is a translation and support framework for
4466 producing implementations of dynamic languages, emphasizing a clean separation
4467 between language specification and implementation aspects.")
4468 (license license:expat)))
4470 ;; NOTE: when upgrading numpy please make sure that python-pandas and
4471 ;; python-scipy still build, as these three packages are often used together.
4472 (define-public python-numpy
4474 (name "python-numpy")
4480 "https://github.com/numpy/numpy/releases/download/v"
4481 version "/numpy-" version ".tar.gz"))
4484 "1ak9dmjja0q90a7fsxli51ypcwssh8c4pb6f8wkrsnf2xgdk6dy9"))))
4485 (build-system python-build-system)
4487 `(("openblas" ,openblas)
4488 ("lapack" ,lapack)))
4490 `(("python-cython" ,python-cython)
4491 ("python-pytest" ,python-pytest)
4492 ("gfortran" ,gfortran)))
4495 (modify-phases %standard-phases
4496 (add-before 'build 'configure-blas-lapack
4497 (lambda* (#:key inputs #:allow-other-keys)
4498 (call-with-output-file "site.cfg"
4502 libraries = openblas
4503 library_dirs = ~a/lib
4504 include_dirs = ~a/include
4506 # backslash-n to make emacs happy
4508 lapack_libs = lapack
4509 library_dirs = ~a/lib
4510 include_dirs = ~a/include
4512 (assoc-ref inputs "openblas")
4513 (assoc-ref inputs "openblas")
4514 (assoc-ref inputs "lapack")
4515 (assoc-ref inputs "lapack"))))
4517 (add-before 'build 'fix-executable-paths
4518 (lambda* (#:key inputs #:allow-other-keys)
4519 ;; Make /gnu/store/...-bash-.../bin/sh the default shell,
4520 ;; instead of /bin/sh.
4521 (substitute* "numpy/distutils/exec_command.py"
4522 (("(os.environ.get\\('SHELL', ')(/bin/sh'\\))" match match-start match-end)
4523 (string-append match-start (assoc-ref inputs "bash") match-end)))
4524 ;; Use "gcc" executable, not "cc".
4525 (substitute* "numpy/distutils/system_info.py"
4526 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
4527 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
4529 ;; Tests can only be run after the library has been installed and not
4530 ;; within the source directory.
4532 (add-after 'install 'check
4533 (lambda* (#:key outputs inputs #:allow-other-keys)
4534 ;; Make installed package available for running the tests
4535 (add-installed-pythonpath inputs outputs)
4536 ;; Make sure "f2py" etc is found.
4537 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
4538 ":" (getenv "PATH")))
4539 (with-directory-excursion "/tmp"
4540 (invoke "python" "-c"
4541 "import numpy; numpy.test(verbose=2)")))))))
4542 (home-page "https://numpy.org")
4543 (synopsis "Fundamental package for scientific computing with Python")
4544 (description "NumPy is the fundamental package for scientific computing
4545 with Python. It contains among other things: a powerful N-dimensional array
4546 object, sophisticated (broadcasting) functions, tools for integrating C/C++
4547 and Fortran code, useful linear algebra, Fourier transform, and random number
4549 (properties `((python2-variant . ,(delay python2-numpy))))
4550 (license license:bsd-3)))
4552 ;; Numpy 1.16.x are the last versions that support Python 2.
4553 (define-public python2-numpy
4554 (let ((numpy (package-with-python2
4555 (strip-python2-variant python-numpy))))
4562 "https://github.com/numpy/numpy/releases/download/v"
4563 version "/numpy-" version ".tar.gz"))
4566 "0lg1cycxzi4rvvrd5zxinpdz0ni792fpx6xjd75z1923zcac8qrb")))))))
4568 ;; NOTE: NumPy 1.8 is packaged only for Python 2 because it is of
4569 ;; interest only for legacy code going back to NumPy's predecessor
4571 (define-public python2-numpy-1.8
4572 (package (inherit python2-numpy)
4578 (url "https://github.com/numpy/numpy")
4579 (commit (string-append "v" version))))
4580 (file-name (git-file-name "numpy" version))
4583 "0ikgi15rsqwbkfsjjxrwh40lqyal2wvyp3923y6w6ch3dcr82sfk"))))
4585 (substitute-keyword-arguments (package-arguments python2-numpy)
4587 `(modify-phases ,phases
4588 (replace 'configure-blas-lapack
4589 (lambda* (#:key inputs #:allow-other-keys)
4590 (call-with-output-file "site.cfg"
4594 libraries = openblas,lapack
4595 library_dirs = ~a/lib:~a/lib
4596 include_dirs = ~a/include:~a/include
4598 (assoc-ref inputs "openblas")
4599 (assoc-ref inputs "lapack")
4600 (assoc-ref inputs "openblas")
4601 (assoc-ref inputs "lapack"))))
4604 `(("python2-nose" ,python2-nose)))
4605 (description "NumPy is the fundamental package for scientific computing
4606 with Python. It contains among other things: a powerful N-dimensional array
4607 object, sophisticated (broadcasting) functions, tools for integrating C/C++
4608 and Fortran code, useful linear algebra, Fourier transform, and random number
4609 capabilities. Version 1.8 is the last one to contain the numpy.oldnumeric API
4610 that includes the compatibility layer numpy.oldnumeric with NumPy's predecessor
4612 (license license:bsd-3)))
4614 (define-public python-munch
4616 (name "python-munch")
4621 (uri (pypi-uri "munch" version))
4624 "1cmqg91xnqx8gvnh4pmp0bfl1dfcm65d5p9mg73zz8pkjhx6h80l"))))
4625 (build-system python-build-system)
4626 (home-page "https://github.com/Infinidat/munch")
4627 (synopsis "Dot-accessible dictionary")
4628 (description "Munch is a dot-accessible dictionary similar to JavaScript
4630 (license license:expat)))
4632 (define-public python2-munch
4633 (package-with-python2 python-munch))
4635 (define-public python-colormath
4637 (name "python-colormath")
4642 (uri (pypi-uri "colormath" version))
4645 "05qjycgxp3p2f9n6lmic68sxmsyvgnnlyl4z9w7dl9s56jphaiix"))))
4646 (build-system python-build-system)
4648 `(("python-networkx" ,python-networkx)
4649 ("python-numpy" ,python-numpy)))
4650 (home-page "https://github.com/gtaylor/python-colormath")
4651 (synopsis "Color math and conversion library")
4653 "This is a Python library for color math and conversions.")
4654 (license license:bsd-3)))
4656 (define-public python2-colormath
4657 (package-with-python2 python-colormath))
4659 (define-public python-spectra
4661 (name "python-spectra")
4666 (uri (pypi-uri "spectra" version))
4669 "1f322x914bhkg6r5gv1vmnir3iy0k5kih0fd2gp3rdkw32jn5cwf"))))
4670 (build-system python-build-system)
4673 (modify-phases %standard-phases
4675 (lambda _ (invoke "nosetests" "-v"))))))
4677 `(("python-colormath" ,python-colormath)))
4679 `(("python-nose" ,python-nose)))
4680 (home-page "https://github.com/jsvine/spectra")
4681 (synopsis "Color scales and color conversion")
4683 "This package provides a Python library intended to make color math,
4684 color scales, and color space conversion easy. It has support for:
4689 @item Color blending
4690 @item Brightening/darkening colors
4691 @item Saturating/desaturating colors
4692 @item Conversion to/from multiple color spaces.
4694 (license license:expat)))
4696 (define-public python2-spectra
4697 (package-with-python2 python-spectra))
4699 (define-public python-numpy-documentation
4701 (name "python-numpy-documentation")
4702 (version (package-version python-numpy))
4703 (source (package-source python-numpy))
4704 (build-system python-build-system)
4706 `(("python-matplotlib" ,python-matplotlib)
4707 ("python-numpy" ,python-numpy)
4708 ("pkg-config" ,pkg-config)
4709 ("python-sphinx" ,python-sphinx)
4710 ("python-numpydoc" ,python-numpydoc)
4711 ("texlive" ,(texlive-union (list texlive-fonts-cm-super
4713 texlive-generic-ifxetex
4714 texlive-generic-pdftex
4716 texlive-latex-capt-of
4718 texlive-latex-environ
4719 texlive-latex-eqparbox
4720 texlive-latex-etoolbox
4721 texlive-latex-expdlist
4722 texlive-latex-fancyhdr
4723 texlive-latex-fancyvrb
4724 texlive-latex-fncychap
4726 texlive-latex-framed
4727 texlive-latex-geometry
4728 texlive-latex-graphics
4729 texlive-latex-hyperref
4730 texlive-latex-mdwtools
4731 texlive-latex-multirow
4732 texlive-latex-needspace
4733 texlive-latex-oberdiek
4734 texlive-latex-parskip
4735 texlive-latex-preview
4736 texlive-latex-tabulary
4737 texlive-latex-threeparttable
4738 texlive-latex-titlesec
4739 texlive-latex-trimspaces
4741 texlive-latex-upquote
4743 texlive-latex-varwidth
4744 texlive-latex-wrapfig)))
4745 ("texinfo" ,texinfo)
4747 ("scipy-sphinx-theme"
4748 ,(let ((commit "c466764e2231ba132c09826b5b138fffa1cfcec3"))
4749 (origin ;the build script expects scipy-sphinx-theme as a git submodule
4752 (url "https://github.com/scipy/scipy-sphinx-theme")
4754 (file-name (git-file-name "python-scipy-sphinx-theme"
4755 (string-take commit 7)))
4758 "0q2y87clwlsgc7wvlsn9pzyssybcq10plwhq2w1ydykfsyyqbmkl")))))
4759 ,@(package-native-inputs python-numpy)))
4761 `(#:tests? #f ; we're only generating the documentation
4763 (modify-phases %standard-phases
4766 (lambda* (#:key inputs outputs #:allow-other-keys)
4767 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
4769 data "/doc/" ,name "-"
4770 ,(package-version python-numpy)))
4771 (info-reader (string-append data "/info"))
4772 (html (string-append doc "/html"))
4773 (scipy-sphinx-theme "scipy-sphinx-theme")
4774 (sphinx-theme-checkout (assoc-ref inputs scipy-sphinx-theme))
4775 (pyver ,(string-append "PYVER=")))
4777 ;; FIXME: this is needed to for texlive-union to generate
4778 ;; fonts, which are not found.
4779 (setenv "HOME" "/tmp")
4781 (with-directory-excursion "doc"
4782 (copy-recursively sphinx-theme-checkout scipy-sphinx-theme)
4784 (invoke "make" "html" pyver)
4785 (invoke "make" "latex" "PAPER=a4" pyver)
4786 (invoke "make" "-C" "build/latex"
4787 "all-pdf" "PAPER=a4" pyver)
4788 ;; FIXME: Generation of the info file fails.
4789 ;; (invoke "make" "info" pyver)
4791 ;; (copy-file "build/texinfo/numpy.info"
4792 ;; (string-append info "/numpy.info"))
4793 (for-each (lambda (file)
4794 (copy-file (string-append "build/latex" file)
4795 (string-append doc file)))
4796 '("/numpy-ref.pdf" "/numpy-user.pdf"))
4797 (with-directory-excursion "build/html"
4798 (for-each (lambda (file)
4799 (let* ((dir (dirname file))
4800 (tgt-dir (string-append html "/" dir)))
4801 (unless (equal? "." dir)
4803 (install-file file html)))
4804 (find-files "." ".*")))))
4806 (home-page (package-home-page python-numpy))
4807 (synopsis "Documentation for the python-numpy package")
4808 (description (package-description python-numpy))
4809 (license (package-license python-numpy))))
4811 (define-public python2-numpy-documentation
4812 (let ((numpy-documentation (package-with-python2 python-numpy-documentation)))
4814 (inherit numpy-documentation)
4815 (native-inputs `(("python2-functools32" ,python2-functools32)
4816 ,@(package-native-inputs numpy-documentation))))))
4818 (define-public python-pygit2
4820 (name "python-pygit2")
4825 (uri (pypi-uri "pygit2" version))
4827 (base32 "1j71iskvirkm8jzfmwdm79v69878m9iix8a8cn4xidgr3nmkisyb"))))
4828 (build-system python-build-system)
4830 '(#:tests? #f)) ; tests don't run correctly in our environment
4832 `(("python-cached-property" ,python-cached-property)
4833 ("python-cffi" ,python-cffi)
4834 ("libgit2" ,libgit2)))
4836 `(("python-pytest" ,python-pytest)))
4837 (home-page "https://github.com/libgit2/pygit2")
4838 (synopsis "Python bindings for libgit2")
4839 (description "Pygit2 is a set of Python bindings to the libgit2 shared
4840 library, libgit2 implements Git plumbing.")
4841 ;; GPL2.0 only, with linking exception.
4842 (license license:gpl2)))
4844 (define-public python-patiencediff
4846 (name "python-patiencediff")
4851 (uri (pypi-uri "patiencediff" version))
4854 "0yjk50lsd4gnllxls925xbcdxwvmda37w2a1shk0p1nvl3fcha6q"))))
4855 (build-system python-build-system)
4856 (home-page "https://www.breezy-vcs.org/")
4857 (synopsis "Python implementation of the patiencediff algorithm")
4859 "This package contains a Python implementation of the @code{patiencediff}
4860 algorithm. Patiencediff provides a good balance of performance, nice output for
4861 humans, and implementation simplicity.")
4862 (license license:gpl2)))
4864 (define-public python-pyparsing
4866 (name "python-pyparsing")
4871 (uri (pypi-uri "pyparsing" version))
4873 (base32 "17wn5zlijc9m9zj26gy3f541y7smpj8rfhl51d025c2gm210b0sc"))))
4874 (build-system python-build-system)
4875 (outputs '("out" "doc"))
4877 `(#:tests? #f ; no test target
4879 (modify-phases %standard-phases
4880 (add-after 'install 'install-doc
4881 (lambda* (#:key outputs #:allow-other-keys)
4882 (let* ((doc (string-append (assoc-ref outputs "doc")
4883 "/share/doc/" ,name "-" ,version))
4884 (html-doc (string-append doc "/html"))
4885 (examples (string-append doc "/examples")))
4891 (install-file file tgt))
4892 (find-files dir ".*")))
4893 (list "docs" "htmldoc" "examples")
4894 (list doc html-doc examples))
4896 (home-page "https://github.com/pyparsing/pyparsing")
4897 (synopsis "Python parsing class library")
4899 "The pyparsing module is an alternative approach to creating and
4900 executing simple grammars, vs. the traditional lex/yacc approach, or the use
4901 of regular expressions. The pyparsing module provides a library of classes
4902 that client code uses to construct the grammar directly in Python code.")
4903 (license license:expat)))
4905 (define-public python2-pyparsing
4906 (package-with-python2 python-pyparsing))
4908 (define-public python-pyparsing-2.4.7
4910 (inherit python-pyparsing)
4915 (uri (pypi-uri "pyparsing" version))
4917 (base32 "1hgc8qrbq1ymxbwfbjghv01fm3fbpjwpjwi0bcailxxzhf3yq0y2"))))))
4919 (define-public python-numpydoc
4921 (name "python-numpydoc")
4926 (uri (pypi-uri "numpydoc" version))
4929 "1zazxg3m8j4fksv3f7v7vpf4bj9qb1vj3r326am0vdip141vzx31"))))
4930 (build-system python-build-system)
4932 `(("python-sphinx" ,python-sphinx)))
4934 `(("python-nose" ,python-nose)))
4935 (home-page "https://pypi.org/project/numpydoc/")
4937 "Numpy's Sphinx extensions")
4939 "Sphinx extension to support docstrings in Numpy format.")
4940 (license license:bsd-2)))
4942 (define-public python2-numpydoc
4943 (package-with-python2 python-numpydoc))
4945 (define-public python-numexpr
4947 (name "python-numexpr")
4952 (uri (pypi-uri "numexpr" version))
4955 "1frnbcwmsi312154x274xl28xazr1k8vjby83fwyla2n10a81bgq"))))
4956 (build-system python-build-system)
4957 (arguments `(#:tests? #f)) ; no tests included
4959 `(("python-numpy" ,python-numpy)))
4960 (home-page "https://github.com/pydata/numexpr")
4961 (synopsis "Fast numerical expression evaluator for NumPy")
4963 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
4964 expressions that operate on arrays are accelerated and use less memory than
4965 doing the same calculation in Python. In addition, its multi-threaded
4966 capabilities can make use of all your cores, which may accelerate
4967 computations, most specially if they are not memory-bounded (e.g. those using
4968 transcendental functions).")
4969 (license license:expat)))
4971 (define-public python2-numexpr
4972 (package-with-python2 python-numexpr))
4974 (define-public python-cycler
4976 (name "python-cycler")
4980 (uri (pypi-uri "cycler" version))
4983 "1n69n23fak1gjxlrbhqisi2b9pv3ckrfj98llx3p53953082syyd"))))
4984 (build-system python-build-system)
4986 ;; XXX: The current version requires 'coveralls' which we don't have.
4987 ;; Enable this for the next release which uses 'python-pytest'.
4990 `(("python-six" ,python-six)))
4991 (home-page "http://matplotlib.org/cycler/")
4992 (synopsis "Composable keyword argument iterator")
4994 "When using @code{matplotlib} and plotting more than one line, it is
4995 common to want to be able to want to be able to cycle over one or more artist
4996 styles; but the plotting logic can quickly become involved.
4997 To address this and enable easy cycling over arbitrary @code{kwargs}, the
4998 @code{Cycler} class was developed.")
4999 (license license:bsd-3)))
5001 (define-public python2-cycler
5002 (package-with-python2 python-cycler))
5004 (define-public python-colorspacious
5006 (name "python-colorspacious")
5012 (url "https://github.com/njsmith/colorspacious")
5013 (commit (string-append "v" version))))
5014 (file-name (git-file-name name version))
5016 (base32 "0x7nkphr6g5ql5fvgss8l56rgiyjgh6fm8zzs73i94ci9wzlm63w"))))
5017 (build-system python-build-system)
5019 `(("python-numpy" ,python-numpy)))
5021 `(("python-nose" ,python-nose)))
5024 (modify-phases %standard-phases
5027 (invoke "nosetests" "--all-modules" "-v" "colorspacious"))))))
5028 (home-page "https://github.com/njsmith/colorspacious")
5029 (synopsis "Python library for colorspace conversions")
5030 (description "@code{colorspacious} is a Python library that lets you
5031 convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.")
5032 (license license:expat)))
5034 (define-public python2-colorspacious
5035 (package-with-python2 python-colorspacious))
5037 (define-public python-matplotlib
5039 (name "python-matplotlib")
5044 (uri (pypi-uri "matplotlib" version))
5047 "1nmshfqh7wyg15i16hx1yiylcvzkws29ivn66n3i0wyqwcpjr3lf"))))
5048 (build-system python-build-system)
5049 (propagated-inputs ; the following packages are all needed at run time
5050 `(("python-cycler" ,python-cycler)
5051 ("python-kiwisolver" ,python-kiwisolver)
5052 ("python-pyparsing" ,python-pyparsing)
5053 ("python-pygobject" ,python-pygobject)
5054 ("gobject-introspection" ,gobject-introspection)
5055 ("python-tkinter" ,python "tk")
5056 ("python-dateutil" ,python-dateutil)
5057 ("python-numpy" ,python-numpy)
5058 ("python-pillow" ,python-pillow)
5059 ("python-pytz" ,python-pytz)
5060 ("python-six" ,python-six)
5061 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
5062 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
5063 ;; object. For this reason we need to import both libraries.
5064 ;; https://cairocffi.readthedocs.io/en/stable/cffi_api.html#converting-pycairo-wrappers-to-cairocffi
5065 ("python-pycairo" ,python-pycairo)
5066 ("python-cairocffi" ,python-cairocffi)))
5068 `(("libpng" ,libpng)
5069 ("freetype" ,freetype)
5072 ;; FIXME: Add backends when available.
5073 ;("python-wxpython" ,python-wxpython)
5077 `(("pkg-config" ,pkg-config)
5078 ("python-pytest" ,python-pytest)
5079 ("python-mock" ,python-mock)
5084 (uri "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip")
5087 "0kb21xf38diqgxcdi1z3s9ssq36pldvyqxy56hn6pcva6rs3c8zq"))))))
5090 (modify-phases %standard-phases
5091 ;; XXX We disable all image comparison tests because we're using a
5092 ;; newer version of FreeType than matplotlib expects. This leads to
5093 ;; minor differences throughout the tests.
5094 (add-after 'unpack 'fix-and-disable-failing-tests
5096 (substitute* (append (find-files "lib/matplotlib/tests/"
5098 (find-files "lib/mpl_toolkits/tests"
5100 (("^from matplotlib" match)
5101 (string-append "import pytest\n" match))
5102 (("( *)@image_comparison" match indent)
5103 (string-append indent
5104 "@pytest.mark.skip(reason=\"unknown minor image differences\")\n"
5106 (substitute* "lib/matplotlib/tests/test_animation.py"
5107 (("/bin/sh") (which "sh")))
5108 (for-each delete-file
5109 ;; test_normal_axes, test_get_tightbbox_polar
5110 '("lib/matplotlib/tests/test_axes.py"
5111 ;; We don't use the webagg backend and this test forces it.
5112 "lib/matplotlib/tests/test_backend_webagg.py"
5113 ;; test_outward_ticks
5114 "lib/matplotlib/tests/test_tightlayout.py"
5115 ;; test_hidden_axes fails with minor extent
5116 ;; differences, possibly due to the use of a
5117 ;; different version of FreeType.
5118 "lib/matplotlib/tests/test_constrainedlayout.py"
5119 ;; Fontconfig returns no fonts.
5120 "lib/matplotlib/tests/test_font_manager.py"))
5122 (add-before 'install 'install-jquery-ui
5123 (lambda* (#:key outputs inputs #:allow-other-keys)
5124 (let ((dir (string-append (assoc-ref outputs "out")
5125 "/lib/python3.7/site-packages/matplotlib/backends/web_backend/")))
5128 (assoc-ref inputs "jquery-ui")
5132 (lambda* (#:key outputs inputs #:allow-other-keys)
5133 (add-installed-pythonpath inputs outputs)
5134 (invoke "python" "tests.py" "-v"
5135 "-m" "not network and not webagg")))
5136 (add-before 'build 'configure-environment
5137 (lambda* (#:key outputs inputs #:allow-other-keys)
5138 (let ((cairo (assoc-ref inputs "cairo")))
5139 ;; Setting this directory in the 'basedirlist' of 'setup.cfg'
5141 (setenv "LD_LIBRARY_PATH" (string-append cairo "/lib"))
5142 (setenv "HOME" (getcwd))
5143 ;; Fix rounding errors when using the x87 FPU.
5144 (when (string-prefix? "i686" ,(%current-system))
5145 (setenv "CFLAGS" "-ffloat-store"))
5146 (call-with-output-file "setup.cfg"
5148 (format port "[directories]~%
5149 basedirlist = ~a,~a~%
5152 (assoc-ref inputs "tcl")
5153 (assoc-ref inputs "tk")))))
5155 (home-page "https://matplotlib.org/")
5156 (synopsis "2D plotting library for Python")
5158 "Matplotlib is a Python 2D plotting library which produces publication
5159 quality figures in a variety of hardcopy formats and interactive environments
5160 across platforms. Matplotlib can be used in Python scripts, the python and
5161 ipython shell, web application servers, and six graphical user interface
5163 (license license:psfl)
5164 (properties `((python2-variant . ,(delay python2-matplotlib))))))
5166 (define-public python2-matplotlib
5167 (let ((matplotlib (package-with-python2
5168 (strip-python2-variant python-matplotlib))))
5169 (package (inherit matplotlib)
5174 (uri (pypi-uri "matplotlib" version))
5177 "09i1gnrra1590brc1f8d5rh2zvnknmfgzp613ab0462qkrwj15h2"))))
5179 (substitute-keyword-arguments (package-arguments matplotlib)
5181 `(modify-phases ,phases
5182 (replace 'install-jquery-ui
5183 (lambda* (#:key outputs inputs #:allow-other-keys)
5184 (let ((dir (string-append (assoc-ref outputs "out")
5185 "/lib/python2.7/site-packages/"
5186 "matplotlib/backends/web_backend/")))
5189 (assoc-ref inputs "jquery-ui")
5192 (delete 'fix-and-disable-failing-tests)
5193 (delete 'check))))) ; These tests weren't run the the past.
5194 ;; Make sure to use special packages for Python 2 instead
5195 ;; of those automatically rewritten by package-with-python2.
5197 `(("python2-pycairo" ,python2-pycairo)
5198 ("python2-backports-functools-lru-cache"
5199 ,python2-backports-functools-lru-cache)
5200 ("python2-functools32" ,python2-functools32)
5201 ("python2-pygobject-2" ,python2-pygobject-2)
5202 ("python2-subprocess32" ,python2-subprocess32)
5203 ("python2-tkinter" ,python-2 "tk")
5204 ,@(fold alist-delete (package-propagated-inputs matplotlib)
5205 '("python-pycairo" "python-pygobject" "python-tkinter")))))))
5207 (define-public python-matplotlib-documentation
5209 (name "python-matplotlib-documentation")
5210 (version (package-version python-matplotlib))
5211 (source (package-source python-matplotlib))
5212 (build-system python-build-system)
5214 `(("python-matplotlib" ,python-matplotlib)
5215 ("python-colorspacious" ,python-colorspacious)
5216 ("python-sphinx" ,python-sphinx)
5217 ("python-sphinx-copybutton" ,python-sphinx-copybutton)
5218 ("python-sphinx-gallery" ,python-sphinx-gallery)
5219 ("python-numpydoc" ,python-numpydoc)
5220 ("python-ipython" ,python-ipython)
5221 ("python-ipykernel" ,python-ipykernel)
5222 ("python-mock" ,python-mock)
5223 ("graphviz" ,graphviz)
5224 ("texlive" ,(texlive-union (list texlive-amsfonts
5225 texlive-latex-amsmath
5226 texlive-latex-enumitem
5227 texlive-latex-expdlist
5228 texlive-latex-geometry
5229 texlive-latex-preview
5230 texlive-latex-type1cm
5233 texlive-generic-pdftex
5236 texlive-fonts-adobe-times
5237 texlive-fonts-txfonts)))
5238 ("texinfo" ,texinfo)
5239 ,@(package-native-inputs python-matplotlib)))
5241 `(#:tests? #f ; we're only generating documentation
5243 (modify-phases %standard-phases
5244 ;; The tests in python-matplotlib are run after the install phase, so
5245 ;; we need to delete the extra phase here.
5250 (setenv "PYTHONPATH"
5251 (string-append (getenv "PYTHONPATH")
5252 ":" (getcwd) "/../examples/units"))
5253 (substitute* "conf.py"
5255 (("^SHA = check_output.*")
5256 (string-append "SHA = \"" ,version "\"\n"))
5257 ;; Don't fetch intersphinx files from the Internet
5258 (("^explicit_order_folders" m)
5259 (string-append "intersphinx_mapping = {}\n" m))
5260 (("'sphinx.ext.intersphinx',") "")
5261 ;; Disable URL embedding which requires internet access.
5262 (("'https://docs.scipy.org/doc/numpy'") "None")
5263 (("'https://docs.scipy.org/doc/scipy/reference'") "None"))
5265 "SPHINXBUILD=sphinx-build"
5266 "SPHINXOPTS=" ; don't abort on warnings
5269 (lambda* (#:key inputs outputs #:allow-other-keys)
5270 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
5271 (doc (string-append data "/doc/python-matplotlib-" ,version))
5272 (info (string-append data "/info"))
5273 (html (string-append doc "/html")))
5276 (copy-recursively "build/html" html)
5277 (symlink (string-append html "/_images")
5278 (string-append info "/matplotlib-figures"))
5279 (with-directory-excursion "build/texinfo"
5280 (substitute* "matplotlib.texi"
5281 (("@image\\{([^,]*)" all file)
5282 (string-append "@image{matplotlib-figures/" file)))
5283 (symlink (string-append html "/_images")
5284 "./matplotlib-figures")
5285 (invoke "makeinfo" "--no-split"
5286 "-o" "matplotlib.info" "matplotlib.texi"))
5287 (install-file "build/texinfo/matplotlib.info" info))
5289 (home-page (package-home-page python-matplotlib))
5290 (synopsis "Documentation for the python-matplotlib package")
5291 (description (package-description python-matplotlib))
5292 (license (package-license python-matplotlib))))
5294 (define-public python2-matplotlib-documentation
5295 (let ((parent (package-with-python2 python-matplotlib-documentation)))
5299 (alist-delete "python-sphinx-copybutton"
5300 (package-native-inputs parent))))))
5302 (define-public python-matplotlib-venn
5304 (name "python-matplotlib-venn")
5309 (uri (pypi-uri "matplotlib-venn" version ".zip"))
5312 "13w3i1wih0mij08hrgppzg0g9z50y54rc28l6gdi1r5w45l7l0dy"))))
5313 (build-system python-build-system)
5314 (arguments '(#:tests? #f)) ; tests are not included
5316 `(("python-matplotlib" ,python-matplotlib)
5317 ("python-numpy" ,python-numpy)
5318 ("python-scipy" ,python-scipy)))
5320 `(("unzip" ,unzip)))
5321 (home-page "https://github.com/konstantint/matplotlib-venn")
5322 (synopsis "Plot area-proportional Venn diagrams")
5324 "This package provides tools for plotting area-proportional two- and
5325 three-way Venn diagrams in @code{matplotlib}.")
5326 (license license:expat)))
5328 (define-public python-pysnptools
5330 (name "python-pysnptools")
5335 (uri (pypi-uri "pysnptools" version))
5338 "0gxr0bjix307wvk0qh7vkafbxbzfpdmq0wlswpxyyaymy0fwcypv"))))
5339 (build-system python-build-system)
5341 `(#:tests? #f ; no test data are included
5343 (modify-phases %standard-phases
5345 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5348 (add-installed-pythonpath inputs outputs)
5349 (invoke "python3" "pysnptools/test.py"))
5352 `(("python-dill" ,python-dill)
5353 ("python-h5py" ,python-h5py)
5354 ("python-numpy" ,python-numpy)
5355 ("python-pandas" ,python-pandas)
5356 ("python-psutil" ,python-psutil)
5357 ("python-scipy" ,python-scipy)))
5359 `(("python-cython" ,python-cython)))
5360 (home-page "http://microsoftgenomics.github.io/PySnpTools/")
5361 (synopsis "Library for reading and manipulating genetic data")
5363 "PySnpTools is a library for reading and manipulating genetic data. It
5364 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
5365 those files. It can also efficiently manipulate ranges of integers using set
5366 operators such as union, intersection, and difference.")
5367 (license license:asl2.0)))
5369 (define-public python2-pysnptools
5370 (package-with-python2 python-pysnptools))
5372 (define-public python-wurlitzer
5374 (name "python-wurlitzer")
5379 (uri (pypi-uri "wurlitzer" version))
5381 (base32 "0hvmbc41kdwrjns8z1s4a59a4azdvzb8q3vs7nn1li4qm4l0g3yh"))))
5382 (build-system python-build-system)
5385 (modify-phases %standard-phases
5388 (invoke "pytest" "-vv" "test.py"))))))
5390 `(("python-mock" ,python-mock)
5391 ("python-pytest" ,python-pytest)))
5392 (home-page "https://github.com/minrk/wurlitzer")
5393 (synopsis "Capture C-level output in context managers")
5395 "This library helps to redirect @code{sys.stdout} to a stream or a file
5396 while executing some piece of code, including C code running within a Python
5398 (license license:expat)))
5400 (define-public python-socksipy-branch
5402 (name "python-socksipy-branch")
5407 (uri (pypi-uri "SocksiPy-branch" version))
5410 "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
5411 (build-system python-build-system)
5413 `(#:tests? #f)) ; There are no tests
5414 (home-page "https://code.google.com/archive/p/socksipy-branch/")
5415 (synopsis "Python SOCKS module")
5417 "SocksiPy - A Python SOCKS client module. It provides a
5418 socket-like interface that supports connections to any TCP
5419 service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
5420 The original version was developed by Dan Haim, this is a
5421 branch created by Mario Vilas to address some open issues,
5422 as the original project seems to have been abandoned circa 2007.")
5423 (license license:bsd-3)))
5425 (define-public python2-socksipy-branch
5426 (package-with-python2 python-socksipy-branch))
5428 (define-public python-socksipychain
5430 (name "python-socksipychain")
5436 (url "https://github.com/pagekite/PySocksipyChain")
5437 (commit (string-append "v" version))))
5438 (file-name (git-file-name name version))
5441 "02pp994qmiivkdx4y6az5q80l6rzy8g6d2ipvp7kns7lsxvmc2y7"))))
5442 (build-system python-build-system)
5444 `(#:tests? #f)) ; Tests try to access the network.
5445 (home-page "http://pagekite.net/wiki/Floss/PySocksipyChain/")
5446 (synopsis "Python SOCKS module with chained proxies support")
5448 "SocksiPyChain is a modified version of the SocksiPy SOCKS module, which
5449 adds support for arbitrary chaining of proxy servers and various modes of
5450 TLS/SSL encryption. It was developed for use in PageKite, and also includes
5451 a simple netcat replacement with chaining support.")
5452 (license license:bsd-3)))
5454 (define-public python-pycodestyle
5456 (name "python-pycodestyle")
5461 (uri (pypi-uri "pycodestyle" version))
5464 "0bhr6ia0hmgx3nhgibc9pmkzhlh1zcqk707i5fbxgs702ll7v2n5"))))
5465 (build-system python-build-system)
5468 (modify-phases %standard-phases
5471 (invoke "pytest" "-vv"))))))
5473 `(("python-pytest" ,python-pytest)))
5474 (home-page "https://pycodestyle.readthedocs.io/")
5475 (synopsis "Python style guide checker")
5476 (description "@code{pycodestyle} (formerly pep8) is a tool to check
5477 Python code against some of the style conventions in
5478 @url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.")
5479 (license license:expat)))
5481 (define-public python2-pycodestyle
5482 (package-with-python2 python-pycodestyle))
5484 (define-public python-multidict
5486 (name "python-multidict")
5491 (uri (pypi-uri "multidict" version))
5494 "07ikq2c72kd263hpldw55y0px2l3g34hjk66ml9lryh1jv287qmf"))))
5495 (build-system python-build-system)
5497 '(#:modules ((ice-9 ftw)
5501 (guix build python-build-system))
5502 #:phases (modify-phases %standard-phases
5504 (lambda* (#:key tests? #:allow-other-keys)
5507 (let ((libdir (find (cut string-prefix? "lib." <>)
5508 (scandir "build"))))
5509 (setenv "PYTHONPATH"
5510 (string-append "./build/" libdir ":"
5511 (getenv "PYTHONPATH")))
5512 (invoke "pytest" "-vv")))
5513 (format #t "test suite not run~%"))
5516 `(("python-pytest" ,python-pytest)
5517 ("python-pytest-cov" ,python-pytest-cov)))
5518 (home-page "https://github.com/aio-libs/multidict/")
5519 (synopsis "Multidict implementation")
5520 (description "Multidict is dict-like collection of key-value pairs
5521 where key might be occurred more than once in the container.")
5522 (license license:asl2.0)))
5524 (define-public python-orderedmultidict
5526 (name "python-orderedmultidict")
5531 (uri (pypi-uri "orderedmultidict" version))
5534 "1idjbl933avgaadscrjw1np3xkvnz3phq0l8vw5qs0rqcjx9b65q"))))
5535 (build-system python-build-system)
5538 (modify-phases %standard-phases
5539 (add-after 'unpack 'fix-tests
5541 ;; The package uses nosetest for running the tests.
5542 ;; Adding this initfile allows to run the test suite
5543 ;; without requiring nosetest.
5544 (with-output-to-file "tests/__init__.py" newline)
5547 `(("python-six" ,python-six)))
5549 `(("python-pycodestyle" ,python-pycodestyle)))
5550 (home-page "https://github.com/gruns/orderedmultidict")
5551 (synopsis "Python Ordered Multivalue Dictionary - omdict")
5552 (description "This package contains a library for ordered multivalue
5553 dictionaries. A multivalue dictionary is a dictionary that can store
5554 multiple values for the same key. An ordered multivalue dictionary is a
5555 multivalue dictionary that retains the order of insertions and deletions.")
5556 (license license:unlicense)))
5558 (define-public python2-orderedmultidict
5559 (package-with-python2 python-orderedmultidict))
5561 (define-public python-autopep8
5563 (name "python-autopep8")
5568 (uri (pypi-uri "autopep8" version))
5571 "1w6vh627vrmgfbvrdcxrc3k4gxcldrb2lpgxv9irkdds851qrzb0"))))
5572 (build-system python-build-system)
5574 `(("python-pycodestyle" ,python-pycodestyle)
5575 ("python-toml" ,python-toml)))
5576 (home-page "https://github.com/hhatto/autopep8")
5577 (synopsis "Format Python code according to the PEP 8 style guide")
5579 "@code{autopep8} automatically formats Python code to conform to
5580 the PEP 8 style guide. It uses the pycodestyle utility to determine
5581 what parts of the code needs to be formatted. @code{autopep8} is
5582 capable of fixing most of the formatting issues that can be reported
5584 (license (license:non-copyleft
5585 "https://github.com/hhatto/autopep8/blob/master/LICENSE"))))
5587 (define-public python2-autopep8
5588 (package-with-python2 python-autopep8))
5590 (define-public python-distlib
5592 (name "python-distlib")
5597 (uri (pypi-uri "distlib" version ".zip"))
5600 "08fyi2r246733vharl2yckw20rilci28r91mzrnnvcr638inw5if"))))
5601 (build-system python-build-system)
5604 (modify-phases %standard-phases
5605 (add-before 'build 'no-/bin/sh
5607 (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
5608 (("/bin/sh") (which "sh")))
5610 (add-before 'check 'prepare-test-env
5612 (setenv "HOME" "/tmp")
5613 ;; NOTE: Any value works, the variable just has to be present.
5614 (setenv "SKIP_ONLINE" "1")
5616 (native-inputs `(("unzip" ,unzip)))
5617 (home-page "https://bitbucket.org/pypa/distlib")
5618 (synopsis "Distribution utilities")
5619 (description "Distlib is a library which implements low-level functions that
5620 relate to packaging and distribution of Python software. It is intended to be
5621 used as the basis for third-party packaging tools.")
5622 (license license:psfl)))
5624 ;; TODO: Merge with 'python-distlib' on the next rebuild cycle.
5625 (define-public python-distlib/next
5627 (inherit python-distlib)
5632 (uri (pypi-uri "distlib" version ".zip"))
5635 "1wdzv7fsjhrkhh1wfkarlhcwa8m00mgcpdsvknmf2qy8f9l13xpd"))))))
5637 (define-public python-distutils-extra
5639 (name "python-distutils-extra")
5644 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
5645 version "/+download/python-distutils-extra-"
5649 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
5650 (build-system python-build-system)
5651 (home-page "https://launchpad.net/python-distutils-extra/")
5652 (synopsis "Enhancements to Python's distutils")
5654 "The python-distutils-extra module enables you to easily integrate
5655 gettext support, themed icons, and scrollkeeper-based documentation into
5656 Python's distutils.")
5657 (license license:gpl2)))
5659 (define-public python2-distutils-extra
5660 (package-with-python2 python-distutils-extra))
5662 (define-public python2-elib.intl
5664 (name "python2-elib.intl")
5668 ;; This project doesn't tag releases or publish tarballs, so we take
5669 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
5672 (url "https://github.com/dieterv/elib.intl")
5673 (commit "d09997cfef")))
5674 (file-name (string-append name "-" version "-checkout"))
5677 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
5678 (build-system python-build-system)
5680 ;; incompatible with Python 3 (exception syntax)
5681 `(#:python ,python-2
5683 (home-page "https://github.com/dieterv/elib.intl")
5684 (synopsis "Enhanced internationalization for Python")
5686 "The elib.intl module provides enhanced internationalization (I18N)
5687 services for your Python modules and applications.")
5688 (license license:lgpl3+)))
5690 (define-public python-olefile
5692 (name "python-olefile")
5697 (uri (string-append "https://github.com/decalage2/olefile/releases/"
5698 "download/v" version "/olefile-" version ".tar.gz"))
5699 (file-name (string-append name "-" version ".tar.gz"))
5702 "1kjxh4gr651hpqkjfv89cfzr40hyvf3vjlda7mifiail83j7j07m"))))
5703 (build-system python-build-system)
5704 (home-page "https://www.decalage.info/python/olefileio")
5705 (synopsis "Read and write Microsoft OLE2 files.")
5707 "@code{olefile} can parse, read and write Microsoft OLE2 files (Structured
5708 Storage or Compound Document, Microsoft Office). It is an improved version of
5709 the OleFileIO module from PIL, the Python Image Library.")
5710 (license license:bsd-3)))
5712 (define-public python2-olefile
5713 (package-with-python2 python-olefile))
5715 (define-public python-pillow
5717 (name "python-pillow")
5722 (uri (pypi-uri "Pillow" version))
5725 "17pv0flaqqfld9m4lz8ayxyqb11gbbmr7w04mw4ar79cn3lwdi8i"))))
5726 (build-system python-build-system)
5728 `(("python-pytest" ,python-pytest)))
5730 `(("freetype" ,freetype)
5732 ("libjpeg" ,libjpeg-turbo)
5733 ("libtiff" ,libtiff)
5734 ("libwebp" ,libwebp)
5735 ("openjpeg" ,openjpeg)
5738 `(("python-olefile" ,python-olefile)))
5741 (modify-phases %standard-phases
5742 (add-after 'unpack 'patch-ldconfig
5744 (substitute* "setup.py"
5745 (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
5747 (lambda* (#:key outputs inputs tests? #:allow-other-keys)
5750 (setenv "HOME" (getcwd))
5751 ;; Make installed package available for running the tests.
5752 (add-installed-pythonpath inputs outputs)
5753 (invoke "python" "selftest.py" "--installed")
5754 (invoke "python" "-m" "pytest" "-vv"))
5756 (home-page "https://python-pillow.org")
5757 (synopsis "Fork of the Python Imaging Library")
5759 "The Python Imaging Library adds image processing capabilities to your
5760 Python interpreter. This library provides extensive file format support, an
5761 efficient internal representation, and fairly powerful image processing
5762 capabilities. The core image library is designed for fast access to data
5763 stored in a few basic pixel formats. It should provide a solid foundation for
5764 a general image processing tool.")
5765 (properties `((python2-variant . ,(delay python2-pillow))))
5766 (license (license:x11-style
5767 "http://www.pythonware.com/products/pil/license.htm"
5768 "The PIL Software License"))))
5770 (define-public python2-pillow
5771 (package-with-python2
5773 (inherit (strip-python2-variant python-pillow))
5774 ;; Version 6 is the last series with Python 2 support.
5779 (uri (pypi-uri "Pillow" version))
5782 "0l5rv8jkdrb5q846v60v03mcq64yrhklidjkgwv6s1pda71g17yv")))))))
5784 (define-public python-pillow-2.9
5786 (inherit python-pillow)
5791 (uri (pypi-uri "Pillow" version))
5794 "0ada7lf3lmbdsqm3b7ja920p1pllyfhmqndr85ikpj77fmz9s5qg"))))
5796 (substitute-keyword-arguments (package-arguments python-pillow)
5797 ((#:tests? _ #f) #f)))
5798 (properties '((hidden? #t)))))
5800 (define-public python-roifile
5802 (name "python-roifile")
5803 (version "2020.5.28")
5807 (uri (pypi-uri "roifile" version))
5810 "1vwbwfsw745gyqymff6dllc5zqjsgqmxaw245sw4an6yw9rcbzc0"))))
5811 (build-system python-build-system)
5812 (arguments `(#:tests? #f)) ; there are none
5814 `(("python-numpy" ,python-numpy)))
5815 (home-page "https://www.lfd.uci.edu/~gohlke/")
5816 (synopsis "Read and write ImageJ ROI format")
5817 (description "Roifile is a Python library to read, write, create, and plot
5818 ImageJ ROIs, an undocumented and ImageJ application specific format to store
5819 regions of interest, geometric shapes, paths, text, etc for image overlays.")
5820 (license license:bsd-3)))
5822 (define-public python-tifffile
5824 (name "python-tifffile")
5825 (version "2020.6.3")
5829 (uri (pypi-uri "tifffile" version))
5832 "0xv3ynkbrsibqvx7250075idb7wm3canjd6lx2nzf3cbp6l07577"))))
5833 (build-system python-build-system)
5834 ;; Tests require lfdfiles, which depends on tifffile
5835 (arguments `(#:tests? #f))
5837 `(("python-numpy" ,python-numpy)
5838 ;;("python-lfdfiles" ,python-lfdfiles)
5839 ("python-roifile" ,python-roifile)))
5840 (home-page "https://www.lfd.uci.edu/~gohlke/")
5841 (synopsis "Read and write TIFF(r) files")
5842 (description "This package lets you read image and metadata from many
5843 bio-scientific formats such as plain TIFF, BigTIFF, OME-TIFF, STK, LSM, SGI,
5844 NIH, ImageJ, MicroManager, MD GEL, and FluoView files. It also lets you write
5845 numpy arrays to TIFF, BigTIFF, and ImageJ hyperstack compatible files.")
5846 (license license:bsd-3)))
5848 (define-public python-lfdfiles
5850 (name "python-lfdfiles")
5851 (version "2020.1.1")
5855 (uri (pypi-uri "lfdfiles" version))
5858 "1n9bkfn4vxl0lbhzd0m35lq86ayx5fwcj3ghpfl2vbjbsnfp3h47"))))
5859 (build-system python-build-system)
5861 `(("python-click" ,python-click)
5862 ("python-numpy" ,python-numpy)
5863 ("python-tifffile" ,python-tifffile)))
5864 (home-page "https://www.lfd.uci.edu/~gohlke/")
5865 (synopsis "Work with LFD data files")
5867 "Lfdfiles is a Python library and console script for reading, writing,
5868 converting, and viewing many of the proprietary file formats used to store
5869 experimental data and metadata at the Laboratory for Fluorescence Dynamics.")
5870 (license license:bsd-3)))
5872 (define-public python-imageio
5874 (name "python-imageio")
5879 (uri (pypi-uri "imageio" version))
5882 "1ksjl523fm0fikrd85llxfba35rc1qsgwadgr6mbn9kis79xcpzv"))))
5883 (build-system python-build-system)
5885 `(#:tests? #f ; many tests require online data
5887 (modify-phases %standard-phases
5889 (lambda* (#:key outputs inputs tests? #:allow-other-keys)
5892 ;; Make installed package available for running the tests.
5893 (add-installed-pythonpath inputs outputs)
5894 (invoke "pytest" "-vv"))
5897 `(("python-numpy" ,python-numpy)
5898 ("python-pillow" ,python-pillow)
5899 ("python-psutil" ,python-psutil)))
5901 `(("python-pytest" ,python-pytest)))
5902 (home-page "https://imageio.github.io/")
5903 (synopsis "Library for reading and writing a wide range of image data")
5905 "Imageio is a Python library that provides an easy interface to read and
5906 write a wide range of image data, including animated images, video, volumetric
5907 data, and scientific formats.")
5908 (license license:bsd-2)))
5910 (define-public python-pycparser
5912 (name "python-pycparser")
5917 (uri (pypi-uri "pycparser" version))
5920 "1w0m3xvlrzq4lkbvd1ngfm8mdw64r1yxy6n7djlw6qj5d0km6ird"))))
5921 (outputs '("out" "doc"))
5922 (build-system python-build-system)
5924 `(("pkg-config" ,pkg-config)))
5927 (modify-phases %standard-phases
5930 (with-directory-excursion "tests"
5931 (invoke "python" "all_tests.py"))
5933 (add-after 'install 'install-doc
5934 (lambda* (#:key outputs #:allow-other-keys)
5935 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
5936 (doc (string-append data "/doc/" ,name "-" ,version))
5937 (examples (string-append doc "/examples")))
5939 (for-each (lambda (file)
5940 (copy-file (string-append "." file)
5941 (string-append doc file)))
5942 '("/README.rst" "/CHANGES" "/LICENSE"))
5943 (copy-recursively "examples" examples)
5945 (home-page "https://github.com/eliben/pycparser")
5946 (synopsis "C parser in Python")
5948 "Pycparser is a complete parser of the C language, written in pure Python
5949 using the PLY parsing library. It parses C code into an AST and can serve as
5950 a front-end for C compilers or analysis tools.")
5951 (license license:bsd-3)))
5953 (define-public python2-pycparser
5954 (package-with-python2 python-pycparser))
5956 (define-public python-xlsxwriter
5958 (name "python-xlsxwriter")
5962 ;; There are no tests in the PyPI tarball.
5965 (url "https://github.com/jmcnamara/XlsxWriter")
5966 (commit (string-append "RELEASE_" version))))
5967 (file-name (git-file-name name version))
5969 (base32 "1qg40r2mwrqfmhaxnary1cfgi0dwwazp5qga7c9p2cdji2v0x5rm"))))
5970 (build-system python-build-system)
5971 (home-page "https://github.com/jmcnamara/XlsxWriter")
5972 (synopsis "Python module for creating Excel XLSX files")
5974 "XlsxWriter is a Python module that can be used to write text, numbers,
5975 formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.")
5976 (license license:bsd-2)))
5978 (define-public python-pywavelets
5980 (name "python-pywavelets")
5982 (home-page "https://github.com/PyWavelets/pywt")
5985 (uri (pypi-uri "PyWavelets" version))
5988 "1j88c0r4j1d4mb3f8qhz6nalyx21qrzmsm70rjngnkybd87v8r0s"))))
5989 (build-system python-build-system)
5991 '(#:modules ((ice-9 ftw)
5995 (guix build python-build-system))
5997 (modify-phases %standard-phases
6000 (let ((cwd (getcwd))
6001 (libdir (find (cut string-prefix? "lib." <>)
6002 (scandir "build"))))
6003 (with-directory-excursion (string-append cwd "/build/" libdir)
6004 (invoke "pytest" "-vv"))))))))
6006 `(("python-matplotlib" ,python-matplotlib) ;for tests
6007 ("python-pytest" ,python-pytest)))
6009 `(("python-numpy" ,python-numpy)))
6010 (synopsis "Wavelet transforms in Python")
6012 "PyWavelets is a library for wavelet transforms in Python. Wavelets are
6013 mathematical basis functions that are localized in both time and frequency.
6014 Wavelet transforms are time-frequency transforms employing wavelets. They are
6015 similar to Fourier transforms, the difference being that Fourier transforms are
6016 localized only in frequency instead of in time and frequency.")
6017 (license license:expat)))
6019 (define-public python-pywinrm
6021 (name "python-pywinrm")
6026 (uri (pypi-uri "pywinrm" version))
6029 "10gabhhg3rgacd5ahmi2r128z99fzbrbx6mz1nnq0dxmhmn5rpjf"))))
6030 (build-system python-build-system)
6032 `(("python-six" ,python-six)
6033 ("python-requests_ntlm" ,python-requests_ntlm)
6034 ("python-xmltodict" ,python-xmltodict)
6035 ("python-kerberos" ,python-kerberos)))
6037 `(("python-mock" ,python-mock)
6038 ("python-pytest" ,python-pytest)))
6039 (home-page "https://github.com/diyan/pywinrm/")
6041 "Python library for Windows Remote Management (WinRM)")
6043 "pywinrm is a Python client for the Windows Remote Management (WinRM)
6044 service. It allows you to invoke commands on target Windows machines from
6045 any machine that can run Python.")
6046 (license license:expat)))
6048 (define-public python-xcffib
6050 (name "python-xcffib")
6055 (uri (pypi-uri "xcffib" version))
6058 "04k91yxyb3pgc5lvxmivh8w71yjrap2g57yk3s73x4rm4nvjq51n"))))
6059 (build-system python-build-system)
6061 `(("libxcb" ,libxcb)))
6063 `(("python-cffi" ,python-cffi) ; used at run time
6064 ("python-six" ,python-six)))
6066 `(;; FIXME: Tests need more work. See ".travis.yml" in the repository.
6069 (modify-phases %standard-phases
6070 (add-after 'unpack 'fix-libxcb-path
6071 (lambda* (#:key inputs #:allow-other-keys)
6072 (let ((libxcb (assoc-ref inputs "libxcb")))
6073 (substitute* '("xcffib/__init__.py")
6074 (("^soname = \"") (string-append "soname = \"" libxcb "/lib/")))
6076 (add-after 'install 'install-doc
6077 (lambda* (#:key outputs #:allow-other-keys)
6078 (let ((doc (string-append (assoc-ref outputs "out") "/share"
6079 "/doc/" ,name "-" ,version)))
6081 (copy-file "README.md"
6082 (string-append doc "/README.md"))
6084 (home-page "https://github.com/tych0/xcffib")
6085 (synopsis "XCB Python bindings")
6087 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
6088 support for Python 3 and PyPy. It is based on cffi.")
6089 (license license:expat)))
6091 (define-public python2-xcffib
6092 (package-with-python2 python-xcffib))
6094 (define-public python-cairocffi
6096 (name "python-cairocffi")
6100 ;; The PyPI archive does not include the documentation, so use Git.
6103 (url "https://github.com/Kozea/cairocffi")
6104 (commit (string-append "v" version))))
6105 (file-name (git-file-name name version))
6108 "1ypw0c2lr43acn57hbmckk183zq4h477j7p4ig2zjvw0mcpvia50"))))
6109 (build-system python-build-system)
6110 (outputs '("out" "doc"))
6114 ("gdk-pixbuf" ,gdk-pixbuf)
6117 `(("python-numpy" ,python-numpy)
6118 ("python-pytest" ,python-pytest)
6119 ("python-pytest-cov" ,python-pytest-cov)
6120 ("python-pytest-runner" ,python-pytest-runner)
6121 ("python-sphinx" ,python-sphinx)
6122 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)))
6124 `(("python-xcffib" ,python-xcffib))) ; used at run time
6127 (modify-phases %standard-phases
6128 (add-after 'unpack 'patch-paths
6129 (lambda* (#:key inputs #:allow-other-keys)
6130 (substitute* "cairocffi/__init__.py"
6131 ;; Hack the dynamic library loading mechanism.
6132 (("find_library\\(library_name\\)")
6134 (("filenames = \\(library_filename,\\) \\+ filenames")
6137 (string-append (assoc-ref inputs "cairo")
6138 "/lib/libcairo.so.2")))
6139 (substitute* "cairocffi/pixbuf.py"
6140 (("libgdk_pixbuf-2.0.so.0")
6141 (string-append (assoc-ref inputs "gdk-pixbuf")
6142 "/lib/libgdk_pixbuf-2.0.so.0"))
6143 (("libgobject-2.0.so.0")
6144 (string-append (assoc-ref inputs "glib")
6145 "/lib/libgobject-2.0.so.0"))
6146 (("libglib-2.0.so.0")
6147 (string-append (assoc-ref inputs "glib")
6148 "/lib/libglib-2.0.so.0"))
6150 (string-append (assoc-ref inputs "gtk+")
6151 "/lib/libgdk-3.so.0")))
6153 (add-after 'unpack 'disable-linters
6154 ;; Their check fails; none of our business.
6156 (substitute* "setup.cfg"
6157 ((".*pytest-flake8.*") "")
6158 ((".*pytest-isort.*") "")
6162 (add-after 'install 'install-doc
6163 (lambda* (#:key inputs outputs #:allow-other-keys)
6164 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
6165 (doc (string-append data "/doc/" ,name "-" ,version))
6166 (html (string-append doc "/html")))
6167 (setenv "LD_LIBRARY_PATH"
6168 (string-append (assoc-ref inputs "cairo") "/lib" ":"
6169 (assoc-ref inputs "gdk-pixbuf") "/lib"))
6170 (setenv "LANG" "en_US.UTF-8")
6172 (for-each (lambda (file)
6173 (copy-file (string-append "." file)
6174 (string-append doc file)))
6175 '("/README.rst" "/NEWS.rst"))
6176 (system* "python" "setup.py" "build_sphinx")
6177 (copy-recursively "docs/_build/html" html)
6179 (home-page "https://github.com/Kozea/cairocffi")
6180 (synopsis "Python bindings and object-oriented API for Cairo")
6182 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
6183 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
6184 graphics library with support for multiple backends including image buffers,
6185 PNG, PostScript, PDF, and SVG file output.")
6186 (license license:bsd-3)))
6188 (define-public python2-cairocffi
6189 (package-with-python2 python-cairocffi))
6191 (define-public python-decorator
6193 (name "python-decorator")
6198 (uri (pypi-uri "decorator" version))
6200 (base32 "0308djallnh00v112y5b7nadl657ysmkp6vc8xn51d6yzc9zm7n3"))))
6201 (build-system python-build-system)
6202 (home-page "https://pypi.org/project/decorator/")
6203 (synopsis "Python module to simplify usage of decorators")
6205 "The aim of the decorator module is to simplify the usage of decorators
6206 for the average programmer, and to popularize decorators usage giving examples
6207 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
6208 etc. The core of this module is a decorator factory.")
6209 (license license:expat)))
6211 (define-public python2-decorator
6212 (package-with-python2 python-decorator))
6214 (define-public python-drmaa
6216 (name "python-drmaa")
6221 (uri (pypi-uri "drmaa" version))
6223 (base32 "0xzqriqyvk5b8hszbavsyxd29wm3sxirm8zvvdm73rs2iq7w4hkx"))))
6224 (build-system python-build-system)
6225 ;; The test suite requires libdrmaa which is provided by the cluster
6226 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
6227 ;; should be set to the path of the libdrmaa library.
6228 (arguments '(#:tests? #f))
6230 `(("python-nose" ,python-nose)))
6231 (home-page "https://pypi.org/project/drmaa/")
6232 (synopsis "Python bindings for the DRMAA library")
6234 "A Python package for Distributed Resource Management (DRM) job
6235 submission and control. This package is an implementation of the DRMAA 1.0
6236 Python language binding specification.")
6237 (license license:bsd-3)))
6239 (define-public python2-drmaa
6240 (package-with-python2 python-drmaa))
6242 (define-public python-grako
6244 (name "python-grako")
6250 (pypi-uri "grako" version ".zip"))
6253 "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw"))))
6254 (build-system python-build-system)
6255 (arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive.
6258 ("python-pytest" ,python-pytest)
6259 ("python-pytest-runner" ,python-pytest-runner)))
6260 (home-page "https://bitbucket.org/neogeny/grako")
6261 (synopsis "EBNF parser generator")
6263 "Grako takes a grammar in a variation of EBNF as input, and outputs a
6264 memoizing PEG/Packrat parser in Python.")
6265 (license license:bsd-3)))
6267 (define-public python2-grako
6268 (package-with-python2 python-grako))
6270 (define-public python-grandalf
6272 (name "python-grandalf")
6276 ;; There's no source tarball on PyPI.
6279 (url "https://github.com/bdcht/grandalf")
6280 (commit (string-append "v" version))))
6281 (file-name (git-file-name name version))
6284 "03p8w8ljpb87qbyldm3s6b7qi30hfcn43h33iwlgqcf31fjsyr4g"))))
6285 (build-system python-build-system)
6288 (modify-phases %standard-phases
6291 (invoke "python" "setup.py" "pytest"))))))
6293 `(("python-pytest" ,python-pytest)
6294 ("python-pytest-runner" ,python-pytest-runner)))
6296 `(("python-numpy" ,python-numpy)
6297 ("python-ply" ,python-ply)))
6298 (home-page "https://github.com/bdcht/grandalf")
6299 (synopsis "Graph and drawing algorithms framework")
6301 "Grandalf is a Python package made for experimentations with graphs
6302 drawing algorithms. It is written in pure Python, and currently implements
6303 two layouts: the Sugiyama hierarchical layout and the force-driven or energy
6304 minimization approach. While not as fast or featured as graphviz or other
6305 libraries like OGDF (C++), it provides a way to walk and draw graphs no larger
6306 than thousands of nodes, while keeping the source code simple enough to tweak
6307 and hack any part of it for experimental purpose. With a total of about 1500
6308 lines of Python, the code involved in drawing the Sugiyama (dot) layout fits
6309 in less than 600 lines. The energy minimization approach is comprised of only
6312 Grandalf does only 2 not-so-simple things:
6314 @item computing the nodes (x,y) coordinates (based on provided nodes
6315 dimensions, and a chosen layout)
6316 @item routing the edges with lines or nurbs
6319 It doesn’t depend on any GTK/Qt/whatever graphics toolkit. This means that it
6320 will help you find where to draw things like nodes and edges, but it’s up to
6321 you to actually draw things with your favorite toolkit.")
6322 ;; The user can choose either license.
6323 (license (list license:gpl2 license:epl1.0))))
6325 (define-public python-gridmap
6327 (name "python-gridmap")
6333 (url "https://github.com/pygridtools/gridmap")
6334 (commit (string-append "v" version))))
6335 (file-name (git-file-name name version))
6337 (base32 "0v0sgpg6pz8h61f9aqjf5xk0ipr512bbz8dxzjjylksj135qr19l"))))
6338 (build-system python-build-system)
6340 '(#:tests? #f)) ; FIXME: Requires python-cherrypy.
6342 `(("python-psutil" ,python-psutil)
6343 ("python-drmaa" ,python-drmaa)
6344 ("python-pyzmq" ,python-pyzmq)))
6345 (home-page "https://github.com/pygridtools/gridmap")
6346 (synopsis "Create jobs on a cluster directly from Python")
6348 "Gridmap is a Python package to allow you to easily create jobs on the
6349 cluster directly from Python. You can directly map Python functions onto the
6350 cluster without needing to write any wrapper code yourself.")
6351 (license license:gpl3+)))
6353 (define-public python2-gridmap
6354 (package-with-python2 python-gridmap))
6356 (define-public python-honcho
6358 (name "python-honcho")
6364 (url "https://github.com/nickstenning/honcho")
6365 (commit (string-append "v" version))))
6366 (file-name (git-file-name name version))
6368 (base32 "11bd87474qpif20xdcn0ra1idj5k16ka51i658wfpxwc6nzsn92b"))))
6369 (build-system python-build-system)
6371 `(("python-pytest" ,python-pytest)
6372 ("python-mock" ,python-mock)
6373 ("python-tox" ,python-tox)
6374 ("which" ,which))) ;for tests
6376 `(("python-jinja2" ,python-jinja2)))
6379 (modify-phases %standard-phases
6381 (add-after 'install 'check
6382 (lambda* (#:key outputs inputs #:allow-other-keys)
6383 ;; fix honcho path in testsuite
6384 (substitute* "tests/conftest.py"
6385 (("'honcho'") (string-append "'" (assoc-ref outputs "out")
6386 "/bin/honcho" "'")))
6387 ;; It's easier to run tests after install.
6388 ;; Make installed package available for running the tests
6389 (add-installed-pythonpath inputs outputs)
6390 (invoke "py.test" "-v"))))))
6391 (home-page "https://github.com/nickstenning/honcho")
6392 (synopsis "Manage Procfile-based applications")
6394 "A Procfile is a file which describes how to run an application
6395 consisting of several processes. honcho starts all listed processes.
6396 The output of all running processes is collected by honcho and
6398 (license license:expat)))
6400 (define-public python2-honcho
6401 (package-with-python2 python-honcho))
6403 (define-public python-pexpect
6405 (name "python-pexpect")
6410 (uri (pypi-uri "pexpect" version))
6412 (base32 "032cg337h8awydgypz6f4wx848lw8dyrj4zy988x0lyib4ws8rgw"))))
6413 (build-system python-build-system)
6416 (modify-phases %standard-phases
6417 (add-before 'check 'prepare-tests
6419 (substitute* (find-files "tests")
6420 (("/bin/ls") (which "ls"))
6421 (("/bin/echo") (which "echo"))
6422 (("/bin/which") (which "which"))
6423 ;; Many tests try to use the /bin directory which
6424 ;; is not present in the build environment.
6425 ;; Use one that's non-empty and unlikely to change.
6427 ;; Disable failing test. See upstream bug report
6428 ;; https://github.com/pexpect/pexpect/issues/568
6429 (("def test_bash") "def _test_bash"))
6430 ;; XXX: Socket connection test gets "Connection reset by peer".
6431 ;; Why does it not work? Delete for now.
6432 (delete-file "tests/test_socket.py")
6434 (replace 'check (lambda _ (invoke "nosetests" "-v"))))))
6436 `(("python-nose" ,python-nose)
6437 ("python-pytest" ,python-pytest)
6440 ("bash-full" ,bash))) ;full Bash for 'test_replwrap.py'
6442 `(("python-ptyprocess" ,python-ptyprocess)))
6443 (home-page "http://pexpect.readthedocs.org/")
6444 (synopsis "Controlling interactive console applications")
6446 "Pexpect is a pure Python module for spawning child applications;
6447 controlling them; and responding to expected patterns in their output.
6448 Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
6449 child application and control it as if a human were typing commands.")
6450 (license license:isc)))
6452 (define-public python2-pexpect
6453 (package-with-python2 python-pexpect))
6455 (define-public python-setuptools-scm
6457 (name "python-setuptools-scm")
6461 (uri (pypi-uri "setuptools_scm" version))
6464 "083k93wi7mrmp1cn28hcbnr6sivbgls0y7zz2m5qzn1wg04a3f16"))))
6465 (build-system python-build-system)
6466 (home-page "https://github.com/pypa/setuptools_scm/")
6467 (synopsis "Manage Python package versions in SCM metadata")
6469 "Setuptools_scm handles managing your Python package versions in
6470 @dfn{software configuration management} (SCM) metadata instead of declaring
6471 them as the version argument or in a SCM managed file.")
6472 (license license:expat)))
6474 (define-public python2-setuptools-scm
6475 (package-with-python2 python-setuptools-scm))
6477 (define-public python-sexpdata
6479 (name "python-sexpdata")
6484 (uri (pypi-uri "sexpdata" version))
6487 "1q4lsjyzzqrdv64l0pv4ij9nd8gqhvxqcrpxc2xpxs652sk2gj0s"))))
6488 (build-system python-build-system)
6489 (home-page "https://github.com/jd-boyd/sexpdata")
6490 (synopsis "S-expression parser for Python")
6492 "Sexpdata is an S-expression parser/serializer. It has load and dump
6493 functions like pickle, json or PyYAML module.")
6494 (license license:bsd-3)))
6496 (define-public python-pathlib2
6498 (name "python-pathlib2")
6503 (uri (pypi-uri "pathlib2" version))
6506 "0hpp92vqqgcd8h92msm9slv161b1q160igjwnkf2ag6cx0c96695"))))
6507 (build-system python-build-system)
6509 `(("python-scandir" ,python-scandir)
6510 ("python-six" ,python-six)))
6511 (home-page "https://pypi.org/project/pathlib2/")
6512 (synopsis "Object-oriented file system paths")
6513 (description "The goal of pathlib2 is to provide a backport of the
6514 standard @code{pathlib} module which tracks the standard library module, so
6515 all the newest features of the standard @code{pathlib} can be used also on
6516 older Python versions.")
6517 (license license:expat)))
6519 (define-public python-importlib-resources
6521 (name "python-importlib-resources")
6526 (uri (pypi-uri "importlib_resources" version))
6529 "1hq626mx5jl9zfl0wdrjkxsnh8qd98fqv322n68b9251xjk4bxqr"))))
6530 (build-system python-build-system)
6532 `(("python-setuptools-scm" ,python-setuptools-scm)
6533 ("python-toml" ,python-toml)))
6534 (home-page "http://importlib-resources.readthedocs.io/")
6535 (synopsis "Read resources from Python packages")
6537 "@code{importlib_resources} is a backport of Python 3's standard library
6538 @code{importlib.resources} module for Python 2.7, and Python 3.")
6539 (properties `((python2-variant . ,(delay python2-importlib-resources))))
6540 (license license:asl2.0)))
6542 (define-public python2-importlib-resources
6544 (name "python2-importlib-resources")
6548 (uri (pypi-uri "importlib_resources" version))
6551 "0y3hg12iby1qyaspnbisz4s4vxax7syikk3skznwqizqyv89y9yk"))))
6552 (build-system python-build-system)
6554 `(#:python ,python-2
6555 #:phases (modify-phases %standard-phases
6556 ;; The build system tests for python-wheel, but it is
6557 ;; not required for Guix nor the test suite. Just drop
6558 ;; it to make bootstrapping pytest easier.
6559 (add-after 'unpack 'drop-wheel-dependency
6561 (substitute* "setup.cfg"
6562 (("^[[:blank:]]+wheel")
6566 `(("python-pathlib2" ,python2-pathlib2)
6567 ("python-typing" ,python2-typing)))
6568 (home-page "https://gitlab.com/python-devs/importlib_resources")
6569 (synopsis "Backport of @code{importlib.resources} from Python 3.7")
6571 "This package provides an implementation of @code{importlib.resources}
6572 for older versions of Python.")
6573 (license license:asl2.0)))
6575 ;; For importlib-metadata-bootstrap below.
6576 (define-public python2-importlib-resources-bootstrap
6579 python2-importlib-resources
6580 (name "python2-importlib-resources-bootstrap")
6582 `(("python-pathlib2-bootstrap" ,python2-pathlib2-bootstrap)
6583 ("python-typing" ,python2-typing))))))
6585 (define-public python-importlib-metadata
6587 (name "python-importlib-metadata")
6592 (uri (pypi-uri "importlib_metadata" version))
6595 "00ikdj4gjhankdljnz7g5ggak4k9lql2926x0x117ir9j2lv7x86"))))
6596 (build-system python-build-system)
6598 `(("python-zipp" ,python-zipp)))
6600 `(("python-setuptools-scm" ,python-setuptools-scm)
6601 ("python-pyfakefs" ,python-pyfakefs)
6602 ("python-packaging" ,python-packaging)))
6603 (home-page "https://importlib-metadata.readthedocs.io/")
6604 (synopsis "Read metadata from Python packages")
6606 "@code{importlib_metadata} is a library which provides an API for
6607 accessing an installed Python package's metadata, such as its entry points or
6608 its top-level name. This functionality intends to replace most uses of
6609 @code{pkg_resources} entry point API and metadata API. Along with
6610 @code{importlib.resources} in Python 3.7 and newer, this can eliminate the
6611 need to use the older and less efficient @code{pkg_resources} package.")
6612 (properties `((python2-variant . ,(delay python2-importlib-metadata))))
6613 (license license:asl2.0)))
6615 (define-public python2-importlib-metadata
6616 (let ((base (package-with-python2 (strip-python2-variant
6617 python-importlib-metadata))))
6620 (name "python2-importlib-metadata")
6622 `(("python-setuptools-scm" ,python2-setuptools-scm)
6623 ("python-pyfakefs" ,python2-pyfakefs-bootstrap)
6624 ("python-packaging" ,python2-packaging-bootstrap)))
6626 `(("python-configparser" ,python2-configparser)
6627 ("python-contextlib2" ,python2-contextlib2)
6628 ("python-importlib-resources" ,python2-importlib-resources)
6629 ("python-pathlib2" ,python2-pathlib2)
6630 ,@(package-propagated-inputs base))))))
6632 ;; This package is used by python2-pytest, and thus must not depend on it.
6633 (define-public python2-importlib-metadata-bootstrap
6636 python2-importlib-metadata
6637 (name "python2-importlib-metadata-bootstrap")
6640 ,@(package-arguments python2-importlib-metadata)))
6642 `(("python-zipp" ,python2-zipp-bootstrap)
6643 ("python-pathlib2" ,python2-pathlib2-bootstrap)
6644 ("python-configparser" ,python2-configparser)
6645 ("python-contextlib2" ,python2-contextlib2-bootstrap)
6646 ("python-importlib-resources" ,python2-importlib-resources-bootstrap))))))
6648 (define-public python-importmagic
6650 (name "python-importmagic")
6655 (uri (pypi-uri "importmagic" version))
6658 "1n7qxa1snj06aw45mcfz7bxc46zp7fxj687140g2k6jcnyjmfxrz"))))
6659 (build-system python-build-system)
6660 (home-page "https://github.com/alecthomas/importmagic")
6661 (synopsis "Library for adding, removing and managing Python imports")
6663 "Importmagic is a Python library for automatically managing imports by
6664 finding unresolved symbols in Python code and their corresponding imports.")
6665 (license license:bsd-3)))
6667 (define-public python-jaraco-packaging
6669 (name "python-jaraco-packaging")
6674 (uri (pypi-uri "jaraco.packaging" version))
6677 "0zimrnkh33b9g8ffw11mjh6kvs54cy5gcjw1h5cl1r7dc833dmkm"))))
6678 (build-system python-build-system)
6680 `(("python-pytest" ,python-pytest)
6681 ("python-pytest-checkdocs" ,python-pytest-checkdocs)
6682 ("python-pytest-flake8" ,python-pytest-flake8)
6683 ("python-rst.linker" ,python-rst.linker)
6684 ("python-setuptools" ,python-setuptools)
6685 ("python-setuptools-scm" ,python-setuptools-scm)
6686 ("python-six" ,python-six)
6687 ("python-sphinx" ,python-sphinx)))
6688 (home-page "https://github.com/jaraco/jaraco.packaging")
6689 (synopsis "Tools to supplement packaging Python releases")
6691 "This package provides various tools to supplement packaging Python
6693 (license license:expat)))
6695 (define-public python-pathpy
6697 (name "python-pathpy")
6702 (uri (pypi-uri "path.py" version))
6704 (base32 "0ir9j1haq2jbi7aip6k2fa9l7q1l03k4hp1awxhjhcwzsnwp3ll8"))))
6705 (outputs '("out" "doc"))
6706 (build-system python-build-system)
6708 `(("python-appdirs" ,python-appdirs)
6709 ("python-importlib-metadata" ,python-importlib-metadata)))
6711 `(("python-setuptools-scm" ,python-setuptools-scm)
6712 ("python-sphinx" ,python-sphinx)
6713 ("python-rst.linker" ,python-rst.linker)
6714 ("python-pytest" ,python-pytest)
6715 ("python-pytest-runner" ,python-pytest-runner)
6716 ("python-jaraco-packaging" ,python-jaraco-packaging)))
6719 (modify-phases %standard-phases
6720 (add-after 'build 'build-doc
6722 (setenv "LANG" "en_US.UTF-8")
6723 (invoke "python" "setup.py" "build_sphinx")))
6724 (add-after 'install 'install-doc
6725 (lambda* (#:key outputs #:allow-other-keys)
6726 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
6727 (doc (string-append data "/doc/" ,name "-" ,version))
6728 (html (string-append doc "/html")))
6730 (for-each (lambda (file)
6731 (copy-file file (string-append doc "/" file)))
6732 '("README.rst" "CHANGES.rst"))
6733 (copy-recursively "build/sphinx/html" html)
6737 ;; The import time test aborts if an import takes longer than
6738 ;; 100ms. It may very well take a little longer than that.
6739 (invoke "pytest" "-v" "-k" "not test_import_time"))))))
6740 (home-page "https://github.com/jaraco/path.py")
6741 (synopsis "Python module wrapper for built-in os.path")
6743 "@code{path.py} implements path objects as first-class entities, allowing
6744 common operations on files to be invoked on those path objects directly.")
6745 (license license:expat)))
6747 (define-public python2-pathpy
6748 (package-with-python2 python-pathpy))
6750 (define-public python-simplegeneric
6752 (name "python-simplegeneric")
6757 (uri (pypi-uri "simplegeneric" version ".zip"))
6759 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
6760 (build-system python-build-system)
6762 `(("unzip" ,unzip)))
6763 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
6764 (synopsis "Python module for simple generic functions")
6766 "The simplegeneric module lets you define simple single-dispatch generic
6767 functions, akin to Python’s built-in generic functions like @code{len()},
6768 @code{iter()} and so on. However, instead of using specially-named methods,
6769 these generic functions use simple lookup tables, akin to those used by
6770 e.g. @code{pickle.dump()} and other generic functions found in the Python
6772 (license license:zpl2.1)))
6774 (define-public python2-simplegeneric
6775 (package-with-python2 python-simplegeneric))
6777 (define-public python-ipython-genutils
6778 ;; TODO: This package is retired, check if can be removed, see description.
6780 (name "python-ipython-genutils")
6785 (uri (pypi-uri "ipython_genutils" version))
6787 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
6788 (build-system python-build-system)
6789 (arguments `(#:tests? #f)) ; no tests
6790 (home-page "https://ipython.org")
6791 (synopsis "Vestigial utilities from IPython")
6793 "This package provides retired utilities from IPython. No packages
6794 outside IPython/Jupyter should depend on it.
6796 This package shouldn't exist. It contains some common utilities shared by
6797 Jupyter and IPython projects during The Big Split. As soon as possible, those
6798 packages will remove their dependency on this, and this package will go
6800 (license license:bsd-3)))
6802 (define-public python2-ipython-genutils
6803 (package-with-python2 python-ipython-genutils))
6805 (define-public python-ipyparallel
6807 (name "python-ipyparallel")
6812 (uri (pypi-uri "ipyparallel" version))
6815 "0rf0dbpxf5z82bw8lsjj45r3wdd4wc74anz4wiiaf2rbjqlb1ivn"))))
6816 (build-system python-build-system)
6818 `(#:tests? #f ; RuntimeError: IO Loop failed to start
6820 (modify-phases %standard-phases
6821 (add-before 'check 'prepare-for-tests
6823 (setenv "HOME" (getcwd))
6826 `(("python-dateutil" ,python-dateutil)
6827 ("python-decorator" ,python-decorator)
6828 ("python-ipykernel" ,python-ipykernel)
6829 ("python-ipython" ,python-ipython)
6830 ("python-ipython-genutils" ,python-ipython-genutils)
6831 ("python-jupyter-client" ,python-jupyter-client)
6832 ("python-pyzmq" ,python-pyzmq)
6833 ("python-tornado" ,python-tornado)
6834 ("python-traitlets" ,python-traitlets)))
6836 `(("python-ipython" ,python-ipython)
6837 ("python-mock" ,python-mock)
6838 ("python-nose" ,python-nose)
6839 ("python-pytest" ,python-pytest)
6840 ("python-pytest-cov" ,python-pytest-cov)
6841 ("python-testpath" ,python-testpath)))
6842 (home-page "https://ipython.org/")
6843 (synopsis "Interactive Parallel Computing with IPython")
6845 "@code{ipyparallel} is a Python package and collection of CLI scripts for
6846 controlling clusters for Jupyter. @code{ipyparallel} contains the following
6849 @item ipcluster - start/stop a cluster
6850 @item ipcontroller - start a scheduler
6851 @item ipengine - start an engine
6853 (license license:bsd-3)))
6855 (define-public python2-ipyparallel
6856 (let ((ipyparallel (package-with-python2 python-ipyparallel)))
6858 (inherit ipyparallel)
6860 `(("python2-futures" ,python2-futures)
6861 ,@(package-propagated-inputs ipyparallel))))))
6863 (define-public python-ipython-cluster-helper
6865 (name "python-ipython-cluster-helper")
6870 (uri (pypi-uri "ipython-cluster-helper" version))
6873 "1l6mlwxlkxpbvawfwk6qffich7ahg9hq2bxfissgz6144p3k4arj"))
6874 (modules '((guix build utils)))
6876 '(begin (substitute* "requirements.txt"
6877 (("ipython.*") "ipython\n"))
6879 (build-system python-build-system)
6881 `(#:tests? #f ; Test suite can't find IPython.
6883 (modify-phases %standard-phases
6885 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
6888 (setenv "HOME" (getcwd))
6889 (add-installed-pythonpath inputs outputs)
6890 (invoke "python" "example/example.py" "--local"))
6893 `(("python-ipyparallel" ,python-ipyparallel)
6894 ("python-ipython" ,python-ipython)
6895 ("python-netifaces" ,python-netifaces)
6896 ("python-pyzmq" ,python-pyzmq)
6897 ("python-setuptools" ,python-setuptools)
6898 ("python-six" ,python-six)))
6899 (home-page "https://github.com/roryk/ipython-cluster-helper")
6901 "Simplify IPython cluster start up and use for multiple schedulers")
6903 "@code{ipython-cluster-helper} creates a throwaway parallel IPython
6904 profile, launches a cluster and returns a view. On program exit it shuts the
6905 cluster down and deletes the throwaway profile.")
6906 (license license:expat)))
6908 (define-public python2-ipython-cluster-helper
6909 (package-with-python2 python-ipython-cluster-helper))
6911 (define-public python-traitlets
6913 (name "python-traitlets")
6918 (uri (pypi-uri "traitlets" version))
6921 "1xsrwgivpkxlbr4dfndfsi098s29yqgswgjc1qqn69yxklvfw8yh"))))
6922 (build-system python-build-system)
6925 (modify-phases %standard-phases
6926 (replace 'check (lambda _ (invoke "pytest" "-vv" "traitlets"))))))
6928 `(("python-ipython-genutils" ,python-ipython-genutils)
6929 ("python-decorator" ,python-decorator)))
6931 `(("python-pytest" ,python-pytest)))
6932 (properties `((python2-variant . ,(delay python2-traitlets))))
6933 (home-page "https://ipython.org")
6934 (synopsis "Configuration system for Python applications")
6936 "Traitlets is a framework that lets Python classes have attributes with
6937 type checking, dynamically calculated default values, and ‘on change’
6938 callbacks. The package also includes a mechanism to use traitlets for
6939 configuration, loading values from files or from command line arguments. This
6940 is a distinct layer on top of traitlets, so you can use traitlets in your code
6941 without using the configuration machinery.")
6942 (license license:bsd-3)))
6944 (define-public python2-traitlets
6945 (let ((traitlets (package-with-python2 (strip-python2-variant python-traitlets))))
6949 `(("python2-enum34" ,python2-enum34)
6950 ,@(package-propagated-inputs traitlets))))))
6952 (define-public python-jupyter-core
6954 (name "python-jupyter-core")
6959 (uri (string-append (pypi-uri "jupyter_core" version)))
6962 "1dy083rarba8prn9f9srxq3c7n7vyql02ycrqq306c40lr57aw5s"))))
6963 (build-system python-build-system)
6964 ;; FIXME: not sure how to run the tests
6965 (arguments `(#:tests? #f))
6967 `(("python-traitlets" ,python-traitlets)))
6968 (home-page "http://jupyter.org/")
6969 (synopsis "Jupyter base package")
6971 "Jupyter core is the base package on which Jupyter projects rely.")
6972 (license license:bsd-3)))
6974 (define-public python2-jupyter-core
6975 (package-with-python2 python-jupyter-core))
6977 (define-public python-jupyter-client
6979 (name "python-jupyter-client")
6984 (uri (pypi-uri "jupyter_client" version))
6987 "0l9mh7ccrpl3lppym3dnky8n1nk7xarzzdcxf4q2s7aw203cpydm"))))
6988 (build-system python-build-system)
6989 ;; Tests fail because of missing native python kernel which I assume is
6990 ;; provided by the ipython package, which we cannot use because it would
6991 ;; cause a dependency cycle.
6995 #:phases (modify-phases %standard-phases
6996 (add-after 'unpack 'set-tool-file-names
6997 (lambda* (#:key inputs #:allow-other-keys)
6998 (let ((iproute (assoc-ref inputs "iproute")))
6999 (substitute* "jupyter_client/localinterfaces.py"
7001 (string-append "'" iproute "/sbin/ip'")))
7004 `(("iproute" ,iproute)))
7006 `(("python-pyzmq" ,python-pyzmq)
7007 ("python-traitlets" ,python-traitlets)
7008 ("python-jupyter-core" ,python-jupyter-core)))
7009 (home-page "http://jupyter.org/")
7010 (synopsis "Jupyter protocol implementation and client libraries")
7012 "The @code{jupyter_client} package contains the reference implementation
7013 of the Jupyter protocol. It also provides client and kernel management APIs
7014 for working with kernels, and the @code{jupyter kernelspec} entrypoint for
7015 installing @code{kernelspec}s for use with Jupyter frontends.")
7016 (license license:bsd-3)))
7018 (define-public python2-jupyter-client
7019 (package-with-python2 python-jupyter-client))
7021 (define-public python-ipykernel
7023 (name "python-ipykernel")
7028 (uri (pypi-uri "ipykernel" version))
7030 (base32 "1a08y677lpn80qzvv7z0smgggmr5m5ayf0bs6vds47xpxl9sss5k"))))
7031 (build-system python-build-system)
7034 (modify-phases %standard-phases
7037 (setenv "HOME" "/tmp")
7038 (invoke "pytest" "-v")
7040 (add-after 'install 'set-python-file-name
7041 (lambda* (#:key outputs #:allow-other-keys)
7042 ;; Record the absolute file name of the 'python' executable in
7044 (let ((out (assoc-ref outputs "out")))
7045 (substitute* (string-append out "/share/jupyter"
7046 "/kernels/python3/kernel.json")
7048 (string-append "\"" (which "python") "\"")))
7051 `(("python-ipython" ,python-ipython)
7052 ;; imported at runtime during connect
7053 ("python-jupyter-client" ,python-jupyter-client)))
7055 `(("python-flaky" ,python-flaky)
7056 ("python-nose" ,python-nose)
7057 ("python-pytest" ,python-pytest)))
7058 (home-page "https://ipython.org")
7059 (synopsis "IPython Kernel for Jupyter")
7061 "This package provides the IPython kernel for Jupyter.")
7062 (properties `((python2-variant . ,(delay python2-ipykernel))))
7063 (license license:bsd-3)))
7065 ;; Version 5.x and above no longer support Python 2.
7066 (define-public python2-ipykernel
7068 (name "python2-ipykernel")
7073 (uri (pypi-uri "ipykernel" version))
7075 (base32 "1yzmdiy1djsszqp54jzd8ym8h4hpl67zjq83j2kxbkp0rwmlpdzf"))))
7076 (build-system python-build-system)
7078 `(#:python ,python-2))
7080 `(("python2-ipython" ,python2-ipython)
7081 ;; imported at runtime during connect
7082 ("python2-jupyter-client" ,python2-jupyter-client)
7083 ("python2-tornado" ,python2-tornado)
7084 ("python2-traitlets" ,python2-traitlets)))
7086 `(("python2-mock" ,python2-mock)
7087 ("python2-nose" ,python2-nose)
7088 ("python2-pytest" ,python2-pytest)
7089 ("python2-pytest-cov" ,python2-pytest-cov)))
7090 (home-page "https://ipython.org")
7091 (synopsis "IPython Kernel for Jupyter")
7093 "This package provides the IPython kernel for Jupyter.")
7094 (license license:bsd-3)))
7096 (define-public python-pari-jupyter
7098 (name "python-pari-jupyter")
7103 (uri (pypi-uri "pari_jupyter" version))
7106 "1yash0p422nnin7z58b99d0p23nx79f5m0mainc9hsjg72jhdhr6"))))
7107 (build-system python-build-system)
7109 `(("python-ipykernel" ,python-ipykernel)))
7111 `(("pari-gp" ,pari-gp)
7112 ("readline" ,readline)))
7114 `(#:tests? #f)) ; no test suite
7116 "https://github.com/jdemeyer/pari_jupyter")
7117 (synopsis "A Jupyter kernel for PARI/GP")
7118 (description "The package provides a PARI/GP kernel for Jupyter.")
7119 (license license:gpl3+)))
7121 (define-public python-backcall
7123 (name "python-backcall")
7128 (uri (pypi-uri "backcall" version))
7131 "1r01dqch3f8fdj3n6fviw8hxqrs6w5v0qw4izmvqzry1w9dxiv1q"))))
7132 (build-system python-build-system)
7133 (home-page "https://github.com/takluyver/backcall/")
7134 (synopsis "Specifications for callback functions passed in to an API")
7136 "If your code lets other people supply callback functions, it's important
7137 to specify the function signature you expect, and check that functions support
7138 that. Adding extra parameters later would break other peoples code unless
7139 you're careful. The @code{backcall} package provides a way of specifying the
7140 callback signature using a prototype function.")
7141 (license license:bsd-3)))
7143 (define-public python-ipython
7145 (name "python-ipython")
7150 (uri (pypi-uri "ipython" version ".tar.gz"))
7152 (base32 "103jkw18z7fnwdal1mdbijjxi1fndzn31g887lmj7ddpf2r07lyz"))))
7153 (build-system python-build-system)
7155 `(("python-backcall" ,python-backcall)
7156 ("python-pyzmq" ,python-pyzmq)
7157 ("python-prompt-toolkit" ,python-prompt-toolkit-2)
7158 ("python-terminado" ,python-terminado)
7159 ("python-matplotlib" ,python-matplotlib)
7160 ("python-numpy" ,python-numpy)
7161 ("python-numpydoc" ,python-numpydoc)
7162 ("python-jedi" ,python-jedi)
7163 ("python-jinja2" ,python-jinja2)
7164 ("python-mistune" ,python-mistune)
7165 ("python-pexpect" ,python-pexpect)
7166 ("python-pickleshare" ,python-pickleshare)
7167 ("python-simplegeneric" ,python-simplegeneric)
7168 ("python-jsonschema" ,python-jsonschema)
7169 ("python-traitlets" ,python-traitlets)
7170 ("python-nbformat" ,python-nbformat)
7171 ("python-pygments" ,python-pygments)))
7173 `(("readline" ,readline)
7176 `(("graphviz" ,graphviz)
7177 ("pkg-config" ,pkg-config)
7178 ("python-requests" ,python-requests) ;; for tests
7179 ("python-testpath" ,python-testpath)
7180 ("python-nose" ,python-nose)))
7183 (modify-phases %standard-phases
7184 (add-after 'unpack 'make-docs-reproducible
7186 (substitute* "IPython/sphinxext/ipython_directive.py"
7187 ((".*import datetime") "")
7188 ((".*datetime.datetime.now\\(\\)") "")
7189 (("%timeit") "# %timeit"))
7191 ;; Tests can only be run after the library has been installed and not
7192 ;; within the source directory.
7194 (add-after 'install 'check
7195 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
7198 ;; Make installed package available for running the tests
7199 (add-installed-pythonpath inputs outputs)
7200 (setenv "HOME" "/tmp/") ;; required by a test
7201 ;; We only test the core because one of the other tests
7202 ;; tries to import ipykernel.
7203 (invoke "python" "IPython/testing/iptest.py"
7204 "-v" "IPython/core/tests"))
7206 (add-before 'check 'fix-tests
7207 (lambda* (#:key inputs #:allow-other-keys)
7208 (substitute* "./IPython/utils/_process_posix.py"
7209 (("/usr/bin/env', 'which") (which "which")))
7210 (substitute* "./IPython/core/tests/test_inputtransformer.py"
7211 (("#!/usr/bin/env python")
7212 (string-append "#!" (which "python"))))
7213 ;; This test introduces a circular dependency on ipykernel
7214 ;; (which depends on ipython).
7215 (delete-file "IPython/core/tests/test_display.py")
7216 ;; AttributeError: module 'IPython.core' has no attribute 'formatters'
7217 (delete-file "IPython/core/tests/test_interactiveshell.py")
7219 (home-page "https://ipython.org")
7220 (synopsis "IPython is a tool for interactive computing in Python")
7222 "IPython provides a rich architecture for interactive computing with:
7223 Powerful interactive shells, a browser-based notebook, support for interactive
7224 data visualization, embeddable interpreters and tools for parallel
7226 (properties `((python2-variant . ,(delay python2-ipython))))
7227 (license license:bsd-3)))
7229 ;; This is the latest release of the LTS version of ipython with support for
7230 ;; Python 2.7 and Python 3.x. Later non-LTS versions starting from 6.0 have
7231 ;; dropped support for Python 2.7.
7232 (define-public python2-ipython
7234 (name "python2-ipython")
7239 (uri (pypi-uri "ipython" version ".tar.gz"))
7241 (base32 "01l93i4hspf0lvhmycvc8j378bslm9rw30mwfspsl6v1ayc69b2b"))))
7242 (build-system python-build-system)
7244 `(("python2-backports-shutil-get-terminal-size"
7245 ,python2-backports-shutil-get-terminal-size)
7246 ("python2-pathlib2" ,python2-pathlib2)
7247 ("python2-pyzmq" ,python2-pyzmq)
7248 ("python2-prompt-toolkit" ,python2-prompt-toolkit-1)
7249 ("python2-terminado" ,python2-terminado)
7250 ("python2-matplotlib" ,python2-matplotlib)
7251 ("python2-numpy" ,python2-numpy)
7252 ("python2-numpydoc" ,python2-numpydoc)
7253 ("python2-jinja2" ,python2-jinja2)
7254 ("python2-mistune" ,python2-mistune)
7255 ("python2-pexpect" ,python2-pexpect)
7256 ("python2-pickleshare" ,python2-pickleshare)
7257 ("python2-simplegeneric" ,python2-simplegeneric)
7258 ("python2-jsonschema" ,python2-jsonschema)
7259 ("python2-traitlets" ,python2-traitlets)
7260 ("python2-nbformat" ,python2-nbformat)
7261 ("python2-pygments" ,python2-pygments)))
7263 `(("readline" ,readline)
7266 `(("graphviz" ,graphviz)
7267 ("pkg-config" ,pkg-config)
7268 ("python2-requests" ,python2-requests) ;; for tests
7269 ("python2-testpath" ,python2-testpath)
7270 ("python2-mock" ,python2-mock)
7271 ("python2-nose" ,python2-nose)))
7273 `(#:python ,python-2
7275 (modify-phases %standard-phases
7276 (add-before 'check 'delete-broken-tests
7277 (lambda* (#:key inputs #:allow-other-keys)
7278 ;; These tests throw errors for unknown reasons.
7279 (delete-file "IPython/core/tests/test_displayhook.py")
7280 (delete-file "IPython/core/tests/test_magic_terminal.py")
7281 (delete-file "IPython/core/tests/test_profile.py")
7283 (home-page "https://ipython.org")
7284 (synopsis "IPython is a tool for interactive computing in Python")
7286 "IPython provides a rich architecture for interactive computing with:
7287 Powerful interactive shells, a browser-based notebook, support for interactive
7288 data visualization, embeddable interpreters and tools for parallel
7290 (license license:bsd-3)))
7292 (define-public python-ipython-documentation
7294 (inherit python-ipython)
7295 (name "python-ipython-documentation")
7296 (version (package-version python-ipython))
7299 (modify-phases %standard-phases
7303 (lambda* (#:key outputs #:allow-other-keys)
7304 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
7305 (doc (string-append data "/doc/" ,name "-" ,version))
7306 (html (string-append doc "/html"))
7307 (man1 (string-append data "/man/man1"))
7308 (info (string-append data "/info"))
7309 (examples (string-append doc "/examples"))
7310 (python-arg (string-append "PYTHON=" (which "python"))))
7311 (setenv "LANG" "en_US.utf8")
7312 (with-directory-excursion "docs"
7313 ;; FIXME: pdf fails to build
7314 ;;(system* "make" "pdf" "PAPER=a4")
7315 (system* "make" python-arg "html")
7316 ;; FIXME: the generated texi file contains ^@^@, which trips
7318 ;; (system* "make" python-arg "info")
7320 (copy-recursively "docs/man" man1)
7321 (copy-recursively "examples" examples)
7322 (copy-recursively "docs/build/html" html)
7323 ;; (copy-file "docs/build/latex/ipython.pdf"
7324 ;; (string-append doc "/ipython.pdf"))
7326 ;; (copy-file "docs/build/texinfo/ipython.info"
7327 ;; (string-append info "/ipython.info"))
7328 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))
7331 `(("python-ipython" ,python-ipython)
7332 ("python-ipykernel" ,python-ipykernel)))
7334 `(("python-sphinx" ,python-sphinx)
7335 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
7336 ;; FIXME: It's possible that a smaller union would work just as well.
7337 ("texlive" ,(texlive-union (list texlive-amsfonts
7339 texlive-generic-ifxetex
7340 texlive-generic-pdftex
7341 texlive-latex-capt-of
7343 texlive-latex-environ
7344 texlive-latex-eqparbox
7345 texlive-latex-etoolbox
7346 texlive-latex-expdlist
7347 texlive-latex-fancyhdr
7348 texlive-latex-fancyvrb
7349 texlive-latex-fncychap
7351 texlive-latex-framed
7352 texlive-latex-geometry
7353 texlive-latex-graphics
7354 texlive-latex-hyperref
7355 texlive-latex-mdwtools
7356 texlive-latex-multirow
7357 texlive-latex-needspace
7358 texlive-latex-oberdiek
7359 texlive-latex-parskip
7360 texlive-latex-preview
7361 texlive-latex-tabulary
7362 texlive-latex-threeparttable
7363 texlive-latex-titlesec
7364 texlive-latex-trimspaces
7366 texlive-latex-upquote
7368 texlive-latex-varwidth
7369 texlive-latex-wrapfig)))
7370 ("texinfo" ,texinfo)))))
7372 (define-public python-urwid
7374 (name "python-urwid")
7379 (uri (pypi-uri "urwid" version))
7382 "11ndnhxd41m13darf5s0c6bafdpkzq1l6mfb04wbzdmyc1hg75h8"))))
7383 (build-system python-build-system)
7384 (home-page "http://urwid.org")
7385 (synopsis "Console user interface library for Python")
7387 "Urwid is a curses-based UI/widget library for Python. It includes many
7388 features useful for text console applications.")
7389 (license license:lgpl2.1+)))
7391 (define-public python2-urwid
7392 (package-with-python2 python-urwid))
7394 (define-public python-urwidtrees
7396 (name "python-urwidtrees")
7401 ;; package author intends on distributing via github rather than pypi:
7402 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
7404 (url "https://github.com/pazz/urwidtrees")
7406 (file-name (git-file-name name version))
7409 "1n1kpidvkdnsqyb82vlvk78gmly96kh8351lqxn2pzgwwns6fml2"))))
7410 (build-system python-build-system)
7412 '(#:use-setuptools? #f
7413 #:tests? #f)) ; no tests
7414 (propagated-inputs `(("python-urwid" ,python-urwid)))
7415 (home-page "https://github.com/pazz/urwidtrees")
7416 (synopsis "Tree widgets for urwid")
7417 (description "Urwidtrees is a Widget Container API for the @code{urwid}
7418 toolkit. Use it to build trees of widgets.")
7419 (license license:gpl3+)))
7421 (define-public python2-urwidtrees
7422 (package-with-python2 python-urwidtrees))
7424 (define-public python-ua-parser
7426 (name "python-ua-parser")
7431 (uri (pypi-uri "ua-parser" version))
7434 "1jwdf58rhchjzzrad405pviv0iq24xa2xmmmdgcm2c8s6b4wzfwp"))))
7435 (build-system python-build-system)
7437 `(#:tests? #f)) ;no test suite in release
7439 `(("python-pyyaml" ,python-pyyaml)))
7440 (home-page "https://github.com/ua-parser/uap-python")
7441 (synopsis "User agent parser")
7443 "@code{ua-parser} is a Python port of Browserscope's user agent parser.")
7444 (license license:asl2.0)))
7446 (define-public python2-ua-parser
7447 (package-with-python2 python-ua-parser))
7449 (define-public python-user-agents
7451 (name "python-user-agents")
7456 (uri (pypi-uri "user-agents" version))
7459 "0fc00cd3j8dahq1zzn8pkgfgd7lq37bp2scmdma2n1c049vicgb4"))))
7460 (build-system python-build-system)
7462 `(#:tests? #f)) ;missing devices.json test file in release
7464 `(("python-ua-parser" ,python-ua-parser)))
7465 (home-page "https://github.com/selwin/python-user-agents")
7466 (synopsis "User Agent strings parsing library")
7468 "A library to identify devices (phones, tablets) and their capabilities by
7469 parsing (browser/HTTP) user agent strings.")
7470 (license license:expat)))
7472 (define-public python2-user-agents
7473 (package-with-python2 python-user-agents))
7475 (define-public python-dbus
7477 (name "python-dbus")
7482 (uri (string-append "https://dbus.freedesktop.org/releases/dbus-python/"
7483 "dbus-python-" version ".tar.gz"))
7485 (base32 "196m5rk3qzw5nkmgzjl7wmq0v7vpwfhh8bz2sapdi5f9hqfqy8qi"))))
7486 (build-system gnu-build-system)
7488 `(("pkg-config" ,pkg-config)))
7490 `(("python" ,python-wrapper)
7491 ("dbus-glib" ,dbus-glib)))
7492 (synopsis "Python bindings for D-bus")
7493 (description "python-dbus provides bindings for libdbus, the reference
7494 implementation of D-Bus.")
7495 (home-page "https://www.freedesktop.org/wiki/Software/DBusBindings/")
7496 (license license:expat)))
7498 (define-public python2-dbus
7499 (package (inherit python-dbus)
7500 (name "python2-dbus")
7501 (inputs `(("python" ,python-2)
7502 ,@(alist-delete "python"
7503 (package-inputs python-dbus)
7506 (define-public python-notify2
7508 (name "python-notify2")
7513 (uri (pypi-uri "notify2" version))
7516 "0z8rrv9rsg1r2qgh2dxj3dfj5xnki98kgi3w839kqby4a26i1yik"))))
7517 (build-system python-build-system)
7518 (arguments `(#:tests? #f)) ; tests depend on system state
7520 `(("python-dbus" ,python-dbus)))
7521 (home-page "https://bitbucket.org/takluyver/pynotify2")
7522 (synopsis "Python interface to D-Bus notifications")
7524 "Pynotify2 provides a Python interface for sending D-Bus notifications.
7525 It is a reimplementation of pynotify in pure Python, and an alternative to
7526 the GObject Introspection bindings to libnotify for non-GTK applications.")
7527 (license (list license:bsd-2
7528 license:lgpl2.1+))))
7530 (define-public python2-notify2
7531 (package-with-python2 python-notify2))
7533 ;; beautifulsoup4 has a totally different namespace than 3.x,
7534 ;; and pypi seems to put it under its own name, so I guess we should too
7535 (define-public python-beautifulsoup4
7537 (name "python-beautifulsoup4")
7542 (uri (pypi-uri "beautifulsoup4" version))
7545 "1mvzlw3pzbhsvl3z8784s5h7iiflm2hggiy1fxyrrxwnbc8lvk3k"))))
7546 (build-system python-build-system)
7549 (modify-phases %standard-phases
7550 ;; The Python 2 source is the definitive source of beautifulsoup4. We
7551 ;; must use this conversion script when building with Python 3. The
7552 ;; conversion script also runs the tests.
7553 ;; For more information, see the file 'convert-py3k' in the source
7556 (lambda _ (invoke "./convert-py3k"))))))
7558 `(("python-soupsieve" ,python-soupsieve)))
7560 "https://www.crummy.com/software/BeautifulSoup/bs4/")
7562 "Python screen-scraping library")
7564 "Beautiful Soup is a Python library designed for rapidly setting up
7565 screen-scraping projects. It offers Pythonic idioms for navigating,
7566 searching, and modifying a parse tree, providing a toolkit for
7567 dissecting a document and extracting what you need. It automatically
7568 converts incoming documents to Unicode and outgoing documents to UTF-8.")
7569 (license license:expat)
7570 (properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
7572 (define-public python2-beautifulsoup4
7574 (inherit (package-with-python2
7575 (strip-python2-variant python-beautifulsoup4)))
7576 (arguments `(#:python ,python-2))))
7578 (define-public python-soupsieve
7580 (name "python-soupsieve")
7585 (uri (pypi-uri "soupsieve" version))
7588 "0ch2rhvsbwfpvzm4kzy81rclbzr533yv83hzg1gx55byfa0w37d5"))))
7589 (build-system python-build-system)
7590 (arguments `(#:tests? #f))
7591 ;;XXX: 2 tests fail currently despite claming they were to be
7592 ;;skipped. Also, beautifulsoup4 may depend on this in the future, so we
7593 ;;don't want to create a circular dependency.
7594 (home-page "https://github.com/facelessuser/soupsieve")
7595 (synopsis "CSS selector library")
7597 "Soup Sieve is a CSS selector library designed to be used with Beautiful
7598 Soup 4. It aims to provide selecting, matching, and filtering using modern
7599 CSS selectors. Soup Sieve currently provides selectors from the CSS level 1
7600 specifications up through the latest CSS level 4 drafts and beyond (though
7601 some are not yet implemented).")
7602 (properties `((python2-variant . ,(delay python2-soupsieve))))
7603 (license license:expat)))
7605 ;; This is the last version that supports python-2
7606 (define-public python2-soupsieve
7607 (let ((base (package-with-python2 (strip-python2-variant python-soupsieve))))
7614 (uri (pypi-uri "soupsieve" version))
7617 "1apgqxngi1216h1cyvrvj9gy3wf45mh1lz4n76j26jf3k36bm1br"))))
7619 `(("python2-backports-functools-lru-cache"
7620 ,python2-backports-functools-lru-cache)
7621 ,@(package-propagated-inputs base))))))
7623 (define-public python-netifaces
7625 (name "python-netifaces")
7630 (uri (pypi-uri "netifaces" version))
7633 "1wxby874kcr3pp4ygzk5aiarbzhg1yi093d56s1qg4k2s7yrzvid"))))
7634 (build-system python-build-system)
7635 (home-page "https://github.com/al45tair/netifaces")
7637 "Python module for portable network interface information")
7639 "Netifaces is a Python module providing information on network
7640 interfaces in an easy and portable manner.")
7641 (license license:expat)))
7643 (define-public python2-netifaces
7644 (package-with-python2 python-netifaces))
7646 (define-public python-networkx
7648 (name "python-networkx")
7653 (uri (pypi-uri "networkx" version))
7655 (base32 "00hnii2lplig2s324k1hvi29pyfab6z7i22922f67jgv4da9ay3r"))))
7656 (build-system python-build-system)
7658 '(#:phases (modify-phases %standard-phases
7660 (lambda* (#:key tests? #:allow-other-keys)
7662 (invoke "pytest" "-vv" "--pyargs" "networkx")
7663 (format #t "test suite not run~%"))
7665 ;; python-decorator is needed at runtime.
7667 `(("python-decorator" ,python-decorator)))
7669 `(("python-pytest" ,python-pytest)))
7670 (home-page "https://networkx.github.io/")
7671 (synopsis "Python module for creating and manipulating graphs and networks")
7673 "NetworkX is a Python package for the creation, manipulation, and study
7674 of the structure, dynamics, and functions of complex networks.")
7675 (properties `((python2-variant . ,(delay python2-networkx))))
7676 (license license:bsd-3)))
7678 ;; NetworkX 2.2 is the last version with support for Python 2.
7679 (define-public python2-networkx
7680 (let ((base (package-with-python2 (strip-python2-variant python-networkx))))
7686 (uri (pypi-uri "networkx" version ".zip"))
7689 "12swxb15299v9vqjsq4z8rgh5sdhvpx497xwnhpnb0gynrx6zra5"))))
7691 `(#:python ,python-2))
7693 `(("python-nose" ,python2-nose)
7694 ("unzip" ,unzip))))))
7696 (define-public python-datrie
7698 (name "python-datrie")
7703 (uri (pypi-uri "datrie" version))
7706 "0pbn32flkrpjiwfcknmj6398qa81ba783kbcvwan3kym73v0hnsj"))))
7707 (build-system python-build-system)
7709 `(("python-cython" ,python-cython)
7710 ("python-hypothesis" ,python-hypothesis)
7711 ("python-pytest" ,python-pytest)
7712 ("python-pytest-runner" ,python-pytest-runner)))
7713 (home-page "https://github.com/kmike/datrie")
7714 (synopsis "Fast, efficiently stored trie for Python")
7716 "This package provides a fast, efficiently stored trie implementation for
7718 (license license:lgpl2.1+)))
7720 (define-public snakemake
7727 (uri (pypi-uri "snakemake" version))
7729 (base32 "1pnpvvn8n2a78cg360wz3ldmpqrsm2wzi0c0dmvki9fnsw6fxdas"))))
7730 (build-system python-build-system)
7732 ;; TODO: Package missing test dependencies.
7735 (modify-phases %standard-phases
7736 ;; For cluster execution Snakemake will call Python. Since there is
7737 ;; no suitable PYTHONPATH set, cluster execution will fail. We fix
7738 ;; this by calling the snakemake wrapper instead.
7739 (add-after 'unpack 'call-wrapper-not-wrapped-snakemake
7740 (lambda* (#:key outputs #:allow-other-keys)
7741 (substitute* "snakemake/executors.py"
7742 (("\\{sys.executable\\} -m snakemake")
7743 (string-append (assoc-ref outputs "out")
7747 `(("python-appdirs" ,python-appdirs)
7748 ("python-configargparse" ,python-configargparse)
7749 ("python-datrie" ,python-datrie)
7750 ("python-docutils" ,python-docutils)
7751 ("python-gitpython" ,python-gitpython)
7752 ("python-jinja2" ,python-jinja2)
7753 ("python-jsonschema" ,python-jsonschema)
7754 ("python-networkx" ,python-networkx)
7755 ("python-psutil" ,python-psutil)
7756 ("python-pyyaml" ,python-pyyaml)
7757 ("python-ratelimiter" ,python-ratelimiter)
7758 ("python-requests" ,python-requests)
7759 ("python-wrapt" ,python-wrapt)))
7760 (home-page "https://snakemake.readthedocs.io")
7761 (synopsis "Python-based execution environment for make-like workflows")
7763 "Snakemake aims to reduce the complexity of creating workflows by
7764 providing a clean and modern domain specific specification language (DSL) in
7765 Python style, together with a fast and comfortable execution environment.")
7766 (license license:expat)))
7768 (define-public python-pyqrcode
7770 (name "python-pyqrcode")
7775 (uri (pypi-uri "PyQRCode" version))
7778 "1m9ln8k9v7dfbh1i81225hx5mdsh8mpf9g7r4wpbfmiyfcs7dgzx"))))
7779 (build-system python-build-system)
7781 "https://github.com/mnooner256/pyqrcode")
7782 (synopsis "QR code generator")
7784 "Pyqrcode is a QR code generator written purely in Python with
7785 SVG, EPS, PNG and terminal output.")
7786 (license license:bsd-3)))
7788 (define-public python-seaborn
7790 (name "python-seaborn")
7795 (uri (pypi-uri "seaborn" version))
7797 (base32 "1ffbms4kllihfycf6j57dziq4imgdjw03sqgifh5wzcd2d743zjr"))))
7798 (build-system python-build-system)
7801 (modify-phases %standard-phases
7802 (add-before 'check 'start-xserver
7803 (lambda* (#:key inputs #:allow-other-keys)
7804 (let ((xorg-server (assoc-ref inputs "xorg-server")))
7805 ;; There must be a running X server and make check doesn't
7806 ;; start one. Therefore we must do it.
7807 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
7808 (setenv "DISPLAY" ":1")
7810 (replace 'check (lambda _ (invoke "pytest" "seaborn") #t)))))
7812 `(("python-pandas" ,python-pandas)
7813 ("python-matplotlib" ,python-matplotlib)
7814 ("python-numpy" ,python-numpy)
7815 ("python-scipy" ,python-scipy)))
7817 `(("python-pytest" ,python-pytest)
7818 ("xorg-server" ,xorg-server-for-tests)))
7819 (home-page "https://seaborn.pydata.org/")
7820 (synopsis "Statistical data visualization")
7822 "Seaborn is a library for making attractive and informative statistical
7823 graphics in Python. It is built on top of matplotlib and tightly integrated
7824 with the PyData stack, including support for numpy and pandas data structures
7825 and statistical routines from scipy and statsmodels.")
7826 (properties `((python2-variant . ,(delay python2-seaborn))))
7827 (license license:bsd-3)))
7829 ;; 0.9.1 is the last release with support for Python 2.
7830 (define-public python2-seaborn
7831 (let ((base (package-with-python2 (strip-python2-variant python-seaborn))))
7837 (uri (pypi-uri "seaborn" version))
7840 "1bjnshjz4d6z3vrwfwall1a3yh8h3a1h47c3fg7458x9426alcys")))))))
7842 (define-public python-mpmath
7844 (name "python-mpmath")
7848 (uri (pypi-uri "mpmath" version))
7849 (file-name (git-file-name name version))
7852 "1xlrcja213jpfhw25q1jl5pl10w1a2cc68x1c4mkicxsbzhan5zw"))))
7853 (build-system python-build-system)
7855 `(("python-pytest" ,python-pytest)))
7858 (modify-phases %standard-phases
7861 (invoke "python" "mpmath/tests/runtests.py" "-local"))))))
7862 (home-page "http://mpmath.org")
7863 (synopsis "Arbitrary-precision floating-point arithmetic in python")
7865 "@code{mpmath} can be used as an arbitrary-precision substitute for
7866 Python's float/complex types and math/cmath modules, but also does much
7867 more advanced mathematics.")
7868 (license license:bsd-3)))
7870 (define-public python2-mpmath
7871 (package-with-python2 python-mpmath))
7873 (define-public python-bigfloat
7875 (name "python-bigfloat")
7880 (uri (pypi-uri "bigfloat" version))
7882 (base32 "0xd7q4l7v0f463diznjv4k9wlaks80pn9drdqmfifi7zx8qvybi6"))))
7883 (build-system python-build-system)
7886 (home-page "https://github.com/mdickinson/bigfloat")
7887 (synopsis "Arbitrary precision floating-point arithmetic for Python")
7889 "This package provides a Python interface to the MPFR library for
7890 multiprecision arithmetic.")
7891 (license license:lgpl3+)))
7893 (define-public python2-bigfloat
7894 (package-with-python2 python-bigfloat))
7896 (define-public python-sympy
7898 (name "python-sympy")
7903 (uri (pypi-uri "sympy" version))
7905 (base32 "0247skhkxanczpqqdz6n9k1axgpwl665b25hyn9vgr060p4dryhw"))))
7906 (build-system python-build-system)
7909 (modify-phases %standard-phases
7911 (lambda* (#:key outputs #:allow-other-keys)
7913 (or (which "python3") (which "python"))
7914 "-c" "import sympy; sympy.test(\"/core\")"))))))
7916 `(("python-mpmath" ,python-mpmath)))
7917 (home-page "https://www.sympy.org/")
7918 (synopsis "Python library for symbolic mathematics")
7920 "SymPy is a Python library for symbolic mathematics. It aims to become a
7921 full-featured computer algebra system (CAS) while keeping the code as simple
7922 as possible in order to be comprehensible and easily extensible.")
7923 (license license:bsd-3)))
7925 (define-public python2-sympy
7927 (inherit (package-with-python2 python-sympy))
7928 (version "1.5.1") ; last release for python2
7932 (uri (pypi-uri "sympy" version))
7934 (base32 "0zjfbxlkazzh9z22gf62azrkipb2xw7mpzjz3wl1az9893bh2yfp"))))))
7936 (define-public python-q
7943 (uri (pypi-uri "q" version))
7946 "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy"))))
7947 (build-system python-build-system)
7948 (home-page "https://github.com/zestyping/q")
7949 (synopsis "Quick-and-dirty debugging output for tired programmers")
7951 "q is a Python module for \"print\" style of debugging Python code. It
7952 provides convenient short API for print out of values, tracebacks, and
7953 falling into the Python interpreter.")
7954 (license license:asl2.0)))
7956 (define-public python2-q
7957 (package-with-python2 python-q))
7959 (define-public python-xlib
7961 (name "python-xlib")
7967 (url "https://github.com/python-xlib/python-xlib")
7969 (file-name (git-file-name name version))
7971 (base32 "09kimic8rhprx3q8nzalc4aggg42ahqm4v5qcj8dm68yvxfdk986"))))
7972 (build-system python-build-system)
7975 (modify-phases %standard-phases
7976 (add-before 'check 'start-xserver
7977 (lambda* (#:key inputs #:allow-other-keys)
7978 (let ((xorg-server (assoc-ref inputs "xorg-server")))
7979 ;; There must be a running X server and make check doesn't
7980 ;; start one. Therefore we must do it.
7981 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
7982 (setenv "DISPLAY" ":1")
7985 `(("python-mock" ,python-mock)
7986 ("python-setuptools-scm" ,python-setuptools-scm)
7987 ("python-six" ,python-six)
7988 ("xorg-server" ,xorg-server)))
7989 (home-page "https://github.com/python-xlib/python-xlib")
7990 (synopsis "Python X11 client library")
7992 "The Python X Library is intended to be a fully functional
7993 X client library for Python programs. It is useful to implement
7994 low-level X clients. It is written entirely in Python.")
7995 (license license:gpl2+)))
7997 (define-public python2-xlib
7998 (package-with-python2 python-xlib))
8000 (define-public python-singledispatch
8002 (name "python-singledispatch")
8007 (uri (pypi-uri "singledispatch" version))
8010 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
8011 (build-system python-build-system)
8013 `(("python-six" ,python-six))) ; required for conversion, not at run-time
8015 "https://docs.python.org/3/library/functools.html#functools.singledispatch")
8016 (synopsis "Backport of singledispatch feature from Python 3.4")
8018 "This library brings functools.singledispatch from Python 3.4 to Python
8020 (license license:expat)))
8022 (define-public python2-singledispatch
8023 (package-with-python2 python-singledispatch))
8025 ;; the python- version can be removed with python-3.5
8026 (define-public python-backports-abc
8028 (name "python-backports-abc")
8033 (uri (pypi-uri "backports_abc" version))
8036 "1pkv8d1zxj5f9i227dxbjczncbv7ks7ywnjwyxfjagm02i2yafq3"))))
8037 (build-system python-build-system)
8038 (home-page "https://github.com/cython/backports_abc")
8039 (synopsis "Backport of additions to the 'collections.abc' module")
8041 "Python-backports-abc provides a backport of additions to the
8042 @code{collections.abc} module in Python-3.5.")
8043 (license license:psfl)))
8045 (define-public python2-backports-abc
8046 (package-with-python2 python-backports-abc))
8048 (define-public python-backports-csv
8050 (name "python-backports-csv")
8055 (uri (pypi-uri "backports.csv" version))
8057 (base32 "0vdx5jlhs91iizc8j8l8811nqprwvdx39pgkdc82w2qkfgzxyxqj"))))
8058 (build-system python-build-system)
8059 (home-page "https://github.com/ryanhiebert/backports.csv")
8060 (synopsis "Backport of Python 3's csv module for Python 2")
8062 "Provides a backport of Python 3's @code{csv} module for parsing
8063 comma separated values. The API of the @code{csv} module in Python 2
8064 is drastically different from the @code{csv} module in Python 3.
8065 This is due, for the most part, to the difference between str in
8066 Python 2 and Python 3.")
8067 (license license:psfl)))
8069 (define-public python2-backports-csv
8070 (package-with-python2 python-backports-csv))
8072 (define-public python2-backports-shutil-get-terminal-size
8074 (name "python2-backports-shutil-get-terminal-size")
8079 (uri (pypi-uri "backports.shutil_get_terminal_size" version))
8082 "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki"))))
8083 (build-system python-build-system)
8085 `(#:python ,python-2
8087 (modify-phases %standard-phases
8090 (setenv "PYTHONPATH" (string-append "./build/lib:"
8091 (getenv "PYTHONPATH")))
8092 (invoke "py.test" "-v"))))))
8094 `(("python2-pytest" ,python2-pytest)))
8095 (home-page "https://github.com/chrippa/backports.shutil_get_terminal_size")
8096 (synopsis "Backport of Python 3.3's @code{shutil.get_terminal_size}")
8098 "This package provides a backport of the @code{get_terminal_size
8099 function} from Python 3.3's @code{shutil}.
8100 Unlike the original version it is written in pure Python rather than C,
8101 so it might be a tiny bit slower.")
8102 (license license:expat)))
8104 (define-public python-waf
8110 (uri (string-append "https://waf.io/"
8111 "waf-" version ".tar.bz2"))
8114 "19dvqbsvxz7ch03dh1v0znklrwxlz6yzddc3k9smzrrgny4jch6q"))))
8115 (build-system python-build-system)
8118 (modify-phases %standard-phases
8121 ;; XXX: Find a way to add all extra tools.
8122 (let ((tools '("gccdeps"
8123 "clang_compilation_database")))
8124 (invoke "python" "waf-light" "configure" "build"
8125 (string-append "--tools="
8126 (string-join tools ","))))))
8129 (invoke "python" "waf" "--version")))
8131 (lambda* (#:key outputs #:allow-other-keys)
8132 (let ((out (assoc-ref outputs "out")))
8133 (install-file "waf" (string-append out "/bin")))
8135 ;; waf breaks when it is wrapped.
8137 (home-page "https://waf.io/")
8138 (synopsis "Python-based build system")
8140 "Waf is a Python-based framework for configuring, compiling and installing
8142 (license license:bsd-3)))
8144 (define-public python2-waf
8145 (package-with-python2 python-waf))
8147 (define-public python-pyzmq
8149 (name "python-pyzmq")
8154 (uri (pypi-uri "pyzmq" version))
8156 (base32 "1pyxxrz60f88ffm0y6vpbx3q8jcr9ybz8fcilihwzwhh36n84ax7"))))
8157 (build-system python-build-system)
8160 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
8161 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
8162 ;; --inplace' for 'python setup.py test' to work.
8165 `(("zeromq" ,zeromq)))
8167 `(("pkg-config" ,pkg-config)
8168 ("python-nose" ,python-nose)))
8169 (home-page "https://github.com/zeromq/pyzmq")
8170 (synopsis "Python bindings for 0MQ")
8172 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
8173 (license license:bsd-4)))
8175 (define-public python2-pyzmq
8176 (package-with-python2 python-pyzmq))
8178 (define-public python-pep8
8179 ;; This package has been renamed to ‘pycodestyle’ and is no longer updated.
8180 ;; Its last release (1.7.1) adds only a scary warning to this effect, breaking
8181 ;; some dependents' test suites, and nothing more.
8183 (name "python-pep8")
8188 (uri (pypi-uri "pep8" version))
8191 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))
8192 (patches (search-patches "python-pep8-stdlib-tokenize-compat.patch"))))
8193 (build-system python-build-system)
8194 (home-page "https://pep8.readthedocs.org/")
8195 (synopsis "Python style guide checker")
8197 "This tools checks Python code against some of the style conventions in
8199 (license license:expat)))
8201 (define-public python2-pep8
8202 (package-with-python2 python-pep8))
8204 (define-public python-pep517
8206 (name "python-pep517")
8211 (uri (pypi-uri "pep517" version))
8214 "17m2bcabx3sr5wjalgzppfx5xahqrwm12zq58h68mm482b7rjqcf"))))
8215 (build-system python-build-system)
8218 (modify-phases %standard-phases
8220 (lambda* (#:key tests? #:allow-other-keys)
8221 (delete-file "pytest.ini")
8222 ;; This test tries to connect to the internet
8223 (delete-file "tests/test_meta.py")
8228 `(("python-mock" ,python-mock)
8229 ("python-pytest" ,python-pytest)
8230 ("python-testpath" ,python-testpath)))
8232 `(("python-toml" ,python-toml)
8233 ("python-wheel" ,python-wheel)))
8234 (home-page "https://github.com/pypa/pep517")
8235 (synopsis "Wrappers to build Python packages using PEP 517 hooks")
8237 "Wrappers to build Python packages using PEP 517 hooks.")
8238 (properties `((python2-variant . ,(delay python2-pep517))))
8239 (license license:expat)))
8241 ;; Skip the tests so we don't create a cyclical dependency with pytest.
8242 (define-public python2-pep517
8243 (let ((base (package-with-python2
8244 (strip-python2-variant python-pep517))))
8247 (name "python2-pep517")
8250 ,@(package-arguments base)))
8251 (native-inputs `()))))
8253 (define-public python-pyflakes
8255 (name "python-pyflakes")
8260 (uri (pypi-uri "pyflakes" version))
8263 "1j3zqbiwkyicvww499bblq33x0bjpzdrxajhaysr7sk7x5gdgcim"))))
8264 (build-system python-build-system)
8266 "https://github.com/pyflakes/pyflakes")
8267 (synopsis "Passive checker of Python programs")
8269 "Pyflakes statically checks Python source code for common errors.")
8270 (license license:expat)))
8272 (define-public python2-pyflakes
8273 (package-with-python2 python-pyflakes))
8275 (define-public python-mccabe
8277 (name "python-mccabe")
8282 (uri (pypi-uri "mccabe" version))
8285 "07w3p1qm44hgxf3vvwz84kswpsx6s7kvaibzrsx5dzm0hli1i3fx"))))
8286 (build-system python-build-system)
8288 `(("python-pytest" ,python-pytest-bootstrap)
8289 ("python-pytest-runner" ,python-pytest-runner)))
8290 (home-page "https://github.com/flintwork/mccabe")
8291 (synopsis "McCabe checker, plugin for flake8")
8293 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
8294 complexity of Python source code.")
8295 (license license:expat)))
8297 (define-public python2-mccabe
8298 (package-with-python2 python-mccabe))
8300 (define-public python-flake8
8302 (name "python-flake8")
8306 (uri (pypi-uri "flake8" version))
8309 "0fvcrsbyzjpcli8ldbpsdbpmf238nkvwc1dy4hy82lf63rvfinma"))))
8310 (build-system python-build-system)
8313 (modify-phases %standard-phases
8315 (add-after 'install 'check
8316 (lambda* (#:key inputs outputs #:allow-other-keys)
8317 (add-installed-pythonpath inputs outputs)
8318 (invoke "pytest" "-v")
8321 `(("python-pycodestyle" ,python-pycodestyle)
8322 ("python-entrypoints" ,python-entrypoints)
8323 ("python-pyflakes" ,python-pyflakes)
8324 ("python-mccabe" ,python-mccabe)))
8326 `(("python-mock" ,python-mock)
8327 ("python-pytest" ,python-pytest-bootstrap)))
8328 (home-page "https://gitlab.com/pycqa/flake8")
8330 "The modular source code checker: pep8, pyflakes and co")
8332 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
8333 (properties `((python2-variant . ,(delay python2-flake8))))
8334 (license license:expat)))
8336 (define-public python2-flake8
8337 (let ((base (package-with-python2 (strip-python2-variant python-flake8))))
8338 (package (inherit base)
8340 `(("python2-configparser" ,python2-configparser)
8341 ("python2-enum34" ,python2-enum34)
8342 ("python2-functools32" ,python2-functools32)
8343 ("python2-typing" ,python2-typing)
8344 ,@(package-propagated-inputs base))))))
8346 (define-public python-flake8-bugbear
8348 (name "python-flake8-bugbear")
8353 (uri (pypi-uri "flake8-bugbear" version))
8356 "0qiihb242fygzyrfynq913ak7cdmx8mcac9c0zk3y5gv16qf80mx"))))
8357 (build-system python-build-system)
8360 (modify-phases %standard-phases
8361 (add-before 'check 'disable-test
8363 ;; This test fails on slow computers.
8364 (substitute* "tests/test_bugbear.py"
8365 (("def test_does_not_crash_on_any_valid_code")
8366 "def _test_does_not_crash_on_any_valid_code")))))))
8368 `(("python-hypothesis" ,python-hypothesis)
8369 ("python-hypothesmith" ,python-hypothesmith)))
8371 `(("python-attrs" ,python-attrs)
8372 ("python-flake8" ,python-flake8)))
8373 (home-page "https://github.com/PyCQA/flake8-bugbear")
8375 "Flake8 plugin for finding likely bugs and design problems in your program")
8377 "This package contains a plugin for Flake8 finding likely bugs and
8378 design problems in your program. It contains warnings that don't belong
8379 in pyflakes and pycodestyle.")
8380 (license license:expat)))
8382 (define-public python-flake8-polyfill
8384 (name "python-flake8-polyfill")
8389 (uri (pypi-uri "flake8-polyfill" version))
8392 "1nlf1mkqw856vi6782qcglqhaacb23khk9wkcgn55npnjxshhjz4"))))
8393 (build-system python-build-system)
8396 (modify-phases %standard-phases
8399 ;; Be compatible with Pytest 4:
8400 ;; https://gitlab.com/pycqa/flake8-polyfill/merge_requests/7
8401 (substitute* "setup.cfg"
8405 (setenv "PYTHONPATH"
8406 (string-append (getcwd) "/build/lib:"
8407 (getenv "PYTHONPATH")))
8408 (invoke "py.test" "-v"))))))
8410 `(("python-flake8" ,python-flake8)
8411 ("python-mock" ,python-mock)
8412 ("python-pep8" ,python-pep8)
8413 ("python-pycodestyle" ,python-pycodestyle)
8414 ("python-pytest" ,python-pytest)))
8415 (home-page "https://gitlab.com/pycqa/flake8-polyfill")
8416 (synopsis "Polyfill package for Flake8 plugins")
8418 "This package that provides some compatibility helpers for Flake8
8419 plugins that intend to support Flake8 2.x and 3.x simultaneously.")
8420 (license license:expat)))
8422 (define-public python2-flake8-polyfill
8423 (package-with-python2 python-flake8-polyfill))
8425 (define-public python-flake8-pyi
8427 (name "python-flake8-pyi")
8432 (uri (pypi-uri "flake8-pyi" version))
8435 "1zpq4s9kp8w95pccmhhyyx1ff2zhnidcf1zb3xs46lzcx9plvnzk"))))
8436 (build-system python-build-system)
8438 `(("python-attrs" ,python-attrs)
8439 ("python-flake8" ,python-flake8)
8440 ("python-pyflakes" ,python-pyflakes)))
8441 (home-page "https://github.com/ambv/flake8-pyi")
8443 "Flake8 plugin that provides specializations for type hinting stub files")
8445 "This package contains a plugin that provides specializations for
8446 type hinting stub files, especially interesting for linting typeshed. It
8447 adds the @file{.pyi} extension to the default value of the @code{--filename}
8448 command-line argument to Flake8. This means stubs are linted by default with
8449 this plugin enabled, without needing to explicitly list every file. It
8450 modifies PyFlakes runs for @file{.pyi} files to defer checking type annotation
8451 expressions after the entire file has been read. This enables support for
8452 first-class forward references that stub files use.")
8453 (license license:expat)))
8455 (define-public python-flake8-pie
8457 (name "python-flake8-pie")
8462 (uri (pypi-uri "flake8-pie" version))
8464 (base32 "0kgipl5gljlp7aa7ykx15pswpzkd0d0qiznihb2z0d9a73181dyd"))))
8465 (build-system python-build-system)
8466 (home-page "https://github.com/sbdchd/flake8-pie")
8467 (synopsis "Flake8 extension that implements lints")
8469 "This package provides a flake8 extension that implements miscellaneous
8471 (license license:bsd-2)))
8473 (define-public python-autoflake
8475 (name "python-autoflake")
8480 (uri (pypi-uri "autoflake" version))
8482 (base32 "0nzr057dbmgprp4a52ymafdkdd5zp2wcqf42913xc7hhvvdbj338"))))
8483 (build-system python-build-system)
8485 `(("python-pyflakes" ,python-pyflakes)))
8486 (home-page "https://github.com/myint/autoflake")
8487 (synopsis "Removes unused imports and unused variables")
8489 "@code{autoflake} removes unused imports and unused variables from Python
8490 code as reported by @code{pyflakes}.
8492 By default, it only removes unused imports for modules that are part of the
8493 standard library. Removal of unused variables is also disabled by default.
8494 It also removes useless @code{pass} statements.")
8495 (license license:expat)))
8497 (define-public python-mistune
8499 (name "python-mistune")
8504 (uri (pypi-uri "mistune" version))
8507 "0vkmsh0x480rni51lhyvigfdf06b9247z868pk3bal1wnnfl58sr"))))
8508 (build-system python-build-system)
8510 `(("python-nose" ,python-nose)
8511 ("python-cython" ,python-cython)))
8512 (home-page "https://github.com/lepture/mistune")
8513 (synopsis "Markdown parser in pure Python")
8514 (description "This package provides a fast markdown parser in pure
8516 (license license:bsd-3)))
8518 (define-public python2-mistune
8519 (package-with-python2 python-mistune))
8521 (define-public python-markdown
8523 (name "python-markdown")
8528 (uri (pypi-uri "Markdown" version))
8531 "00k91gwhxnm8jdnm2v5xjz9irj6dbi7afywz2hpakqdbxs1ydzlh"))))
8532 (build-system python-build-system)
8534 `(("python-nose" ,python-nose)
8535 ("python-pyyaml" ,python-pyyaml)))
8536 (home-page "https://python-markdown.github.io/")
8537 (synopsis "Python implementation of Markdown")
8539 "This package provides a Python implementation of John Gruber's
8540 Markdown. The library features international input, various Markdown
8541 extensions, and several HTML output formats. A command line wrapper
8542 markdown_py is also provided to convert Markdown files to HTML.")
8543 (properties `((python2-variant . ,(delay python2-markdown))))
8544 (license license:bsd-3)))
8546 ;; Markdown 3.2 dropped support for Python 2.
8547 (define-public python2-markdown
8548 (let ((base (package-with-python2 (strip-python2-variant python-markdown))))
8554 (uri (pypi-uri "Markdown" version))
8557 "0yhylk4ffqqs7x086fav4pnfsl1021v7lghznzkififprmmqfl1f")))))))
8559 (define-public python-ptyprocess
8561 (name "python-ptyprocess")
8566 (uri (pypi-uri "ptyprocess" version))
8569 "0ra31k10v3629xq0kdn8lwmfbi97anmk48r03yvh7mks0kq96hg6"))))
8570 (build-system python-build-system)
8572 `(("python-nose" ,python-nose)))
8575 (modify-phases %standard-phases
8577 (lambda _ (invoke "nosetests"))))))
8578 (home-page "https://github.com/pexpect/ptyprocess")
8579 (synopsis "Run a subprocess in a pseudo terminal")
8581 "This package provides a Python library used to launch a subprocess in a
8582 pseudo terminal (pty), and interact with both the process and its pty.")
8583 (license license:isc)))
8585 (define-public python2-ptyprocess
8586 (package-with-python2 python-ptyprocess))
8588 (define-public python-cram
8590 (name "python-cram")
8592 (home-page "https://bitheap.org/cram/")
8595 (uri (list (string-append home-page "cram-"
8597 (pypi-uri "cram" version)))
8600 "0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx"))))
8603 (modify-phases %standard-phases
8604 (add-after 'unpack 'patch-source
8606 (substitute* (find-files "cram" ".*\\.py$")
8607 ;; Replace default shell path.
8608 (("/bin/sh") (which "sh")))
8609 (substitute* (find-files "tests" ".*\\.t$")
8611 (("/bin/bash") (which "bash"))
8612 (("/bin/sh") (which "sh")))
8613 (substitute* "cram/_test.py"
8614 ;; This hack works around a bug triggered by substituting
8615 ;; the /bin/sh paths. "tests/usage.t" compares the output of
8616 ;; "cram -h", which breaks the output at 80 characters. This
8617 ;; causes the line showing the default shell to break into two
8618 ;; lines, but the test expects a single line...
8619 (("env\\['COLUMNS'\\] = '80'")
8620 "env['COLUMNS'] = '160'"))
8622 (substitute* "Makefile"
8623 ;; Recent versions of python-coverage have caused the test
8624 ;; coverage to decrease (as of version 0.7). Allow that.
8625 (("--fail-under=100")
8630 ;; The test phase uses the built library and executable.
8631 (lambda* (#:key inputs outputs #:allow-other-keys)
8632 (add-installed-pythonpath inputs outputs)
8633 (setenv "PATH" (string-append (getenv "PATH") ":"
8634 (assoc-ref outputs "out") "/bin"))
8635 (invoke "make" "test"))))))
8636 (build-system python-build-system)
8638 `(("python-coverage" ,python-coverage)
8640 (synopsis "Simple testing framework for command line applications")
8642 "Cram is a functional testing framework for command line applications.
8643 Cram tests look like snippets of interactive shell sessions. Cram runs each
8644 command and compares the command output in the test with the command’s actual
8646 (license license:gpl2+)))
8648 (define-public python2-cram
8649 (package-with-python2 python-cram))
8651 (define-public python-crashtest
8653 (name "python-crashtest")
8658 (uri (pypi-uri "crashtest" version))
8660 (base32 "1p9p7mn8x2j9psc4jxab98897v4i9s4fliyfw8rp8v4bx1n7pjj2"))))
8661 (build-system python-build-system)
8662 (home-page "https://github.com/sdispater/crashtest")
8663 (synopsis "Manage Python errors with ease")
8665 "Python library that makes exceptions handling and inspection easier.")
8666 (license license:expat)))
8668 (define-public python-straight-plugin
8670 (name "python-straight-plugin")
8675 (uri (pypi-uri "straight.plugin" version))
8678 "069pjll4383p4kkgvcc40hgyvf79j2wdbpgwz77yigzxksh1gj62"))))
8679 (build-system python-build-system)
8680 (home-page "https://github.com/ironfroggy/straight.plugin")
8681 (synopsis "Simple namespaced plugin facility")
8682 (description "Straight Plugin provides a type of plugin you can create from
8683 almost any existing Python modules, and an easy way for outside developers to
8684 add functionality and customization to your projects with their own plugins.")
8685 (license license:expat)))
8687 (define-public python2-straight-plugin
8688 (package-with-python2 python-straight-plugin))
8690 (define-public python-fonttools
8692 (name "python-fonttools")
8696 (uri (pypi-uri "fonttools" version ".zip"))
8699 "1mq9kdzhcsp96bhv7smnrpdg1s4z5wh70bsl99c0jmcrahqdisqq"))))
8700 (build-system python-build-system)
8703 ("python-pytest" ,python-pytest)
8704 ("python-pytest-runner" ,python-pytest-runner)))
8705 (home-page "https://github.com/fonttools/fonttools")
8706 (synopsis "Tools to manipulate font files")
8708 "FontTools/TTX is a library to manipulate font files from Python. It
8709 supports reading and writing of TrueType/OpenType fonts, reading and writing
8710 of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
8711 also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
8712 from an XML-based format.")
8713 (license license:expat)))
8715 ;; Fonttools 4.x dropped support for Python 2, so stick with 3.x here.
8716 (define-public python2-fonttools
8717 (let ((base (package-with-python2 (strip-python2-variant python-fonttools))))
8723 (uri (pypi-uri "fonttools" version ".zip"))
8726 "0v6399g755f2hn1ry62i5b6gdinf2fpx2966v3bxh6bjw1accb5p")))))))
8728 (define-public python-ly
8735 (uri (pypi-uri name version))
8738 "0x98dv7p8mg26p4816yy8hz4f34zf6hpnnfmr56msgh9jnsm2qfl"))))
8739 (build-system python-build-system)
8741 ;; FIXME: Some tests need network access.
8743 (synopsis "Tool and library for manipulating LilyPond files")
8744 (description "This package provides a Python library to parse, manipulate
8745 or create documents in LilyPond format. A command line program ly is also
8746 provided that can be used to do various manipulations with LilyPond files.")
8747 (home-page "https://pypi.org/project/python-ly/")
8748 (license license:gpl2+)))
8750 (define-public python-appdirs
8752 (name "python-appdirs")
8757 (uri (pypi-uri "appdirs" version))
8760 "14id6wxi12lgyw0mg3bcfnf888ad07jz9yj46gfzhn186z8rcn4y"))))
8761 (build-system python-build-system)
8762 (home-page "https://github.com/ActiveState/appdirs")
8764 "Determine platform-specific dirs, e.g. a \"user data dir\"")
8766 "This module provides a portable way of finding out where user data
8767 should be stored on various operating systems.")
8768 (license license:expat)))
8770 (define-public python2-appdirs
8771 (package-with-python2 python-appdirs))
8773 (define-public python-gorilla
8775 (name "python-gorilla")
8779 (uri (pypi-uri "gorilla" version))
8782 "0b40blcp6fih4nvqbilra4qw1dfccv1ahjmr41ac4d9rjadqkcpy"))))
8783 (build-system python-build-system)
8784 (home-page "https://github.com/christophercrouzet/gorilla")
8785 (synopsis "Convenient monkey patching with Python")
8787 "Gorilla is a Python library that provides a convenient approach to
8788 monkey patching. Monkey patching is the process of modifying module and
8789 class attributes at runtime with the purpose of replacing or extending
8791 (license license:expat)))
8793 (define-public python-llfuse
8795 (name "python-llfuse")
8799 (uri (pypi-uri "llfuse" version))
8802 "1g2cdhdqrb6m7655qp61pn61pwj1ql61cdzhr2jvl3w4i8877ddr"))))
8803 (build-system python-build-system)
8808 `(("pkg-config" ,pkg-config)))
8809 (synopsis "Python bindings for FUSE")
8811 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
8812 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
8813 (license license:lgpl2.0+)
8814 (properties `((python2-variant . ,(delay python2-llfuse))))))
8816 (define-public python2-llfuse
8817 (package (inherit (package-with-python2
8818 (strip-python2-variant python-llfuse)))
8819 (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2)))))
8821 (define-public python-msgpack
8823 (name "python-msgpack")
8827 (uri (pypi-uri "msgpack" version))
8830 "1h5mxh84rcw04dvxy1qbfn2hisavfqgilh9k09rgyjhd936dad4m"))))
8831 (build-system python-build-system)
8833 `(#:modules ((guix build utils)
8834 (guix build python-build-system)
8839 (modify-phases %standard-phases
8842 (let ((cwd (getcwd)))
8843 (setenv "PYTHONPATH"
8844 (string-append cwd "/build/"
8845 (find (cut string-prefix? "lib" <>)
8846 (scandir (string-append cwd "/build")))
8848 (getenv "PYTHONPATH")))
8849 (invoke "pytest" "-v" "test")))))))
8851 `(("python-pytest" ,python-pytest)))
8852 (synopsis "MessagePack (de)serializer")
8853 (description "MessagePack is a fast, compact binary serialization format,
8854 suitable for similar data to JSON. This package provides CPython bindings for
8855 reading and writing MessagePack data.")
8856 (home-page "https://pypi.org/project/msgpack/")
8857 (license license:asl2.0)))
8859 ;; This msgpack library's name changed from "python-msgpack" to "msgpack" with
8860 ;; release 0.5. Some packages like borg still call it by the old name for now.
8861 ;; <https://bugs.gnu.org/30662>
8862 (define-public python-msgpack-transitional
8864 (inherit python-msgpack)
8865 (name "python-msgpack-transitional")
8869 (uri (pypi-uri "msgpack" version))
8872 "1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f"))))
8874 (substitute-keyword-arguments (package-arguments python-msgpack)
8876 `(modify-phases ,phases
8877 (add-after 'unpack 'configure-transitional
8879 ;; Keep using the old name.
8880 (substitute* "setup.py"
8881 (("TRANSITIONAL = False")
8882 "TRANSITIONAL = 1"))
8885 (define-public python2-msgpack
8886 (package-with-python2 python-msgpack))
8888 (define-public python-netaddr
8890 (name "python-netaddr")
8895 (uri (pypi-uri "netaddr" version))
8898 "1zdfadvpq4lmcqzr383gywxn4xyn355kj1n3lk9q2l03vmyfrbiq"))))
8899 (build-system python-build-system)
8900 (arguments `(#:tests? #f)) ;; No tests.
8901 (home-page "https://github.com/drkjam/netaddr/")
8902 (synopsis "Pythonic manipulation of network addresses")
8904 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
8905 and MAC network addresses.")
8906 (license license:bsd-3)))
8908 (define-public python2-netaddr
8909 (package-with-python2 python-netaddr))
8911 (define-public python2-pyroute2
8913 (name "python2-pyroute2")
8918 (uri (pypi-uri "pyroute2" version))
8921 "1gmz4r1w0yzj6fjjypnalmfyy0lnfznydyn62gi3wk50j5hhxbny"))))
8922 (build-system python-build-system)
8924 `(#:python ,python-2)) ;Python 3.x is not supported
8925 (home-page "https://github.com/svinota/pyroute2")
8926 (synopsis "Python netlink library")
8928 "Pyroute2 is a pure Python netlink library with minimal dependencies.
8929 Supported netlink families and protocols include:
8931 @item rtnl, network settings - addresses, routes, traffic controls
8932 @item nfnetlink - netfilter API: ipset, nftables, ...
8933 @item ipq - simplest userspace packet filtering, iptables QUEUE target
8934 @item devlink - manage and monitor devlink-enabled hardware
8935 @item generic - generic netlink families
8937 @item nl80211 - wireless functions API (basic support)
8938 @item taskstats - extended process statistics
8939 @item acpi_events - ACPI events monitoring
8940 @item thermal_events - thermal events monitoring
8941 @item VFS_DQUOT - disk quota events monitoring
8944 (license license:gpl2+)))
8946 (define-public python-wrapt
8948 (name "python-wrapt")
8953 (uri (pypi-uri "wrapt" version))
8956 "1q81762dgsgrd12f8qc39zk8s5wll3m5xc32jdmlf6cls4gh4njn"))))
8957 (build-system python-build-system)
8959 ;; Tests are not included in the tarball, they are only available in the
8962 (home-page "https://github.com/GrahamDumpleton/wrapt")
8963 (synopsis "Module for decorators, wrappers and monkey patching")
8965 "The aim of the wrapt module is to provide a transparent object proxy for
8966 Python, which can be used as the basis for the construction of function
8967 wrappers and decorator functions.")
8968 (license license:bsd-2)))
8970 (define-public python2-wrapt
8971 (package-with-python2 python-wrapt))
8973 (define-public python-commonmark
8975 (name "python-commonmark")
8980 (uri (pypi-uri "commonmark" version))
8982 (base32 "0q7d39lm8kcingpmykk5r959hrwwj6v2icyw3mihczxyb749sbs5"))))
8983 (build-system python-build-system)
8986 (modify-phases %standard-phases
8988 (lambda* (#:key inputs outputs #:allow-other-keys)
8989 (add-installed-pythonpath inputs outputs)
8990 (invoke "python" "setup.py" "test"))))))
8991 (home-page "https://github.com/readthedocs/commonmark.py")
8992 (synopsis "Python parser for the CommonMark Markdown spec")
8994 "This module is a pure Python port of jgm's @code{commonmark.js}, a
8995 Markdown parser and renderer for the CommonMark specification, using only
8997 (license license:bsd-3)))
8999 (define-public python-xlrd
9001 (name "python-xlrd")
9005 (uri (pypi-uri "xlrd" version))
9008 "1ci93fda4n67qhdvfl16zasyxrpygzk53hs6m8z0rd4dxrnb6vjl"))))
9009 (build-system python-build-system)
9012 (modify-phases %standard-phases
9013 ;; Some tests depend on writing a temporary file to the user's home
9015 (add-after 'unpack 'fix-tests
9017 (delete-file "tests/test_open_workbook.py")
9019 (home-page "http://www.python-excel.org/")
9020 (synopsis "Library for extracting data from Excel files")
9021 (description "This package provides a library to extract data from
9022 spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
9023 @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
9024 Unicode-aware. It is not intended as an end-user tool.")
9025 (license license:bsd-3)))
9027 (define-public python2-xlrd
9028 (package-with-python2 python-xlrd))
9030 (define-public python-immutables
9032 (name "python-immutables")
9037 (uri (pypi-uri "immutables" version))
9039 (base32 "0y0aqw29g525frdnmv9paljzacpp4s21sadfbca5b137iciwr8d0"))))
9040 (build-system python-build-system)
9041 (home-page "https://github.com/MagicStack/immutables")
9042 (synopsis "High-performance immutable mapping type for Python")
9044 "An immutable mapping type for Python. The underlying datastructure is a
9045 Hash Array Mapped Trie (HAMT) used in Clojure, Scala, Haskell, and other
9046 functional languages.")
9047 (license license:asl2.0)))
9049 (define-public python-prettytable
9051 (name "python-prettytable")
9056 (uri (pypi-uri "prettytable" version ".tar.bz2"))
9059 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
9060 (build-system python-build-system)
9061 (home-page "https://code.google.com/archive/p/prettytable/")
9062 (synopsis "Display tabular data in an ASCII table format")
9064 "A library designed to represent tabular data in visually appealing ASCII
9065 tables. PrettyTable allows for selection of which columns are to be printed,
9066 independent alignment of columns (left or right justified or centred) and
9067 printing of sub-tables by specifying a row range.")
9068 (license license:bsd-3)))
9070 (define-public python2-prettytable
9071 (package-with-python2 python-prettytable))
9073 (define-public python-curio
9075 (name "python-curio")
9080 (uri (pypi-uri "curio" version))
9082 (base32 "16wkww6kh511b9bzsfhpvrv0766cc6ssgbzz4lgpjnrzzgx21wwh"))))
9083 (build-system python-build-system)
9086 (modify-phases %standard-phases
9088 (lambda* (#:key inputs outputs #:allow-other-keys)
9089 (add-installed-pythonpath inputs outputs)
9090 (invoke "pytest" "-vv" "-k"
9091 ;; Tries to open an outgoing connection.
9092 "not test_ssl_outgoing"))))))
9094 `(("python-pytest" ,python-pytest)))
9095 (home-page "https://github.com/dabeaz/curio")
9096 (synopsis "Coroutine-based library for concurrent Python")
9098 "Curio is a coroutine-based library for concurrent Python systems
9099 programming. It provides standard programming abstractions such as as
9100 tasks, sockets, files, locks, and queues.")
9101 (license license:bsd-3)))
9103 (define-public python-tables
9105 (name "python-tables")
9110 (uri (pypi-uri "tables" version))
9113 "0j8vnxh2m5n0cyk9z3ndcj5n1zj5rdxgc1gb78bqlyn2lyw75aa9"))
9114 (modules '((guix build utils)))
9117 ;; Remove pre-compiled .pyc files from source.
9118 (for-each delete-file-recursively
9119 (find-files "." "__pycache__" #:directories? #t))
9120 (for-each delete-file (find-files "." "\\.pyc$"))
9122 (build-system python-build-system)
9124 `(;; FIXME: python-build-system does not pass configure-flags to "build"
9125 ;; or "check", so we must override the build and check phases.
9127 (modify-phases %standard-phases
9128 (add-after 'unpack 'use-gcc
9130 (substitute* "setup.py"
9131 (("^( +)compiler = new_compiler\\(\\)" line indent)
9135 "compiler.set_executables(compiler='gcc',"
9136 "compiler_so='gcc',"
9138 "linker_so='gcc -shared')")))
9140 (add-after 'unpack 'disable-tuning
9142 (substitute* "setup.py"
9144 "cpu_flags = ['sse2']\n"))
9147 (lambda* (#:key inputs #:allow-other-keys)
9148 (invoke "python" "setup.py" "build"
9149 (string-append "--hdf5="
9150 (assoc-ref inputs "hdf5")))))
9152 (lambda* (#:key inputs #:allow-other-keys)
9153 (invoke "python" "setup.py" "check"
9154 (string-append "--hdf5="
9155 (assoc-ref inputs "hdf5"))))))))
9157 `(("python-numexpr" ,python-numexpr)
9158 ("python-numpy" ,python-numpy)))
9160 `(("python-cython" ,python-cython)
9161 ("pkg-config" ,pkg-config)))
9163 `(("hdf5" ,hdf5-1.10)
9166 (home-page "https://www.pytables.org/")
9167 (synopsis "Hierarchical datasets for Python")
9168 (description "PyTables is a package for managing hierarchical datasets and
9169 designed to efficiently cope with extremely large amounts of data.")
9170 (license license:bsd-3)))
9172 (define-public python2-tables
9173 (package-with-python2 python-tables))
9175 (define-public python-sniffio
9177 (name "python-sniffio")
9182 (uri (pypi-uri "sniffio" version))
9184 (base32 "08bsp2pp2dxzn9yzcafwzw8jlm0jf50as0ix8vfhxzk91w810f4f"))))
9185 (build-system python-build-system)
9188 (modify-phases %standard-phases
9191 (invoke "pytest" "-vv"))))))
9193 `(("python-curio" ,python-curio)
9194 ("python-pytest" ,python-pytest)
9195 ("python-pytest-cov" ,python-pytest-cov)))
9196 (home-page "https://github.com/python-trio/sniffio")
9197 (synopsis "Detect which async library a program is running under")
9198 (description "This package detects which async library a program is
9199 running under. It supports multiple async I/O packages, like Trio, and
9201 ;; Either license applies.
9202 (license (list license:expat license:asl2.0))))
9204 (define-public python-pytest-black
9206 (name "python-pytest-black")
9211 (uri (pypi-uri "pytest-black" version))
9214 "04lppqydxm0f3f3x0l8hj7v0j6d8syj34jc37yzqwqcyqsnaga81"))))
9215 (build-system python-build-system)
9217 `(("python-pytest" ,python-pytest)
9218 ("python-black" ,python-black)
9219 ("python-toml" ,python-toml)))
9221 `(("python-setuptools-scm" ,python-setuptools-scm)))
9222 (home-page "https://github.com/shopkeep/pytest-black")
9223 (synopsis "Pytest plugin to enable format checking with black")
9225 "This package provides a pytest plugin to enable format checking with the
9226 Python code formatter \"black\".")
9227 (license license:expat)))
9229 (define-public python-get-version
9231 (name "python-get-version")
9236 (uri (pypi-uri "get_version" version))
9239 "1g15jyx33vkxavv9hwv275cs4g9bp2i1y942raw3fxamq8kbaml1"))))
9240 (build-system python-build-system)
9242 `(("python-pygments" ,python-pygments)
9243 ("python-pytest" ,python-pytest)
9244 ("python-pytest-black" ,python-pytest-black)
9245 ("python-pytest-cov" ,python-pytest-cov)
9246 ("python-setuptools" ,python-setuptools)
9247 ("python-testpath" ,python-testpath)))
9248 (home-page "https://github.com/flying-sheep/get_version")
9249 (synopsis "Version helper in the spirit of versioneer")
9251 "This package provides a version helper that lets you automatically use
9252 the latest @code{vX.X.X} Git tag as the version in your Python package. It
9253 also supports getting the version from Python source distributions or, once
9254 your package is installed, via @code{pkg_resources} (part of
9255 @code{setuptools}).")
9256 (license license:gpl3+)))
9258 (define-public python-legacy-api-wrap
9260 (name "python-legacy-api-wrap")
9265 (uri (pypi-uri "legacy-api-wrap" version))
9268 "06qhp0g543dy98vpa41hwdalvdbsjfc3ldk474yr9sd75mhl8jh3"))))
9269 (build-system python-build-system)
9271 `(("python-get-version" ,python-get-version)
9272 ("python-pytest" ,python-pytest)
9273 ("python-pytest-black" ,python-pytest-black)
9274 ("python-pytest-cov" ,python-pytest-cov)
9275 ("python-setuptools" ,python-setuptools)))
9276 (home-page "https://github.com/flying-sheep/legacy-api-wrap")
9277 (synopsis "Legacy API wrapper")
9278 (description "This module defines a decorator to wrap legacy APIs. The
9279 primary use case is APIs defined before keyword-only parameters existed.")
9280 (license license:gpl3+)))
9282 (define-public python-pyasn1
9284 (name "python-pyasn1")
9289 (uri (pypi-uri "pyasn1" version))
9292 "1fnhbi3rmk47l9851gbik0flfr64vs5j0hbqx24cafjap6gprxxf"))))
9293 (build-system python-build-system)
9294 (home-page "http://pyasn1.sourceforge.net/")
9295 (synopsis "ASN.1 types and codecs")
9297 "This is an implementation of ASN.1 types and codecs in Python. It is
9298 suitable for a wide range of protocols based on the ASN.1 specification.")
9299 (license license:bsd-2)))
9301 (define-public python2-pyasn1
9302 (package-with-python2 python-pyasn1))
9304 (define-public python-pyasn1-modules
9306 (name "python-pyasn1-modules")
9311 (uri (pypi-uri "pyasn1-modules" version))
9314 "0ivm850yi7ajjbi8j115qpsj95bgxdsx48nbjzg0zip788c3xkx0"))))
9315 (build-system python-build-system)
9317 `(("python-pyasn1" ,python-pyasn1)))
9318 (home-page "https://sourceforge.net/projects/pyasn1/")
9319 (synopsis "ASN.1 codec implementations")
9321 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
9322 implementations of ASN.1-based codecs and protocols.")
9323 (license license:bsd-3)))
9325 (define-public python2-pyasn1-modules
9326 (package-with-python2 python-pyasn1-modules))
9328 (define-public python-ipaddress
9330 (name "python-ipaddress")
9334 (uri (pypi-uri "ipaddress" version))
9337 "0b570bm6xqpjwqis15pvdy6lyvvzfndjvkynilcddjj5x98wfimi"))))
9338 (build-system python-build-system)
9339 (home-page "https://github.com/phihag/ipaddress")
9340 (synopsis "IP address manipulation library")
9342 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
9343 in Python. This library is used to create, poke at, and manipulate IPv4 and
9344 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
9345 module to older versions of Python.")
9346 (license license:psfl)))
9348 (define-public python2-ipaddress
9349 (package-with-python2 python-ipaddress))
9351 (define-public python2-ipaddr
9353 (name "python2-ipaddr")
9358 (uri (pypi-uri "ipaddr" version))
9360 (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
9361 (build-system python-build-system)
9363 `(#:python ,python-2 ;version 2 only
9365 (modify-phases %standard-phases
9367 (lambda _ (invoke "python" "ipaddr_test.py"))))))
9368 (home-page "https://github.com/google/ipaddr-py")
9369 (synopsis "IP address manipulation library")
9371 "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and
9372 IPv6 addresses and networks.
9374 For new implementations you may prefer to use the standard module
9375 @code{ipaddress}, which was introduced in Python 3.3 and backported to older
9376 versions of Python.")
9377 (license license:asl2.0)))
9379 (define-public python-idna
9381 (name "python-idna")
9386 (uri (pypi-uri "idna" version))
9389 "1xmk3s92d2vq42684p61wixfmh3qpr2mw762w0n6662vhlpqf1xk"))))
9390 (build-system python-build-system)
9391 (home-page "https://github.com/kjd/idna")
9392 (synopsis "Internationalized domain names in applications")
9394 "This is a library to support the Internationalised Domain Names in
9395 Applications (IDNA) protocol as specified in RFC 5891. This version of the
9396 protocol is often referred to as “IDNA2008” and can produce different results
9397 from the earlier standard from 2003. The library is also intended to act as a
9398 suitable drop-in replacement for the “encodings.idna” module that comes with
9399 the Python standard library but currently only supports the older 2003
9401 (license license:bsd-4)))
9403 (define-public python-idna-2.7
9404 (package (inherit python-idna)
9408 (uri (pypi-uri "idna" version))
9411 "05jam7d31767dr12x0rbvvs8lxnpb1mhdb2zdlfxgh83z6k3hjk8"))))))
9414 (define-public python2-idna
9415 (package-with-python2 python-idna))
9417 (define-public python-libsass
9419 (name "python-libsass")
9423 ;; PyPI tarball is missing some test files.
9426 (url "https://github.com/sass/libsass-python")
9428 (file-name (git-file-name name version))
9430 (base32 "1r0kgl7i6nnhgjl44sjw57k08gh2qr7l8slqih550dyxbf1akbxh"))))
9431 (build-system python-build-system)
9434 (modify-phases %standard-phases
9435 ;; Use Guix package of libsass instead of compiling from a checkout.
9436 (add-before 'build 'set-libsass
9438 (setenv "SYSTEM_SASS" (assoc-ref %build-inputs "libsass"))
9441 (lambda* (#:key inputs outputs #:allow-other-keys)
9442 (add-installed-pythonpath inputs outputs)
9443 (invoke "pytest" "sasstests.py"))))))
9445 `(("python-pytest" ,python-pytest)
9446 ("python-werkzeug" ,python-werkzeug)))
9448 `(("libsass" ,libsass)))
9450 `(("python-six" ,python-six)))
9451 (home-page "https://sass.github.io/libsass-python/")
9452 (synopsis "Straightforward binding of libsass for Python")
9454 "This package provides a simple Python extension module @code{sass} which
9455 is binding LibSass.")
9456 (license license:expat)))
9458 (define-public python-idna-ssl
9460 (name "python-idna-ssl")
9465 (uri (pypi-uri "idna-ssl" version))
9468 "0ydrc8hpg9mdr5hqq1lqfsfbn6sjq69slwpfrnlrm3k0phqg14qj"))))
9469 (build-system python-build-system)
9471 `(#:tests? #f)) ;circular dependency with python-aiohttp
9472 (home-page "https://github.com/aio-libs/idna-ssl")
9473 (synopsis "Patch @code{ssl.match_hostname} for Unicode(idna) domains support")
9474 (description "Patch @code{ssl.match_hostname} for Unicode(idna)
9476 (license license:expat)))
9478 (define-public python-pretend
9480 (name "python-pretend")
9485 (uri (pypi-uri "pretend" version))
9488 "040vm94lcbscg5p81g1icmwwwa2jm7wrd1ybmxnv1sz8rl8bh3n9"))))
9489 (build-system python-build-system)
9490 (home-page "https://github.com/alex/pretend")
9491 (synopsis "Library for stubbing in Python")
9493 "Pretend is a library to make stubbing with Python easier. Stubbing is a
9494 technique for writing tests. You may hear the term mixed up with mocks,
9495 fakes, or doubles. Basically, a stub is an object that returns pre-canned
9496 responses, rather than doing any computation.")
9497 (license license:bsd-3)))
9499 (define-public python2-pretend
9500 (package-with-python2 python-pretend))
9502 (define-public python-pip
9509 (uri (pypi-uri "pip" version))
9512 "18b4qcijwivvkj1g0hs4w8zjbks0bjzdjcrqybnhmyx0gs2rmjc5"))))
9513 (build-system python-build-system)
9515 '(#:tests? #f)) ; there are no tests in the pypi archive.
9516 (home-page "https://pip.pypa.io/")
9517 (synopsis "Package manager for Python software")
9519 "Pip is a package manager for Python software, that finds packages on the
9520 Python Package Index (PyPI).")
9521 (license license:expat)))
9523 (define-public python2-pip
9524 (package-with-python2 python-pip))
9526 (define-public python-tlsh
9528 (name "python-tlsh")
9530 (home-page "https://github.com/trendmicro/tlsh")
9535 (url "https://github.com/trendmicro/tlsh")
9536 (commit (string-append "v" version))))
9537 (file-name (git-file-name name version))
9539 (base32 "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll"))))
9540 (build-system cmake-build-system)
9542 '(#:out-of-source? #f
9543 #:phases (modify-phases %standard-phases
9546 (lambda* (#:key outputs #:allow-other-keys)
9547 ;; Build and install the Python bindings. The underlying
9548 ;; C++ library is apparently not meant to be installed.
9549 (let ((out (assoc-ref outputs "out")))
9550 (with-directory-excursion "py_ext"
9551 (and (system* "python" "setup.py" "build")
9552 (system* "python" "setup.py" "install"
9553 (string-append "--prefix=" out))))))))))
9554 (inputs `(("python" ,python-wrapper))) ;for the bindings
9555 (synopsis "Fuzzy matching library for Python")
9557 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
9558 Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
9559 value which can be used for similarity comparisons. Similar objects have
9560 similar hash values, which allows for the detection of similar objects by
9561 comparing their hash values. The byte stream should have a sufficient amount
9562 of complexity; for example, a byte stream of identical bytes will not generate
9564 (license license:asl2.0)))
9566 (define-public python2-tlsh
9568 (inherit python-tlsh)
9569 (name "python2-tlsh")
9570 (inputs `(("python" ,python-2)))))
9572 (define-public python-termcolor
9574 (name "python-termcolor")
9579 (uri (pypi-uri "termcolor" version))
9582 "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
9583 (build-system python-build-system)
9585 ;; There are no tests.
9587 (home-page "https://pypi.org/project/termcolor/")
9588 (synopsis "ANSII Color formatting for terminal output")
9590 "This package provides ANSII Color formatting for output in terminals.")
9591 (license license:expat)))
9593 (define-public python2-termcolor
9594 (package-with-python2 python-termcolor))
9596 (define-public python-terminaltables
9598 (name "python-terminaltables")
9603 (uri (pypi-uri "terminaltables" version))
9606 "109vhldk6nv1z3hzp4dyqf6rjvlhl0y2k5k7qcm9fcrq5swhxszk"))))
9607 (build-system python-build-system)
9608 (home-page "https://github.com/Robpol86/terminaltables")
9610 "Generate simple tables in terminals from a nested list of strings")
9612 "This package makes it easy to draw tables in terminal/console
9613 applications from a list of lists of strings. It supports multi-line rows.")
9614 (license license:expat)))
9616 (define-public python-libarchive-c
9618 (name "python-libarchive-c")
9622 (uri (pypi-uri "libarchive-c" version))
9625 "0q7g6a97110bk0j5x81555kajyxh4sybaabab6v5sgr0xi6386cr"))))
9626 (build-system python-build-system)
9628 '(#:phases (modify-phases %standard-phases
9630 'build 'reference-libarchive
9631 (lambda* (#:key inputs #:allow-other-keys)
9632 ;; Retain the absolute file name of libarchive.so.
9633 (let ((libarchive (assoc-ref inputs "libarchive")))
9634 (substitute* "libarchive/ffi.py"
9635 (("find_library\\('archive'\\)")
9636 (string-append "'" libarchive
9637 "/lib/libarchive.so'"))))))
9639 (lambda _ (invoke "pytest" "-vv"))))))
9641 `(("python-mock" ,python-mock)
9642 ("python-pytest" ,python-pytest)))
9644 `(("libarchive" ,libarchive)))
9645 (home-page "https://github.com/Changaco/python-libarchive-c")
9646 (synopsis "Python interface to libarchive")
9648 "This package provides Python bindings to libarchive, a C library to
9649 access possibly compressed archives in many different formats. It uses
9650 Python's @code{ctypes} foreign function interface (FFI).")
9651 (license license:lgpl2.0+)))
9653 (define-public python2-libarchive-c
9654 (package-with-python2 python-libarchive-c))
9656 (define-public python-file
9659 (name "python-file")
9660 (build-system python-build-system)
9662 '(#:tests? #f ;no tests
9663 #:configure-flags '("--single-version-externally-managed" "--root=/")
9664 #:phases (modify-phases %standard-phases
9665 (add-before 'build 'change-directory
9669 (add-before 'build 'set-library-file-name
9670 (lambda* (#:key inputs #:allow-other-keys)
9671 (let ((file (assoc-ref inputs "file")))
9672 (substitute* "magic.py"
9673 (("find_library\\('magic'\\)")
9674 (string-append "'" file "/lib/libmagic.so'")))
9676 (inputs `(("file" ,file)))
9677 (native-inputs (if (%current-target-system)
9678 `(("self" ,this-package))
9680 (synopsis "Python bindings to the libmagic file type guesser")
9681 (description "This package provides Python bindings to the libmagic file
9684 Note that this module and the @code{python-magic} module both provide a
9685 @file{magic.py} file; these two modules, which are different and were
9686 developed separately, both serve the same purpose: provide Python bindings for
9689 (define-public python2-file
9690 (package-with-python2 python-file))
9692 (define-public python-debian
9694 (name "python-debian")
9695 (home-page "https://salsa.debian.org/python-debian-team/python-debian")
9699 ;; Use git-fetch, as pypi doesn't include test suite.
9704 (file-name (git-file-name name version))
9707 "0qy6x28bj6yfikhjww932v5xq4mf5bm1iczl7acy4c7zm6mwhqfa"))))
9708 (build-system python-build-system)
9710 `(#:phases (modify-phases %standard-phases
9711 (add-after 'unpack 'remove-debian-specific-tests
9712 ;; python-apt, apt and dpkg are not yet available in guix,
9713 ;; and these tests heavily depend on them.
9715 (delete-file "lib/debian/tests/test_deb822.py")
9716 (delete-file "lib/debian/tests/test_debfile.py")
9719 `(("python-six" ,python-six)
9720 ("python-chardet" ,python-chardet)))
9721 (synopsis "Debian package related modules")
9723 ;; XXX: Use @enumerate instead of @itemize to work around
9724 ;; <http://bugs.gnu.org/21772>.
9725 "This package provides Python modules that abstract many formats of
9726 Debian-related files, such as:
9729 @item Debtags information;
9730 @item @file{debian/changelog} files;
9731 @item packages files, pdiffs;
9732 @item control files of single or multiple RFC822-style paragraphs---e.g.
9733 @file{debian/control}, @file{.changes}, @file{.dsc};
9734 @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
9735 contained files and meta-information.
9738 ;; Modules are either GPLv2+ or GPLv3+.
9739 (license license:gpl3+)))
9741 (define-public python-nbformat
9743 (name "python-nbformat")
9748 (uri (pypi-uri "nbformat" version))
9751 "00nlf08h8yc4q73nphfvfhxrcnilaqanb8z0mdy6nxk0vzq4wjgp"))))
9752 (build-system python-build-system)
9753 (arguments `(#:tests? #f)) ; no test target
9755 `(("python-ipython-genutils" ,python-ipython-genutils)
9756 ("python-jsonschema" ,python-jsonschema)
9757 ("python-jupyter-core" ,python-jupyter-core)
9758 ("python-traitlets" ,python-traitlets)))
9759 (home-page "http://jupyter.org")
9760 (synopsis "Jupyter Notebook format")
9761 (description "This package provides the reference implementation of the
9762 Jupyter Notebook format and Python APIs for working with notebooks.")
9763 (license license:bsd-3)))
9765 (define-public python2-nbformat
9766 (package-with-python2 python-nbformat))
9768 (define-public python-bleach
9770 (name "python-bleach")
9775 (uri (pypi-uri "bleach" version))
9777 (base32 "0jqa8f1ni10cyf4h7sjpf8mbqlcbkyvmsnli77qrxdcxvc7m4k1w"))))
9778 (build-system python-build-system)
9780 `(("python-webencodings" ,python-webencodings)
9781 ("python-six" ,python-six)))
9783 `(("python-datrie" ,python-datrie)
9784 ("python-genshi" ,python-genshi)
9785 ("python-lxml" ,python-lxml)
9786 ("python-pytest" ,python-pytest)))
9787 (home-page "https://github.com/mozilla/bleach")
9788 (synopsis "Whitelist-based HTML-sanitizing tool")
9789 (description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
9790 (license license:asl2.0)))
9792 (define-public python2-bleach
9793 (package-with-python2 python-bleach))
9795 (define-public python-entrypoints
9797 (name "python-entrypoints")
9802 (uri (pypi-uri "entrypoints" version))
9805 "0lc4si3xb7hza424414rdqdc3vng3kcrph8jbvjqb32spqddf3f7"))))
9806 (build-system python-build-system)
9807 ;; The package does not come with a setup.py file, so we have to generate
9812 (modify-phases %standard-phases
9813 (add-after 'unpack 'create-setup.py
9815 (call-with-output-file "setup.py"
9818 from setuptools import setup
9819 setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
9821 (home-page "https://github.com/takluyver/entrypoints")
9822 (synopsis "Discover and load entry points from installed Python packages")
9823 (description "Entry points are a way for Python packages to advertise
9824 objects with some common interface. The most common examples are
9825 @code{console_scripts} entry points, which define shell commands by
9826 identifying a Python function to run. The @code{entrypoints} module contains
9827 functions to find and load entry points.")
9828 (license license:expat)))
9830 (define-public python2-entrypoints
9831 (package-with-python2 python-entrypoints))
9833 (define-public python-epc
9840 (uri (pypi-uri "epc" version))
9843 "09bx1ln1bwa00917dndlgs4k589h8qx2x080xch5m58p92kjwkd1"))))
9844 (build-system python-build-system)
9846 `(("python-sexpdata" ,python-sexpdata)))
9848 `(("python-nose" ,python-nose)))
9849 (home-page "https://github.com/tkf/python-epc")
9850 (synopsis "Remote procedure call (RPC) stack for Emacs Lisp and Python")
9852 "Python-EPC can call elisp functions from Python and Python functions
9854 (license license:gpl3)))
9856 (define-public python-forex-python
9858 (name "python-forex-python")
9863 (uri (pypi-uri "forex-python" version))
9865 (base32 "1ma8cl1i2dh8aa99pifnlilyy4d1gd1s07fj0yd17wcbpsh532cj"))))
9866 (build-system python-build-system)
9868 ;; Tests are not included in the PyPI tarball. Also, the tests in the
9869 ;; repository require online data.
9872 `(("python-requests" ,python-requests)
9873 ("python-simplejson" ,python-simplejson)))
9874 (home-page "https://github.com/MicroPyramid/forex-python")
9875 (synopsis "Foreign exchange rates and currency conversion")
9877 "@code{python-forex-python} can be used to manipulate foreign
9878 exchange rates and to operate currency conversions.
9882 @item List all currency rates.
9883 @item BitCoin price for all currencies.
9884 @item Converting amount to BitCoins.
9885 @item Get historical rates for any day since 1999.
9886 @item Conversion rate for one currency(ex; USD to INR).
9887 @item Convert amount from one currency to other.('USD 10$' to INR).
9888 @item Currency symbols.
9889 @item Currency names.
9891 (license license:expat)))
9893 (define-public python-simpleeval
9895 (name "python-simpleeval")
9900 (uri (pypi-uri "simpleeval" version))
9902 (base32 "1skvl467kj83rzkhk01i0wm8m5vmh6j5znrfdizn6r18ii45a839"))))
9903 (build-system python-build-system)
9904 (home-page "https://github.com/danthedeckie/simpleeval")
9905 (synopsis "Simple, safe single expression evaluator library")
9907 "This package provides a quick single file library for easily adding
9908 evaluatable expressions into python projects. Say you want to allow a user
9909 to set an alarm volume, which could depend on the time of day, alarm level,
9910 how many previous alarms had gone off, and if there is music playing at the
9912 (license license:expat)))
9914 (define-public python-nbconvert
9916 (name "python-nbconvert")
9921 (uri (pypi-uri "nbconvert" version))
9924 "0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp"))))
9925 (build-system python-build-system)
9927 `(;; The "bdist_egg" target is disabled by default, causing the installation
9929 #:configure-flags (list "bdist_egg")
9930 ;; FIXME: 5 failures, 40 errors.
9933 ;; (modify-phases %standard-phases
9936 ;; (zero? (system* "py.test" "-v")))))
9938 `(("python-pytest" ,python-pytest)))
9940 `(("python-bleach" ,python-bleach)
9941 ("python-entrypoints" ,python-entrypoints)
9942 ("python-jinja2" ,python-jinja2)
9943 ("python-jupyter-core" ,python-jupyter-core)
9944 ("python-mistune" ,python-mistune)
9945 ("python-nbformat" ,python-nbformat)
9946 ("python-pygments" ,python-pygments)
9947 ("python-traitlets" ,python-traitlets)))
9948 (home-page "http://jupyter.org")
9949 (synopsis "Converting Jupyter Notebooks")
9950 (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts
9951 notebooks to various other formats via Jinja templates. It allows you to
9952 convert an @code{.ipynb} notebook file into various static formats including:
9960 @item ReStructured Text (rst)
9961 @item executable script
9963 (license license:bsd-3)))
9965 (define-public python2-nbconvert
9966 (package-with-python2 python-nbconvert))
9968 (define-public python-notebook
9970 (name "python-notebook")
9974 (uri (pypi-uri "notebook" version))
9977 "0jm7324mbxljmn9hgapj66q7swyz5ai92blmr0jpcy0h80x6f26r"))))
9978 (build-system python-build-system)
9981 (modify-phases %standard-phases
9984 ;; These tests require a browser
9985 (delete-file-recursively "notebook/tests/selenium")
9986 ;; Some tests need HOME
9987 (setenv "HOME" "/tmp")
9988 ;; This file contains "warningfilters", which are not supported
9989 ;; by this version of nose.
9990 (delete-file "setup.cfg")
9991 (with-directory-excursion "/tmp"
9992 (invoke "nosetests" "-v"))
9995 `(("python-jupyter-core" ,python-jupyter-core)
9996 ("python-nbformat" ,python-nbformat)
9997 ("python-nbconvert" ,python-nbconvert)
9998 ("python-prometheus-client" ,python-prometheus-client)
9999 ("python-send2trash" ,python-send2trash)
10000 ("python-terminado" ,python-terminado)))
10002 `(("python-nose" ,python-nose)
10003 ("python-sphinx" ,python-sphinx)
10004 ("python-requests" ,python-requests)))
10005 (home-page "http://jupyter.org/")
10006 (synopsis "Web-based notebook environment for interactive computing")
10008 "The Jupyter HTML notebook is a web-based notebook environment for
10009 interactive computing.")
10010 (properties `((python2-variant . ,(delay python2-notebook))))
10011 (license license:bsd-3)))
10013 (define-public python2-notebook
10014 (let ((base (package-with-python2
10015 (strip-python2-variant python-notebook))))
10016 (package (inherit base)
10018 `(("python2-mock" ,python2-mock)
10019 ,@(package-native-inputs base)))
10021 (substitute-keyword-arguments (package-arguments base)
10023 `(modify-phases ,phases
10024 (add-before 'check 'disable-test-case
10025 ;; The test requires network access to localhost. Curiously it
10026 ;; fails with Python 2 only. Simply make the test-case return
10030 "notebook/services/nbconvert/tests/test_nbconvert_api.py"
10031 (("formats = self.nbconvert_api") "return #")))))))))))
10033 (define-public python-widgetsnbextension
10035 (name "python-widgetsnbextension")
10040 (uri (pypi-uri "widgetsnbextension" version))
10043 "1ismyaxbv9d56yqqqb8xl58hg0iq0bbyy014a53y1g3hfbc8g7q7"))))
10044 (build-system python-build-system)
10046 `(("python-ipykernel" ,python-ipykernel)
10047 ("python-notebook" ,python-notebook)))
10049 `(("python-certifi" ,python-certifi)
10050 ("python-nose" ,python-nose)))
10051 (home-page "https://ipython.org")
10052 (synopsis "IPython HTML widgets for Jupyter")
10053 (description "This package provides interactive HTML widgets for Jupyter
10055 (license license:bsd-3)))
10057 (define-public python2-widgetsnbextension
10058 (package-with-python2 python-widgetsnbextension))
10060 (define-public python-ipywidgets
10062 (name "python-ipywidgets")
10067 (uri (pypi-uri "ipywidgets" version))
10070 "15sww2mvnkqlvx55gwa82v05062a8j1xpncnqna4k9sl53hgcig9"))))
10071 (build-system python-build-system)
10073 `(("python-ipython" ,python-ipython)
10074 ("python-traitlets" ,python-traitlets)
10075 ("python-widgetsnbextension" ,python-widgetsnbextension)))
10077 `(("python-nose" ,python-nose)
10078 ("python-pytest" ,python-pytest)))
10079 (home-page "https://ipython.org")
10080 (synopsis "IPython HTML widgets for Jupyter")
10081 (description "Ipywidgets are interactive HTML widgets for Jupyter
10082 notebooks and the IPython kernel. Notebooks come alive when interactive
10083 widgets are used. Users gain control of their data and can visualize changes
10085 (license license:bsd-3)))
10087 (define-public python2-ipywidgets
10088 (package-with-python2 python-ipywidgets))
10090 (define-public python-jupyter-console
10092 (name "python-jupyter-console")
10097 (uri (pypi-uri "jupyter_console" version))
10100 "06s3kr5vx0l1y1b7fxb04dmrppscl7q69sl9yyfr0d057d1ssvkg"))))
10101 (build-system python-build-system)
10103 `(("python-ipykernel" ,python-ipykernel)
10104 ("python-jupyter-client" ,python-jupyter-client)
10105 ("python-prompt-toolkit" ,python-prompt-toolkit-2)
10106 ("python-pygments" ,python-pygments)))
10108 `(("python-nose" ,python-nose)))
10109 (home-page "https://jupyter.org")
10110 (synopsis "Jupyter terminal console")
10111 (description "This package provides a terminal-based console frontend for
10112 Jupyter kernels. It also allows for console-based interaction with non-Python
10113 Jupyter kernels such as IJulia and IRKernel.")
10114 (properties `((python2-variant . ,(delay python2-jupyter-console))))
10115 (license license:bsd-3)))
10117 (define-public python2-jupyter-console
10119 (name "python2-jupyter-console")
10124 (uri (pypi-uri "jupyter_console" version))
10127 "1kam1qzgwr7srhm5r6aj90di5sws4bq0jmiw15452ddamb9yspal"))))
10128 (build-system python-build-system)
10130 `(#:python ,python-2
10131 #:tests? #f)) ; Tests only run in a TTY.
10133 `(("python2-ipykernel" ,python2-ipykernel)
10134 ("python2-jupyter-client" ,python2-jupyter-client)
10135 ("python2-prompt-toolkit" ,python2-prompt-toolkit-1)
10136 ("python2-pygments" ,python2-pygments)))
10138 `(("python2-nose" ,python2-nose)))
10139 (home-page "https://jupyter.org")
10140 (synopsis "Jupyter terminal console")
10141 (description "This package provides a terminal-based console frontend for
10142 Jupyter kernels. It also allows for console-based interaction with non-Python
10143 Jupyter kernels such as IJulia and IRKernel.")
10144 (license license:bsd-3)))
10146 ;; The python-ipython and python-jupyter-console require each other. To get
10147 ;; the functionality in both packages working, strip down the
10148 ;; python-jupyter-console package when using it as an input to python-ipython.
10149 (define python-jupyter-console-minimal
10151 (inherit python-jupyter-console)
10152 (name "python-jupyter-console-minimal")
10154 (substitute-keyword-arguments
10155 (package-arguments python-jupyter-console)
10157 `(modify-phases ,phases
10158 (add-after 'install 'delete-bin
10159 (lambda* (#:key outputs #:allow-other-keys)
10160 ;; Delete the bin files, to avoid conflicts in profiles
10161 ;; where python-ipython and python-jupyter-console are
10163 (delete-file-recursively
10165 (assoc-ref outputs "out") "/bin"))))))))
10166 ;; Remove the python-ipython propagated input, to avoid the cycle
10170 (package-propagated-inputs python-jupyter-console)))))
10172 (define-public python-qtconsole
10174 (name "python-qtconsole")
10179 (uri (pypi-uri "qtconsole" version))
10182 "1b03n1ixzscm0jw97l4dq5iy4fslnqxq5bb8287xb7n2a1gs26xw"))))
10183 (build-system python-build-system)
10185 ;; XXX: Tests are disabled, because this package needs python-ipython 7,
10186 ;; but we only have the LTS version 5.x. This means that there might be
10187 ;; runtime errors, but since this is a dependency of the Jupyter package,
10188 ;; and Jupyter can be used without the qtconsole we can overlook this for
10192 (modify-phases %standard-phases
10193 (add-before 'check 'pre-check
10195 (setenv "QT_QPA_PLATFORM" "offscreen")
10198 `(("python-ipykernel" ,python-ipykernel)
10199 ("python-ipython" ,python-ipython)))
10201 `(("python-pytest" ,python-pytest)))
10202 (home-page "http://jupyter.org")
10203 (synopsis "Jupyter Qt console")
10204 (description "This package provides a Qt-based console for Jupyter with
10205 support for rich media output.")
10206 (license license:bsd-3)))
10208 (define-public python-jsbeautifier
10210 (name "python-jsbeautifier")
10212 (home-page "https://github.com/beautify-web/js-beautify")
10215 (uri (git-reference
10217 (commit (string-append "v" version))))
10218 (file-name (git-file-name name version))
10221 "0wawb070ki1axb3jc9xvsrgpji52vcfif3zmjzc3z4g98m5xw4kg"))))
10222 (build-system python-build-system)
10224 `(#:phases (modify-phases %standard-phases
10225 (add-after 'unpack 'chdir
10227 ;; The upstream Git repository contains all the code,
10228 ;; but this package only builds the python code.
10231 (add-after 'unpack 'patch-python-six-requirements
10233 (substitute* "python/setup.py"
10238 `(("python-editorconfig" ,python-editorconfig)
10239 ("python-six" ,python-six)))
10241 `(("python-pytest" ,python-pytest)))
10242 (synopsis "JavaScript unobfuscator and beautifier")
10243 (description "Beautify, unpack or deobfuscate JavaScript, leveraging
10244 popular online obfuscators.")
10245 (license license:expat)))
10247 (define-public jupyter
10254 (uri (pypi-uri "jupyter" version))
10257 "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
10258 (build-system python-build-system)
10259 (arguments '(#:tests? #f)) ; there are none.
10261 `(("python-ipykernel" ,python-ipykernel)
10262 ("python-ipywidgets" ,python-ipywidgets)
10263 ("python-jupyter-console" ,python-jupyter-console)
10264 ("python-nbconvert" ,python-nbconvert)
10265 ("python-notebook" ,python-notebook)
10266 ("python-qtconsole" ,python-qtconsole)))
10267 (native-search-paths
10268 (list (search-path-specification
10269 (variable "JUPYTER_PATH")
10270 (files '("share/jupyter")))))
10271 (home-page "https://jupyter.org")
10272 (synopsis "Web application for interactive documents")
10274 "The Jupyter Notebook is a web application that allows you to create and
10275 share documents that contain live code, equations, visualizations and
10276 explanatory text. Uses include: data cleaning and transformation, numerical
10277 simulation, statistical modeling, machine learning and much more.")
10278 (license license:bsd-3)))
10280 (define-public python-chardet
10282 (name "python-chardet")
10287 (uri (pypi-uri "chardet" version))
10290 "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4"))))
10292 `(("python-hypothesis" ,python-hypothesis)
10293 ("python-pytest" ,python-pytest)
10294 ("python-pytest-runner" ,python-pytest-runner)))
10295 (build-system python-build-system)
10296 ;; XXX: Incompatible with Pytest 4: <https://github.com/chardet/chardet/issues/173>.
10297 (arguments `(#:tests? #f))
10298 (home-page "https://github.com/chardet/chardet")
10299 (synopsis "Universal encoding detector for Python 2 and 3")
10301 "This package provides @code{chardet}, a Python module that can
10302 automatically detect a wide range of file encodings.")
10303 (license license:lgpl2.1+)))
10305 (define-public python2-chardet
10306 (package-with-python2 python-chardet))
10308 (define-public python-docopt
10310 (name "python-docopt")
10315 ;; The release on PyPI does not include tests.
10316 (uri (git-reference
10317 (url "https://github.com/docopt/docopt")
10319 (file-name (git-file-name name version))
10322 "0aad9gbswnnhssin2q0m5lmpm0ahyf80ahs2zjigbn5y7fvljnd0"))))
10323 (build-system python-build-system)
10325 `(("python-pytest" ,python-pytest)))
10328 (modify-phases %standard-phases
10330 (lambda _ (invoke "py.test"))))))
10331 (home-page "http://docopt.org")
10332 (synopsis "Command-line interface description language for Python")
10333 (description "This library allows the user to define a command-line
10334 interface from a program's help message rather than specifying it
10335 programmatically with command-line parsers like @code{getopt} and
10337 (license license:expat)))
10339 (define-public python2-docopt
10340 (package-with-python2 python-docopt))
10342 (define-public python-pythondialog
10344 (name "python-pythondialog")
10349 (uri (pypi-uri "pythondialog" version))
10352 "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
10353 (build-system python-build-system)
10356 (modify-phases %standard-phases
10357 (add-after 'unpack 'patch-path
10358 (lambda* (#:key inputs #:allow-other-keys)
10359 (let* ((dialog (assoc-ref inputs "dialog")))
10360 ;; Since this library really wants to grovel the search path, we
10361 ;; must hardcode dialog's store path into it.
10362 (substitute* "dialog.py"
10363 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
10364 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
10366 #:tests? #f)) ; no test suite
10368 `(("dialog" ,dialog)))
10369 (home-page "http://pythondialog.sourceforge.net/")
10370 (synopsis "Python interface to the UNIX dialog utility")
10371 (description "A Python wrapper for the dialog utility. Its purpose is to
10372 provide an easy to use, pythonic and comprehensive Python interface to dialog.
10373 This allows one to make simple text-mode user interfaces on Unix-like systems")
10374 (license license:lgpl2.1)
10375 (properties `((python2-variant . ,(delay python2-pythondialog))))))
10377 (define-public python2-pythondialog
10378 (let ((base (package-with-python2 (strip-python2-variant python-pythondialog))))
10381 (version (package-version python-pythondialog))
10384 (uri (pypi-uri "python2-pythondialog" version))
10387 "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9")))))))
10389 (define-public python-configobj
10391 (name "python-configobj")
10395 (uri (pypi-uri "configobj" version))
10398 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
10399 ;; Patch setup.py so it looks for python-setuptools, which is
10400 ;; required to parse the keyword 'install_requires' in setup.py.
10401 (patches (search-patches "python-configobj-setuptools.patch"))))
10402 (build-system python-build-system)
10404 `(("python-six" ,python-six)))
10405 (synopsis "Config file reading, writing and validation")
10406 (description "ConfigObj is a simple but powerful config file reader and
10407 writer: an ini file round tripper. Its main feature is that it is very easy to
10408 use, with a straightforward programmer’s interface and a simple syntax for
10410 (home-page "https://github.com/DiffSK/configobj")
10411 (license license:bsd-3)))
10413 (define-public python2-configobj
10414 (package-with-python2 python-configobj))
10416 (define-public python-configargparse
10418 (name "python-configargparse")
10422 (uri (pypi-uri "ConfigArgParse" version))
10425 "1p1pzpf5qpf80bfxsx1mbw9blyhhypjvhl3i60pbmhfmhvlpplgd"))))
10426 (build-system python-build-system)
10428 `(("python-pyyaml" ,python-pyyaml)))
10431 (modify-phases %standard-phases
10434 ;; Bypass setuptools-shim because one test relies on "setup.py"
10435 ;; being the first argument passed to the python call.
10437 ;; NOTE: Many tests do not run because they rely on Python's
10438 ;; built-in test.test_argparse, but we remove the unit tests from
10439 ;; our Python installation.
10440 (invoke "python" "setup.py" "test"))))))
10441 (synopsis "Replacement for argparse")
10442 (description "A drop-in replacement for argparse that allows options to also
10443 be set via config files and/or environment variables.")
10444 (home-page "https://github.com/bw2/ConfigArgParse")
10445 (license license:expat)))
10447 (define-public python-argparse-manpage
10449 (name "python-argparse-manpage")
10454 (uri (pypi-uri "argparse-manpage" version))
10457 "0blh31zns68anina9lba5wh81d1414s97p60zw5l0d0shhh0wj5p"))))
10458 (build-system python-build-system)
10459 (home-page "https://github.com/praiskup/argparse-manpage")
10460 (synopsis "Build manual page from Python's ArgumentParser object")
10462 "This package provides tools to build manual pages from Python's
10463 @code{ArgumentParser} object.")
10464 (license license:asl2.0)))
10466 (define-public python-contextlib2
10468 (name "python-contextlib2")
10469 (version "0.6.0.post1")
10473 (uri (pypi-uri "contextlib2" version))
10476 "0bhnr2ac7wy5l85ji909gyljyk85n92w8pdvslmrvc8qih4r1x01"))))
10477 (build-system python-build-system)
10478 (home-page "https://contextlib2.readthedocs.org/")
10479 (synopsis "Tools for decorators and context managers")
10480 (description "This module is primarily a backport of the Python
10481 3.2 contextlib to earlier Python versions. Like contextlib, it
10482 provides utilities for common tasks involving decorators and context
10483 managers. It also contains additional features that are not part of
10484 the standard library.")
10485 (properties `((python2-variant . ,(delay python2-contextlib2))))
10486 (license license:psfl)))
10488 (define-public python2-contextlib2
10489 (let ((base (package-with-python2
10490 (strip-python2-variant python-contextlib2))))
10494 (substitute-keyword-arguments (package-arguments base)
10496 `(modify-phases ,phases
10498 (lambda _ (invoke "python" "test_contextlib2.py" "-v")))))))
10500 `(("python2-unittest2" ,python2-unittest2))))))
10502 ;; This package is used by python2-pytest via python2-importlib-metadata,
10503 ;; and thus can not depend on python-unittest2 (which depends on pytest).
10504 (define-public python2-contextlib2-bootstrap
10507 python2-contextlib2
10508 (name "python2-contextlib2-bootstrap")
10511 ,@(package-arguments python2-contextlib2)))
10512 (native-inputs '()))))
10514 (define-public python-texttable
10516 (name "python-texttable")
10521 (uri (pypi-uri "texttable" version))
10524 "1x5l77akfc20x52jma9573qp8l8r07q103pm4l0pbizvh4vp1wzg"))))
10525 (build-system python-build-system)
10528 (modify-phases %standard-phases
10530 (lambda _ (invoke "pytest" "tests.py"))))))
10532 `(("python-pytest" ,python-pytest)))
10533 (home-page "https://github.com/foutaise/texttable/")
10534 (synopsis "Python module for creating simple ASCII tables")
10535 (description "Texttable is a Python module for creating simple ASCII
10537 (license license:expat)))
10539 (define-public python2-texttable
10540 (package-with-python2 python-texttable))
10542 (define-public python-atomicwrites
10544 (name "python-atomicwrites")
10548 (uri (pypi-uri "atomicwrites" version))
10551 "19ngcscdf3jsqmpcxn6zl5b6anmsajb6izp1smcd1n02midl9abm"))))
10552 (build-system python-build-system)
10553 (synopsis "Atomic file writes in Python")
10554 (description "Library for atomic file writes using platform dependent tools
10555 for atomic file system operations.")
10556 (home-page "https://github.com/untitaker/python-atomicwrites")
10557 (license license:expat)))
10559 (define-public python2-atomicwrites
10560 (package-with-python2 python-atomicwrites))
10562 (define-public python-click-threading
10564 (name "python-click-threading")
10568 (uri (pypi-uri "click-threading" version))
10571 "1rsxc2fbkxlhwhlmxsdjzq3spn284l6rvjfcz9mbb17ibgdgmc5j"))))
10572 (build-system python-build-system)
10574 `(("python-click" ,python-click)))
10575 (synopsis "Utilities for multithreading in Click")
10576 (description "This package provides utilities for multithreading in Click
10578 (home-page "https://github.com/click-contrib/click-threading")
10579 (license license:expat)))
10581 (define-public python-click-log
10583 (name "python-click-log")
10587 (uri (pypi-uri "click-log" version))
10590 "091i03bhxyzsdbc6kilxhivfda2f8ymz3b33xa6cj5kbzjiirz8n"))))
10591 (build-system python-build-system)
10593 `(("python-click" ,python-click)))
10594 (synopsis "Logging for click applications")
10595 (description "This package provides a Python library for logging Click
10597 (home-page "https://github.com/click-contrib/click-log")
10598 (license license:expat)))
10600 (define-public python-apipkg
10602 (name "python-apipkg")
10606 (uri (pypi-uri "apipkg" version))
10609 "1xhak74yj3lqflvpijg15rnkklrigvsp5q7s4as4h6a157d8q8ip"))))
10610 (build-system python-build-system)
10612 `(("python-pytest" ,python-pytest)
10613 ("python-setuptools-scm" ,python-setuptools-scm)))
10614 (synopsis "Namespace control and lazy-import mechanism")
10615 (description "With apipkg you can control the exported namespace of a Python
10616 package and greatly reduce the number of imports for your users. It is a small
10617 pure Python module that works on virtually all Python versions.")
10618 (home-page "https://github.com/pytest-dev/apipkg")
10619 (license license:expat)))
10621 (define-public python-execnet
10623 (name "python-execnet")
10627 (uri (pypi-uri "execnet" version))
10630 "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
10631 (build-system python-build-system)
10633 `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed
10634 ;; The two test failures are caused by the lack of an `ssh` executable.
10635 ;; The test suite can be run with pytest after the 'install' phase.
10638 `(("python-pytest" ,python-pytest)
10639 ("python-setuptools-scm" ,python-setuptools-scm)))
10641 `(("python-apipkg" ,python-apipkg)))
10642 (synopsis "Rapid multi-Python deployment")
10643 (description "Execnet provides a share-nothing model with
10644 channel-send/receive communication for distributing execution across many
10645 Python interpreters across version, platform and network barriers. It has a
10646 minimal and fast API targeting the following uses:
10648 @item distribute tasks to (many) local or remote CPUs
10649 @item write and deploy hybrid multi-process applications
10650 @item write scripts to administer multiple environments
10652 (home-page "https://codespeak.net/execnet/")
10653 (license license:expat)))
10655 (define-public python2-execnet
10656 (package-with-python2 python-execnet))
10658 (define-public python-icalendar
10660 (name "python-icalendar")
10664 (uri (pypi-uri "icalendar" version))
10667 "14ynjj65kfmlcvpb7k097w789wvxncd3cr3xz5m1jz9yl9v6vv5q"))))
10668 (build-system python-build-system)
10670 `(("python-dateutil" ,python-dateutil)
10671 ("python-pytz" ,python-pytz)))
10672 (synopsis "Python library for parsing iCalendar files")
10673 (description "The icalendar package is a parser/generator of iCalendar
10674 files for use with Python.")
10675 (home-page "https://github.com/collective/icalendar")
10676 (license license:bsd-2)))
10678 (define-public python-args
10680 (name "python-args")
10684 (uri (pypi-uri "args" version))
10687 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
10688 (build-system python-build-system)
10689 (home-page "https://github.com/kennethreitz/args")
10690 (synopsis "Command-line argument parser")
10692 "This library provides a Python module to parse command-line arguments.")
10693 (license license:bsd-3)))
10695 (define-public python2-args
10696 (package-with-python2 python-args))
10698 (define-public python-clint
10700 (name "python-clint")
10704 (uri (pypi-uri "clint" version))
10707 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
10708 (build-system python-build-system)
10711 (modify-phases %standard-phases
10713 (lambda _ (invoke "py.test" "-v"))))))
10715 `(("python-pytest" ,python-pytest)))
10717 `(("python-args" ,python-args)))
10718 (home-page "https://github.com/kennethreitz/clint")
10719 (synopsis "Command-line interface tools")
10721 "Clint is a Python module filled with a set of tools for developing
10722 command-line applications, including tools for colored and indented
10723 output, progress bar display, and pipes.")
10724 (license license:isc)))
10726 (define-public python2-clint
10727 (package-with-python2 python-clint))
10729 (define-public python-rply
10731 (name "python-rply")
10735 (uri (pypi-uri "rply" version))
10738 "0lv428895zxsz43968qx0q9bimwqnfykndz4dpjbq515w2gvzhjh"))))
10739 (build-system python-build-system)
10741 `(("python-appdirs" ,python-appdirs)))
10742 (home-page "https://github.com/alex/rply")
10743 (synopsis "Parser generator for Python")
10745 "This package provides a pure Python based parser generator, that also
10746 works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
10747 with a new public API, and RPython support.")
10748 (license license:bsd-3)))
10750 (define-public python2-rply
10751 (package-with-python2 python-rply))
10753 (define-public python-hy
10759 (uri (pypi-uri "hy" version))
10762 "04dfwm336gw61fmgwikvh0cnxk682p19b4w555wl5d7mlym4rwj2"))))
10763 (build-system python-build-system)
10766 (modify-phases %standard-phases
10767 (add-before 'install 'set-HOME
10769 (setenv "HOME" "/tmp") #t))
10772 ;; Tests require write access to HOME.
10773 (setenv "HOME" "/tmp")
10774 (invoke "nosetests"))))))
10776 `(("python-coverage" ,python-coverage)
10777 ("python-nose" ,python-nose)))
10779 `(("python-astor" ,python-astor)
10780 ("python-colorama" ,python-colorama)
10781 ("python-rply" ,python-rply)
10782 ("python-funcparserlib"
10783 ,python-funcparserlib)))
10784 (home-page "http://hylang.org/")
10785 (synopsis "Lisp frontend to Python")
10787 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
10788 its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
10789 Python at your fingertips, in Lisp form.")
10790 (license license:expat)))
10792 (define-public python2-functools32
10794 (name "python2-functools32")
10795 (version "3.2.3-2")
10799 (uri (pypi-uri "functools32" version))
10802 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
10803 (build-system python-build-system)
10805 `(#:python ,python-2
10806 #:tests? #f)) ; no test target
10807 (home-page "https://github.com/MiCHiLU/python-functools32")
10809 "Backport of the functools module from Python 3.2.3")
10811 "This package is a backport of the @code{functools} module from Python
10812 3.2.3 for use with older versions of Python and PyPy.")
10813 (license license:expat)))
10815 (define-public python2-subprocess32
10817 (name "python2-subprocess32")
10821 (uri (pypi-uri "subprocess32" version))
10824 "14350dhhlhyz5gqzi3lihn9m6lvskx5mcb20srx1kgsk9i50li8y"))
10826 (search-patches "python2-subprocess32-disable-input-test.patch"))))
10827 (build-system python-build-system)
10829 `(#:python ,python-2
10830 ;; The test suite fails with Python > 2.7.13:
10831 ;; import test.support
10832 ;; ImportError: No module named support
10835 (modify-phases %standard-phases
10836 (add-after 'unpack 'patch-/bin/sh
10838 (substitute* '("subprocess32.py"
10839 "test_subprocess32.py")
10840 (("/bin/sh") (which "sh")))
10842 (home-page "https://github.com/google/python-subprocess32")
10843 (synopsis "Backport of the subprocess module from Python 3.2")
10845 "This is a backport of the @code{subprocess} standard library module
10846 from Python 3.2 and 3.3 for use on Python 2. It includes bugfixes and some
10847 new features. On POSIX systems it is guaranteed to be reliable when used
10848 in threaded applications. It includes timeout support from Python 3.3 but
10849 otherwise matches 3.2’s API.")
10850 (license license:psfl)))
10852 (define-public python2-futures
10854 (name "python2-futures")
10859 (uri (pypi-uri "futures" version))
10862 "0rdjmmsab550kxsssdq49jcniz77zlkpw4pvi9hvib3lsskjmh4y"))))
10863 (build-system python-build-system)
10865 `(#:python ,python-2
10867 (modify-phases %standard-phases
10870 (invoke "python" "test_futures.py")
10872 (home-page "https://github.com/agronholm/pythonfutures")
10874 "Backport of the concurrent.futures package from Python 3.2")
10876 "The concurrent.futures module provides a high-level interface for
10877 asynchronously executing callables. This package backports the
10878 concurrent.futures package from Python 3.2")
10879 (license license:bsd-3)))
10881 (define-public python-promise
10883 (name "python-promise")
10888 (uri (pypi-uri "promise" version))
10891 "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
10892 (build-system python-build-system)
10893 ;; Tests wants python-futures, which is a python2 only program, and
10894 ;; can't be found by python-promise at test time.
10895 (arguments `(#:tests? #f))
10896 (home-page "https://github.com/syrusakbary/promise")
10897 (synopsis "Promises/A+ implementation for Python")
10899 "Promises/A+ implementation for Python")
10900 (properties `((python2-variant . ,(delay python2-promise))))
10901 (license license:expat)))
10903 (define-public python2-promise
10904 (let ((promise (package-with-python2
10905 (strip-python2-variant python-promise))))
10906 (package (inherit promise)
10907 (arguments (substitute-keyword-arguments (package-arguments promise)
10908 ((#:tests? _) #t)))
10910 `(("python2-futures" ,python2-futures)
10911 ("python2-pytest" ,python2-pytest)
10912 ,@(package-native-inputs promise))))))
10914 (define-public python-progressbar2
10916 (name "python-progressbar2")
10921 (uri (pypi-uri "progressbar2" version))
10924 "0b2v3mim90rmfvixkaniz2qrs650sk230rzgd5zhcjfldmlqgxpc"))))
10925 (build-system python-build-system)
10927 `(("python-six" ,python-six)
10928 ("python-utils" ,python-utils)))
10930 `(("python-flake8" ,python-flake8)
10931 ("python-freezegun" ,python-freezegun)
10932 ("python-pycodestyle" ,python-pycodestyle)
10933 ("python-pytest" ,python-pytest)
10934 ("python-pytest-cache" ,python-pytest-cache)
10935 ("python-pytest-cov" ,python-pytest-cov)
10936 ("python-pytest-flakes" ,python-pytest-flakes)
10937 ("python-pytest-pep8" ,python-pytest-pep8)
10938 ("python-sphinx" ,python-sphinx)))
10939 (home-page "https://github.com/WoLpH/python-progressbar")
10940 (synopsis "Text progress bar library for Python")
10942 "This package provides a Python progressbar library to provide
10943 visual (yet text based) progress to long running operations.")
10944 (license license:bsd-3)))
10946 (define-public python-progressbar33
10948 (name "python-progressbar33")
10953 (uri (pypi-uri "progressbar33" version))
10956 "1zvf6zs5hzrc03p9nfs4p16vhilqikycvv1yk0pxn8s07fdhvzji"))))
10957 (build-system python-build-system)
10958 (home-page "https://github.com/germangh/python-progressbar")
10959 (synopsis "Text progress bar library for Python")
10961 "This package provides a text progress bar library for Python. This
10962 version only differs from the original @code{progressbar} package in that it
10963 uses relative package imports instead of absolute imports, which is necessary
10964 for the module to work under Python 3.3.")
10965 ;; Either or both of these licenses may be selected.
10966 (license (list license:lgpl2.1+ license:bsd-3))))
10968 (define-public python-colorama
10970 (name "python-colorama")
10975 (uri (pypi-uri "colorama" version))
10977 (base32 "16w62sm95hmh55rqxn4zwdz0bkh3fqm1qnz9cwi3s510iasb4har"))))
10978 (build-system python-build-system)
10979 (synopsis "Colored terminal text rendering for Python")
10980 (description "Colorama is a Python library for rendering colored terminal
10982 (home-page "https://pypi.org/project/colorama/")
10983 (license license:bsd-3)))
10985 (define-public python2-colorama
10986 (package-with-python2 python-colorama))
10988 (define-public python-moto
10990 (name "python-moto")
10991 ;; XXX: Use a pre-release for compatibility with latest botocore & friends.
10992 (version "1.3.16.dev134")
10995 (uri (pypi-uri "moto" version))
10998 "1pix0c7zszjwzfy88n1rpih9vkdm25nqcvz93z850xvgwb4v81bd"))))
10999 (build-system python-build-system)
11001 `(#:phases (modify-phases %standard-phases
11002 (add-after 'unpack 'patch-hardcoded-executable-names
11004 (substitute* "moto/batch/models.py"
11007 (substitute* (find-files "tests" "\\.py$")
11009 (string-append "#!" (which "bash"))))
11013 (setenv "PYTHONPATH" (string-append "./build/lib:"
11014 (getenv "PYTHONPATH")))
11015 (invoke "pytest" "-vv" "-m" "not network"
11016 ;; These tests require Docker.
11017 "-k" "not test_terminate_job \
11018 and not test_invoke_function_from_sqs_exception"))))))
11020 `(("python-flask" ,python-flask)
11021 ("python-flask-cors" ,python-flask-cors)
11022 ("python-freezegun" ,python-freezegun)
11023 ("python-parameterized" ,python-parameterized)
11024 ("python-pytest" ,python-pytest)
11025 ("python-sure" ,python-sure)))
11027 `(("python-aws-xray-sdk" ,python-aws-xray-sdk)
11028 ("python-boto" ,python-boto)
11029 ("python-boto3" ,python-boto3)
11030 ("python-botocore" ,python-botocore)
11031 ("python-cfn-lint" ,python-cfn-lint)
11032 ("python-cryptography" ,python-cryptography)
11033 ("python-dateutil" ,python-dateutil)
11034 ("python-docker" ,python-docker)
11035 ("python-idna" ,python-idna)
11036 ("python-jinja2" ,python-jinja2)
11037 ("python-jose" ,python-jose)
11038 ("python-jsondiff" ,python-jsondiff)
11039 ("python-mock" ,python-mock)
11040 ("python-pytz" ,python-pytz)
11041 ("python-pyyaml" ,python-pyyaml)
11042 ("python-requests" ,python-requests)
11043 ("python-responses" ,python-responses)
11044 ("python-six" ,python-six)
11045 ("python-sshpubkeys" ,python-sshpubkeys)
11046 ("python-werkzeug" ,python-werkzeug)
11047 ("python-xmltodict" ,python-xmltodict)))
11048 (home-page "https://github.com/spulec/moto")
11049 (synopsis "Mock out the boto library")
11051 "@code{moto} is a library designed to easily mock out the
11052 @code{boto} library.")
11053 (license license:asl2.0)))
11055 (define-public python-rsa
11057 (name "python-rsa")
11062 (uri (pypi-uri "rsa" version))
11065 "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5"))))
11066 (build-system python-build-system)
11068 `(("python-pyasn1" ,python-pyasn1)))
11069 (synopsis "Pure-Python RSA implementation")
11070 (description "Python-RSA is a pure-Python RSA implementation. It supports
11071 encryption and decryption, signing and verifying signatures, and key
11072 generation according to PKCS#1 version 1.5. It can be used as a Python
11073 library as well as on the command line.")
11074 (home-page "https://stuvel.eu/rsa")
11075 (license license:asl2.0)))
11077 (define-public python2-rsa
11078 (package-with-python2 python-rsa))
11080 (define-public python-pluggy
11082 (name "python-pluggy")
11087 (uri (pypi-uri "pluggy" version))
11090 "1c35qyhvy27q9ih9n899f3h4sdnpgq027dbiilly2qb5cvgarchm"))))
11091 (build-system python-build-system)
11093 `(("python-setuptools-scm" ,python-setuptools-scm)))
11094 (synopsis "Plugin and hook calling mechanism for Python")
11095 (description "Pluggy is an extraction of the plugin manager as used by
11096 Pytest but stripped of Pytest specific details.")
11097 (home-page "https://pypi.org/project/pluggy/")
11098 (properties `((python2-variant . ,(delay python2-pluggy))))
11099 (license license:expat)))
11101 (define-public python2-pluggy
11102 (let ((base (package-with-python2 (strip-python2-variant
11107 `(("python-importlib-metadata" ,python2-importlib-metadata))))))
11109 ;; This package requires python2-importlib-metadata, but that package
11110 ;; ends up needing python2-pluggy via python2-pytest, so we need this
11111 ;; variant to solve the circular dependency.
11112 (define-public python2-pluggy-bootstrap
11116 (name "python2-pluggy-bootstrap")
11119 ,@(package-arguments python2-pluggy)))
11121 `(("python-importlib-metadata" ,python2-importlib-metadata-bootstrap))))))
11123 (define-public python-tox
11125 (name "python-tox")
11130 (uri (pypi-uri "tox" version))
11133 "0nk0nyzhzamcrvn0qqzzy54isxxqwdi28swml7a2ym78c3f9sqpb"))))
11134 (build-system python-build-system)
11136 ;; FIXME: Tests require pytest-timeout, which itself requires
11137 ;; pytest>=2.8.0 for installation.
11140 `(("python-filelock" ,python-filelock)
11141 ("python-packaging" ,python-packaging)
11142 ("python-pluggy" ,python-pluggy)
11143 ("python-py" ,python-py)
11144 ("python-six" ,python-six)
11145 ("python-toml" ,python-toml)
11146 ("python-virtualenv" ,python-virtualenv)))
11148 `(; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout)
11149 ("python-pytest" ,python-pytest) ; >= 2.3.5
11150 ("python-setuptools-scm" ,python-setuptools-scm)))
11151 (home-page "https://tox.readthedocs.io")
11152 (synopsis "Virtualenv-based automation of test activities")
11153 (description "Tox is a generic virtualenv management and test command line
11154 tool. It can be used to check that a package installs correctly with
11155 different Python versions and interpreters, or run tests in each type of
11156 supported environment, or act as a frontend to continuous integration
11158 (license license:expat)))
11160 (define-public python2-tox
11161 (package-with-python2 python-tox))
11163 (define-public python-jmespath
11165 (name "python-jmespath")
11170 (uri (pypi-uri "jmespath" version))
11173 "0k0765x1mybcrzajh3hiqkl8sy9hs0bmn4900frxy0j3ykvaxqmx"))))
11174 (build-system python-build-system)
11176 `(("python-nose" ,python-nose)))
11177 (synopsis "JSON Matching Expressions")
11178 (description "JMESPath (pronounced “james path”) is a Python library that
11179 allows one to declaratively specify how to extract elements from a JSON
11181 (home-page "https://github.com/jmespath/jmespath.py")
11182 (license license:expat)))
11184 (define-public python2-jmespath
11185 (package-with-python2 python-jmespath))
11187 (define-public python-symengine
11189 (name "python-symengine")
11194 (uri (pypi-uri "symengine" version))
11196 (base32 "1kn1w4dp9mrsq6kzmhf4pjmx3wicxc3dw1mwa924q8g48g77lr4c"))))
11197 (build-system python-build-system)
11200 ("python-cython" ,python-cython)))
11202 `(("symengine" ,symengine)))
11203 (home-page "https://github.com/symengine/symengine.py")
11204 (synopsis "Python library providing wrappers to SymEngine")
11206 "This library provides a Python wrapper to SymEngine, a fast C++ symbolic
11207 manipulation library.")
11208 (license license:expat)))
11210 (define-public python-boto
11212 (name "python-boto")
11216 (uri (pypi-uri "boto" version))
11219 "0njy09c4wjx7ipxhwi6vv404nflyiasl78vwwxxpclnql903n3ga"))))
11220 (build-system python-build-system)
11222 ;; XXX: This package is unmaintained and has problems with newer versions
11223 ;; of Python 3 as well as test libraries. 'python-moto' still uses a
11224 ;; subset of this library, so keep it around for now, but disable tests.
11227 `(("python-paramiko" ,python-paramiko)
11228 ("python-requests" ,python-requests)))
11229 (home-page "https://github.com/boto/boto")
11230 (synopsis "Python interfaces for Amazon Web Services")
11232 "This package provides various facilities for interacting with Amazon
11233 Web Services through Python.
11235 This software is unmaintained, and new projects should use @code{boto3} instead.")
11236 (license license:expat)))
11238 (define-public python-botocore
11239 ;; Note: When updating botocore, also make sure that boto3 and awscli
11242 (name "python-botocore")
11243 (version "1.19.22")
11247 (uri (pypi-uri "botocore" version))
11250 "0iim86x7c6hqmvd61ygz6x6x9glnsfbnyzv2y67qjdcdx8jpkmw7"))))
11251 (build-system python-build-system)
11253 ;; FIXME: Many tests are failing.
11256 `(("python-dateutil" ,python-dateutil)
11257 ("python-jmespath" ,python-jmespath)
11258 ("python-urllib3" ,python-urllib3)))
11259 (home-page "https://github.com/boto/botocore")
11260 (synopsis "Low-level interface to AWS")
11261 (description "Botocore is a Python library that provides a low-level
11262 interface to the Amazon Web Services (AWS) API.")
11263 (license license:asl2.0)))
11265 (define-public python2-botocore
11266 (package-with-python2 python-botocore))
11268 (define-public python-boto3
11270 (name "python-boto3")
11271 (version "1.16.22")
11272 (home-page "https://github.com/boto/boto3")
11275 (uri (git-reference (url home-page) (commit version)))
11276 (file-name (git-file-name name version))
11279 "0h20hgl4yfl58g75qhb6ibrdmzn47md3srgar7hask14cjmfhfy3"))))
11282 (modify-phases %standard-phases
11283 (add-after 'unpack 'delete-network-tests
11284 ;; Deleting integration tests because they are trying to connect to AWS.
11286 (delete-file-recursively "tests/integration")
11288 (build-system python-build-system)
11290 `(("python-nose" ,python-nose)
11291 ("python-mock" ,python-mock)))
11293 `(("python-botocore" ,python-botocore)
11294 ("python-jmespath" ,python-jmespath)
11295 ("python-s3transfer" ,python-s3transfer)))
11296 (synopsis "AWS SDK for Python")
11298 "Boto3 is a Python library for writing programs that interact with
11299 @acronym{AWS,Amazon Web Services}.")
11300 (license license:asl2.0)))
11302 (define-public python-pyfiglet
11304 (name "python-pyfiglet")
11305 (version "0.8.post1")
11309 (uri (pypi-uri "pyfiglet" version))
11312 "0f9n2076ga2ccsg174k2d7n0z4d44ml96yzc72s6g4nhalbk5hn6"))))
11313 (build-system python-build-system)
11314 (home-page "https://github.com/pwaller/pyfiglet")
11315 (synopsis "Draw ASCII art big letters in Python")
11316 (description "This module lets you draw large letter from ordinary characters
11318 (license license:expat)))
11320 (define-public python-xdo
11322 (name "python-xdo")
11326 (uri (string-append
11327 "http://http.debian.net/debian/pool/main/p/python-xdo/"
11328 "python-xdo_" version ".orig.tar.gz"))
11331 "1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0"))))
11332 (build-system python-build-system)
11335 (modify-phases %standard-phases
11336 (add-before 'install 'patch-libxdo-path
11337 ;; Hardcode the path of dynamically loaded libxdo library.
11338 (lambda* (#:key inputs #:allow-other-keys)
11339 (let ((libxdo (string-append
11340 (assoc-ref inputs "xdotool")
11341 "/lib/libxdo.so")))
11342 (substitute* "xdo/_xdo.py"
11343 (("find_library\\(\"xdo\"\\)")
11344 (simple-format #f "\"~a\"" libxdo)))
11346 #:tests? #f)) ; no tests provided
11348 `(("python-six" ,python-six)))
11350 `(("xdotool" ,xdotool)
11351 ("libX11" ,libx11)))
11352 (home-page "https://tracker.debian.org/pkg/python-xdo")
11353 (synopsis "Python library for simulating X11 keyboard/mouse input")
11354 (description "Provides bindings to libxdo for manipulating X11 via simulated
11355 input. (Note that this is mostly a legacy library; you may wish to look at
11356 python-xdo for newer bindings.)")
11357 (license license:bsd-3)))
11359 (define-public python2-xdo
11360 (package-with-python2 python-xdo))
11362 (define-public python-mako
11364 (name "python-mako")
11369 (uri (pypi-uri "Mako" version))
11372 "09ywrmhr6gdyfx6d5727wwjnz73i6rklqcb4c14m7sqc830wi5c1"))))
11373 (build-system python-build-system)
11375 `(#:phases (modify-phases %standard-phases
11377 (lambda* (#:key tests? #:allow-other-keys)
11379 (invoke "nosetests" "-v")
11380 (format #t "test suite not run~%"))
11383 `(("python-markupsafe" ,python-markupsafe)))
11385 `(("python-mock" ,python-mock)
11386 ("python-nose" ,python-nose)))
11387 (home-page "https://www.makotemplates.org/")
11388 (synopsis "Templating language for Python")
11389 (description "Mako is a templating language for Python that compiles
11390 templates into Python modules.")
11391 (license license:expat)))
11393 (define-public python2-mako
11394 (package-with-python2 python-mako))
11396 (define-public python-waitress
11398 (name "python-waitress")
11403 (uri (pypi-uri "waitress" version))
11404 (patches (search-patches "python-waitress-fix-tests.patch"))
11407 "1a85gyji0kajc3p0s1pwwfm06w4wfxjkvvl4rnrz3h164kbd6g6k"))))
11408 (build-system python-build-system)
11409 (home-page "https://github.com/Pylons/waitress")
11410 (synopsis "Waitress WSGI server")
11411 (description "Waitress is meant to be a production-quality pure-Python WSGI
11412 server with very acceptable performance.")
11413 (license license:zpl2.1)))
11415 (define-public python2-waitress
11416 (package-with-python2 python-waitress))
11418 (define-public python-whichcraft
11420 (name "python-whichcraft")
11425 (uri (pypi-uri "whichcraft" version))
11428 "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
11429 (build-system python-build-system)
11431 `(("python-pytest" ,python-pytest)))
11432 (home-page "https://github.com/pydanny/whichcraft")
11433 (synopsis "Cross-platform cross-python shutil.which functionality")
11435 "This package provides a shim of the shutil.which function that's
11436 designed to work across multiple versions of Python.")
11437 (license license:bsd-3)))
11439 (define-public python-cookiecutter
11441 (name "python-cookiecutter")
11446 (uri (pypi-uri "cookiecutter" version))
11449 "1b2xa5dypk1vf8aq599fd8zw4y0pwvq3hgl7ia8aiv8gg3ab5dpg"))))
11450 (build-system python-build-system)
11452 `(("python-freezegun" ,python-freezegun)
11453 ("python-pytest" ,python-pytest)
11454 ("python-pytest-catchlog" ,python-pytest-catchlog)
11455 ("python-pytest-cov" ,python-pytest-cov)
11456 ("python-pytest-mock" ,python-pytest-mock)))
11458 `(("python-binaryornot" ,python-binaryornot)
11459 ("python-click" ,python-click)
11460 ("python-future" ,python-future)
11461 ("python-jinja2" ,python-jinja2)
11462 ("python-jinja2-time" ,python-jinja2-time)
11463 ("python-poyo" ,python-poyo)
11464 ("python-requests" ,python-requests)
11465 ("python-slugify" ,python-slugify)
11466 ("python-text-unidecode" ,python-text-unidecode)
11467 ("python-whichcraft" ,python-whichcraft)))
11468 (home-page "https://github.com/cookiecutter/cookiecutter")
11470 "Command-line utility that creates projects from project templates")
11472 "This package provides a command-line utility that creates projects from
11473 project templates, e.g. creating a Python package project from a Python package
11474 project template.")
11475 (license license:bsd-3)))
11477 (define-public python-pyquery
11479 (name "python-pyquery")
11484 (uri (pypi-uri "pyquery" version))
11487 "1xia20wm0vx5dk85kcwgh13bylz8qh47ffjxssd2586r60xi783a"))))
11488 (build-system python-build-system)
11490 `(("python-webob" ,python-webob)
11491 ("python-webtest" ,python-webtest)))
11493 `(("python-lxml" ,python-lxml)
11494 ("python-cssselect" ,python-cssselect)))
11495 (home-page "https://github.com/gawel/pyquery")
11496 (synopsis "Make jQuery-like queries on xml documents")
11497 (description "pyquery allows you to make jQuery queries on xml documents.
11498 The API is as much as possible the similar to jQuery. pyquery uses lxml for
11499 fast xml and html manipulation.")
11500 (license license:bsd-3)))
11502 (define-public python-anyjson
11504 (name "python-anyjson")
11509 (uri (pypi-uri "anyjson" version))
11512 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
11513 (build-system python-build-system)
11515 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
11516 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
11517 ;; whatever) so this transformation needs to be done before the tests
11518 ;; can be run. Maybe we could add a build step to transform beforehand
11519 ;; but it could be annoying/difficult.
11520 ;; We can enable tests for the Python 2 version, though, and do below.
11522 (home-page "https://bitbucket.org/runeh/anyjson/")
11524 "Wraps best available JSON implementation in a common interface")
11526 "Anyjson loads whichever is the fastest JSON module installed
11527 and provides a uniform API regardless of which JSON implementation is used.")
11528 (license license:bsd-3)
11529 (properties `((python2-variant . ,(delay python2-anyjson))))))
11531 (define-public python2-anyjson
11532 (let ((anyjson (package-with-python2
11533 (strip-python2-variant python-anyjson))))
11536 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
11538 ,@(package-arguments anyjson)))
11539 (native-inputs `(("python2-nose" ,python2-nose))))))
11541 (define-public python-amqp
11543 (name "python-amqp")
11548 (uri (pypi-uri "amqp" version))
11551 "1sv600dgqwpimr6i1g59y9hpn50mc236gdqkr7zin13kvlpx0g87"))))
11552 (build-system python-build-system)
11554 `(("python-case" ,python-case)
11555 ("python-pytest-sugar" ,python-pytest-sugar)
11556 ("python-mock" ,python-mock)))
11558 `(("python-vine" ,python-vine)))
11559 (home-page "https://github.com/celery/py-amqp")
11561 "Low-level AMQP client for Python (fork of amqplib)")
11563 "This is a fork of amqplib which was originally written by Barry Pederson.
11564 It is maintained by the Celery project, and used by kombu as a pure python
11565 alternative when librabbitmq is not available.")
11566 (license license:lgpl2.1+)
11567 (properties `((python2-variant . ,(delay python2-amqp))))))
11569 (define-public python2-amqp
11570 (let ((amqp (package-with-python2
11571 (strip-python2-variant python-amqp))))
11574 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
11575 ;; unmaintained. Weirdly, does not do this on the python 3
11578 ,@(package-arguments amqp))))))
11580 (define-public python-txamqp
11582 (name "python-txamqp")
11587 (uri (pypi-uri "txAMQP" version))
11590 "0jd9864k3csc06kipiwzjlk9mq4054s8kzk5q1cfnxj8572s4iv4"))))
11591 (build-system python-build-system)
11593 `(("python-six" ,python-six)
11594 ("python-twisted" ,python-twisted)))
11595 (home-page "https://github.com/txamqp/txamqp")
11596 (synopsis "Communicate with AMQP peers and brokers using Twisted")
11598 "This package provides a Python library for communicating with AMQP peers
11599 and brokers using the asynchronous networking framework Twisted. It contains
11600 all the necessary code to connect, send and receive messages to/from an
11601 AMQP-compliant peer or broker (Qpid, OpenAMQ, RabbitMQ) using Twisted. It
11602 also includes support for using Thrift RPC over AMQP in Twisted
11604 (license license:asl2.0)))
11606 (define-public python2-txamqp
11607 (package-with-python2 python-txamqp))
11609 (define-public python-kombu
11611 (name "python-kombu")
11616 (uri (pypi-uri "kombu" version))
11619 "15k8f7mzqr049sg9vi48m19vjykviafk3f0p5xzgw9by0x0kyxjj"))))
11620 (build-system python-build-system)
11622 `(("python-mock" ,python-mock)
11623 ("python-case" ,python-case)
11624 ("python-pyro4" ,python-pyro4)
11625 ("python-pytest-sugar" ,python-pytest-sugar)
11626 ("python-pytz" ,python-pytz)))
11628 `(("python-anyjson" ,python-anyjson)
11629 ("python-amqp" ,python-amqp)
11630 ("python-redis" ,python-redis)))
11631 (home-page "https://kombu.readthedocs.io")
11632 (synopsis "Message passing library for Python")
11633 (description "The aim of Kombu is to make messaging in Python as easy as
11634 possible by providing an idiomatic high-level interface for the AMQ protocol,
11635 and also provide proven and tested solutions to common messaging problems.
11636 AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
11637 message orientation, queuing, routing, reliability and security, for which the
11638 RabbitMQ messaging server is the most popular implementation.")
11639 (license license:bsd-3)
11640 (properties `((python2-variant . ,(delay python2-kombu))))))
11642 (define-public python2-kombu
11643 (let ((kombu (package-with-python2
11644 (strip-python2-variant python-kombu))))
11647 (arguments `(;; FIXME: 'TestTransport.test_del_sync' fails on python2.
11648 ;; It works fine on the python3 variant.
11650 ,@(package-arguments kombu)))
11651 (native-inputs `(("python2-unittest2" ,python2-unittest2)
11652 ,@(package-native-inputs kombu))))))
11654 (define-public python-billiard
11656 (name "python-billiard")
11657 (version "3.5.0.5")
11661 (uri (pypi-uri "billiard" version))
11664 "03msmapj3s5zgqk87d646mafz7a01h5bm2wijalgpi0s80ks5na2"))))
11665 (build-system python-build-system)
11667 `(("python-case" ,python-case)
11668 ("python-pytest" ,python-pytest)))
11669 (home-page "https://github.com/celery/billiard")
11671 "Python multiprocessing fork with improvements and bugfixes")
11673 "Billiard is a fork of the Python 2.7 multiprocessing package. The
11674 multiprocessing package itself is a renamed and updated version of R Oudkerk's
11675 pyprocessing package. This standalone variant is intended to be compatible with
11676 Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
11677 (license license:bsd-3)
11678 (properties `((python2-variant . ,(delay python2-billiard))))))
11680 (define-public python2-billiard
11681 (let ((billiard (package-with-python2
11682 (strip-python2-variant python-billiard))))
11685 (native-inputs `(("python2-unittest2" ,python2-unittest2)
11686 ("python2-mock" ,python2-mock)
11687 ,@(package-native-inputs billiard))))))
11689 (define-public python-celery
11691 (name "python-celery")
11696 (uri (pypi-uri "celery" version))
11699 "0y66rz7z8dfcgs3s0qxmdddlaq57bzbgxgfz896nbp14grkv9nkp"))))
11700 (build-system python-build-system)
11702 '(;; TODO The tests fail with Python 3.7
11703 ;; https://github.com/celery/celery/issues/4849
11706 (modify-phases %standard-phases
11707 (add-after 'unpack 'patch-requirements
11709 (substitute* "requirements/test.txt"
11710 (("pytest>=3\\.0,<3\\.3")
11714 `(("python-case" ,python-case)
11715 ("python-pytest" ,python-pytest)))
11717 `(("python-pytz" ,python-pytz)
11718 ("python-billiard" ,python-billiard)
11719 ("python-kombu" ,python-kombu)))
11720 (home-page "https://celeryproject.org")
11721 (synopsis "Distributed Task Queue")
11722 (description "Celery is an asynchronous task queue/job queue based on
11723 distributed message passing. It is focused on real-time operation, but
11724 supports scheduling as well. The execution units, called tasks, are executed
11725 concurrently on a single or more worker servers using multiprocessing,
11726 Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
11727 synchronously (wait until ready).")
11728 (license license:bsd-3)
11729 (properties `((python2-variant . ,(delay python2-celery))))))
11731 (define-public python2-celery
11732 (let ((celery (package-with-python2
11733 (strip-python2-variant python-celery))))
11736 (native-inputs `(("python2-unittest2" ,python2-unittest2)
11737 ("python2-mock" ,python2-mock)
11738 ,@(package-native-inputs celery))))))
11740 (define-public python-translitcodec
11742 (name "python-translitcodec")
11747 (uri (pypi-uri "translitcodec" version))
11750 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
11751 (build-system python-build-system)
11753 `(#:tests? #f)) ; no tests provided
11755 "https://github.com/claudep/translitcodec")
11757 "Unicode to 8-bit charset transliteration codec")
11759 "This package contains codecs for transliterating ISO 10646 texts into
11760 best-effort representations using smaller coded character sets (ASCII,
11762 (license license:expat)))
11764 (define-public python2-translitcodec
11765 (package-with-python2 python-translitcodec))
11767 (define-public python-editor
11769 (name "python-editor")
11774 (uri (pypi-uri "python-editor" version))
11777 "0yrjh8w72ivqxi4i7xsg5b1vz15x8fg51xra7c3bgfyxqnyadzai"))))
11778 (build-system python-build-system)
11780 '(#:tests? #f)) ;XXX: needs a TTY and an editor
11781 (home-page "https://github.com/fmoo/python-editor")
11782 (synopsis "Programmatically open an editor, capture the result")
11784 "python-editor is a library that provides the editor module for
11785 programmatically interfacing with your system's $EDITOR.")
11786 (license license:asl2.0)))
11788 (define-public python2-editor
11789 (package-with-python2 python-editor))
11791 (define-public python-vobject
11793 (name "python-vobject")
11794 (version "0.9.6.1")
11797 (uri (pypi-uri "vobject" version))
11800 "0081g4gngw28j7vw8101jk600wz4gzfrhf5myrqvn2mrfkn2llcn"))))
11801 (build-system python-build-system)
11803 '(;; The test suite relies on some non-portable Windows interfaces.
11806 `(("python-dateutil" ,python-dateutil)
11807 ("python-pyicu" ,python-pyicu)))
11808 (synopsis "Parse and generate vCard and vCalendar files")
11809 (description "Vobject is intended to be a full featured Python package for
11810 parsing and generating vCard and vCalendar files. Currently, iCalendar files
11811 are supported and well tested. vCard 3.0 files are supported, and all data
11812 should be imported, but only a few components are understood in a sophisticated
11814 (home-page "https://eventable.github.io/vobject/")
11815 (license license:asl2.0)))
11817 (define-public python2-vobject
11818 (package-with-python2 python-vobject))
11820 (define-public python-munkres
11822 (name "python-munkres")
11826 (uri (pypi-uri "munkres" version))
11829 "0mbspx4zv8id4x6pim6ybsa1xh96qwpbqj7skbqz4c9c9nf1lpqq"))))
11830 (build-system python-build-system)
11832 '(#:tests? #f)) ; no test suite
11833 (home-page "https://software.clapper.org/munkres/")
11834 (synopsis "Implementation of the Munkres algorithm")
11835 (description "The Munkres module provides an implementation of the Munkres
11836 algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
11837 useful for solving the Assignment Problem.")
11838 (license license:bsd-3)))
11840 (define-public python2-munkres
11841 (package-with-python2 python-munkres))
11843 (define-public python-whoosh
11845 (name "python-whoosh")
11850 (uri (pypi-uri "Whoosh" version))
11853 "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
11854 (build-system python-build-system)
11855 (arguments '(#:tests? #f)) ; Test invocation is no longer supported by Python.
11857 `(("python-pytest" ,python-pytest)))
11858 (home-page "https://bitbucket.org/mchaput/whoosh")
11859 (synopsis "Full text indexing, search, and spell checking library")
11861 "Whoosh is a fast, pure-Python full text indexing, search, and spell
11862 checking library.")
11863 (license license:bsd-2)))
11865 (define-public python2-whoosh
11866 (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh))))
11867 (package (inherit whoosh)
11869 `(("python2-backport-ssl-match-hostname"
11870 ,python2-backport-ssl-match-hostname)
11871 ,@(package-propagated-inputs whoosh))))))
11873 (define-public python-pathlib
11875 (name "python-pathlib")
11879 (uri (pypi-uri "pathlib" version))
11882 "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
11883 (build-system python-build-system)
11884 ;; The tests depend on the internal "test" module, which does not provide
11885 ;; a stable interface.
11886 (arguments `(#:tests? #f))
11887 (home-page "https://pathlib.readthedocs.org/")
11888 (synopsis "Object-oriented file system paths")
11889 (description "Pathlib offers a set of classes to handle file system paths.
11890 It offers the following advantages over using string objects:
11893 @item No more cumbersome use of os and os.path functions. Everything can
11894 be done easily through operators, attribute accesses, and method calls.
11895 @item Embodies the semantics of different path types. For example,
11896 comparing Windows paths ignores casing.
11897 @item Well-defined semantics, eliminating any inconsistencies or
11898 ambiguities (forward vs. backward slashes, etc.).
11901 Note: In Python 3.4, pathlib is now part of the standard library. For other
11902 Python versions please consider python-pathlib2 instead, which tracks the
11903 standard library module. This module (python-pathlib) isn't maintained
11905 (license license:expat)))
11907 (define-public python2-pathlib
11908 (package-with-python2 python-pathlib))
11910 (define-public python2-pathlib2
11912 (name "python2-pathlib2")
11916 (uri (pypi-uri "pathlib2" version))
11919 "0s4qa8c082fdkb17izh4mfgwrjd1n5pya18wvrbwqdvvb5xs9nbc"))))
11920 (build-system python-build-system)
11921 ;; We only need the the Python 2 variant, since for Python 3 our minimum
11922 ;; version is 3.4 which already includes this package as part of the
11923 ;; standard library.
11925 `(#:python ,python-2))
11927 `(("python2-scandir" ,python2-scandir)
11928 ("python2-six" ,python2-six)))
11929 (home-page "https://pypi.org/project/pathlib2/")
11930 (synopsis "Object-oriented file system paths - backport of standard
11932 (description "The goal of pathlib2 is to provide a backport of standard
11933 pathlib module which tracks the standard library module, so all the newest
11934 features of the standard pathlib can be used also on older Python versions.
11936 Pathlib offers a set of classes to handle file system paths. It offers the
11937 following advantages over using string objects:
11940 @item No more cumbersome use of os and os.path functions. Everything can
11941 be done easily through operators, attribute accesses, and method calls.
11942 @item Embodies the semantics of different path types. For example,
11943 comparing Windows paths ignores casing.
11944 @item Well-defined semantics, eliminating any inconsistencies or
11945 ambiguities (forward vs. backward slashes, etc.).
11947 (license license:expat)))
11949 (define-public python2-pathlib2-bootstrap
11952 (inherit python2-pathlib2)
11953 (name "python2-pathlib2-bootstrap")
11955 `(("python2-scandir" ,python2-scandir)
11956 ("python2-six" ,python2-six-bootstrap))))))
11958 (define-public python-jellyfish
11960 (name "python-jellyfish")
11964 (uri (pypi-uri "jellyfish" version))
11967 "1j9rplb16ba2prjj6mip46z0w9pnhnqpwgiwi0x93vnas14rlyl8"))))
11968 (build-system python-build-system)
11970 `(("python-pytest" ,python-pytest)))
11971 (home-page "https://github.com/jamesturk/jellyfish")
11972 (synopsis "Approximate and phonetic matching of strings")
11973 (description "Jellyfish uses a variety of string comparison and phonetic
11974 encoding algorithms to do fuzzy string matching.")
11975 (license license:bsd-2)
11976 (properties `((python2-variant . ,(delay python2-jellyfish))))))
11978 (define-public python2-jellyfish
11979 (let ((jellyfish (package-with-python2
11980 (strip-python2-variant python-jellyfish))))
11981 (package (inherit jellyfish)
11982 (native-inputs `(("python2-unicodecsv" ,python2-unicodecsv)
11983 ,@(package-native-inputs jellyfish))))))
11985 (define-public python2-unicodecsv
11987 (name "python2-unicodecsv")
11991 ;; The test suite is not included in the PyPi release.
11992 ;; https://github.com/jdunck/python-unicodecsv/issues/19
11993 (uri (git-reference
11994 (url "https://github.com/jdunck/python-unicodecsv")
11996 (file-name (git-file-name name version))
11999 "15hx2k41a2lpv4hcml9zp4cvlx1171mnb5s4s13xc1pxkq3vgdjy"))))
12000 (build-system python-build-system)
12002 `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
12003 #:python ,python-2))
12005 `(("python2-unittest2" ,python2-unittest2)))
12006 (home-page "https://github.com/jdunck/python-unicodecsv")
12007 (synopsis "Unicode CSV module for Python 2")
12008 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
12009 module, adding support for Unicode strings.")
12010 (license license:bsd-2)))
12012 (define-public python-rarfile
12014 (name "python-rarfile")
12018 (uri (pypi-uri "rarfile" version))
12021 "0qfad483kcbga0bn4qmcz953xjk16r52fahiy46zzn56v80y89ra"))))
12022 (build-system python-build-system)
12025 (modify-phases %standard-phases
12027 ;; Many tests fail, but the installation proceeds.
12028 (lambda _ (invoke "make" "-C" "test" "test"))))))
12030 `(("which" ,which))) ; required for tests
12032 `(("libarchive" ,libarchive)))
12033 (home-page "https://github.com/markokr/rarfile")
12034 (synopsis "RAR archive reader for Python")
12035 (description "This is Python module for RAR archive reading. The interface
12036 is made as zipfile like as possible.")
12037 (license license:isc)))
12039 (define-public python2-rarfile
12040 (package-with-python2 python-rarfile))
12042 (define-public python-magic
12044 (name "python-magic")
12049 (uri (pypi-uri "python-magic" version))
12052 "1mgwig9pnzgkf86q9ji9pnc99bngms15lfszq5rgqb9db07mqxpk"))
12053 (file-name (string-append name "-" version "-checkout"))))
12054 (build-system python-build-system)
12056 ;; The tests are unreliable, so don't run them. The tests fail
12057 ;; under Python3 because they were written for Python2 and
12058 ;; contain import statements that do not work in Python3. One of
12059 ;; the tests fails under Python2 because its assertions are
12060 ;; overly stringent; it relies on comparing output strings which
12061 ;; are brittle and can change depending on the version of
12062 ;; libmagic being used and the system on which the test is
12063 ;; running. In my case, under GuixSD 0.10.0, only one test
12064 ;; failed, and it seems to have failed only because the version
12065 ;; of libmagic that is packaged in Guix outputs a slightly
12066 ;; different (but not wrong) string than the one that the test
12069 #:phases (modify-phases %standard-phases
12070 ;; Replace a specific method call with a hard-coded
12071 ;; path to the necessary libmagic.so file in the
12072 ;; store. If we don't do this, then the method call
12073 ;; will fail to find the libmagic.so file, which in
12074 ;; turn will cause any application using
12075 ;; python-magic to fail.
12076 (add-before 'build 'hard-code-path-to-libmagic
12077 (lambda* (#:key inputs #:allow-other-keys)
12078 (let ((file (assoc-ref inputs "file")))
12079 (substitute* "magic.py"
12080 (("ctypes.util.find_library\\('magic'\\)")
12081 (string-append "'" file "/lib/libmagic.so'")))
12083 (add-before 'install 'disable-egg-compression
12085 (let ((port (open-file "setup.cfg" "a")))
12086 (display "\n[easy_install]\nzip_ok = 0\n"
12091 ;; python-magic needs to be able to find libmagic.so.
12094 "https://github.com/ahupp/python-magic")
12096 "File type identification using libmagic")
12098 "This module uses ctypes to access the libmagic file type
12099 identification library. It makes use of the local magic database and
12100 supports both textual and MIME-type output. Note that this module and
12101 the python-file module both provide a \"magic.py\" file; these two
12102 modules, which are different and were developed separately, both serve
12103 the same purpose: to provide Python bindings for libmagic.")
12104 (license license:expat)))
12106 (define-public python2-magic
12107 (package-with-python2 python-magic))
12109 (define-public python2-s3cmd
12111 (name "python2-s3cmd")
12116 (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/"
12117 "s3cmd-" version ".tar.gz"))
12120 "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
12121 (build-system python-build-system)
12123 ;; s3cmd is written for python2 only and contains no tests.
12124 `(#:python ,python-2
12127 `(("python2-dateutil" ,python2-dateutil)
12128 ;; The python-file package also provides a magic.py module.
12129 ;; This is an unfortunate state of affairs; however, s3cmd
12130 ;; fails to install if it cannot find specifically the
12131 ;; python-magic package. Thus we include it, instead of using
12132 ;; python-file. Ironically, s3cmd sometimes works better
12133 ;; without libmagic bindings at all:
12134 ;; https://github.com/s3tools/s3cmd/issues/198
12135 ("python2-magic" ,python2-magic)))
12136 (home-page "https://s3tools.org/s3cmd")
12137 (synopsis "Command line tool for S3-compatible storage services")
12139 "S3cmd is a command line tool for uploading, retrieving and managing data
12140 in storage services that are compatible with the Amazon Simple Storage
12141 Service (S3) protocol, including S3 itself. It supports rsync-like backup,
12142 GnuPG encryption, and more. It also supports management of Amazon's
12143 CloudFront content delivery network.")
12144 (license license:gpl2+)))
12146 (define-public python-pkgconfig
12148 (name "python-pkgconfig")
12153 (uri (pypi-uri "pkgconfig" version))
12156 "107x2wmchlch8saixb488cgjz9n6inl38wi7nxkb942rbaapxiqb"))))
12157 (build-system python-build-system)
12159 `(("python-nose" ,python-nose)))
12161 `(("pkg-config" ,pkg-config)))
12164 (modify-phases %standard-phases
12165 (add-before 'build 'patch
12166 ;; Hard-code the path to pkg-config.
12168 (substitute* "pkgconfig/pkgconfig.py"
12169 (("cmd = 'pkg-config")
12170 (string-append "cmd = '" (which "pkg-config"))))
12174 (invoke "nosetests" "test.py"))))))
12175 (home-page "https://github.com/matze/pkgconfig")
12176 (synopsis "Python interface for pkg-config")
12177 (description "This module provides a Python interface to pkg-config. It
12178 can be used to find all pkg-config packages, check if a package exists,
12179 check if a package meets certain version requirements, query CFLAGS and
12180 LDFLAGS and parse the output to build extensions with setup.py.")
12181 (license license:expat)))
12183 (define-public python2-pkgconfig
12184 (package-with-python2 python-pkgconfig))
12186 (define-public python-bz2file
12188 (name "python-bz2file")
12193 (uri (pypi-uri "bz2file" version))
12196 "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
12197 (build-system python-build-system)
12199 `(#:tests? #f)) ; Tests use deprecated python modules.
12200 (home-page "https://github.com/nvawda/bz2file")
12201 (synopsis "Read and write bzip2-compressed files")
12203 "Bz2file is a Python library for reading and writing bzip2-compressed
12204 files. It contains a drop-in replacement for the I/O interface in the
12205 standard library's @code{bz2} module, including features from the latest
12206 development version of CPython that are not available in older releases.")
12207 (license license:asl2.0)))
12209 (define-public python2-bz2file
12210 (package-with-python2 python-bz2file))
12212 (define-public python-future
12214 (name "python-future")
12219 (uri (pypi-uri "future" version))
12222 "1f2rlqn9rh7adgir52dlbqz69gsab44x0mlm8gf1cs7xvhv54137"))))
12223 (build-system python-build-system)
12224 ;; Many tests connect to the network or are otherwise flawed.
12225 ;; https://github.com/PythonCharmers/python-future/issues/210
12228 (home-page "https://python-future.org")
12229 (synopsis "Single-source support for Python 3 and 2")
12231 "@code{python-future} is the missing compatibility layer between Python 2 and
12232 Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
12233 to support both Python 2 and Python 3 with minimal overhead.")
12234 (license license:expat)))
12236 (define-public python2-future
12237 (package-with-python2 python-future))
12239 (define-public python-cysignals
12241 (name "python-cysignals")
12246 (uri (pypi-uri "cysignals" version))
12249 "15ix8crpad26cfl1skyg7qajqqfdrm8q5ahhmlfmqi1aw0jqj2g2"))))
12250 (build-system python-build-system)
12252 `(("python-cython" ,python-cython)
12253 ("python-sphinx" ,python-sphinx)))
12255 `(("pari-gp" ,pari-gp)))
12257 `(#:modules ((guix build python-build-system)
12258 ((guix build gnu-build-system) #:prefix gnu:)
12259 (guix build utils))
12260 ;; FIXME: Tests are executed after installation and currently fail
12261 ;; when not installing into standard locations; the author is working
12265 (modify-phases %standard-phases
12268 (assoc-ref gnu:%standard-phases 'configure)))))
12270 "https://github.com/sagemath/cysignals")
12272 "Handling of interrupts and signals for Cython")
12274 "The cysignals package provides mechanisms to handle interrupts (and
12275 other signals and errors) in Cython code, using two related approaches,
12276 for mixed Cython/Python code or external C libraries and pure Cython code,
12278 (license license:lgpl3+)))
12280 (define-public python2-cysignals
12281 (package-with-python2 python-cysignals))
12283 (define-public python2-shedskin
12285 (name "python2-shedskin")
12290 (uri (string-append "https://github.com/shedskin/shedskin/"
12291 "releases/download/v" version
12292 "/shedskin-" version ".tgz"))
12295 "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
12296 (build-system python-build-system)
12298 `(#:python ,python-2
12299 #:phases (modify-phases %standard-phases
12300 (add-after 'unpack 'fix-resulting-include-libs
12301 (lambda* (#:key inputs #:allow-other-keys)
12302 (let ((libgc (assoc-ref inputs "libgc"))
12303 (pcre (assoc-ref inputs "pcre")))
12304 (substitute* "shedskin/makefile.py"
12305 (("variable == 'CCFLAGS':[ ]*")
12306 (string-append "variable == 'CCFLAGS':\n"
12307 " line += ' -I " pcre "/include"
12308 " -I " libgc "/include'"))
12309 (("variable == 'LFLAGS':[ ]*")
12310 (string-append "variable == 'LFLAGS':\n"
12311 " line += ' -L" pcre "/lib"
12312 " -L " libgc "/lib'")))
12314 (inputs `(("pcre" ,pcre)
12316 (home-page "https://shedskin.github.io/")
12317 (synopsis "Experimental Python-2 to C++ Compiler")
12318 (description (string-append "This is an experimental compiler for a subset of
12319 Python. It generates C++ code and a Makefile."))
12320 (license (list license:gpl3 license:bsd-3 license:expat))))
12322 (define-public python2-rope
12324 (name "python2-rope")
12329 (uri (pypi-uri "rope" version))
12332 "1cppm0pa9aqgsbkq130lskrzmrvjs5vpiavjjbhpz2fdw52w8251"))))
12334 ;; Rope has only partial python3 support, see `python-rope'
12335 `(#:python ,python-2))
12336 (build-system python-build-system)
12338 `(("python2-unittest2" ,python2-unittest2)))
12339 (home-page "https://github.com/python-rope/rope")
12340 (synopsis "Refactoring library for Python")
12341 (description "Rope is a refactoring library for Python. It facilitates
12342 the renaming, moving and extracting of attributes, functions, modules, fields
12343 and parameters in Python 2 source code. These refactorings can also be applied
12344 to occurrences in strings and comments.")
12345 (license license:gpl2)))
12347 (define-public python-rope
12349 (inherit python2-rope)
12350 (name "python-rope")
12351 (arguments `(#:python ,python-wrapper
12352 ;; XXX: Only partial python3 support, results in some failing
12353 ;; tests: <https://github.com/python-rope/rope/issues/247>.
12355 (properties `((python2-variant . ,(delay python2-rope))))))
12357 (define-public python-py3status
12359 (name "python-py3status")
12364 (uri (pypi-uri "py3status" version))
12366 (base32 "16z8zq83hxy48g6hh4xczbdz50qvxv9k1aahr4fqq7jis60cc262"))))
12367 (build-system python-build-system)
12372 (modify-phases %standard-phases
12373 ;; 'file' is used for detection of configuration file encoding
12374 ;; let's make link the dependency to particular input
12375 (add-before 'build 'patch-file-path
12376 (lambda* (#:key inputs #:allow-other-keys)
12377 (let ((file-path (assoc-ref inputs "file")))
12378 (substitute* "py3status/parse_config.py"
12379 (("\\[\"file\", \"-b\"")
12380 (string-append "['" file-path "/bin/file', '-b'")))
12382 #:tests? #f)) ; TODO: Requires many libraries not in Guix.
12383 (home-page "https://github.com/ultrabug/py3status")
12384 (synopsis "Extensible i3status wrapper written in Python")
12385 (description "py3status is an i3status wrapper which extends i3status
12386 functionality in a modular way, allowing you to extend your panel with your
12387 own code, responding to click events and updating clock every second.")
12388 (license license:bsd-3)))
12390 (define-public python2-selectors2
12392 (name "python2-selectors2")
12396 (uri (pypi-uri "selectors2" version))
12399 "110qr00b9axz1f1jm12b495jkvrz80smknxvssqlhwk0dx67rdw1"))))
12400 (build-system python-build-system)
12402 `(#:python ,python-2))
12404 `(("python2-mock" ,python2-mock)
12405 ("python2-psutil" ,python2-psutil)))
12406 (home-page "https://www.github.com/SethMichaelLarson/selectors2")
12407 (synopsis "Backport of the selectors module from Python 3.5+")
12409 "This package provides a drop-in replacement for the @code{selectors}
12410 module in Python 3.5 and later.")
12411 (license license:expat)))
12413 (define-public python-tblib
12415 (name "python-tblib")
12419 (uri (pypi-uri "tblib" version))
12422 "0i136n5pydmd202254wzrdbspkw0br0c9mbxhfs9hpfbahvyx6r2"))))
12423 (build-system python-build-system)
12426 (modify-phases %standard-phases
12429 ;; Upstream runs tests after installation and the package itself
12430 ;; resides in a subdirectory. Extend PYTHONPATH so it will be
12432 (setenv "PYTHONPATH"
12433 (string-append (getcwd) "/build/lib:"
12434 (getenv "PYTHONPATH")))
12435 (invoke "py.test" "-vv" "tests" "README.rst"))))))
12437 `(("python-pytest" ,python-pytest)
12438 ("python-six" ,python-six)))
12439 (home-page "https://github.com/ionelmc/python-tblib")
12440 (synopsis "Traceback serialization library")
12442 "Traceback serialization allows you to:
12445 @item Pickle tracebacks and raise exceptions with pickled tracebacks in
12446 different processes. This allows better error handling when running code over
12447 multiple processes (imagine multiprocessing, billiard, futures, celery etc).
12449 @item Parse traceback strings and raise with the parsed tracebacks.
12451 (license license:bsd-3)))
12453 (define-public python2-tblib
12454 (package-with-python2 python-tblib))
12456 (define-public python-greenlet
12458 (name "python-greenlet")
12462 (uri (pypi-uri "greenlet" version))
12465 "0v2571d0av1hz3yx63gvmnrinyn57nnvibg4zkl9frv74b3yl1kf"))))
12466 (build-system python-build-system)
12467 (home-page "https://greenlet.readthedocs.io/")
12468 (synopsis "Lightweight in-process concurrent programming")
12470 "Greenlet package is a spin-off of Stackless, a version of CPython
12471 that supports micro-threads called \"tasklets\". Tasklets run
12472 pseudo-concurrently (typically in a single or a few OS-level threads) and
12473 are synchronized with data exchanges on \"channels\".")
12474 (license (list license:psfl license:expat))))
12476 (define-public python-objgraph
12478 (name "python-objgraph")
12483 (uri (pypi-uri "objgraph" version))
12486 "19qmqsh984zq1rzzjy4vqnmviaqnymcyl8h7z99pnicbgwnm2adz"))))
12487 (build-system python-build-system)
12489 `(("python-graphviz" ,python-graphviz)))
12491 `(("python-mock" ,python-mock)
12492 ("graphviz" ,graphviz)))
12493 (home-page "https://mg.pov.lt/objgraph/")
12494 (synopsis "Draw Python object reference graphs with graphviz")
12496 "This package provides tools to draw Python object reference graphs with
12498 (license license:expat)))
12500 (define-public python2-objgraph
12501 (package-with-python2 python-objgraph))
12503 (define-public python-gevent
12505 (name "python-gevent")
12509 (uri (pypi-uri "gevent" version))
12512 "13aw9x6imsy3b369kfjblqiwfni69pp32m4r13n62r9k3l2lhvaz"))
12513 (modules '((guix build utils)))
12516 ;; unbunding libev and c-ares
12517 (delete-file-recursively "deps")
12519 (build-system python-build-system)
12521 `(#:modules ((ice-9 ftw)
12525 (guix build python-build-system))
12526 #:phases (modify-phases %standard-phases
12527 (add-before 'patch-source-shebangs 'patch-hard-coded-paths
12529 (substitute* "src/gevent/subprocess.py"
12530 (("/bin/sh") (which "sh")))
12531 (for-each (lambda (file)
12533 (("/bin/sh") (which "sh"))
12534 (("/bin/true") (which "true"))))
12535 (find-files "src/greentest" "\\.py$"))
12537 (add-before 'build 'do-not-use-bundled-sources
12539 (setenv "GEVENTSETUP_EMBED" "0")
12541 ;; Prevent building bundled libev.
12542 (substitute* "setup.py"
12543 (("run_make=_BUILDING")
12546 (add-before 'build 'add-greenlet-on-C_INCLUDE_PATH
12547 (lambda* (#:key inputs #:allow-other-keys)
12548 (let ((greenlet (string-append
12549 (assoc-ref inputs "python-greenlet")
12551 (match (scandir greenlet
12553 (string-prefix? "python" item)))
12555 (setenv "C_INCLUDE_PATH"
12556 (string-append greenlet "/" python ":"
12557 (or (getenv "C_INCLUDE_PATH")
12560 (add-before 'check 'pretend-to-be-CI
12562 ;; A few tests are skipped due to network constraints or
12563 ;; get longer timeouts when running in a CI environment.
12564 ;; Piggy-back on that, as we need the same adjustments.
12565 (setenv "TRAVIS" "1")
12566 (setenv "APPVEYOR" "1")
12568 (add-before 'check 'adjust-tests
12570 (let ((disabled-tests
12571 '(;; These tests relies on networking which is
12572 ;; not available in the build container.
12573 "test__getaddrinfo_import.py"
12574 "test__server_pywsgi.py"
12575 ;; XXX: These tests borrow functionality from the
12576 ;; Python builtin 'test' module, but it is not
12577 ;; installed with the Guix Python distribution.
12582 "test_threading.py"
12583 "test__threading_2.py"
12584 ;; These tests rely on KeyboardInterrupts which do not
12585 ;; work inside the build container for some reason
12586 ;; (lack of controlling terminal?).
12587 "test_subprocess.py"
12588 "test__issues461_471.py"
12589 ;; TODO: Patch out the tests that use getprotobyname, etc
12590 ;; instead of disabling all the tests from these files.
12591 "test__resolver_dnspython.py"
12592 "test__doctests.py"
12595 "test__execmodules.py")))
12596 (call-with-output-file "skipped_tests.txt"
12598 (format port "~a~%"
12599 (string-join disabled-tests "\n"))))
12603 ;; Make sure the build directory is on PYTHONPATH.
12604 (setenv "PYTHONPATH"
12606 (getenv "PYTHONPATH") ":"
12608 (car (scandir "build" (cut string-prefix? "lib." <>)))))
12610 ;; Use the build daemons configured number of workers.
12611 (setenv "NWORKERS" (number->string (parallel-job-count)))
12613 (invoke "python" "-m" "gevent.tests" "-unone" "--config"
12614 "known_failures.py" "--ignore" "skipped_tests.txt"))))))
12616 `(("python-greenlet" ,python-greenlet)
12617 ("python-objgraph" ,python-objgraph)
12618 ("python-zope.event" ,python-zope-event)
12619 ("python-zope.interface" ,python-zope-interface)))
12621 `(("python-six" ,python-six)
12624 ("python-dnspython" ,python-dnspython)
12625 ("python-psutil" ,python-psutil)))
12627 `(("c-ares" ,c-ares)
12629 (home-page "https://www.gevent.org/")
12630 (synopsis "Coroutine-based network library")
12632 "@code{gevent} is a coroutine-based Python networking library that uses
12633 @code{greenlet} to provide a high-level synchronous API on top of the
12634 @code{libev} event loop.")
12635 (license license:expat)))
12637 (define-public python-fastimport
12639 (name "python-fastimport")
12644 (uri (pypi-uri "fastimport" version))
12646 (base32 "1fb3b7y3sw55f6wykxx478ybkirz0l52lgdqmbhmc0h0jzmyiwmj"))))
12647 (build-system python-build-system)
12648 (home-page "https://github.com/jelmer/python-fastimport")
12649 (synopsis "VCS fastimport parser and generator in Python")
12650 (description "This package provides a parser for and generator of the Git
12651 @url{https://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html,fastimport}
12653 (license license:gpl2+)))
12655 (define-public python2-fastimport
12656 (package-with-python2 python-fastimport))
12658 (define-public python-twisted
12660 (name "python-twisted")
12664 (uri (pypi-uri "Twisted" version ".tar.bz2"))
12667 "17d3hnxv9qndagzz63mdpyk99xj63p9gq586vjn0rxk8cl197nym"))))
12668 (build-system python-build-system)
12670 '(#:tests? #f)) ; FIXME: some tests fail
12672 `(("python-zope-interface" ,python-zope-interface)
12673 ("python-pyhamcrest" ,python-pyhamcrest)
12674 ("python-incremental" ,python-incremental)
12675 ("python-hyperlink" ,python-hyperlink)
12676 ("python-constantly" ,python-constantly)
12677 ("python-automat" ,python-automat)))
12678 (home-page "https://twistedmatrix.com/")
12679 (synopsis "Asynchronous networking framework written in Python")
12681 "Twisted is an extensible framework for Python programming, with special
12682 focus on event-based network programming and multiprotocol integration.")
12683 (license license:expat)))
12685 (define-public python2-twisted
12686 (package-with-python2 python-twisted))
12688 (define-public python-pika
12690 (name "python-pika")
12695 (uri (pypi-uri "pika" version))
12698 "0ld7akgm93s8pfa4dsx9qlzlhj76zspbr5m9ms0ns09yd2w4aq9h"))))
12699 (build-system python-build-system)
12701 `(("python-pyev" ,python-pyev)
12702 ("python-tornado" ,python-tornado)
12703 ("python-twisted" ,python-twisted)))
12704 (home-page "https://pika.readthedocs.org")
12705 (synopsis "Pure Python AMQP Client Library")
12707 "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
12708 Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
12709 network support library.")
12710 (license license:bsd-3)))
12712 (define-public python2-pika
12713 (package-with-python2 python-pika))
12715 (define-public python-ply
12717 (name "python-ply")
12722 (uri (pypi-uri "ply" version))
12725 "18qx113g9bi1ac4indd5phma82zcdq601lxncp3vjn43m2mc3iq0"))))
12726 (build-system python-build-system)
12727 (home-page "http://www.dabeaz.com/ply/")
12728 (synopsis "Python Lex & Yacc")
12729 (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
12730 It uses LR parsing and does extensive error checking.")
12731 (license license:bsd-3)))
12733 (define-public python-tabulate
12735 (name "python-tabulate")
12739 (uri (pypi-uri "tabulate" version))
12742 "01shi7bmj09f0bcm5s0c9skys063lzp76p0n4a2xmg041ni269yv"))))
12743 (build-system python-build-system)
12745 ;; FIXME: The pypi release tarball is missing a 'test/common.py'
12746 ;; and the latest release is not tagged in the upstream repository.
12748 (home-page "https://bitbucket.org/astanin/python-tabulate")
12749 (synopsis "Pretty-print tabular data")
12751 "Tabulate is a library and command-line utility to pretty-print tabular
12753 (license license:expat)))
12755 (define-public python2-tabulate
12756 (package-with-python2 python-tabulate))
12758 (define-public python-kazoo
12760 (name "python-kazoo")
12765 (uri (pypi-uri "kazoo" version))
12768 "16y213k7r8shyn2zw1k6lkzjgcrvm441pqv8scvcjixhvpbx3hm7"))))
12769 (build-system python-build-system)
12770 (arguments '(#:tests? #f)) ; XXX: needs zookeeper
12772 `(("python-six" ,python-six)))
12773 (home-page "https://kazoo.readthedocs.org")
12774 (synopsis "High-level Zookeeper client library")
12776 "Kazoo is a Python client library for the Apache Zookeeper distributed
12777 application service. It is designed to be easy to use and to avoid common
12778 programming errors.")
12779 (license license:asl2.0)))
12781 (define-public python2-kazoo
12782 (package-with-python2 python-kazoo))
12784 (define-public python-pykafka
12786 (name "python-pykafka")
12790 (uri (pypi-uri "pykafka" version))
12793 "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
12794 (build-system python-build-system)
12795 (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
12797 `(("python-gevent" ,python-gevent)
12798 ("python-kazoo" ,python-kazoo)
12799 ("python-tabulate" ,python-tabulate)))
12801 `(("librdkafka" ,librdkafka)))
12802 (home-page "https://pykafka.readthedocs.io/")
12803 (synopsis "Apache Kafka client for Python")
12805 "PyKafka is a client for the Apache Kafka distributed messaging system.
12806 It includes Python implementations of Kafka producers and consumers, which
12807 are optionally backed by a C extension built on librdkafka.")
12808 (license license:asl2.0)))
12810 (define-public python-wcwidth
12812 (name "python-wcwidth")
12816 (uri (pypi-uri "wcwidth" version))
12819 "1a1pzds3xzfylm5mnc5f6c1p8kiig0daqjc9gygd9rc3cj53x2zj"))))
12820 (build-system python-build-system)
12821 (home-page "https://github.com/jquast/wcwidth")
12822 (synopsis "Measure number of terminal column cells of wide-character codes")
12823 (description "Wcwidth measures the number of terminal column cells of
12824 wide-character codes. It is useful for those implementing a terminal emulator,
12825 or programs that carefully produce output to be interpreted by one. It is a
12826 Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
12827 specified in POSIX.1-2001 and POSIX.1-2008.")
12828 (license license:expat)))
12830 (define-public python2-wcwidth
12831 (package-with-python2 python-wcwidth))
12833 (define-public python2-jsonrpclib
12835 (name "python2-jsonrpclib")
12839 (uri (pypi-uri "jsonrpclib" version))
12842 "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
12843 (build-system python-build-system)
12846 #:python ,python-2))
12847 (home-page "https://github.com/joshmarshall/jsonrpclib/")
12848 (synopsis "Implementation of JSON-RPC specification for Python")
12850 "This library is an implementation of the JSON-RPC specification.
12851 It supports both the original 1.0 specification, as well as the
12852 new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
12854 (license license:asl2.0)))
12856 (define-public python-chai
12858 (name "python-chai")
12862 (uri (pypi-uri "chai" version))
12865 "1k6n6zbgrrs83crp6mr3yqj9zlv40b8rpisyrliwsq7naml2p3gz"))))
12866 (build-system python-build-system)
12867 (home-page "https://github.com/agoragames/chai")
12868 (synopsis "Mocking framework for Python")
12870 "Chai provides an api for mocking, stubbing and spying your python
12871 objects, patterned after the Mocha library for Ruby.")
12872 (license license:bsd-3)))
12874 (define-public python2-chai
12875 (package-with-python2 python-chai))
12877 (define-public python-inflection
12879 (name "python-inflection")
12882 (origin (method url-fetch)
12883 (uri (pypi-uri "inflection" version))
12886 "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"))))
12887 (build-system python-build-system)
12889 `(("python-pytest" ,python-pytest)))
12890 (home-page "https://github.com/jpvanhal/inflection")
12891 (synopsis "Python string transformation library")
12893 "Inflection is a string transformation library. It singularizes
12894 and pluralizes English words, and transforms strings from CamelCase to
12895 underscored string.")
12896 (license license:expat)))
12898 (define-public python2-inflection
12899 (package-with-python2 python-inflection))
12901 (define-public python-pylev
12903 (name "python-pylev")
12907 (uri (pypi-uri "pylev" version))
12910 "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86"))))
12911 (build-system python-build-system)
12912 (home-page "https://github.com/toastdriven/pylev")
12913 (synopsis "Levenshtein distance implementation in Python")
12914 (description "Pure Python Levenshtein implementation, based off the
12915 Wikipedia code samples at
12916 @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
12917 (license license:bsd-3)))
12919 (define-public python2-pylev
12920 (package-with-python2 python-pylev))
12922 (define-public python-cleo
12924 (name "python-cleo")
12928 (uri (pypi-uri "cleo" version))
12931 "17q6wi3q280kxmxzb2iwnnqih2xbljn18v0bjx2ip18p079j43ix"))))
12932 (build-system python-build-system)
12935 ("python-mock" ,python-mock)
12936 ("python-pytest-mock" ,python-pytest-mock)
12937 ("python-pytest" ,python-pytest)))
12939 `(("python-backpack" ,python-backpack)
12940 ("python-clikit" ,python-clikit)
12941 ("python-pastel" ,python-pastel)
12942 ("python-pylev" ,python-pylev)))
12943 (home-page "https://github.com/sdispater/cleo")
12944 (synopsis "Command-line arguments library for Python")
12946 "Cleo allows you to create command-line commands with signature in
12947 docstring and colored output.")
12948 (license license:expat)))
12950 (define-public python2-cleo
12951 (package-with-python2 python-cleo))
12953 (define-public python-tomlkit
12955 (name "python-tomlkit")
12960 (uri (pypi-uri "tomlkit" version))
12962 (base32 "062n694sfv24ylda6nh8228y2q9hrvy554kqx84y7czsjfbg4mxc"))))
12963 (build-system python-build-system)
12965 `(("python-pytest" ,python-pytest)
12966 ("python-pyyaml" ,python-pyyaml)))
12967 (home-page "https://github.com/sdispater/tomlkit")
12968 (synopsis "Style-preserving TOML library")
12970 "TOML Kit is a 1.0.0rc1-compliant TOML library. It includes a parser that
12971 preserves all comments, indentations, whitespace and internal element ordering,
12972 and makes them accessible and editable via an intuitive API. It can also
12973 create new TOML documents from scratch using the provided helpers. Part of the
12974 implementation has been adapted, improved, and fixed from Molten.")
12975 (license license:expat)))
12977 (define-public python-shellingham
12979 (name "python-shellingham")
12984 (uri (pypi-uri "shellingham" version))
12986 (base32 "07kmia2hvd2q7wik89m82hig9mqr2faynvy38vxq5fm0ps11jv2p"))))
12987 (build-system python-build-system)
12990 (modify-phases %standard-phases
12991 (add-after 'unpack 'restore-setup.py
12992 ;; setup.py will return in the next release.
12993 ;; <https://github.com/sarugaku/shellingham/issues/33>
12995 (with-output-to-file "setup.py"
12997 (display "from setuptools import setup\nsetup()\n")))
12999 (home-page "https://github.com/sarugaku/shellingham")
13000 (synopsis "Tool to detect surrounding shell")
13002 "Shellingham detects what shell the current Python executable is
13004 (license license:isc)))
13006 (define-public python-memcached
13008 (name "python-memcached")
13013 (uri (pypi-uri "python-memcached" version))
13016 "0kvyapavbirk2x3n1jx4yb9nyigrj1s3x15nm3qhpvhkpqvqdqm2"))
13017 (patches (search-patches "python-memcached-syntax-warnings.patch"))))
13018 (build-system python-build-system)
13019 (propagated-inputs `(("python-six" ,python-six)))
13021 "https://github.com/linsomniac/python-memcached")
13022 (synopsis "Pure python memcached client")
13024 "This software is a pure Python interface to the memcached memory cache
13025 daemon. It is the client side software which allows storing values in one or
13026 more, possibly remote, memcached servers.")
13027 (license license:psfl)))
13029 (define-public python-clikit
13031 (name "python-clikit")
13036 (uri (pypi-uri "clikit" version))
13039 "0ngdkmb73gkp5y00q7r9k1cdlfn0wyzws2wrqlshc4hlkbdyabj4"))))
13040 (build-system python-build-system)
13041 (arguments '(#:tests? #f)) ; no test in the PyPI tarball
13043 `(("python-crashtest" ,python-crashtest)
13044 ("python-pastel" ,python-pastel)
13045 ("python-pylev" ,python-pylev)))
13046 (home-page "https://github.com/sdispater/clikit")
13047 (synopsis "Group of utilities to build command line interfaces")
13049 "CliKit is a group of utilities to build testable command line
13051 (properties `((python2-variant . ,(delay python2-clikit))))
13052 (license license:expat)))
13054 (define-public python2-clikit
13055 (let ((base (package-with-python2 (strip-python2-variant python-clikit))))
13059 `(("python-enum34" ,python2-enum34)
13060 ("python-typing" ,python2-typing)
13061 ,@(package-propagated-inputs base))))))
13063 (define-public python-msgpack-python
13065 (name "python-msgpack-python")
13070 (uri (pypi-uri "msgpack-python" version))
13073 "16wh8qgybmfh4pjp8vfv78mdlkxfmcasg78lzlnm6nslsfkci31p"))))
13074 (build-system python-build-system)
13075 (home-page "http://msgpack.org/")
13076 (synopsis "Package to deserialize messages in MessagePack binary format")
13078 "MessagePack is an efficient binary serialization format. It lets you
13079 exchange data among multiple languages like JSON. But it's faster and
13080 smaller. Small integers are encoded into a single byte, and typical short
13081 strings require only one extra byte in addition to the strings themselves.")
13082 (license license:asl2.0)))
13084 (define-public python-cachy
13086 (name "python-cachy")
13091 (uri (pypi-uri "cachy" version))
13094 "1cb9naly8ampzlky7h74n5wj628l7jkpsh0c0jz0namlrvs82r8q"))))
13095 (build-system python-build-system)
13098 (modify-phases %standard-phases
13100 (lambda _ (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
13103 `(("memcached" ,memcached)
13104 ("python-fakeredis" ,python-fakeredis)
13105 ("python-flexmock" ,python-flexmock)
13106 ("python-pifpaf" ,python-pifpaf)
13107 ("python-pytest" ,python-pytest)))
13109 `(("python-memcached" ,python-memcached)
13110 ("python-msgpack-python" ,python-msgpack-python)
13111 ("python-redis" ,python-redis)))
13112 (home-page "https://github.com/sdispater/cachy")
13113 (synopsis "Simple yet effective caching library")
13115 "Cachy provides a simple yet effective caching library. A simple but
13116 powerful API: thread-safety; decorator syntax; support for memcached, redis,
13117 database, file, dict stores. Cachy supports python versions 2.7+ and 3.2+.")
13118 (license license:expat)))
13120 (define-public python-poetry-core
13122 (name "python-poetry-core")
13127 (uri (pypi-uri "poetry-core" version))
13129 (base32 "1mgv276h1iphn5fqhp2sgkgd5d0c39hs33vgaf157x5ri7rlyrka"))))
13130 (build-system python-build-system)
13131 (home-page "https://github.com/python-poetry/poetry-core")
13132 (synopsis "Poetry PEP 517 build back-end")
13134 "The @code{poetry-core} module provides a PEP 517 build back-end
13135 implementation developed for Poetry. This project is intended to be
13136 a light weight, fully compliant, self-contained package allowing PEP 517
13137 compatible build front-ends to build Poetry managed projects.")
13138 (license license:expat)))
13140 (define-public poetry
13144 ;; Poetry can only be built from source with Poetry.
13148 (uri (pypi-uri "poetry" version))
13151 "1a2kgfiw66fvxhlqk5qc83s6l38czfh5hcsrbiy7qq5yfc8mlsll"))))
13152 (build-system python-build-system)
13154 `(#:tests? #f ;; Pypi does not have tests.
13156 (modify-phases %standard-phases
13157 (add-before 'build 'patch-setup-py
13159 (substitute* "setup.py"
13160 ;; Newer versions of keyring produce a package with version "0.0.0"
13161 ;; Reported upstream: <https://github.com/jaraco/keyring/issues/469>
13162 (("keyring>=21.2.0,<22.0.0") "keyring>=21.0.0,<22.0.0")
13163 ;; TODO: remove after the next release cycle,
13164 ;; when packaging has been updated.
13165 (("packaging>=20.4,<21.0") "packaging>=20.0,<21.0"))
13168 `(("python-cachecontrol" ,python-cachecontrol)
13169 ("python-cachy" ,python-cachy)
13170 ("python-cleo" ,python-cleo)
13171 ("python-clikit" ,python-clikit)
13172 ("python-html5lib" ,python-html5lib)
13173 ("python-keyring" ,python-keyring)
13174 ("python-msgpack-transitional" ,python-msgpack-transitional)
13175 ("python-packaging" ,python-packaging)
13176 ("python-pexpect" ,python-pexpect)
13177 ("python-pip" ,python-pip)
13178 ("python-pkginfo" ,python-pkginfo)
13179 ("python-poetry-core" ,python-poetry-core)
13180 ("python-requests" ,python-requests)
13181 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
13182 ("python-shellingham" ,python-shellingham)
13183 ("python-tomlkit" ,python-tomlkit)
13184 ("python-virtualenv" ,python-virtualenv)))
13185 (home-page "https://python-poetry.org")
13186 (synopsis "Python dependency management and packaging made easy")
13187 (description "Poetry is a tool for dependency management and packaging
13188 in Python. It allows you to declare the libraries your project depends on and
13189 it will manage (install/update) them for you.")
13190 (license license:expat)))
13192 (define-public python-lark-parser
13194 (name "python-lark-parser")
13198 (uri (pypi-uri "lark-parser" version))
13201 "1kd61asrb3h9spgsj4bslfbgp8q4271sw3hblk6f2vbbblv8jxcy"))))
13202 (build-system python-build-system)
13203 (home-page "https://github.com/lark-parser/lark")
13204 (synopsis "Multi-language parser for Python")
13206 "Lark is a parser built with a focus on ergonomics, performance and
13207 resilience. Lark can parse all context-free languages. That means it is
13208 capable of parsing almost any programming language out there, and to
13209 some degree most natural languages too.")
13210 (license license:expat)))
13212 (define-public python-libcst
13214 (name "python-libcst")
13218 (uri (pypi-uri "libcst" version))
13221 "05zsc61gsd2pyb6wiyh58zczndxi6rm4d2jl94rpf5cv1fzw6ks8"))))
13222 (build-system python-build-system)
13225 (modify-phases %standard-phases
13226 (add-after 'unpack 'remove-failing-tests
13228 ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/346>.
13229 (delete-file "libcst/tests/test_fuzz.py")
13230 ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/347>.
13231 (delete-file "libcst/tests/test_pyre_integration.py")
13232 (delete-file "libcst/codemod/tests/test_codemod_cli.py")
13233 (delete-file "libcst/metadata/tests/test_full_repo_manager.py")
13234 (delete-file "libcst/metadata/tests/test_type_inference_provider.py")
13236 (add-before 'check 'generate-test-data
13238 (setenv "PYTHONPATH" (string-append (getcwd) ":" (getenv "PYTHONPATH")))
13239 (invoke "python" "-m" "libcst.codegen.generate" "visitors")
13240 (invoke "python" "-m" "libcst.codegen.generate" "return_types")))
13243 (invoke "python" "-m" "unittest")
13246 `(("python-black" ,python-black)
13247 ("python-isort" ,python-isort)))
13249 `(("python-typing-extensions" ,python-typing-extensions)
13250 ("python-typing-inspect" ,python-typing-inspect)
13251 ("python-pyyaml" ,python-pyyaml)))
13252 (home-page "https://github.com/Instagram/LibCST")
13253 (synopsis "Concrete Syntax Tree (CST) parser and serializer library for Python")
13255 "LibCST parses Python source code as a CST tree that keeps all
13256 formatting details (comments, whitespaces, parentheses, etc). It's useful
13257 for building automated refactoring (codemod) applications and linters.
13258 LibCST creates a compromise between an Abstract Syntax Tree (AST) and
13259 a traditional Concrete Syntax Tree (CST). By carefully reorganizing and
13260 naming node types and fields, LibCST creates a lossless CST that looks and
13261 feels like an AST.")
13262 (license (list license:expat
13263 ;; Some files unde libcst/_parser/ are under Python Software
13264 ;; Foundation license (see LICENSE file for details)
13266 ;; libcst/_add_slots.py
13269 (define-public python-typing-inspect
13271 (name "python-typing-inspect")
13275 (uri (pypi-uri "typing_inspect" version))
13278 "1dzs9a1pr23dhbvmnvms2jv7l7jk26023g5ysf0zvnq8b791s6wg"))))
13279 (build-system python-build-system)
13281 `(("python-mypy-extensions" ,python-mypy-extensions)
13282 ("python-typing-extensions" ,python-typing-extensions)))
13283 (home-page "https://github.com/ilevkivskyi/typing_inspect")
13284 (synopsis "API for inspection of types in the Python @code{typing} module")
13286 "The @code{typing_inspect} module defines experimental API for runtime
13287 inspection of types defined in the Python standard typing module.")
13288 (license license:expat)))
13290 (define-public python-lazy-object-proxy
13292 (name "python-lazy-object-proxy")
13296 (uri (pypi-uri "lazy-object-proxy" version))
13299 "0hwh29m9wa582ramj30p4pysckdrmki1z1b8iaaxk6mpfx2kc8wp"))))
13301 `(("python-setuptools-scm" ,python-setuptools-scm)))
13302 (build-system python-build-system)
13303 (home-page "https://github.com/ionelmc/python-lazy-object-proxy")
13304 (synopsis "Lazy object proxy for python")
13306 "Lazy object proxy is an object that wraps a callable but defers the call
13307 until the object is actually required, and caches the result of said call.")
13308 (license license:bsd-2)))
13310 (define-public python2-lazy-object-proxy
13311 (package-with-python2 python-lazy-object-proxy))
13313 (define-public python-dnspython
13315 (name "python-dnspython")
13319 (uri (pypi-uri "dnspython" version ".zip"))
13322 "1dyip5ygqqhrgcaiy7qzjpndl9xciip186paxqwkm726fj9z0jh4"))))
13323 (build-system python-build-system)
13324 (native-inputs `(("unzip" ,unzip)))
13325 (arguments '(#:tests? #f)) ; XXX: requires internet access
13326 (home-page "https://www.dnspython.org")
13327 (synopsis "DNS toolkit for Python")
13329 "dnspython is a DNS toolkit for Python. It supports almost all record
13330 types. It can be used for queries, zone transfers, and dynamic updates.
13331 It supports TSIG authenticated messages and EDNS0.")
13332 (license license:expat)))
13334 (define-public python-dnspython-1.16
13336 (inherit python-dnspython)
13340 (uri (string-append "http://www.dnspython.org/kits/"
13341 version "/dnspython-" version ".tar.gz"))
13344 "1yaw7irazy42n0kdhlk7wyg8ki34rxcnc5xbc1wfwy245b0wbxab"))))
13345 (native-inputs '())))
13347 (define-public python2-dnspython-1.16
13348 (package-with-python2 python-dnspython-1.16))
13350 (define-public python-py3dns
13352 (name "python-py3dns")
13357 (uri (pypi-uri "py3dns" version))
13360 "1r25f0ys5p37bhld7m7n4gb0lrysaym3w318w2f8bncq7r3d81qz"))))
13361 (build-system python-build-system)
13362 ;; This package wants to read /etc/resolv.conf. We can't patch it without
13363 ;; removing functionality so we copy from Nix and "just don't build it".
13366 (modify-phases %standard-phases
13367 (add-after 'unpack 'patch-source
13369 (substitute* "setup.py"
13370 (("import DNS") "")
13371 (("DNS.__version__") (string-append "\"" ,version "\"")))
13373 #:tests? #f)) ; Also skip the tests.
13374 (home-page "https://launchpad.net/py3dns")
13375 (synopsis "Python 3 DNS library")
13376 (description "This Python 3 module provides a DNS API for looking up DNS
13377 entries from within Python 3 modules and applications. This module is a
13378 simple, lightweight implementation.")
13379 (license license:psfl)))
13381 (define-public python-email-validator
13383 (name "python-email-validator")
13386 (origin (method url-fetch)
13387 (uri (pypi-uri "email_validator" version))
13390 "1ja9149l9ck5n45a72h3is7v476hjny5ybxbcamx1nw6iplsm7k6"))))
13391 (build-system python-build-system)
13394 (modify-phases %standard-phases
13395 (add-before 'build 'use-dnspython
13397 (substitute* "setup.py"
13398 (("dnspython3") "dnspython"))
13401 `(("python-dnspython" ,python-dnspython)
13402 ("python-idna" ,python-idna)))
13403 (home-page "https://github.com/JoshData/python-email-validator")
13404 (synopsis "Email address validation library for Python")
13406 "This library validates email address syntax and deliverability.")
13407 (license license:cc0)))
13409 (define-public python2-email-validator
13410 (package-with-python2 python-email-validator))
13412 (define-public python-ukpostcodeparser
13414 (name "python-ukpostcodeparser")
13418 (uri (pypi-uri "UkPostcodeParser" version))
13421 "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd"))))
13422 (build-system python-build-system)
13423 (home-page "https://github.com/hamstah/ukpostcodeparser")
13424 (synopsis "UK Postcode parser for Python")
13426 "This library provides the @code{parse_uk_postcode} function for
13427 parsing UK postcodes.")
13428 (license license:expat)))
13430 (define-public python2-ukpostcodeparser
13431 (package-with-python2 python-ukpostcodeparser))
13433 (define-public python-faker
13435 (name "python-faker")
13439 (uri (pypi-uri "Faker" version))
13442 "13qq485ydxmdnqn3xbfv1xfyqbf9qfnfw33v1vw5l6jyy9p8cgrd"))))
13443 (build-system python-build-system)
13446 (modify-phases %standard-phases
13448 (lambda _ (invoke "python" "-m" "pytest" "-v"))))))
13451 ("python-freezegun" ,python-freezegun)
13452 ("python-pytest" ,python-pytest)
13453 ("python-random2" ,python-random2)
13454 ("python-ukpostcodeparser" ,python-ukpostcodeparser)
13455 ("python-validators" ,python-validators)))
13457 `(("python-dateutil" ,python-dateutil)
13458 ("python-text-unidecode" ,python-text-unidecode)))
13459 (home-page "https://github.com/joke2k/faker")
13460 (synopsis "Python package that generates fake data")
13462 "Faker is a Python package that generates fake data such as names,
13463 addresses, and phone numbers.")
13464 (license license:expat)
13465 (properties `((python2-variant . ,(delay python2-faker))))))
13467 ;; Faker 4.0 dropped Python 2 support, so we stick with this older version here.
13468 (define-public python2-faker
13469 (let ((base (package-with-python2 (strip-python2-variant
13476 (uri (pypi-uri "Faker" version))
13479 "11cr0qvspkdh6198rqy56qildk7bnp6llj8kyy1dan5sp5n4dxy7"))))
13481 `(("python-mock" ,python2-mock)
13482 ,@(package-native-inputs base)))
13484 `(("python2-ipaddress" ,python2-ipaddress)
13485 ("python2-six" ,python2-six)
13486 ,@(package-propagated-inputs base))))))
13488 (define-public python-pyaml
13490 (name "python-pyaml")
13491 (version "18.11.0")
13494 (uri (pypi-uri "pyaml" version))
13497 "0fi604ix8lbpj1266q7js6szm771saprdzzcdwmj43wy83694qmr"))))
13498 (build-system python-build-system)
13500 `(("python-unidecode" ,python-unidecode)))
13502 `(("python-pyyaml" ,python-pyyaml)))
13503 (home-page "https://github.com/mk-fg/pretty-yaml")
13504 (synopsis "YAML pretty-print library for Python")
13506 "pyaml is a PyYAML based python module to produce pretty and readable
13507 YAML-serialized data.")
13508 (license license:wtfpl2)))
13510 (define-public python2-pyaml
13511 (package-with-python2 python-pyaml))
13513 (define-public python-backpack
13515 (name "python-backpack")
13520 (uri (pypi-uri "backpack" version))
13523 "14rq1mvm0jda90lcx9gyyby9dvq4x3js2cmxvd6vl4686ixwyqh1"))))
13524 (build-system python-build-system)
13526 `(("python-pytest" ,python-pytest)
13527 ("python-nose" ,python-nose)))
13529 `(("python-simplejson" ,python-simplejson)))
13530 (home-page "https://github.com/sdispater/backpack")
13531 (synopsis "Utilities for working with Python collections")
13532 (description "Backpack provides some useful utilities for working with
13533 collections of data.")
13534 (license license:expat)))
13536 (define-public python2-backpack
13537 (package-with-python2 python-backpack))
13539 (define-public python-prompt-toolkit
13541 (name "python-prompt-toolkit")
13546 (uri (pypi-uri "prompt_toolkit" version))
13548 (base32 "12a4pyrpnm3vcrvx7lb4cglp220lbvi336mhn2k2nzcgy82lcbw2"))))
13549 (build-system python-build-system)
13552 (modify-phases %standard-phases
13554 (add-after 'install 'post-install-check
13555 (lambda* (#:key inputs outputs #:allow-other-keys)
13556 ;; HOME is needed for the test
13557 ;; "test_pathcompleter_can_expanduser".
13558 (setenv "HOME" "/tmp")
13559 (add-installed-pythonpath inputs outputs)
13560 (invoke "py.test"))))))
13562 `(("python-wcwidth" ,python-wcwidth)))
13564 `(("python-pytest" ,python-pytest)))
13566 "https://github.com/prompt-toolkit/python-prompt-toolkit")
13567 (synopsis "Library for building command line interfaces in Python")
13569 "Prompt-Toolkit is a library for building interactive command line
13570 interfaces in Python. It's like GNU Readline but it also features syntax
13571 highlighting while typing, out-of-the-box multi-line input editing, advanced
13572 code completion, incremental search, support for Chinese double-width
13573 characters, mouse support, and auto suggestions.")
13574 (license license:bsd-3)
13575 (properties `((python2-variant . ,(delay python-prompt-toolkit-2))))))
13577 (define-public python-prompt-toolkit-2
13578 (package (inherit python-prompt-toolkit)
13579 (name "python-prompt-toolkit")
13584 (uri (pypi-uri "prompt_toolkit" version))
13587 "0fgacqk73w7s932vy46pan2yp8rvjmlkag20xvaydh9mhf6h85zx"))))
13589 `(("python-wcwidth" ,python-wcwidth)
13590 ("python-six" ,python-six)
13591 ("python-pygments" ,python-pygments)))
13594 (define-public python2-prompt-toolkit
13595 (package-with-python2 python-prompt-toolkit-2))
13597 (define-public python-prompt-toolkit-1
13598 (package (inherit python-prompt-toolkit-2)
13603 (uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
13606 "05v9h5nydljwpj5nm8n804ms0glajwfy1zagrzqrg91wk3qqi1c5"))))))
13608 (define-public python2-prompt-toolkit-1
13609 (package-with-python2 python-prompt-toolkit-1))
13611 (define-public python-jedi
13613 (name "python-jedi")
13618 (uri (pypi-uri "jedi" version))
13620 (base32 "080xyf97ifabdz7jp8clg00b8zv5g33fva1fb2xf80q6fndpvvc6"))))
13621 (build-system python-build-system)
13624 (modify-phases %standard-phases
13627 (setenv "HOME" "/tmp")
13628 (invoke "python" "-m" "pytest" "-vv"))))))
13630 `(("python-pytest" ,python-pytest)
13631 ("python-docopt" ,python-docopt)))
13633 `(("python-parso" ,python-parso)))
13634 (home-page "https://github.com/davidhalter/jedi")
13635 (synopsis "Autocompletion and static analysis library for Python")
13637 "Jedi is a static analysis tool for Python that can be used in Integrated
13638 Development Environments (@dfn{IDE}s) and text editors. It understands Python
13639 on a deeper level than many other static analysis frameworks for Python.
13641 Jedi understands docstrings and you can use Jedi autocompletion in your REPL as
13643 (license license:expat)))
13645 (define-public python2-jedi
13646 (package-with-python2 python-jedi))
13648 (define-public ptpython
13654 (uri (pypi-uri "ptpython" version))
13657 "0c2ry5gwi2v99slna62j8r2bwq0hpzmvgdryqg9m6x57vbjfg52h"))))
13658 (build-system python-build-system)
13660 '(#:tests? #f)) ; FIXME: No tests in pypi tarball.
13662 `(("python-appdirs" ,python-appdirs)
13663 ("python-jedi" ,python-jedi)
13664 ("python-prompt-toolkit" ,python-prompt-toolkit)
13665 ("python-pygments" ,python-pygments)))
13666 (home-page "https://github.com/jonathanslenders/ptpython")
13667 (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
13669 "ptpython is a Python read-eval-print loop with IDE-like features.
13670 It supports syntax highlighting, multiline editing, autocompletion, mouse,
13671 color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
13673 (license license:bsd-3)
13674 (properties `((python2-variant . ,(delay ptpython-2))))))
13676 (define-public ptpython-2
13677 (let ((base (package-with-python2 (strip-python2-variant ptpython))))
13680 (name "ptpython2"))))
13682 (define-public python-stem
13684 (name "python-stem")
13689 (uri (pypi-uri "stem" version))
13692 "1hk8alc0r4m669ggngdfvryndd0fbx0w62sclcmg55af4ak8xd50"))))
13693 (build-system python-build-system)
13696 (modify-phases %standard-phases
13699 (invoke "./run_tests.py" "--unit")
13702 `(("python-mock" ,python-mock)
13703 ("python-pycodestyle" ,python-pycodestyle)
13704 ("python-pyflakes" ,python-pyflakes)))
13705 (home-page "https://stem.torproject.org/")
13707 "Python controller library that allows applications to interact with Tor")
13709 "Stem is a Python controller library for Tor. With it you can use Tor's
13710 control protocol to script against the Tor process and read descriptor data
13711 relays publish about themselves.")
13712 (license license:lgpl3)))
13714 (define-public python2-stem
13715 (package-with-python2 python-stem))
13717 (define-public python-pyserial
13719 (name "python-pyserial")
13724 (uri (pypi-uri "pyserial" version))
13727 "09y68bczw324a4jb9a1cfwrbjhq179vnfkkkrybbksp0vqgl0bbf"))))
13728 (build-system python-build-system)
13730 '(#:tests? #f)) ; FIXME: 3/49 tests are failing.
13732 ;; (modify-phases %standard-phases
13735 ;; (zero? (system* "python" "test/run_all_tests.py" "loop://")))))))
13737 "https://github.com/pyserial/pyserial")
13738 (synopsis "Python Serial Port Bindings")
13739 (description "@code{pyserial} provide serial port bindings for Python. It
13740 supports different byte sizes, stop bits, parity and flow control with RTS/CTS
13741 and/or Xon/Xoff. The port is accessed in RAW mode.")
13742 (license license:bsd-3)))
13744 (define-public python2-pyserial
13745 (package-with-python2 python-pyserial))
13747 (define-public python-kivy
13749 (name "python-kivy")
13754 (uri (pypi-uri "Kivy" version))
13755 (file-name (string-append name "-" version ".tar.gz"))
13758 "1zzxjdp78hfjjiklzr82l4zwibwcq4j6kgicspqs6iyyfn5yisbw"))))
13759 (build-system python-build-system)
13761 `(#:tests? #f ; Tests require many optional packages
13763 (modify-phases %standard-phases
13764 (add-after 'patch-generated-file-shebangs 'set-sdl-paths
13765 (lambda* (#:key inputs #:allow-other-keys)
13766 (setenv "KIVY_SDL2_PATH"
13767 (string-append (assoc-ref inputs "sdl-union")
13771 `(("pkg-config" ,pkg-config)
13772 ("python-cython" ,python-cython)))
13774 `(("gstreamer" ,gstreamer)
13777 ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
13778 (home-page "https://kivy.org")
13780 "Multitouch application framework")
13782 "A software library for rapid development of
13783 hardware-accelerated multitouch applications.")
13784 (license license:expat)))
13786 (define-public python2-kivy
13787 (package-with-python2 python-kivy))
13789 (define-public python-binaryornot
13791 (name "python-binaryornot")
13795 (uri (pypi-uri "binaryornot" version))
13798 "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
13799 (build-system python-build-system)
13802 (modify-phases %standard-phases
13803 (add-after 'unpack 'patch-tests
13805 ;; TypeError: binary() got an unexpected keyword argument
13807 (substitute* "tests/test_check.py"
13808 (("average_size=512") ""))
13811 `(("python-chardet" ,python-chardet)
13812 ("python-hypothesis" ,python-hypothesis)))
13813 (home-page "https://github.com/audreyr/binaryornot")
13814 (synopsis "Package to check if a file is binary or text")
13815 (description "Ultra-lightweight pure Python package to check if a file is
13817 (license license:bsd-3)
13818 (properties `((python2-variant . ,(delay python2-binaryornot))))))
13820 (define-public python2-binaryornot
13821 (let ((base (package-with-python2 (strip-python2-variant python-binaryornot))))
13822 (package (inherit base)
13824 `(("python2-enum34" ,python2-enum34)
13825 ,@(package-propagated-inputs base))))))
13827 (define-public python-binwalk
13829 (name "python-binwalk")
13834 (uri (git-reference
13835 (url "https://github.com/ReFirmLabs/binwalk")
13836 (commit (string-append "v" version))))
13837 (file-name (git-file-name name version))
13840 "1bxgj569fzwv6jhcbl864nmlsi9x1k1r20aywjxc8b9b1zgqrlvc"))))
13841 (build-system python-build-system)
13844 (modify-phases %standard-phases
13845 (add-before 'check 'set-pythonpath
13847 (setenv "PYTHONPATH"
13850 ":" (getenv "PYTHONPATH")))
13854 `(("python-coverage" ,python-coverage)
13855 ("python-nose" ,python-nose)))
13856 (home-page "https://github.com/ReFirmLabs/binwalk")
13857 (synopsis "Firmware analysis tool")
13858 (description "Binwalk is a tool for analyzing, reverse engineering, and
13859 extracting firmware images")
13860 (license license:expat)))
13862 (define-public python-nltk
13864 (name "python-nltk")
13868 (uri (pypi-uri "nltk" version))
13871 "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym"))))
13872 (build-system python-build-system)
13874 '(;; The tests require some extra resources to be downloaded.
13875 ;; TODO Try packaging these resources.
13877 (home-page "http://nltk.org/")
13878 (synopsis "Natural Language Toolkit")
13879 (description "It provides interfaces to over 50 corpora and lexical
13880 resources such as WordNet, along with a suite of text processing libraries
13881 for classification, tokenization, stemming, tagging, parsing, and semantic
13882 reasoning, wrappers for natural language processing libraries.")
13883 (license license:asl2.0)))
13885 (define-public python2-nltk
13886 (package-with-python2 python-nltk))
13888 (define-public python-pymongo
13890 (name "python-pymongo")
13894 (uri (pypi-uri "pymongo" version))
13897 "0zis4707r9hdg5qgkhp3wss9camr9h56ixyfc8n9dxwlnnly4x4c"))))
13898 (build-system python-build-system)
13900 `(("python-certifi" ,python-certifi)))
13901 (home-page "https://github.com/mongodb/mongo-python-driver")
13902 (synopsis "Python driver for MongoDB")
13903 (description "Python driver for MongoDB.")
13904 (license license:asl2.0)))
13906 (define-public python2-pymongo
13907 (package-with-python2 python-pymongo))
13909 (define-public python-consul
13911 (name "python-consul")
13916 (uri (pypi-uri "python-consul" version))
13919 "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8"))))
13920 (build-system python-build-system)
13922 '(#:tests? #f)) ; The tests are not distributed
13924 `(("python-requests" ,python-requests)
13925 ("python-six" ,python-six)))
13926 (home-page "https://github.com/cablehead/python-consul")
13927 (synopsis "Python client for Consul")
13929 "Python client for @url{http://www.consul.io/,Consul}, a tool for service
13930 discovery, monitoring and configuration.")
13931 (license license:expat)))
13933 (define-public python2-consul
13934 (package-with-python2 python-consul))
13936 (define-public python-schematics
13938 (name "python-schematics")
13943 (uri (git-reference
13944 (url "https://github.com/schematics/schematics")
13945 (commit (string-append "v" version))))
13946 (file-name (git-file-name name version))
13948 (base32 "0xdqskycznqc7mfp60bhw1zq8wx7yx1dvmbq3brnm1dx3xnqa0zd"))))
13949 (build-system python-build-system)
13951 `(("python-six" ,python-six)))
13953 ;; The tests require a bunch of not very nice packages with fixed
13954 ;; version requirements (e.g. python-coveralls).
13956 (home-page "https://github.com/schematics/schematics")
13957 (synopsis "Python Data Structures for Humans")
13958 (description "Python Data Structures for Humans.")
13959 (license license:bsd-3)))
13961 (define-public python2-schematics
13962 (package-with-python2 python-schematics))
13964 (define-public python-odfpy
13966 (name "python-odfpy")
13970 (uri (pypi-uri "odfpy" version))
13973 "1v1qqk9p12qla85yscq2g413l3qasn6yr4ncyc934465b5p6lxnv"))))
13976 (modify-phases %standard-phases
13979 (setenv "PYTHONPATH" (string-append "./build/lib:"
13980 (getenv "PYTHONPATH")))
13981 (invoke "pytest" "-vv"))))))
13982 (build-system python-build-system)
13984 `(("python-pytest" ,python-pytest)))
13986 `(("python-defusedxml" ,python-defusedxml)))
13987 (home-page "https://github.com/eea/odfpy")
13988 (synopsis "Python API and tools to manipulate OpenDocument files")
13989 (description "Collection of libraries and utility programs written in
13990 Python to manipulate OpenDocument 1.2 files.")
13992 ;; The software is mainly dual GPL2+ and ASL2.0, but includes a
13993 ;; number of files with other licenses.
13994 (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
13996 (define-public python2-odfpy
13997 (package-with-python2 python-odfpy))
13999 (define-public python-natsort
14001 (name "python-natsort")
14005 (uri (pypi-uri "natsort" version))
14008 "1ksqfai72dbcfbwx43pxl658j59mx2rvqypjy1fk0ax2qd6lccx6"))))
14009 (build-system python-build-system)
14011 `(#:modules ((guix build utils)
14012 (guix build python-build-system)
14017 (modify-phases %standard-phases
14018 (add-before 'check 'set-cachedir
14019 ;; Tests require write access to $HOME by default
14020 (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))
14023 (let ((cwd (getcwd)))
14024 (setenv "PYTHONPATH"
14027 (find (cut string-prefix? "lib" <>)
14028 (scandir (string-append cwd "/build")))
14030 (getenv "PYTHONPATH")))
14031 (invoke "pytest" "-v")))))))
14033 `(("python-hypothesis" ,python-hypothesis)
14034 ("python-pytest-cov" ,python-pytest-cov)
14035 ("python-pytest-mock" ,python-pytest-mock)
14036 ("python-pytest" ,python-pytest)))
14037 (propagated-inputs ; TODO: Add python-fastnumbers.
14038 `(("python-pyicu" ,python-pyicu)))
14039 (home-page "https://github.com/SethMMorton/natsort")
14040 (synopsis "Natural sorting for python and shell")
14042 "Natsort lets you apply natural sorting on lists instead of
14043 lexicographical. If you use the built-in @code{sorted} method in python
14044 on a list such as @code{[@code{a20}, @code{a9}, @code{a1}, @code{a4},
14045 @code{a10}]}, it would be returned as @code{[@code{a1}, @code{a10}, @code{a20},
14046 @code{a4}, @code{a9}]}. Natsort provides a function @code{natsorted} that
14047 identifies numbers and sorts them separately from strings. It can also sort
14048 version numbers, real numbers, mixed types and more, and comes with a shell
14049 command @command{natsort} that exposes this functionality in the command line.")
14050 (license license:expat)
14051 (properties `((python2-variant . ,(delay python2-natsort))))))
14053 ;; Natsort 6.x are the last versions with support for Python 2.
14054 (define-public python2-natsort
14055 (let ((base (package-with-python2 (strip-python2-variant python-natsort))))
14056 (package (inherit base)
14060 (uri (pypi-uri "natsort" version))
14063 "1mc9hbh6fv76xyz13frm7dgi05cf74f9j5wvcyjiy5234gylz565"))))
14065 `(("python2-pathlib" ,python2-pathlib)
14066 ,@(package-native-inputs base))))))
14068 (define-public glances
14075 (uri (pypi-uri "Glances" version))
14077 (base32 "0dc47gbvp9a3wxppdqihxpglxxaxbj3hcvzgcxxq8zcsciah3plq"))
14078 (modules '((guix build utils)))
14081 ;; Glances phones PyPI for weekly update checks by default.
14082 ;; Disable these. The user can re-enable them if desired.
14083 (substitute* "glances/outdated.py"
14084 (("^(.*)self\\.load_config\\(config\\)\n" line indentation)
14085 (string-append indentation
14086 "self.args.disable_check_update = True\n"
14089 (build-system python-build-system)
14091 `(("python-future" ,python-future)
14092 ("python-psutil" ,python-psutil)))
14093 (home-page "https://github.com/nicolargo/glances")
14094 (synopsis "Cross-platform curses-based monitoring tool")
14096 "Glances is a curses-based monitoring tool for a wide variety of platforms.
14097 Glances uses the PsUtil library to get information from your system. It
14098 monitors CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
14099 (license license:lgpl3+)))
14101 (define-public python-glances
14102 (deprecated-package "python-glances" glances))
14104 (define-public python-graphql-core
14106 (name "python-graphql-core")
14111 (uri (pypi-uri "graphql-core" version))
14114 "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0"))))
14115 (build-system python-build-system)
14117 `(#:tests? #f ; Tests require the unpackaged pytest-benchmark.
14119 (modify-phases %standard-phases
14120 (add-after 'unpack 'patch-hardcoded-version
14121 (lambda _ (substitute*
14123 (("'gevent==1.1rc1'") "'gevent'"))
14126 `(("python-gevent" ,python-gevent)
14127 ("python-mock" ,python-mock)
14128 ("python-pytest-mock" ,python-pytest-mock)))
14130 `(("python-promise" ,python-promise)
14131 ("python-six" ,python-six)))
14132 (home-page "https://github.com/graphql-python/graphql-core")
14133 (synopsis "GraphQL implementation for Python")
14135 "GraphQL implementation for Python. GraphQL is a data query language and
14136 runtime designed and used to request and deliver data to mobile and web apps.
14137 This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
14139 (license license:expat)))
14141 (define-public python2-graphql-core
14142 (package-with-python2 python-graphql-core))
14144 (define-public python-graphql-relay
14146 (name "python-graphql-relay")
14151 (uri (pypi-uri "graphql-relay" version))
14154 "1nv5dxcj59zv31qvl8bd142njmxcmymny2dz3br1l2cpbljbf5i7"))))
14155 (build-system python-build-system)
14157 '(#:tests? #f)) ; The tests are not distributed
14159 `(("python-graphql-core" ,python-graphql-core)
14160 ("python-promise" ,python-promise)
14161 ("python-six" ,python-six)))
14162 (home-page "https://github.com/graphql-python/graphql-relay-py")
14163 (synopsis "Relay implementation for Python")
14165 "This is a library to allow the easy creation of Relay-compliant servers
14166 using the GraphQL Python reference implementation of a GraphQL server. It
14167 should be noted that the code is a exact port of the original
14168 @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation}
14170 (license license:expat)))
14172 (define-public python-graphene
14174 (name "python-graphene")
14179 (uri (pypi-uri "graphene" version))
14182 "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
14183 (build-system python-build-system)
14185 `(("python-graphql-core" ,python-graphql-core)
14186 ("python-graphql-relay" ,python-graphql-relay)
14187 ("python-iso8601" ,python-iso8601)
14188 ("python-promise" ,python-promise)
14189 ("python-six" ,python-six)))
14191 `(#:tests? #f)) ; no tests/ in the PyPI tarball
14192 (home-page "https://graphene-python.org/")
14193 (synopsis "GraphQL Framework for Python")
14195 "Graphene is a Python library for building GraphQL schemas/types.
14196 A GraphQL schema describes your data model, and provides a GraphQL server
14197 with an associated set of resolve methods that know how to fetch data.")
14198 (license license:expat)))
14200 (define-public python-nautilus
14202 (name "python-nautilus")
14207 (uri (pypi-uri "nautilus" version))
14210 "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p"))))
14211 (build-system python-build-system)
14212 (arguments `(#:tests? #f)) ; fails to import test modules
14214 `(("python-bcrypt" ,python-bcrypt)
14215 ("python-click" ,python-click)
14216 ("python-consul" ,python-consul)
14217 ("python-graphene" ,python-graphene)
14218 ("python-jinja2" ,python-jinja2)
14219 ("python-peewee" ,python-peewee)
14220 ("python-pika" ,python-pika)
14221 ("python-tornado" ,python-tornado)
14222 ("python-wtforms" ,python-wtforms)))
14224 `(("python-nose2" ,python-nose2)))
14225 (home-page "https://github.com/AlecAivazis/nautilus")
14226 (synopsis "Library for creating microservice applications")
14228 "Nautilus is a framework for flux based microservices that looks to
14229 provide extendible implementations of common aspects of a cloud so that you can
14230 focus on building massively scalable web applications.")
14231 (license license:expat)))
14233 (define-public python-random2
14235 (name "python-random2")
14239 (uri (pypi-uri "random2" version ".zip"))
14242 "01y0s4747plsx8fdnxy0nz83dp69naddz58m81r9h0s1qfm31b9l"))))
14243 (build-system python-build-system)
14244 (native-inputs `(("unzip" ,unzip)))
14245 (home-page "http://pypi.python.org/pypi/random2")
14246 (synopsis "Python 3 version of the Python 2 @code{random} module")
14248 "This package provides a Python 3 ported version of Python 2.7’s
14249 @code{random} module. It has also been back-ported to work in Python 2.6.
14251 In Python 3, the implementation of @code{randrange()} was changed, so that
14252 even with the same seed you get different sequences in Python 2 and 3.
14254 This package closes that gap, allowing stable random number generation
14255 between the different Python versions.")
14256 (license license:psfl)))
14258 (define-public python2-random2
14259 (package-with-python2 python-random2))
14261 (define-public python-snowballstemmer
14263 (name "python-snowballstemmer")
14267 (uri (pypi-uri "snowballstemmer" version))
14270 "0ligk61idlz8kkgd5hpip5whm172riwglb6xydii7h62yhysqfyz"))))
14271 (build-system python-build-system)
14273 `(;; No tests exist
14275 (home-page "https://github.com/shibukawa/snowball_py")
14276 (synopsis "Snowball stemming library collection for Python")
14277 (description "This package provides 16 word stemmer algorithms generated
14278 from Snowball algorithms. It includes the 15 original ones plus the Poerter
14280 (license license:bsd-3)))
14282 (define-public python2-snowballstemmer
14283 (package-with-python2 python-snowballstemmer))
14285 (define-public python-setproctitle
14287 (name "python-setproctitle")
14292 (uri (pypi-uri "setproctitle" version))
14295 "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2"))))
14296 (build-system python-build-system)
14299 (modify-phases %standard-phases
14300 (add-before 'check 'patch-Makefile
14301 ;; Stricly this is only required for the python2 variant.
14302 ;; But adding a phase in an inherited package seems to be
14303 ;; cumbersum. So we patch even for python3.
14305 (let ((nose (assoc-ref %build-inputs "python2-nose")))
14307 (substitute* "Makefile"
14308 (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ")
14309 (string-append nose "/bin/nosetests "))))
14313 (setenv "PYTHON" (or (which "python3") (which "python")))
14314 (setenv "PYCONFIG" (if (which "python3-config")
14315 "python3-config --embed"
14317 (setenv "CC" "gcc")
14318 ;; No need to extend PYTHONPATH to find the built package, since
14319 ;; the Makefile will build anyway
14320 (invoke "make" "check"))))))
14322 `(("procps" ,procps))) ; required for tests
14323 (home-page "https://github.com/dvarrazzo/py-setproctitle")
14325 "Setproctitle implementation for Python to customize the process title")
14326 (description "The library allows a process to change its title (as displayed
14327 by system tools such as ps and top).
14329 Changing the title is mostly useful in multi-process systems, for
14330 example when a master process is forked: changing the children's title
14331 allows identifying the task each process is busy with. The technique
14332 is used by PostgreSQL and the OpenSSH Server for example.")
14333 (license license:bsd-3)
14334 (properties `((python2-variant . ,(delay python2-setproctitle))))))
14336 (define-public python2-setproctitle
14337 (let ((base (package-with-python2
14338 (strip-python2-variant python-setproctitle))))
14341 (native-inputs `(("python2-nose" ,python2-nose)
14342 ,@(package-native-inputs base))))))
14344 (define-public python-validictory
14346 (name "python-validictory")
14351 (uri (pypi-uri "validictory" version))
14354 "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q"))))
14355 (build-system python-build-system)
14358 (modify-phases %standard-phases
14359 (add-after 'unpack 'bootstrap
14360 ;; Move the tests out of the package directory to avoid
14363 (rename-file "validictory/tests" "tests")
14364 (delete-file "tests/__init__.py")))
14367 ;; Extend PYTHONPATH so the built package will be found.
14368 (setenv "PYTHONPATH"
14369 (string-append (getcwd) "/build/lib:"
14370 (getenv "PYTHONPATH")))
14371 (invoke "py.test" "-vv" ))))))
14373 `(("python-pytest" ,python-pytest)))
14375 "https://github.com/jamesturk/validictory")
14376 (synopsis "General purpose Python data validator")
14377 (description "It allows validation of arbitrary Python data structures.
14379 The schema format is based on the JSON Schema
14380 proposal (http://json-schema.org), so combined with json the library is also
14381 useful as a validator for JSON data.")
14382 (license license:expat)))
14384 (define-public python2-validictory
14385 (package-with-python2 python-validictory))
14387 (define-public python-pyelftools
14389 (name "python-pyelftools")
14394 (uri (pypi-uri "pyelftools" version))
14397 "090vdksbz341f7ljvr0zswblw4lspa8qaiikzyjkf318arpxmil9"))))
14398 (build-system python-build-system)
14401 (modify-phases %standard-phases
14402 (add-before 'check 'set-pythonpath
14404 (setenv "PYTHONPATH"
14407 ":" (getenv "PYTHONPATH")))
14410 "https://github.com/eliben/pyelftools")
14412 "Analyze binary and library file information")
14413 (description "This Python library provides interfaces for parsing and
14414 analyzing two binary and library file formats; the Executable and Linking
14415 Format (ELF), and debugging information in the Debugging With Attributed
14416 Record Format (DWARF).")
14417 (license license:public-domain)))
14419 (define-public python-pyev
14421 (name "python-pyev")
14426 (uri (pypi-uri "pyev" version))
14429 "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx"))))
14430 (build-system python-build-system)
14432 `(#:tests? #f ; no test suite
14434 (modify-phases %standard-phases
14435 (add-after 'unpack 'patch
14436 (lambda* (#:key inputs #:allow-other-keys)
14437 (let ((libev (string-append (assoc-ref inputs "libev")
14438 "/lib/libev.so.4")))
14439 (substitute* "setup.py"
14440 (("libev_dll_name = find_library\\(\\\"ev\\\"\\)")
14441 (string-append "libev_dll_name = \"" libev "\"")))))))))
14443 `(("libev" ,libev)))
14444 (home-page "http://pythonhosted.org/pyev/")
14445 (synopsis "Python libev interface")
14446 (description "Pyev provides a Python interface to libev.")
14447 (license license:gpl3)))
14449 (define-public python2-pyev
14450 (package-with-python2 python-pyev))
14452 (define-public python-imagesize
14454 (name "python-imagesize")
14459 (uri (pypi-uri "imagesize" version))
14462 "1cd24x0vqbd6c8ym1n21qc0aj54mfb7rzdqglmwk9xxixajbbxmi"))))
14463 (build-system python-build-system)
14464 (home-page "https://github.com/shibukawa/imagesize_py")
14465 (synopsis "Gets image size of files in various formats in Python")
14467 "This package allows determination of image size from
14468 PNG, JPEG, JPEG2000 and GIF files in pure Python.")
14469 (license license:expat)))
14471 (define-public python2-imagesize
14472 (package-with-python2 python-imagesize))
14474 (define-public python-termstyle
14476 (name "python-termstyle")
14481 (uri (pypi-uri "termstyle" version))
14484 "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g"))))
14485 (build-system python-build-system)
14488 (modify-phases %standard-phases
14491 (invoke "python" "test3.py"))))))
14492 (home-page "https://github.com/gfxmonk/termstyle")
14493 (synopsis "Console text coloring for Python")
14494 (description "This package provides console text coloring for Python.")
14495 (license license:bsd-3)))
14497 (define-public python-argcomplete
14499 (name "python-argcomplete")
14504 (uri (pypi-uri "argcomplete" version))
14507 "0h1przxffrhqvi46k40pzjsvdrq4zc3sl1pc96kkigqppq0vdrss"))
14508 (patches (search-patches "python-argcomplete-1.11.1-fish31.patch"))))
14509 (build-system python-build-system)
14511 `(("python-coverage" ,python-coverage)
14512 ("python-flake8" ,python-flake8)
14513 ("python-pexpect" ,python-pexpect)
14514 ("python-wheel" ,python-wheel)
14517 ("bash-full" ,bash))) ;full Bash for 'test_file_completion'
14518 (home-page "https://github.com/kislyuk/argcomplete")
14519 (synopsis "Shell tab completion for Python argparse")
14520 (description "argcomplete provides extensible command line tab completion
14521 of arguments and options for Python scripts using @code{argparse}. It's
14522 particularly useful for programs with many options or sub-parsers that can
14523 dynamically suggest completions; for example, when browsing resources over the
14525 (license license:asl2.0)))
14527 (define-public python2-argcomplete
14528 (package-with-python2 python-argcomplete))
14530 (define-public python-csscompressor
14532 (name "python-csscompressor")
14537 (uri (pypi-uri "csscompressor" version))
14540 "018ssffvlpnc1salmnpyl52c11glzzwj4k9f757hl4pkpjnjp8mg"))))
14541 (build-system python-build-system)
14544 (modify-phases %standard-phases
14547 (invoke "py.test"))))))
14549 `(("python-pytest" ,python-pytest)))
14550 (home-page "https://github.com/sprymix/csscompressor")
14551 (synopsis "Python port of YUI CSS Compressor")
14553 "This package provides a python port of YUI CSS Compressor.")
14554 (license license:bsd-3)))
14556 (define-public python-rcssmin
14558 (name "python-rcssmin")
14563 (uri (pypi-uri "rcssmin" version))
14566 "0w42l4dhxghcz7pj3q7hkxp015mvb8z2cq9sfxbl31npsfavd1ya"))))
14567 (build-system python-build-system)
14570 (modify-phases %standard-phases
14573 (invoke "python" "run_tests.py" "tests"))))))
14574 (home-page "http://opensource.perlig.de/rcssmin/")
14575 (synopsis "CSS Minifier")
14576 (description "The minifier is based on the semantics of the YUI compressor,
14577 which itself is based on the rule list by Isaac Schlueter.")
14578 (license license:asl2.0)))
14580 (define-public python-rjsmin
14582 (name "python-rjsmin")
14587 (uri (pypi-uri "rjsmin" version))
14590 "0cmc72rlkvzz8fl89bc83czkx0pcvhzj7yn7m29r8pgnf5fcfpdi"))
14591 (modules '((guix build utils)))
14594 (for-each delete-file (find-files "bench" "\\.js$"))
14596 (build-system python-build-system)
14598 '(#:tests? #f ; Not all test files included.
14600 (modify-phases %standard-phases
14602 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
14603 (add-installed-pythonpath inputs outputs)
14605 (invoke "py.test" "-vv" "tests")
14608 `(("python-pytest" ,python-pytest)))
14609 (home-page "http://opensource.perlig.de/rjsmin/")
14610 (synopsis "Javascript Minifier")
14611 (description "@code{rJSmin} is a javascript minifier written in Python. The
14612 minifier is based on the semantics of jsmin.c by Douglas Crockford. The module
14613 is a re-implementation aiming for speed, so it can be used at runtime (rather
14614 than during a preprocessing step).")
14615 (license license:asl2.0)))
14617 (define-public python-xopen
14619 (name "python-xopen")
14624 (uri (pypi-uri "xopen" version))
14627 "17xbrgi23l87yg6h0qcknssp2q812miiy33qw6v45v5gx0jwv5xh"))))
14628 (build-system python-build-system)
14630 `(("python-setuptools-scm" ,python-setuptools-scm)))
14631 (home-page "https://github.com/marcelm/xopen/")
14632 (synopsis "Open compressed files transparently")
14633 (description "This module provides an @code{xopen} function that works like
14634 Python's built-in @code{open} function, but can also deal with compressed files.
14635 Supported compression formats are gzip, bzip2 and, xz, and are automatically
14636 recognized by their file extensions. The focus is on being as efficient as
14637 possible on all supported Python versions.")
14638 (license license:expat)))
14640 (define-public python2-xopen
14641 (let ((base (package-with-python2
14642 (strip-python2-variant python-xopen))))
14645 (propagated-inputs `(("python2-bz2file" ,python2-bz2file)
14646 ,@(package-propagated-inputs base))))))
14648 (define-public python-cheetah
14650 (name "python-cheetah")
14655 (uri (pypi-uri "Cheetah3" version))
14658 "0ar5dqjnqaw0c17mymd6xgd81jn9br9fblawr0x438v1571bkaya"))))
14659 (build-system python-build-system)
14661 `(#:modules ((guix build utils)
14662 (guix build python-build-system)
14666 #:phases (modify-phases %standard-phases
14667 (add-after 'unpack 'use-absolute-python
14669 (substitute* "Cheetah/CheetahWrapper.py"
14670 (("#!/usr/bin/env python")
14671 (string-append "#!" (which "python"))))
14673 (add-after 'unpack 'fix-tests
14675 (substitute* "Cheetah/Tests/ImportHooks.py"
14676 (("os.path.dirname\\(__file__\\)")
14677 (string-append "'" (getcwd) "/Cheetah/Tests'")))
14681 (let ((cwd (getcwd)))
14682 (setenv "PYTHONPATH"
14685 (find (cut string-prefix? "lib" <>)
14686 (scandir (string-append cwd "/build")))
14687 ":" (getenv "PYTHONPATH")))
14689 (string-append (getenv "PATH")
14691 (setenv "TMPDIR" "/tmp")
14693 (substitute* "Cheetah/Tests/Test.py"
14694 (("unittest.TextTestRunner\\(\\)")
14695 "unittest.TextTestRunner(verbosity=2)"))
14697 (invoke "python" "Cheetah/Tests/Test.py")))))))
14699 `(("python-markdown" ,python-markdown))) ;optional
14700 (home-page "https://cheetahtemplate.org/")
14701 (synopsis "Template engine")
14702 (description "Cheetah is a text-based template engine and Python code
14705 Cheetah can be used as a standalone templating utility or referenced as
14706 a library from other Python applications. It has many potential uses,
14707 but web developers looking for a viable alternative to ASP, JSP, PHP and
14708 PSP are expected to be its principle user group.
14712 @item Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other
14714 @item Cleanly separates content, graphic design, and program code.
14715 @item Blends the power and flexibility of Python with a simple template language
14716 that non-programmers can understand.
14717 @item Gives template writers full access to any Python data structure, module,
14718 function, object, or method in their templates.
14719 @item Makes code reuse easy by providing an object-orientated interface to
14720 templates that is accessible from Python code or other Cheetah templates.
14721 One template can subclass another and selectively reimplement sections of it.
14722 @item Provides a simple, yet powerful, caching mechanism that can dramatically
14723 improve the performance of a dynamic website.
14724 @item Compiles templates into optimized, yet readable, Python code.
14726 (license (license:x11-style "file://LICENSE"))))
14728 (define-public python2-cheetah
14729 (package-with-python2 python-cheetah))
14731 (define-public python-dulwich
14733 (name "python-dulwich")
14734 (version "0.19.16")
14738 (uri (list (string-append "https://www.dulwich.io/releases/"
14739 "dulwich-" version ".tar.gz")
14740 (pypi-uri "dulwich" version)))
14743 "0l589jl0lxx59yq0p6vmgw0q0hmfh48iqwyy0x6g1dmz93262igp"))))
14744 (build-system python-build-system)
14747 (modify-phases %standard-phases
14748 (add-before 'check 'fix-tests
14749 (lambda* (#:key inputs #:allow-other-keys)
14750 ;; The tests use Popen with a custom environment which doesn't
14752 (substitute* "dulwich/tests/compat/utils.py"
14753 (("'git'") (string-append "'"
14756 (substitute* '("dulwich/tests/test_repository.py"
14757 "dulwich/tests/test_hooks.py")
14758 (("#!/bin/sh") (string-append "#!" (which "sh"))))
14759 (setenv "TEST_RUNNER" "unittest")
14760 (setenv "PYTHONHASHSEED" "random")
14763 `(("python-fastimport" ,python-fastimport)
14764 ("python-urllib3" ,python-urllib3)))
14766 `(("python-mock" ,python-mock)
14767 ("python-geventhttpclient" ,python-geventhttpclient)
14769 (home-page "https://www.dulwich.io/")
14770 (synopsis "Git implementation in Python")
14771 (description "Dulwich is an implementation of the Git file formats and
14772 protocols written in pure Python.")
14773 ;; Can be used with either license.
14774 (license (list license:asl2.0 license:gpl2+))))
14776 (define-public python2-dulwich
14777 (package-with-python2 python-dulwich))
14779 (define-public python-pbkdf2
14781 (name "python-pbkdf2")
14786 (uri (pypi-uri "pbkdf2" version))
14789 "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc"))))
14790 (build-system python-build-system)
14793 (modify-phases %standard-phases
14796 (setenv "PYTHONPATH"
14797 (string-append (getcwd) "/build/lib:"
14798 (getenv "PYTHONPATH")))
14799 (invoke "python" "test/test_pbkdf2.py"))))))
14801 `(("python-pycrypto" ,python-pycrypto))) ; optional
14802 (home-page "https://www.dlitz.net/software/python-pbkdf2/")
14803 (synopsis "Password-based key derivation")
14804 (description "This module implements the password-based key derivation
14805 function, PBKDF2, specified in RSA PKCS#5 v2.0.
14807 PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which
14808 is part of the RSA Public Key Cryptography Standards series. The provided
14809 implementation takes a password or a passphrase and a salt value (and
14810 optionally a iteration count, a digest module, and a MAC module) and provides
14811 a file-like object from which an arbitrarily-sized key can be read.")
14812 (license license:expat)))
14814 (define-public python2-pbkdf2
14815 (package-with-python2 python-pbkdf2))
14817 (define-public python-qrcode
14819 (name "python-qrcode")
14824 (uri (pypi-uri "qrcode" version))
14826 (base32 "0sa3n298b9jpz6zn0birnjii3mg9sihjq28n9nzjlzv09y2m6ljh"))))
14827 (build-system python-build-system)
14829 ;; FIXME: Tests require packaging 'pymaging'.
14832 `(("python-lxml" ,python-lxml) ; for SVG output
14833 ("python-pillow" ,python-pillow) ; for PNG output
14834 ("python-six" ,python-six)))
14835 (home-page "https://github.com/lincolnloop/python-qrcode")
14836 (synopsis "QR Code image generator")
14837 (description "This package provides a pure Python QR Code generator
14838 module. It uses the Python Imaging Library (PIL) to allow for the generation
14841 In addition this package provides a command line tool to generate QR codes and
14842 either write these QR codes to a file or do the output as ascii art at the
14844 (license license:bsd-3)))
14846 (define-public python2-qrcode
14847 (package-with-python2 python-qrcode))
14849 (define-public python-rst2ansi
14851 (name "python-rst2ansi")
14856 (uri (pypi-uri "rst2ansi" version))
14859 "0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv"))))
14860 (build-system python-build-system)
14862 `(("python-docutils" ,python-docutils)))
14863 (home-page "https://github.com/Snaipe/python-rst-to-ansi")
14864 (synopsis "Convert RST to ANSI-decorated console output")
14866 "Python module dedicated to rendering RST (reStructuredText) documents
14867 to ansi-escaped strings suitable for display in a terminal.")
14868 (license license:expat)))
14870 (define-public python-ansi2html
14872 (name "python-ansi2html")
14877 (uri (pypi-uri "ansi2html" version))
14880 "1wa00zffprb78w1mqq90dk47czz1knanys2a40zbw2vyapd5lp9y"))))
14881 (build-system python-build-system)
14883 `(("python-mock" ,python-mock)
14884 ("python-nose" ,python-nose)))
14886 `(("python-six" ,python-six)))
14887 (home-page "https://github.com/ralphbean/ansi2html")
14888 (synopsis "Convert ANSI-decorated console output to HTML")
14890 "@command{ansi2html} is a Python library and command line utility for
14891 converting text with ANSI color codes to HTML or LaTeX.")
14892 (license license:gpl3+)))
14894 (define-public python2-ansi2html
14895 (package-with-python2 python-ansi2html))
14897 (define-public python-ddt
14899 (name "python-ddt")
14904 (uri (pypi-uri "ddt" version))
14907 "1niqpzc26sxdbyi46r07n4pma5fjx6crww2539vpfmsf0w6yg585"))))
14908 (build-system python-build-system)
14910 `(("python-pytest" ,python-pytest)))
14912 `(("python-pyyaml" ,python-pyyaml)))
14913 (home-page "https://github.com/datadriventests/ddt")
14914 (synopsis "Data-Driven Tests")
14916 "Data-Driven Tests (@dfn{DDT}) allow you to multiply one test case by
14917 running it with different test data, and make it appear as multiple test
14919 (license license:expat)))
14921 (define-public python-pycountry
14923 (name "python-pycountry")
14924 (version "18.5.26")
14928 (uri (pypi-uri "pycountry" version))
14931 "15q9j047s3yc9cfcxq1ch8b71f81na44cr6dydd5gxk0ki9a4akz"))))
14932 (build-system python-build-system)
14933 (home-page "https://bitbucket.org/flyingcircus/pycountry")
14934 (synopsis "ISO databases for languages, countries, currencies, etc.")
14936 "@code{pycountry} provides the ISO databases for the standards:
14938 @item 639-3 (Languages)
14939 @item 3166 (Countries)
14940 @item 3166-3 (Deleted Countries)
14941 @item 3166-2 (Subdivisions of countries)
14942 @item 4217 (Currencies)
14943 @item 15924 (Scripts)
14945 It includes a copy from Debian’s pkg-isocodes and makes the data accessible
14946 through a Python API.")
14947 (license license:lgpl2.1+)))
14949 (define-public python2-pycountry
14950 (package-with-python2 python-pycountry))
14952 (define-public python-pycosat
14954 (name "python-pycosat")
14959 (uri (pypi-uri "pycosat" version ".zip"))
14962 "1vg0f2fwcybpdqv92z0hwdl603n2safh3fqvjjxkksd78r4qg6ac"))))
14963 ;; TODO: Unundle picosat. http://fmv.jku.at/picosat/
14964 (build-system python-build-system)
14966 `(("unzip" ,unzip)))
14967 (home-page "https://github.com/ContinuumIO/pycosat")
14968 (synopsis "Bindings to picosat (a SAT solver)")
14970 "This package provides efficient Python bindings to @code{picosat} on
14971 the C level. When importing pycosat, the @code{picosat} solver becomes part
14972 of the Python process itself. @code{picosat} is a @dfn{Boolean Satisfiability
14973 Problem} (SAT) solver.")
14974 (license license:expat)))
14976 (define-public python2-pycosat
14977 (package-with-python2 python-pycosat))
14979 (define-public python2-ruamel.ordereddict
14981 (name "python2-ruamel.ordereddict")
14986 (uri (pypi-uri "ruamel.ordereddict" version))
14989 "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h"))))
14990 (build-system python-build-system)
14992 `(#:python ,python-2
14994 (modify-phases %standard-phases
14996 (add-after 'install 'check
14997 (lambda* (#:key inputs outputs #:allow-other-keys)
14998 (add-installed-pythonpath inputs outputs)
14999 (invoke "python" "test/testordereddict.py"))))))
15000 (home-page "https://bitbucket.org/ruamel/ordereddict")
15001 (synopsis "Version of dict that keeps keys in insertion order")
15003 "This is an implementation of an ordered dictionary with @dfn{Key
15004 Insertion Order} (KIO: updates of values do not affect the position of the
15005 key), @dfn{Key Value Insertion Order} (KVIO, an existing key's position is
15006 removed and put at the back). The standard library module @code{OrderedDict},
15007 implemented later, implements a subset of @code{ordereddict} functionality.
15008 Sorted dictionaries are also provided. Currently only with @dfn{Key Sorted
15009 Order} (KSO, no sorting function can be specified, but a transform can be
15010 specified to apply on the key before comparison (e.g. @code{string.lower})).")
15011 (license license:expat)))
15013 (define-public python-pypeg2
15015 (name "python-pypeg2")
15020 (uri (pypi-uri "pyPEG2" version))
15023 "0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b"))))
15024 (build-system python-build-system)
15025 (propagated-inputs `(("python-lxml" ,python-lxml)))
15027 ;;https://bitbucket.org/fdik/pypeg/issues/36/test-failures-on-py35
15029 (home-page "https://fdik.org/pyPEG/")
15030 (synopsis "Parsering Expression Grammars in Python")
15031 (description "PyPEG is an intrinsic parser interpreter framework for
15032 Python. It is based on Parsing Expression Grammars, PEG. With pyPEG you can
15033 parse many formal languages.")
15034 (license license:gpl2)))
15036 (define-public python-incremental
15038 (name "python-incremental")
15043 (uri (pypi-uri "incremental" version))
15046 "1cylxdz1cnkm5g3pklna3h2n0i0rks95ir1pnpxfnvpkmab1cxbv"))))
15047 (build-system python-build-system)
15048 (home-page "https://github.com/hawkowl/incremental")
15049 (synopsis "Library for versioning Python projects")
15050 (description "Incremental is a small library that versions your Python
15052 (license license:expat)))
15054 (define-public python2-incremental
15055 (package-with-python2 python-incremental))
15057 (define-public python-invoke
15059 (name "python-invoke")
15060 (home-page "https://www.pyinvoke.org/")
15064 (uri (pypi-uri "invoke" version))
15067 "0pg1lpl4583z83i12262v72y1a4cxdcxi7vqhl8dpqv9wszj6gyy"))))
15068 (build-system python-build-system)
15070 ;; XXX: Requires many dependencies that are not yet in Guix.
15072 (synopsis "Pythonic task execution")
15074 "Invoke is a Python task execution tool and library, drawing inspiration
15075 from various sources to arrive at a powerful and clean feature set. It is
15076 evolved from the Fabric project, but focuses on local and abstract concerns
15077 instead of servers and network commands.")
15078 (license license:bsd-3)))
15080 (define-public python2-invoke
15081 (package-with-python2 python-invoke))
15083 (define-public python-automat
15085 (name "python-automat")
15089 (uri (pypi-uri "Automat" version))
15092 "0cyzrcqiibwdsp4y0djkllnzab8m5faa4s0d1kpi23k1fhy80ybr"))))
15093 (build-system python-build-system)
15094 ;; We disable the tests because they require python-twisted, while
15095 ;; python-twisted depends on python-automat. Twisted is optional, but the
15096 ;; tests fail if it is not available. Also see
15097 ;; <https://github.com/glyph/automat/issues/71>.
15098 (arguments '(#:tests? #f))
15100 `(("python-m2r" ,python-m2r)
15101 ("python-setuptools-scm" ,python-setuptools-scm)
15102 ("python-graphviz" ,python-graphviz)))
15104 `(("python-six" ,python-six)
15105 ("python-attrs" ,python-attrs)))
15106 (home-page "https://github.com/glyph/Automat")
15107 (synopsis "Self-service finite-state machines")
15108 (description "Automat is a library for concise, idiomatic Python
15109 expression of finite-state automata (particularly deterministic finite-state
15111 (license license:expat)))
15113 (define-public python2-automat
15114 (package-with-python2 python-automat))
15116 (define-public python-m2r
15118 (name "python-m2r")
15122 (uri (pypi-uri "m2r" version))
15125 "16gdm8i06jjmlpvckpfmlkr4693dh0vs192vgsqn84fsdkbbm45z"))))
15126 (build-system python-build-system)
15128 `(("python-docutils" ,python-docutils)
15129 ("python-mistune" ,python-mistune)))
15131 `(("python-pygments" ,python-pygments)
15132 ("python-mock" ,python-mock)))
15133 (home-page "https://github.com/miyakogi/m2r")
15134 (synopsis "Markdown to reStructuredText converter")
15135 (description "M2R converts a markdown file including reST markups to valid
15137 (license license:expat)))
15139 (define-public python2-m2r
15140 (package-with-python2 python-m2r))
15142 (define-public python-constantly
15144 (name "python-constantly")
15148 (uri (pypi-uri "constantly" version))
15151 "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq"))))
15152 (build-system python-build-system)
15153 (home-page "https://github.com/twisted/constantly")
15154 (synopsis "Symbolic constants in Python")
15155 (description "Constantly is a Python library that provides symbolic
15156 constant support. It includes collections and constants with text, numeric,
15157 and bit flag values.")
15158 (license license:expat)))
15160 (define-public python2-constantly
15161 (package-with-python2 python-constantly))
15163 (define-public python-attrs
15165 (name "python-attrs")
15169 (uri (pypi-uri "attrs" version))
15172 "0wky4h28n7xnr6xv69p9z6kv8bzn50d10c3drmd9ds8gawbcxdzp"))))
15173 (build-system python-build-system)
15175 `(#:modules ((guix build utils)
15176 (guix build python-build-system)
15180 #:phases (modify-phases %standard-phases
15183 (let ((cwd (getcwd)))
15184 (setenv "PYTHONPATH"
15187 (find (cut string-prefix? "lib" <>)
15188 (scandir (string-append cwd "/build")))
15190 (getenv "PYTHONPATH")))
15191 (invoke "python" "-m" "pytest")))))))
15193 `(("python-coverage" ,python-coverage)
15194 ("python-hypothesis" ,python-hypothesis)
15195 ("python-pympler" ,python-pympler)
15196 ("python-pytest" ,python-pytest)
15197 ("python-six" ,python-six)
15198 ("python-sphinx" ,python-sphinx)
15199 ("python-zope-interface" ,python-zope-interface)))
15200 (home-page "https://github.com/python-attrs/attrs/")
15201 (synopsis "Attributes without boilerplate")
15202 (description "@code{attrs} is a Python package with class decorators that
15203 ease the chores of implementing the most common attribute-related object
15205 (license license:expat)))
15207 (define-public python2-attrs
15208 (package-with-python2 python-attrs))
15210 (define-public python-attrs-bootstrap
15212 (inherit python-attrs)
15213 (name "python-attrs-bootstrap")
15214 (native-inputs `())
15215 (arguments `(#:tests? #f))))
15217 (define-public python2-attrs-bootstrap
15218 (package-with-python2 python-attrs-bootstrap))
15220 (define-public python2-cliapp
15222 (name "python2-cliapp")
15223 (version "1.20180812.1")
15227 (uri (string-append
15228 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp/snapshot/cliapp-"
15229 version ".tar.gz"))
15232 "1c1jlblbns8qhiaqjpg4xi6lip8xwfc5w643p43rg543havaj45x"))))
15233 (build-system python-build-system)
15235 `(#:python ,python-2
15237 (modify-phases %standard-phases
15238 ;; check phase needs to be run before the build phase. If not,
15239 ;; coverage-test-runner looks for tests for the built source files,
15242 (add-before 'build 'check
15244 ;; Disable python3 tests
15245 (substitute* "check"
15246 (("python3") "# python3"))
15247 (invoke "./check"))))))
15249 `(("python2-coverage-test-runner" ,python2-coverage-test-runner)
15250 ("python2-pep8" ,python2-pep8)))
15252 `(("python2-pyaml" ,python2-pyaml)))
15253 (home-page "https://liw.fi/cliapp/")
15254 (synopsis "Python framework for command line programs")
15255 (description "@code{python2-cliapp} is a python framework for
15256 command line programs. It contains the typical stuff such programs
15257 need to do, such as parsing the command line for options, and
15258 iterating over input files.")
15259 (license license:gpl2+)))
15261 (define-public python2-ttystatus
15263 (name "python2-ttystatus")
15268 (uri (git-reference
15269 (url "http://git.liw.fi/ttystatus")
15270 ;; There are no tags after ttystatus-0.36.
15271 (commit "e9fc573326c5d1348f5fe56263b4f7a8c32f58c9")))
15273 (base32 "0v49q839nrwdm19c83wfmj6n2kw80xslwq9k0n5509r2h7wzjiqj"))
15274 (file-name (git-file-name name version))))
15275 (build-system python-build-system)
15277 `(("python2-coverage-test-runner" ,python2-coverage-test-runner)
15278 ("python2-pep8" ,python2-pep8)))
15280 `(#:python ,python-2
15282 (modify-phases %standard-phases
15283 ;; check phase needs to be run before the build phase. If not,
15284 ;; coverage-test-runner looks for tests for the built source files,
15287 (add-before 'build 'check
15288 (lambda _ (invoke "make" "check"))))))
15289 (home-page "https://liw.fi/ttystatus/")
15290 (synopsis "Python library for showing progress reporting and
15291 status updates on terminals")
15292 (description "@code{python2-ttystatus} is a python library for
15293 showing progress reporting and status updates on terminals, for
15294 command line programs. Output is automatically adapted to the width
15295 of the terminal: truncated if it does not fit, and resized if the
15296 terminal size changes.")
15297 (license license:gpl3+)))
15299 (define-public python2-tracing
15301 (name "python2-tracing")
15306 (uri (string-append
15307 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/python-tracing/snapshot/tracing-"
15308 version ".tar.gz"))
15311 "06cw4zg42fsvqy372vi2whj26w56vzg5axhzwdjc2bgwf03garbw"))))
15312 (build-system python-build-system)
15314 `(#:python ,python-2))
15315 (home-page "https://liw.fi/tracing/")
15316 (synopsis "Python debug logging helper")
15317 (description "@code{python2-tracing} is a python library for
15318 logging debug messages. It provides a way to turn debugging messages
15319 on and off, based on the filename they occur in. It is much faster
15320 than using @code{logging.Filter} to accomplish the same thing, which
15321 matters when code is run in production mode. The actual logging still
15322 happens using the @code{logging} library.")
15323 (license license:gpl3+)))
15325 (define-public python2-larch
15327 (name "python2-larch")
15328 (version "1.20151025")
15332 (uri (string-append
15333 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/larch/snapshot/larch-"
15334 version ".tar.gz"))
15335 (patches (search-patches
15336 "python2-larch-coverage-4.0a6-compatibility.patch"))
15339 "1p4knkkavlqymgciz2wbcnfrdgdbafhg14maplnk4vbw0q8xs663"))))
15340 (build-system python-build-system)
15342 `(#:python ,python-2
15344 (modify-phases %standard-phases
15345 ;; check phase needs to be run before the build phase. If not,
15346 ;; coverage-test-runner looks for tests for the built source files,
15349 (add-before 'build 'check
15350 (lambda _ (invoke "make" "check"))))))
15352 `(("cmdtest" ,cmdtest)
15353 ("python2-coverage-test-runner" ,python2-coverage-test-runner)))
15355 `(("python2-tracing" ,python2-tracing)))
15356 (home-page "https://liw.fi/larch/")
15357 (synopsis "Python copy-on-write B-tree library")
15358 (description "@code{python2-larch} is an implementation of
15359 particular kind of B-tree, based on research by Ohad Rodeh. See
15360 @url{http://liw.fi/larch/ohad-btrees-shadowing-clones.pdf} for details
15361 on the data structure.
15363 The distinctive feature of this B-tree is that a node is never
15364 (conceptually) modified. Instead, all updates are done by
15365 copy-on-write. This makes it easy to clone a tree, and modify only the
15366 clone, while other processes access the original tree.")
15367 (license license:gpl3+)))
15369 (define-public python-astroid
15371 (name "python-astroid")
15376 (uri (pypi-uri "astroid" version))
15378 (base32 "00xp5gqxidxvgg1bwd91myqzdf2fpb9cjwbdl3p7gwqvlk17hh1g"))
15379 (modules '((guix build utils)))
15382 ;; Check to see if the version pinning has been removed.
15383 (substitute* "astroid/__pkginfo__.py"
15384 (("==1\\.4\\.\\*") ">=1.4.0"))
15386 (build-system python-build-system)
15388 `(("python-lazy-object-proxy" ,python-lazy-object-proxy)
15389 ("python-six" ,python-six)
15390 ("python-wrapt" ,python-wrapt)))
15392 `(("python-dateutil" ,python-dateutil)
15393 ("python-pytest" ,python-pytest)
15394 ("python-pytest-runner" ,python-pytest-runner)))
15395 (home-page "https://github.com/PyCQA/astroid")
15396 (synopsis "Common base representation of python source code for pylint and
15398 (description "@code{python-astroid} provides a common base representation
15399 of python source code for projects such as pychecker, pyreverse, pylint, etc.
15401 It provides a compatible representation which comes from the _ast module. It
15402 rebuilds the tree generated by the builtin _ast module by recursively walking
15403 down the AST and building an extended ast. The new node classes have
15404 additional methods and attributes for different usages. They include some
15405 support for static inference and local name scopes. Furthermore, astroid
15406 builds partial trees by inspecting living objects.")
15407 (license license:lgpl2.1+)
15408 (properties `((python2-variant . ,(delay python2-astroid))))))
15410 (define-public python2-astroid
15411 (let ((base (package-with-python2
15412 (strip-python2-variant python-astroid))))
15413 (package (inherit base)
15414 ;; Version 2.x removes python2 support.
15419 (uri (pypi-uri "astroid" version))
15422 "0fir4b67sm7shcacah9n61pvq313m523jb4q80sycrh3p8nmi6zw"))))
15424 (substitute-keyword-arguments (package-arguments base)
15426 `(modify-phases ,phases
15427 (add-after 'unpack 'remove-spurious-test
15429 ;; https://github.com/PyCQA/astroid/issues/276
15430 (delete-file "astroid/tests/unittest_brain.py")
15434 (invoke"python" "-m" "unittest" "discover"
15435 "-p" "unittest*.py")))))))
15436 (native-inputs `())
15438 `(("python2-backports-functools-lru-cache"
15439 ,python2-backports-functools-lru-cache)
15440 ("python2-enum34" ,python2-enum34)
15441 ("python2-singledispatch" ,python2-singledispatch)
15442 ,@(alist-delete "python-typed-ast"
15443 (package-propagated-inputs base)))))))
15445 (define-public python-isbnlib
15447 (name "python-isbnlib")
15452 (uri (pypi-uri "isbnlib" version))
15455 "0iin0x2xqwyphyyzd0mzrq5v5xm7b6dlbb294k4dywra5qvbrgzm"))))
15456 (build-system python-build-system)
15457 (arguments '(#:tests? #f)) ; No test
15458 (home-page "https://github.com/xlcnd/isbnlib")
15459 (synopsis "Python library to work with ISBN strings")
15460 (description "@code{python-isbnlib} is a (pure) python library that provides
15461 several useful methods and functions to validate, clean, transform, hyphenate and
15462 get metadata for ISBN strings. Its origin was as the core of isbntools. This short
15463 version, is suitable to be include as a dependency in other projects.")
15464 (license license:lgpl3+)))
15466 (define-public python-isort
15468 (name "python-isort")
15473 (uri (git-reference
15474 ;; Tests pass only from the Github sources
15475 (url "https://github.com/timothycrosley/isort")
15477 (file-name (git-file-name name version))
15480 "1q0mlrpki5vjbgwxag5rghljjcfg7mvb0pbkwid80p0sqrxlm2p6"))))
15481 (build-system python-build-system)
15483 `(("python-mock" ,python-mock)
15484 ("python-pytest" ,python-pytest)))
15485 (home-page "https://github.com/timothycrosley/isort")
15486 (synopsis "Python utility/library to sort python imports")
15487 (description "@code{python-isort} is a python utility/library to sort
15488 imports alphabetically, and automatically separated into sections. It
15489 provides a command line utility, a python library and plugins for various
15491 (license license:expat)
15492 (properties `((python2-variant . ,(delay python2-isort))))))
15494 (define-public python2-isort
15495 (let ((base (package-with-python2
15496 (strip-python2-variant python-isort))))
15497 (package (inherit base)
15499 `(("python2-futures" ,python2-futures)
15500 ,@(package-native-inputs base))))))
15502 (define-public python2-backports-functools-lru-cache
15504 (name "python2-backports-functools-lru-cache")
15509 ;; only the pypi tarballs contain the necessary metadata
15510 (uri (pypi-uri "backports.functools_lru_cache" version))
15513 "0jidrkk2w6bhjm197plxiaxrav64mgcrign0bfyr7md2ilc5zplg"))))
15514 (build-system python-build-system)
15516 `(("python2-setuptools-scm" ,python2-setuptools-scm)))
15518 `(#:python ,python-2))
15519 (home-page "https://github.com/jaraco/backports.functools_lru_cache")
15520 (synopsis "Backport of functools.lru_cache from Python 3.3")
15521 (description "@code{python2-backports-functools-lru-cache} is a backport
15522 of @code{functools.lru_cache} from python 3.3.")
15523 (license license:expat)))
15525 (define-public python-configparser
15527 (name "python-configparser")
15532 (uri (pypi-uri "configparser" version))
15535 "1priacxym85yjcf68hh38w55nqswaxp71ryjyfdk222kg9l85ln7"))))
15537 `(("python-setuptools_scm" ,python-setuptools-scm)))
15538 (build-system python-build-system)
15539 (home-page "https://github.com/jaraco/configparser/")
15540 (synopsis "Backport of configparser from python 3.5")
15541 (description "@code{python-configparser} is a backport of
15542 @code{configparser} from Python 3.5 so that it can be used directly
15543 in other versions.")
15544 (license license:expat)))
15546 (define-public python2-configparser
15547 (package-with-python2 python-configparser))
15549 (define-public python-iniconfig
15551 (name "python-iniconfig")
15556 (uri (pypi-uri "iniconfig" version))
15559 "0ckzngs3scaa1mcfmsi1w40a1l8cxxnncscrxzjjwjyisx8z0fmw"))))
15560 (build-system python-build-system)
15561 (home-page "https://github.com/RonnyPfannschmidt/iniconfig")
15562 (synopsis "Simple INI-file parser")
15563 (description "The @code{iniconfig} package provides a small and simple
15564 INI-file parser module having a unique set of features; @code{iniconfig}
15566 @item maintains the order of sections and entries;
15567 @item supports multi-line values with or without line-continuations;
15568 @item supports \"#\" comments everywhere;
15569 @item raises errors with proper line-numbers;
15570 @item raises an error when two sections have the same name.
15572 (license license:expat)))
15574 (define-public python-mamba
15576 (name "python-mamba")
15580 (uri (pypi-uri "mamba" version))
15583 "15m4dpnpv9m60pdaygvwgi43fwqaivs3qxfxhspwrp47sbgwdkvm"))))
15584 (build-system python-build-system)
15585 (arguments `(#:tests? #f)) ; No test
15587 `(("python-clint" ,python-clint)
15588 ("python-coverage" ,python-coverage)))
15589 (home-page "https://nestorsalceda.com/mamba/")
15590 (synopsis "Test runner for Python")
15592 "Mamba is a Behaviour-Driven Development tool for Python developers.
15593 Is heavily influenced from RSpec, Mocha, Jasmine or Ginkgo.")
15594 (license license:expat)))
15596 (define-public python-mando
15598 (name "python-mando")
15602 (uri (pypi-uri "mando" version))
15605 "0q6rl085q1hw1wic52pqfndr0x3nirbxnhqj9akdm5zhq2fv3zkr"))))
15606 (build-system python-build-system)
15608 `(("python-rst2ansi" ,python-rst2ansi)
15609 ("python-six" ,python-six)))
15611 `(("python-pytest" ,python-pytest)))
15612 (home-page "https://mando.readthedocs.org/")
15614 "Wrapper around argparse, allowing creation of complete CLI applications")
15616 "This package is a wrapper around argparse, allowing you to write complete CLI
15617 applications in seconds while maintaining all the flexibility.")
15618 (license license:expat)))
15620 (define-public python2-mando
15621 (package-with-python2 python-mando))
15623 (define-public python2-argparse
15625 (name "python2-argparse")
15630 (uri (pypi-uri "argparse" version))
15633 "1r6nznp64j68ih1k537wms7h57nvppq0szmwsaf99n71bfjqkc32"))))
15634 (build-system python-build-system)
15636 `(#:python ,python-2))
15637 (home-page "https://github.com/ThomasWaldmann/argparse/")
15638 (synopsis "Python command-line parsing library")
15640 "This package is mostly for people who want to have @code{argparse} on
15641 older Pythons because it was not part of the standard library back then.")
15642 (license license:psfl)))
15644 (define-public python-fudge
15646 (name "python-fudge")
15647 ;; 0.9.6 is the latest version suitable for testing the "fabric" Python 2
15648 ;; package, which is currently the only use of this package.
15653 (uri (pypi-uri "fudge" version))
15656 "185ia3vr3qk4f2s1a9hdxb8ci4qc0x0xidrad96pywg8j930qs9l"))))
15657 (build-system python-build-system)
15659 `(#:tests? #f)) ;XXX: Tests require the NoseJS Python package.
15660 (home-page "https://github.com/fudge-py/fudge")
15661 (synopsis "Replace real objects with fakes/mocks/stubs while testing")
15663 "Fudge is a Python module for using fake objects (mocks and stubs) to
15666 In readable Python code, you declare the methods available on your fake object
15667 and how they should be called. Then you inject that into your application and
15668 start testing. This declarative approach means you don’t have to record and
15669 playback actions and you don’t have to inspect your fakes after running code.
15670 If the fake object was used incorrectly then you’ll see an informative
15671 exception message with a traceback that points to the culprit.")
15672 (license license:expat)))
15674 (define-public python2-fudge
15675 (package-with-python2 python-fudge))
15677 (define-public python-mwclient
15679 (name "python-mwclient")
15684 ;; The PyPI version wouldn't contain tests.
15685 (uri (git-reference
15686 (url "https://github.com/mwclient/mwclient")
15687 (commit (string-append "v" version))))
15688 (file-name (git-file-name name version))
15690 (base32 "120snnsh9n5svfwkyj1w9jrxf99jnqm0jk282yypd3lpyca1l9hj"))))
15691 (build-system python-build-system)
15693 `(("python-requests-oauthlib" ,python-requests-oauthlib)
15694 ("python-six" ,python-six)))
15696 `(("python-mock" ,python-mock)
15697 ("python-pytest" ,python-pytest)
15698 ("python-pytest-cov" ,python-pytest-cov)
15699 ("python-pytest-runner" ,python-pytest-runner)
15700 ("python-responses" ,python-responses)))
15701 (home-page "https://github.com/btongminh/mwclient")
15702 (synopsis "MediaWiki API client")
15703 (description "This package provides a MediaWiki API client.")
15704 (license license:expat)))
15706 (define-public python2-mwclient
15707 (package-with-python2 python-mwclient))
15709 (define-public python-utils
15711 (name "python-utils")
15715 (uri (pypi-uri "python-utils" version))
15718 "12c0glzkm81ljgf6pwh0d4rmdm1r7vvgg3ifzp8yp9cfyngw07zj"))))
15719 (build-system python-build-system)
15722 (modify-phases %standard-phases
15724 (lambda* (#:key inputs outputs #:allow-other-keys)
15725 (add-installed-pythonpath inputs outputs)
15726 (delete-file "pytest.ini")
15727 (invoke "pytest" "-vv"))))))
15729 `(("pytest-runner" ,python-pytest-runner)
15730 ("pytest" ,python-pytest)
15731 ("six" ,python-six)))
15732 (home-page "https://github.com/WoLpH/python-utils")
15733 (synopsis "Convenient utilities not included with the standard Python install")
15735 "Python Utils is a collection of small Python functions and classes which
15736 make common patterns shorter and easier.")
15737 (license license:bsd-2)))
15739 (define-public python2-utils
15740 (package-with-python2 python-utils))
15742 (define-public python-diff-match-patch
15744 (name "python-diff-match-patch")
15745 (version "20121119")
15749 (uri (pypi-uri "diff-match-patch" version))
15752 "0k1f3v8nbidcmmrk65m7h8v41jqi37653za9fcs96y7jzc8mdflx"))))
15753 (build-system python-build-system)
15754 (home-page "https://code.google.com/p/google-diff-match-patch")
15755 (synopsis "Synchronize plain text")
15756 (description "Diff Match and Patch libraries offer robust algorithms to
15757 perform the operations required for synchronizing plain text.")
15758 (license license:asl2.0)))
15760 (define-public python2-diff-match-patch
15761 (package-with-python2 python-diff-match-patch))
15763 (define-public python-dirsync
15765 (name "python-dirsync")
15770 (uri (pypi-uri "dirsync" version))
15773 "1gm82jddm1lkazdi8lfsl1b3vi1z0252ng60mzjym8irnv94qfhy"))))
15774 (build-system python-build-system)
15776 `(("six" ,python-six)))
15777 (home-page "https://github.com/tkhyn/dirsync")
15778 (synopsis "Advanced directory tree synchronisation tool")
15779 (description "Advanced directory tree synchronisation tool.")
15780 (license license:expat)))
15782 (define-public python2-dirsync
15783 (package-with-python2 python-dirsync))
15785 (define-public python-levenshtein
15787 (name "python-levenshtein")
15792 (uri (pypi-uri "python-Levenshtein" version))
15795 "1c9ybqcja31nghfcc8xxbbz9h60s9qi12b9hr4jyl69xbvg12fh3"))))
15796 (build-system python-build-system)
15797 (home-page "https://github.com/ztane/python-Levenshtein")
15798 (synopsis "Fast computation of Levenshtein distance and string similarity")
15800 "The Levenshtein Python C extension module contains functions for fast computation of
15802 @item Levenshtein (edit) distance, and edit operations
15803 @item string similarity
15804 @item approximate median strings, and generally string averaging
15805 @item string sequence and set similarity
15807 It supports both normal and Unicode strings.")
15808 (license license:gpl2+)))
15810 (define-public python2-levenshtein
15811 (package-with-python2 python-levenshtein))
15813 (define-public python-scandir
15815 (name "python-scandir")
15820 (uri (pypi-uri "scandir" version))
15822 (base32 "1bkqwmf056pkchf05ywbnf659wqlp6lljcdb0y88wr9f0vv32ijd"))))
15823 (build-system python-build-system)
15825 `(#:phases (modify-phases %standard-phases
15828 (invoke "python" "test/run_tests.py"))))))
15829 (home-page "https://github.com/benhoyt/scandir")
15830 (synopsis "Directory iteration function")
15832 "Directory iteration function like os.listdir(), except that instead of
15833 returning a list of bare filenames, it yields DirEntry objects that include
15834 file type and stat information along with the name. Using scandir() increases
15835 the speed of os.walk() by 2-20 times (depending on the platform and file
15836 system) by avoiding unnecessary calls to os.stat() in most cases.
15838 This package is part of the Python standard library since version 3.5.")
15839 (license license:bsd-3)))
15841 (define-public python2-scandir
15842 (package-with-python2 python-scandir))
15844 (define-public python2-stemming
15846 (name "python2-stemming")
15851 (uri (pypi-uri "stemming" version))
15853 (base32 "0ldwa24gnnxhniv0fhygkpc2mwgd93q10ag8rvzayv6hw418frsr"))))
15854 (build-system python-build-system)
15856 `(#:python ,python-2))
15857 (home-page "https://bitbucket.org/mchaput/stemming/overview")
15858 (synopsis "Python implementations of various stemming algorithms")
15860 "Python implementations of the Porter, Porter2, Paice-Husk, and Lovins
15861 stemming algorithms for English. These implementations are straightforward and
15862 efficient, unlike some Python versions of the same algorithms available on the
15863 Web. This package is an extraction of the stemming code included in the Whoosh
15865 (license license:public-domain)))
15867 (define-public python-factory-boy
15869 (name "python-factory-boy")
15874 (uri (pypi-uri "factory_boy" version))
15876 (base32 "1fvin6san5xsjh2c4y18caj2lnmwxlylyqm8mh1yc6rp38wlwr56"))))
15877 (build-system python-build-system)
15879 ;; Tests are not included in the tarball.
15882 `(("faker" ,python-faker)))
15883 (home-page "https://github.com/benhoyt/scandir")
15884 (synopsis "Versatile test fixtures replacement")
15886 "Factory_boy is a fixtures replacement based on thoughtbot’s factory_girl.
15888 As a fixtures replacement tool, it aims to replace static, hard to maintain
15889 fixtures with easy-to-use factories for complex object.
15891 Instead of building an exhaustive test setup with every possible combination
15892 of corner cases, factory_boy allows you to use objects customized for the
15893 current test, while only declaring the test-specific fields")
15894 (license license:expat)))
15896 (define-public python2-factory-boy
15897 (package-with-python2 python-factory-boy))
15899 (define-public python-translate-toolkit
15901 (name "python-translate-toolkit")
15906 (uri (pypi-uri "translate-toolkit" version ".tar.bz2"))
15908 (base32 "1vlkwrg83vb17jc36pmwh2b7jphwf390lz0jw8hakcg16qhwypvq"))))
15909 (build-system python-build-system)
15911 `(("python-pytest" ,python-pytest)
15912 ("python-sphinx" ,python-sphinx)))
15914 `(("python-babel" ,python-babel)
15915 ("python-beautifulsoup4" ,python-beautifulsoup4)
15916 ("python-chardet" ,python-chardet)
15917 ("python-diff-match-patch" ,python-diff-match-patch)
15918 ("python-levenshtein" ,python-levenshtein)
15919 ("python-lxml" ,python-lxml)
15920 ("python-six" ,python-six)
15921 ("python-vobject" ,python-vobject)
15922 ("python-pyyaml" ,python-pyyaml)))
15924 ;; TODO: tests are not run, because they end with
15925 ;; TypeError: parse() missing 2 required positional arguments: 'tree' and
15927 ;; during test setup.
15929 (home-page "https://toolkit.translatehouse.org")
15930 (synopsis "Tools and API for translation and localization engineering")
15932 "Tools and API for translation and localization engineering. It contains
15933 several utilities, as well as an API for building localization tools.")
15934 (license license:gpl2+)))
15936 (define-public python2-translate-toolkit
15937 (package-with-python2 python-translate-toolkit))
15939 (define-public python-packaging
15941 (name "python-packaging")
15946 (uri (pypi-uri "packaging" version))
15947 ;; XXX: The URL in the patch file is wrong, it should be
15948 ;; <https://github.com/pypa/packaging/pull/256>.
15949 (patches (search-patches "python-packaging-test-arch.patch"))
15952 "1y2ip3a4ykkpgnwgn85j6hkspcl0cg3mzms97f40mk57vwqq67gy"))))
15953 (build-system python-build-system)
15955 `(#:phases (modify-phases %standard-phases
15957 (lambda* (#:key tests? #:allow-other-keys)
15959 (invoke "py.test" "-vv")
15960 (format #t "test suite not run~%"))
15963 `(("python-pretend" ,python-pretend)
15964 ("python-pytest" ,python-pytest)))
15966 `(("python-pyparsing" ,python-pyparsing)
15967 ("python-six" ,python-six)))
15968 (home-page "https://github.com/pypa/packaging")
15969 (synopsis "Core utilities for Python packages")
15970 (description "Packaging is a Python module for dealing with Python packages.
15971 It offers an interface for working with package versions, names, and dependency
15973 ;; From 'LICENSE': This software is made available under the terms of
15974 ;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD.
15975 ;; Contributions to this software is made under the terms of *both* these
15977 (license (list license:asl2.0 license:bsd-2))))
15979 (define-public python2-packaging
15980 (package-with-python2 python-packaging))
15982 ;; Variants with minimal dependencies, for bootstrapping Pytest.
15983 (define-public python-packaging-bootstrap
15987 (name "python-packaging-bootstrap")
15988 (native-inputs '())
15990 `(("python-pyparsing" ,python-pyparsing)))
15991 (arguments '(#:tests? #f)))))
15993 (define-public python2-packaging-bootstrap
15997 (name "python2-packaging-bootstrap")
15998 (native-inputs '())
16000 `(("python-pyparsing" ,python2-pyparsing)))
16003 ,@(package-arguments python2-packaging))))))
16005 (define-public python-relatorio
16007 (name "python-relatorio")
16012 (uri (pypi-uri "relatorio" version))
16015 "1na6hlhz1awi1hbjg1gyclq0khz42iz90wvdjw7mmj655788bpxx"))))
16016 (build-system python-build-system)
16018 `(("python-lxml" ,python-lxml)
16019 ("python-genshi" ,python-genshi)))
16021 `(("python-magic" ,python-magic)))
16022 (home-page "https://relatorio.tryton.org/")
16023 (synopsis "Templating library able to output ODT and PDF files")
16024 (description "Relatorio is a templating library which provides a way to
16025 easily output ODT, ODS, PNG, SVG and several other kinds of files. Support
16026 for more filetypes can be easily added by creating plugins for them.")
16027 (license license:gpl3+)))
16029 (define-public python2-relatorio
16030 (package-with-python2 python-relatorio))
16032 (define-public python-radon
16034 (name "python-radon")
16039 (uri (pypi-uri "radon" version))
16042 "0vfxxzbnz5lxfvp0yxp35g6c8qqnnbhi4dm7shkm1d3d4192q22n"))))
16043 (build-system python-build-system)
16045 `(#:phases (modify-phases %standard-phases
16048 (invoke "python" "radon/tests/run.py"))))))
16050 `(("python-colorama" ,python-colorama)
16051 ("python-flake8-polyfill" ,python-flake8-polyfill)
16052 ("python-mando" ,python-mando)))
16054 `(("python-pytest" ,python-pytest)
16055 ("python-pytest-mock" ,python-pytest-mock)))
16056 (home-page "https://radon.readthedocs.org/")
16057 (synopsis "Code Metrics in Python")
16058 (description "Radon is a Python tool which computes various code metrics.
16059 Supported metrics are:
16061 @item raw metrics: SLOC, comment lines, blank lines, &c.
16062 @item Cyclomatic Complexity (i.e. McCabe’s Complexity)
16063 @item Halstead metrics (all of them)
16064 @item the Maintainability Index (a Visual Studio metric)
16066 (properties `((python2-variant . ,(delay python2-radon))))
16067 (license license:expat)))
16069 (define-public python2-radon
16070 (let ((base (package-with-python2 (strip-python2-variant python-radon))))
16074 `(("python-configparser" ,python2-configparser)
16075 ("python-future" ,python2-future)
16076 ,@(package-propagated-inputs base))))))
16078 (define-public python-sure
16080 (name "python-sure")
16085 (uri (pypi-uri "sure" version))
16088 "1and0drq8w9iplsic22n2h7hkpyq03a1mbqk4sgcdqhqzdqm539w"))))
16089 (build-system python-build-system)
16091 `(("python-mock" ,python-mock)
16092 ("python-six" ,python-six)))
16094 `(("python-nose" ,python-nose)))
16095 (home-page "https://github.com/gabrielfalcao/sure")
16096 (synopsis "Automated testing library in python for python")
16098 "Sure is a python library that leverages a DSL for writing assertions.
16099 Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
16100 (license license:gpl3+)))
16102 (define-public python2-sure
16103 (package-with-python2 python-sure))
16105 (define-public python2-couleur
16106 ;; This package does not seem to support python3 at all, hence,
16107 ;; only the python2 variant definition is provided.
16109 (name "python2-couleur")
16114 (uri (pypi-uri "couleur" version))
16117 "1qqaxyqz74wvid0cr119dhcwz0h0if5b5by44zl49pd5z65v58k1"))))
16118 (build-system python-build-system)
16120 `(#:python ,python-2))
16121 (home-page "https://github.com/gabrielfalcao/couleur")
16123 "ANSI terminal tool for python, colored shell and other handy fancy features")
16125 "@code{Couleur} provides python programs a way to use the ANSI features in a unix
16126 terminal such as coloured output in the shell, overwriting output, indentation, etc.")
16127 ;; README.md says ASL2.0, but all source code headers are LGPL3+.
16128 ;; https://github.com/gabrielfalcao/couleur/issues/11
16129 (license license:lgpl3+)))
16131 (define-public python-misaka
16133 (name "python-misaka")
16138 (uri (pypi-uri "misaka" version))
16141 "1mzc29wwyhyardclj1vg2xsfdibg2lzb7f1azjcxi580ama55wv2"))))
16142 (build-system python-build-system)
16144 `(;; Line 37 of setup.py calls self.run_command('develop')
16145 ;; in the 'check' phase. This command seems to be trying
16147 ;; /gnu/store/...-python-<version>/lib/python<version>/site-packages/
16148 ;; for which it does not have the permission to write.
16151 `(("python-cffi" ,python-cffi)))
16152 (home-page "https://github.com/FSX/misaka")
16153 (synopsis "Python binding for Hoedown")
16155 "@code{Misaka} is a CFFI-based binding for @code{Hoedown}, a fast markdown processing
16156 library written in C. It features a fast HTML renderer and functionality to make custom
16157 renderers (e.g. man pages or LaTeX).")
16158 (license license:expat)))
16160 (define-public python2-misaka
16161 (package-with-python2 python-misaka))
16163 (define-public python2-steadymark
16164 ;; This is forced into being a python2 only variant
16165 ;; due to its dependence on couleur that has no support
16168 (name "python2-steadymark")
16173 (uri (pypi-uri "steadymark" version))
16176 "1640i9g8dycql3cc8j0bky0jkzj0q39blfbp4lsgpkprkfgcdk8v"))))
16177 (build-system python-build-system)
16179 `(("python-couleur" ,python2-couleur)
16180 ("python-sure" ,python2-sure)
16181 ("python-misaka" ,python2-misaka)))
16183 `(#:python ,python-2
16185 (modify-phases %standard-phases
16186 (add-before 'build 'patch-setup-py
16188 ;; Update requirements from dependency==version
16189 ;; to dependency>=version
16190 (substitute* "setup.py"
16193 (home-page "https://github.com/gabrielfalcao/steadymark")
16194 (synopsis "Markdown-based test runner for python")
16196 "@code{Steadymark} allows documentation to be written in github-flavoured
16197 markdown. The documentation may contain snippets of code surrounded by python
16198 code blocks and @code{Steadymark} will find these snippets and run them, making
16199 sure that there are no old malfunctional examples in the documentation examples.")
16200 (license license:expat)))
16202 (define-public python-jsonpointer
16204 (name "python-jsonpointer")
16209 (uri (pypi-uri "jsonpointer" version))
16212 "1cg0gvgqjysydv6p45v4jywg1jb3v48c7m3cbpi57zgf6nndr9cz"))))
16213 (build-system python-build-system)
16214 (home-page "https://github.com/stefankoegl/python-json-pointer")
16215 (synopsis "Identify specific nodes in a JSON document")
16216 (description "@code{jsonpointer} allows you to access specific nodes
16217 by path in a JSON document (see RFC 6901).")
16218 (license license:bsd-3)))
16220 (define-public python2-jsonpointer
16221 (package-with-python2 python-jsonpointer))
16223 (define-public python-jsonpatch
16225 (name "python-jsonpatch")
16230 ;; pypi version lacks tests.js
16231 (uri (git-reference
16232 (url "https://github.com/stefankoegl/python-json-patch")
16233 (commit (string-append "v" version))))
16234 (file-name (git-file-name name version))
16237 "0k9pff06lxama3nhsc7cdxbp83422bdy8ifs52i6xkas8hpyzfzr"))))
16238 (build-system python-build-system)
16240 `(("python-jsonpointer" ,python-jsonpointer)))
16241 (home-page "https://github.com/stefankoegl/python-json-patch")
16242 (synopsis "Applying JSON Patches in Python 2.6+ and 3.x")
16243 (description "@code{jsonpatch} is a library and program that allows
16244 applying JSON Patches according to RFC 6902.")
16245 (license license:bsd-3)))
16247 (define-public python2-jsonpatch
16248 (package-with-python2 python-jsonpatch))
16250 (define-public python-jsonpatch-0.4
16251 (package (inherit python-jsonpatch)
16252 (name "python-jsonpatch")
16257 (uri (git-reference
16258 (url "https://github.com/stefankoegl/python-json-patch")
16259 (commit (string-append "v" version))))
16260 (file-name (git-file-name name version))
16263 "1fq02y57kinyknxjcav0slcb0k9mwdffqw2hnlhdkpj7palh2mwk"))))))
16265 (define-public python2-jsonpatch-0.4
16266 (package-with-python2 python-jsonpatch-0.4))
16268 (define-public python-rfc3986
16270 (name "python-rfc3986")
16274 (uri (pypi-uri "rfc3986" version))
16277 "17dvx15m3r49bmif5zlli8kzjd6bys6psixzbp14sd5367d9h8qi"))))
16278 (build-system python-build-system)
16280 `(#:modules ((guix build utils)
16281 (guix build python-build-system)
16286 (modify-phases %standard-phases
16289 (let ((cwd (getcwd)))
16290 (setenv "PYTHONPATH"
16291 (string-append cwd "/build/"
16292 (find (cut string-prefix? "lib" <>)
16293 (scandir (string-append cwd "/build")))
16295 (getenv "PYTHONPATH")))
16296 (invoke "pytest" "-v")))))))
16298 `(("python-pytest" ,python-pytest)))
16299 (home-page "https://rfc3986.readthedocs.io/")
16300 (synopsis "Parse and validate URI references")
16302 "@code{rfc3986} is a Python implementation of RFC@tie{}3986 including
16303 validation and authority parsing. This module also supports RFC@tie{}6874
16304 which adds support for zone identifiers to IPv6 addresses.")
16305 (license license:asl2.0)))
16307 (define-public python2-rfc3986
16308 (package-with-python2 python-rfc3986))
16310 (define-public python-rfc3987
16312 (name "python-rfc3987")
16317 (uri (pypi-uri "rfc3987" version))
16320 "192pclzs2y0yaywqkrlvd0x73740q310kvqvm6jldhi619mq59wi"))))
16321 (build-system python-build-system)
16322 (home-page "https://pypi.org/project/rfc3987/")
16323 (synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)")
16324 (description "@code{rfc3987} provides routines for parsing and
16325 validation of URIs (see RFC 3986) and IRIs (see RFC 3987).")
16326 (license license:gpl3+)))
16328 (define-public python2-rfc3987
16329 (package-with-python2 python-rfc3987))
16331 ;; The latest commit contains fixes for building with both python3 and python2.
16332 (define-public python-rfc6555
16333 (let ((commit "1a181b432312731f6742a5eb558dae4761d32361")
16336 (name "python-rfc6555")
16337 (version (git-version "0.0.0" revision commit))
16340 (uri (git-reference
16341 (url "https://github.com/sethmlarson/rfc6555")
16343 (file-name (git-file-name name version))
16346 "1bxl17j9vs69cshcqnlwamr03hnykxqnwz3mdgi6x3s2k4q18npp"))))
16347 (build-system python-build-system)
16350 (modify-phases %standard-phases
16352 (lambda* (#:key tests? #:allow-other-keys)
16354 ;; Other tests require network access.
16355 (invoke "pytest" "tests/test_ipv6.py")
16358 `(("python-pytest" ,python-pytest)))
16359 (home-page "https://pypi.org/project/rfc6555/")
16360 (synopsis "Python implementation of RFC 6555")
16362 "Python implementation of the Happy Eyeballs Algorithm described in RFC
16363 6555. Provided with a single file and dead-simple API to allow easy vendoring
16364 and integration into other projects.")
16365 (properties `((python2-variant . ,(delay python2-rfc6555))))
16366 (license license:asl2.0))))
16368 (define-public python2-rfc6555
16369 (let ((base (package-with-python2
16370 (strip-python2-variant python-rfc6555))))
16374 `(("python2-selectors2" ,python2-selectors2))))))
16376 (define-public python-bagit
16378 (name "python-bagit")
16383 (uri (pypi-uri "bagit" version))
16386 "1m6y04qmig0b5hzb35lnaw3d2yfydb7alyr1579yblvgs3da6j7j"))))
16387 (build-system python-build-system)
16389 `(("python-setuptools-scm" ,python-setuptools-scm)
16390 ("python-coverage" ,python-coverage)
16391 ("python-mock" ,python-mock)))
16392 (home-page "https://libraryofcongress.github.io/bagit-python/")
16393 (synopsis "Create and validate BagIt packages")
16394 (description "Bagit is a Python library and command line utility for working
16395 with BagIt style packages. BagIt is a minimalist packaging format for digital
16397 (license license:cc0)))
16399 (define-public python-prov
16401 (name "python-prov")
16406 (uri (pypi-uri "prov" version))
16409 "1vi2fj31vygfcqrkimdmk52q2ldw08g9fn4v4zlgdfgcjlhqyhxn"))))
16410 (build-system python-build-system)
16412 `(("python-dateutil" ,python-dateutil)
16413 ("python-lxml" ,python-lxml)
16414 ("python-networkx" ,python-networkx)
16415 ("python-rdflib" ,python-rdflib)))
16417 `(("graphviz" ,graphviz)
16418 ("python-pydot" ,python-pydot)))
16419 (home-page "https://github.com/trungdong/prov")
16421 "W3C Provenance Data Model supporting PROV-JSON, PROV-XML and PROV-O (RDF)")
16423 "This package provides a library for W3C Provenance Data Model supporting
16424 PROV-O (RDF), PROV-XML, PROV-JSON import/export.")
16425 (license license:expat)))
16427 (define-public python-arcp
16429 (name "python-arcp")
16434 (uri (pypi-uri "arcp" version))
16437 "1p8mfyjssa6pbn5dp6pyzv9yy6kwm2rz5jn2kjbq5vy9f9wsq5sw"))))
16438 (build-system python-build-system)
16440 `(("python-pytest" ,python-pytest)))
16441 (home-page "http://arcp.readthedocs.io/")
16443 "Archive and Package URI parser and generator")
16445 "@acronym{arcp, Archive and Package} provides functions for creating
16446 @code{arcp_} URIs, which can be used for identifying or parsing hypermedia files
16447 packaged in an archive or package, like a ZIP file. arcp URIs can be used to
16448 consume or reference hypermedia resources bundled inside a file archive or an
16449 application package, as well as to resolve URIs for archive resources within a
16450 programmatic framework. This URI scheme provides mechanisms to generate a
16451 unique base URI to represent the root of the archive, so that relative URI
16452 references in a bundled resource can be resolved within the archive without
16453 having to extract the archive content on the local file system. An arcp URI can
16454 be used for purposes of isolation (e.g. when consuming multiple archives),
16455 security constraints (avoiding \"climb out\" from the archive), or for
16456 externally identiyfing sub-resources referenced by hypermedia formats.")
16457 (license license:asl2.0)))
16459 (define-public python-shellescape
16461 (name "python-shellescape")
16466 (uri (git-reference
16467 (url "https://github.com/chrissimpkins/shellescape")
16468 (commit (string-append "v" version))))
16469 (file-name (git-file-name name version))
16472 "0wzccxk139qx1lb2g70f5b2yh9zq15nr2mgvqdbfabg5zm0vf1qw"))))
16473 (build-system python-build-system)
16476 (modify-phases %standard-phases
16478 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
16480 (add-installed-pythonpath inputs outputs)
16481 (invoke "python" "tests/test_shellescape.py"))
16484 `(("python-pytest" ,python-pytest)))
16485 (home-page "https://github.com/chrissimpkins/shellescape")
16487 "Shell escape a string to safely use it as a token in a shell command")
16489 "The shellescape Python module defines the @code{shellescape.quote()}
16490 function that returns a shell-escaped version of a Python string. This is a
16491 backport of the @code{shlex.quote()} function from Python 3.8 that makes it
16492 accessible to users of Python 3 versions < 3.3 and all Python 2.x versions.")
16493 (license license:expat)))
16495 (define-public python-validators
16497 (name "python-validators")
16501 (uri (pypi-uri "validators" version))
16504 "024m15j33szd0v8k5l4ccish6n0b4knq81gmb4fq25ynwyyyd4mi"))))
16505 (build-system python-build-system)
16507 '(#:phases (modify-phases %standard-phases
16510 (invoke "pytest" "-vv"))))))
16512 `(("python-decorator" ,python-decorator)
16513 ("python-six" ,python-six)))
16515 `(("python-flake8" ,python-flake8)
16516 ("python-isort" ,python-isort)
16517 ("python-pytest" ,python-pytest)))
16518 (home-page "https://github.com/kvesteri/validators")
16519 (synopsis "Data validation library")
16521 "This package contains validators for different things such as email
16522 addresses, IP addresses, URLs, hashes and more. It has been designed to
16523 be easy to use and not require defining a schema or form just to validate
16525 (license license:expat)))
16527 (define-public python2-validators
16528 (package-with-python2 python-validators))
16530 (define-public python-validate-email
16532 (name "python-validate-email")
16537 (uri (pypi-uri "validate_email" version))
16540 "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"))))
16541 (build-system python-build-system)
16542 (home-page "https://github.com/syrusakbary/validate_email")
16543 (synopsis "Verifies if an email address is valid and really exists")
16544 (description "@code{validate_email} can be used to verify if an email
16545 address is valid and really exists.")
16546 (license license:lgpl3+)))
16548 (define-public python2-validate-email
16549 (package-with-python2 python-validate-email))
16551 (define-public python-flex
16553 (name "python-flex")
16558 (uri (pypi-uri "flex" version))
16561 "00pamnwla3khk8nyla7y28dq9jnh69swd7f4jfsl7sn1izs8n8zk"))))
16562 (build-system python-build-system)
16564 `(("python-click" ,python-click)
16565 ("python-iso8601" ,python-iso8601)
16566 ("python-jsonpointer" ,python-jsonpointer)
16567 ("python-pyyaml" ,python-pyyaml)
16568 ("python-requests" ,python-requests)
16569 ("python-rfc3987" ,python-rfc3987)
16570 ("python-six" ,python-six)
16571 ("python-validate-email" ,python-validate-email)))
16572 (home-page "https://github.com/pipermerriam/flex")
16573 (synopsis "Validates Swagger schemata")
16574 (description "@code{flex} can be used to validate Swagger schemata.")
16575 (license license:bsd-3)))
16577 (define-public python2-flex
16578 (package-with-python2 python-flex))
16580 (define-public python-marshmallow
16582 (name "python-marshmallow")
16587 (uri (pypi-uri "marshmallow" version))
16590 "0kizhh3mnhpa08wfnsv1gagy22bpxzxszgbiylkhpz1d8qvwrykk"))))
16591 (build-system python-build-system)
16593 `(("python-dateutil" ,python-dateutil)
16594 ("python-simplejson" ,python-simplejson)))
16596 `(("python-pytest" ,python-pytest)
16597 ("python-pytz" ,python-pytz)))
16598 (home-page "https://github.com/marshmallow-code/marshmallow")
16599 (synopsis "Convert complex datatypes to and from native
16600 Python datatypes.")
16601 (description "@code{marshmallow} provides a library for converting
16602 complex datatypes to and from native Python datatypes.")
16603 (license license:expat)))
16605 (define-public python-apispec
16607 (name "python-apispec")
16612 (uri (pypi-uri "apispec" version))
16615 "12n4w5zkn4drcn8izq68vmixmqvz6abviqkdn4ip0kaax3jjh3in"))))
16616 (build-system python-build-system)
16618 '(#:phases (modify-phases %standard-phases
16619 (add-after 'unpack 'disable-prance-tests
16621 ;; Disable validation tests since they require the
16622 ;; optional 'prance' library which is not yet in Guix.
16623 (substitute* "tests/test_ext_marshmallow_openapi.py"
16624 (("def test_openapi_tools_validate.*" all)
16625 (string-append "@pytest.mark.xfail\n" all)))))
16628 (setenv "PYTHONPATH"
16629 (string-append "./build/lib:"
16630 (getenv "PYTHONPATH")))
16631 (invoke "pytest" "-vv"))))))
16633 `(("python-pyyaml" ,python-pyyaml)))
16635 `(("python-pytest" ,python-pytest)
16636 ("python-marshmallow" ,python-marshmallow)))
16637 (home-page "https://github.com/marshmallow-code/apispec")
16638 (synopsis "Swagger/OpenAPI specification generator")
16639 (description "@code{python-apispec} is a pluggable API specification
16640 generator. It currently supports the OpenAPI specification, formerly known
16642 (license license:expat)))
16644 (define-public python-flasgger
16646 (name "python-flasgger")
16651 (uri (git-reference
16652 (url "https://github.com/rochacbruno/flasgger")
16654 (file-name (git-file-name name version))
16656 (base32 "0yydxsyjnc0clbrjqb1n7587l6cdqvwdagwxk5hkx01qwdfbkvpn"))))
16657 (build-system python-build-system)
16660 (modify-phases %standard-phases
16662 (lambda* (#:key inputs outputs #:allow-other-keys)
16663 (substitute* "Makefile"
16664 (("flake8 flasgger --ignore=F403")
16665 "flake8 flasgger --ignore=E731,F403"))
16666 (setenv "PYTHONPATH" (string-append (getcwd)
16668 (getenv "PYTHONPATH")))
16669 (invoke "py.test"))))))
16671 `(("python-flask" ,python-flask)
16672 ("python-pyyaml" ,python-pyyaml)
16673 ("python-jsonschema" ,python-jsonschema)
16674 ("python-mistune" ,python-mistune)
16675 ("python-six" ,python-six)))
16677 `(("python-decorator" ,python-decorator)
16678 ("python-flake8" ,python-flake8)
16679 ("python-flask-restful" ,python-flask-restful)
16680 ("python-flex" ,python-flex)
16681 ("python-pytest" ,python-pytest)
16682 ("python-pytest-cov" ,python-pytest-cov)
16683 ("python-marshmallow" ,python-marshmallow)
16684 ("python-apispec" ,python-apispec)))
16685 (home-page "https://github.com/rochacbruno/flasgger/")
16686 (synopsis "Extract Swagger specs from your Flask project")
16687 (description "@code{python-flasgger} allows extracting Swagger specs
16688 from your Flask project. It is a fork of Flask-Swagger.")
16689 (license license:expat)))
16691 (define-public python-swagger-spec-validator
16693 (name "python-swagger-spec-validator")
16698 (uri (pypi-uri "swagger-spec-validator" version))
16701 "11g627icrsqwazsncwi0sdvprcj6hwaayw5xk3xsj8d97bmrzqjp"))))
16702 (build-system python-build-system)
16704 `(("python-jsonschema" ,python-jsonschema)
16705 ("python-pyyaml" ,python-pyyaml)
16706 ("python-six" ,python-six)))
16708 "https://github.com/Yelp/swagger_spec_validator")
16709 (synopsis "Validation of Swagger specifications")
16710 (description "@code{swagger_spec_validator} provides a library for
16711 validating Swagger API specifications.")
16712 (license license:asl2.0)))
16714 (define-public python2-swagger-spec-validator
16715 (package-with-python2 python-swagger-spec-validator))
16717 (define-public python-apache-libcloud
16719 (name "python-apache-libcloud")
16724 (uri (pypi-uri "apache-libcloud" version))
16727 "1b28j265kvibgxrgxx0gwfm6cmv252c8ph1j2vb0cpms8ph5if5v"))))
16728 (build-system python-build-system)
16731 (modify-phases %standard-phases
16732 (add-after 'unpack 'patch-ssh
16733 (lambda* (#:key inputs #:allow-other-keys)
16734 (substitute* "libcloud/compute/ssh.py"
16735 (("'ssh'") (string-append "'" (assoc-ref inputs "openssh")
16738 (add-after 'unpack 'patch-tests
16740 (substitute* "libcloud/test/compute/test_ssh_client.py"
16741 (("class ShellOutSSHClientTests")
16742 "@unittest.skip(\"Guix container doesn't have ssh service\")
16743 class ShellOutSSHClientTests"))
16745 (add-before 'check 'copy-secret
16747 (copy-file "libcloud/test/secrets.py-dist"
16748 "libcloud/test/secrets.py")
16751 `(("openssh" ,openssh)))
16753 `(("python-paramiko" ,python-paramiko)
16754 ("python-requests" ,python-requests)))
16756 `(("python-lockfile" ,python-lockfile)
16757 ("python-mock" ,python-mock)
16758 ("python-pytest" ,python-pytest)
16759 ("python-pytest-runner" ,python-pytest-runner)
16760 ("python-requests-mock" ,python-requests-mock)))
16761 (home-page "https://libcloud.apache.org/")
16762 (synopsis "Unified Cloud API")
16763 (description "@code{libcloud} is a Python library for interacting with
16764 many of the popular cloud service providers using a unified API.")
16765 (license license:asl2.0)))
16767 (define-public python2-apache-libcloud
16768 (package-with-python2 python-apache-libcloud))
16770 (define-public python-smmap
16772 (name "python-smmap")
16777 (uri (pypi-uri "smmap" version))
16779 (base32 "0ijlnv60y8f41py1wnn5n1a1i81cxd9dfpdhr0k3cgkrcbz8850p"))))
16780 (build-system python-build-system)
16782 `(("python-nosexcover" ,python-nosexcover)))
16783 (home-page "https://github.com/Byron/smmap")
16784 (synopsis "Python sliding window memory map manager")
16785 (description "@code{smmap} is a pure Python implementation of a sliding
16786 window memory map manager.")
16787 (license license:bsd-3)))
16789 (define-public python-smmap2
16790 (deprecated-package "python-smmap2" python-smmap))
16792 (define-public python2-smmap
16793 (package-with-python2 python-smmap))
16795 (define-public python2-smmap2
16796 (deprecated-package "python2-smmap2" python2-smmap))
16798 (define-public python-regex
16800 (name "python-regex")
16801 (version "2020.6.8")
16804 (uri (pypi-uri "regex" version))
16807 "1b3k0zi1pd99q5mk7ri7vcx2y1mq5inm9hk8dryqyhrpkmh4xdp9"))))
16808 (build-system python-build-system)
16811 (modify-phases %standard-phases
16813 (lambda* (#:key inputs outputs #:allow-other-keys)
16814 (add-installed-pythonpath inputs outputs)
16815 (invoke "python" "-c"
16816 "from regex.test_regex import test_main; test_main()"))))))
16817 (home-page "https://bitbucket.org/mrabarnett/mrab-regex")
16818 (synopsis "Alternative regular expression module")
16819 (description "This regular expression implementation is backwards-
16820 compatible with the standard @code{re} module, but offers additional
16821 functionality like full case-folding for case-insensitive matches in Unicode.")
16822 (license license:psfl)))
16824 (define-public python2-regex
16825 (package-with-python2 python-regex))
16827 (define-public python-pyopengl
16829 (name "python-pyopengl")
16834 (uri (pypi-uri "PyOpenGL" version))
16837 "091lp9bpqi8yf1nmyg19xmvw611lrzq2q94cl1k5gnlh0c6vl1s1"))))
16838 (build-system python-build-system)
16841 ("freeglut" ,freeglut)
16844 `(#:tests? #f ; Tests fail: AttributeError: 'GLXPlatform' object has no
16845 ;attribute 'OSMesa'
16847 (modify-phases %standard-phases
16848 (add-before 'build 'fix-paths
16849 (lambda* (#:key inputs outputs #:allow-other-keys)
16850 (substitute* '("OpenGL/platform/ctypesloader.py")
16851 (("filenames_to_try = \\[\\]") "filenames_to_try = [name]"))
16852 (substitute* '("OpenGL/platform/glx.py" "tests/check_glut_load.py")
16854 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGL.so'"))
16856 (string-append "'" (assoc-ref inputs "glu") "/lib/libGLU.so'"))
16858 (string-append "'" (assoc-ref inputs "freeglut") "/lib/libglut.so',"))
16860 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv1_CM.so'"))
16862 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv2.so'")))
16863 ;; Not providing libgle. It seems to be very old.
16865 (home-page "http://pyopengl.sourceforge.net")
16866 (synopsis "Standard OpenGL bindings for Python")
16868 "PyOpenGL is the most common cross platform Python binding to OpenGL and
16869 related APIs. The binding is created using the standard @code{ctypes}
16871 (license license:bsd-3)))
16873 (define-public python-pyopengl-accelerate
16875 (inherit python-pyopengl)
16876 (name "python-pyopengl-accelerate")
16881 (uri (pypi-uri "PyOpenGL-accelerate" version))
16884 "01iggy5jwxv7lxnj51zbmlbhag9wcb7dvrbwgi97i90n0a5m3r8j"))))
16887 ("python-numpy" ,python-numpy))) ; for cython module
16888 ; numpy_formathandler, thus not propagated
16892 (modify-phases %standard-phases
16893 (delete 'fix-paths))))
16894 (synopsis "Acceleration code for PyOpenGL")
16896 "This is the Cython-coded accelerator module for PyOpenGL.")))
16898 (define-public python-rencode
16900 (name "python-rencode")
16905 (uri (pypi-uri "rencode" version))
16908 "0mzwdq1is7kyyr32i5k4iz6g5xxdvmiyc132jnc60p9m6lnwjrpv"))))
16909 (build-system python-build-system)
16912 (modify-phases %standard-phases
16913 (add-before 'check 'delete-bogus-test
16914 ;; This test requires /home/aresch/Downloads, which is not provided by
16915 ;; the build environment.
16917 (delete-file "rencode/t.py")
16919 (native-inputs `(("pkg-config" ,pkg-config)
16920 ("python-cython" ,python-cython)))
16921 (home-page "https://github.com/aresch/rencode")
16922 (synopsis "Serialization of heterogeneous data structures")
16924 "The @code{rencode} module is a data structure serialization library,
16925 similar to @code{bencode} from the BitTorrent project. For complex,
16926 heterogeneous data structures with many small elements, r-encoding stake up
16927 significantly less space than b-encodings. This version of rencode is a
16928 complete rewrite in Cython to attempt to increase the performance over the
16929 pure Python module.")
16930 (license license:bsd-3)))
16932 (define-public python2-rencode
16933 (package-with-python2 python-rencode))
16935 (define-public python-xenon
16937 (name "python-xenon")
16942 (uri (pypi-uri "xenon" version))
16945 "0nv207ql2wmh9q62503np056c4vf1c1hlsi5cvv5p5kx574k6r2y"))))
16946 (build-system python-build-system)
16948 `(("python-pyyaml" ,python-pyyaml)
16949 ("python-radon" ,python-radon)
16950 ("python-requests" ,python-requests)
16951 ("python-flake8" ,python-flake8)
16952 ("python-tox" ,python-tox)))
16954 `(#:tests? #f ;test suite not shipped with the PyPI archive
16956 (modify-phases %standard-phases
16957 (add-before 'build 'patch-test-requirements
16959 ;; Remove httpretty dependency for tests.
16960 (substitute* "setup.py"
16961 (("httpretty") ""))
16963 (home-page "https://xenon.readthedocs.org/")
16964 (synopsis "Monitor code metrics for Python on your CI server")
16966 "Xenon is a monitoring tool based on Radon. It monitors code complexity.
16967 Ideally, @code{xenon} is run every time code is committed. Through command
16968 line options, various thresholds can be set for the complexity of code. It
16969 will fail (i.e. it will exit with a non-zero exit code) when any of these
16970 requirements is not met.")
16971 (license license:expat)))
16973 (define-public python2-xenon
16974 (package-with-python2 python-xenon))
16976 (define-public python-pysocks
16978 (name "python-pysocks")
16983 (uri (pypi-uri "PySocks" version))
16986 "184sg65mbmih6ljblfsxcmq5js5l7dj3gpn618w9q5dy3rbh921z"))))
16987 (build-system python-build-system)
16988 (arguments `(#:tests? #f))
16989 (home-page "https://github.com/Anorov/PySocks")
16990 (synopsis "SOCKS client module")
16991 (description "@code{pysocks} is an updated and semi-actively maintained
16992 version of @code{SocksiPy} with bug fixes and extra features.")
16993 (license license:bsd-3)))
16995 (define-public python2-pysocks
16996 (package-with-python2 python-pysocks))
16998 (define-public python-pydiff
17000 (name "python-pydiff")
17005 (uri (pypi-uri "pydiff" version))
17008 "1als83h9w0gab24ipyna6khm390qmpnpkc5jksmdbs2xc8hp2z44"))))
17009 (build-system python-build-system)
17010 (home-page "https://github.com/myint/pydiff")
17011 (synopsis "Library to diff two Python files at the bytecode level")
17013 "@code{pydiff} makes it easy to look for actual code changes while
17014 ignoring formatting changes.")
17015 (license license:expat)))
17017 (define-public python2-pydiff
17018 (package-with-python2 python-pydiff))
17020 (define-public python-pydub
17022 (name "python-pydub")
17027 (uri (pypi-uri "pydub" version))
17030 "0sfwfq7yjv4bl3yqbmizszscafvwf4zr40hzbsy7rclvzyznh333"))))
17031 (build-system python-build-system)
17034 (modify-phases %standard-phases
17035 (add-after 'unpack 'fix-ffmpeg-path
17036 (lambda* (#:key inputs #:allow-other-keys)
17037 (let ((ffmpeg (assoc-ref inputs "ffmpeg")))
17038 (substitute* '("pydub/utils.py")
17039 (("return \"ffmpeg\"")
17040 (string-append "return \"" ffmpeg "/bin/ffmpeg\""))
17041 (("return \"ffplay\"")
17042 (string-append "return \"" ffmpeg "/bin/ffplay\""))
17043 (("return \"ffprobe\"")
17044 (string-append "return \"" ffmpeg "/bin/ffprobe\""))
17045 (("warn\\(\"Couldn't find ff") "# warn\\(\"Couldn't find ff"))
17047 (home-page "https://pydub.com")
17049 `(("ffmpeg" ,ffmpeg)))
17051 `(("python-scipy" ,python-scipy)))
17052 (synopsis "Manipulate audio with a high level interface in Python")
17054 "@code{pydub} makes it easy to manipulate audio in Python. It relies on
17055 @code{ffmpeg} to open various audio formats.")
17056 (license license:expat))) ; MIT license
17058 (define-public python-tqdm
17060 (name "python-tqdm")
17065 (uri (pypi-uri "tqdm" version))
17068 "093v4c2x5hpigv47zvyxl8wh10y2yd2gvz3l9vchn0zsp8hv2pzk"))))
17069 (build-system python-build-system)
17071 '(#:phases (modify-phases %standard-phases
17073 (lambda* (#:key inputs outputs #:allow-other-keys)
17074 (add-installed-pythonpath inputs outputs)
17075 ;; This invokation is taken from tox.ini.
17076 (invoke "nosetests" "--ignore-files=\"test_perf.py\""
17077 "-d" "-v" "tqdm/"))))))
17079 `(("python-nose" ,python-nose)))
17080 (home-page "https://github.com/tqdm/tqdm")
17081 (synopsis "Fast, extensible progress meter")
17083 "Make loops show a progress bar on the console by just wrapping any
17084 iterable with @code{|tqdm(iterable)|}. Offers many options to define
17085 design and layout.")
17086 (license (list license:mpl2.0 license:expat))))
17088 (define-public python2-tqdm
17089 (package-with-python2 python-tqdm))
17091 (define-public python-pkginfo
17093 (name "python-pkginfo")
17098 (uri (pypi-uri "pkginfo" version))
17101 "0x6lm17p1ks031mj6pajyp4rkq74vpqq8qwjb7ikgwmkli1day2q"))))
17102 (build-system python-build-system)
17104 ;; The tests are broken upstream.
17107 "https://code.launchpad.net/~tseaver/pkginfo/trunk")
17109 "Query metadatdata from sdists, bdists, and installed packages")
17111 "API to query the distutils metadata written in @file{PKG-INFO} inside a
17112 source distriubtion (an sdist) or a binary distribution (e.g., created by
17113 running bdist_egg). It can also query the EGG-INFO directory of an installed
17114 distribution, and the *.egg-info stored in a \"development checkout\" (e.g,
17115 created by running @code{python setup.py develop}).")
17116 (license license:expat)))
17118 (define-public python2-pkginfo
17119 (package-with-python2 python-pkginfo))
17121 (define-public python-twine
17123 (name "python-twine")
17128 (uri (pypi-uri "twine" version))
17130 (base32 "11rpd653zcgzkq3sgwkzs3mpxl3r5rij59745ni84ikv8smjmlm3"))))
17131 (build-system python-build-system)
17133 `(("python-tqdm" ,python-tqdm)
17134 ("python-packaging" ,python-packaging)
17135 ("python-pkginfo" ,python-pkginfo)
17136 ("python-readme-renderer" ,python-readme-renderer)
17137 ("python-requests" ,python-requests)
17138 ("python-requests-toolbelt" ,python-requests-toolbelt)))
17139 (home-page "https://github.com/pypa/twine")
17140 (synopsis "Collection of utilities for interacting with PyPI")
17142 "@code{twine} currently supports registering projects and uploading
17143 distributions. It authenticates the user over HTTPS, allows them to pre-sign
17144 their files and supports any packaging format (including wheels).")
17145 (license license:asl2.0)))
17147 (define-public python2-twine
17148 (package-with-python2 python-twine))
17150 (define-public python-linecache2
17152 (name "python-linecache2")
17157 (uri (pypi-uri "linecache2" version))
17160 "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb"))))
17161 (build-system python-build-system)
17163 `(;; The tests depend on unittest2, and our version is a bit too old.
17166 `(("python-pbr" ,python-pbr-minimal)))
17168 "https://github.com/testing-cabal/linecache2")
17169 (synopsis "Backports of the linecache module")
17171 "The linecache module allows one to get any line from any file, while
17172 attempting to optimize internally, using a cache, the common case where many
17173 lines are read from a single file.")
17174 (license license:psfl)))
17176 (define-public python2-linecache2
17177 (package-with-python2 python-linecache2))
17179 (define-public python-traceback2
17181 (name "python-traceback2")
17186 (uri (pypi-uri "traceback2" version))
17189 "0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05"))))
17190 (build-system python-build-system)
17192 `(;; python-traceback2 and python-unittest2 depend on one another.
17195 `(("python-pbr" ,python-pbr-minimal)))
17197 `(("python-linecache2" ,python-linecache2)))
17199 "https://github.com/testing-cabal/traceback2")
17200 (synopsis "Backports of the traceback module")
17202 "This module provides a standard interface to extract, format and print
17203 stack traces of Python programs. It exactly mimics the behavior of the Python
17204 interpreter when it prints a stack trace.")
17205 (license license:psfl)))
17207 (define-public python2-traceback2
17208 (package-with-python2 python-traceback2))
17210 (define-public python-ratelimiter
17212 (name "python-ratelimiter")
17217 (uri (pypi-uri "ratelimiter" version))
17220 "1dhz85mj5bqd2mij84ncs6pz32hgidr79hay4aqfmzaa4rbb497p"))))
17221 (build-system python-build-system)
17223 '(#:tests? #f)) ; There are no tests in the pypi archive.
17224 (home-page "https://github.com/RazerM/ratelimiter")
17225 (synopsis "Simple rate limiting object")
17227 "The @code{ratelimiter} module ensures that an operation will not be
17228 executed more than a given number of times during a given period.")
17229 (license license:asl2.0)))
17231 (define-public python2-ratelimiter
17232 (package-with-python2 python-ratelimiter))
17234 (define-public python-dukpy
17236 (name "python-dukpy")
17241 (uri (git-reference
17242 (url "https://github.com/kovidgoyal/dukpy")
17243 (commit (string-append "v" version))))
17244 (file-name (git-file-name name version))
17246 (base32 "13h21nqzasv4zj32xs61brmc106pr2cx243672crcmwxxnjgaxls"))))
17247 (build-system python-build-system)
17248 (home-page "https://github.com/kovidgoyal/dukpy")
17249 (synopsis "Run JavaScript in python")
17251 "dukpy is a JavaScript runtime environment for Python using the duktape
17252 embeddable JavaScript engine.")
17253 ;; Dukpy is licensed under MIT like the embedded duktape library,
17254 ;; with 'errors.c' as GPL3.
17255 (license (list license:expat license:gpl3))))
17257 (define-public python2-dukpy
17258 (package-with-python2 python-dukpy))
17260 (define-public python-jsonrpclib-pelix
17262 (name "python-jsonrpclib-pelix")
17267 (uri (pypi-uri "jsonrpclib-pelix" version))
17270 "0f83z5zi7w32vprhk1dyc94ir1bh4hdd57bjdbwkq9ykng8qilhl"))))
17271 (build-system python-build-system)
17273 `(#:tests? #f)) ; no tests in PyPI tarball
17274 (home-page "https://github.com/tcalmant/jsonrpclib/")
17275 (synopsis "JSON-RPC 2.0 client library for Python")
17277 "This library implements the JSON-RPC v2.0
17278 specification (backwards-compatible) as a client library for Python. This
17279 version is a fork of jsonrpclib by Josh Marshall, usable with Pelix remote
17281 (license license:asl2.0)))
17283 (define-public python2-jsonrpclib-pelix
17284 (package-with-python2 python-jsonrpclib-pelix))
17286 (define-public python-setuptools-scm-git-archive
17288 (name "python-setuptools-scm-git-archive")
17293 (uri (pypi-uri "setuptools_scm_git_archive" version))
17296 "1nii1sz5jq75ilf18bjnr11l9rz1lvdmyk66bxl7q90qan85yhjj"))))
17297 (build-system python-build-system)
17299 `(("python-pytest" ,python-pytest)))
17301 `(("python-setuptools-scm" ,python-setuptools-scm)))
17302 (home-page "https://github.com/Changaco/setuptools_scm_git_archive/")
17303 (synopsis "Setuptools_scm plugin for git archives")
17305 "The setuptools_scm_git_archive package is a plugin to
17306 setuptools_scm, which supports obtaining versions from git archives that
17307 belong to tagged versions.")
17308 (license license:expat)))
17310 (define-public python2-setuptools-scm-git-archive
17311 (package-with-python2 python-setuptools-scm-git-archive))
17313 (define-public python-setuptools-git
17315 (name "python-setuptools-git")
17320 (uri (pypi-uri "setuptools-git" version))
17323 "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
17324 (build-system python-build-system)
17327 (modify-phases %standard-phases
17328 ;; This is needed for tests.
17329 (add-after 'unpack 'configure-git
17331 (setenv "HOME" "/tmp")
17332 (invoke "git" "config" "--global" "user.email" "guix")
17333 (invoke "git" "config" "--global" "user.name" "guix")
17336 `(("git" ,git-minimal)))
17337 (home-page "https://github.com/msabramo/setuptools-git")
17338 (synopsis "Setuptools revision control system plugin for Git")
17340 "This package provides a plugin for Setuptools for revision control with
17342 (license license:bsd-3)))
17344 (define-public python-pyclipper
17346 (name "python-pyclipper")
17347 (version "1.1.0.post3")
17351 (uri (pypi-uri "pyclipper" version ".zip"))
17353 (base32 "164yksvqwqvwzh8f8lq92asg87hd8rvcy2xb5vm4y4ccvd5xgb7i"))
17354 (modules '((guix build utils)))
17357 ;; This file is generated by Cython.
17358 (delete-file "pyclipper/pyclipper.cpp") #t))))
17359 (build-system python-build-system)
17362 (modify-phases %standard-phases
17363 (add-before 'build 'cythonize-sources
17365 (with-directory-excursion "pyclipper"
17366 (invoke "cython" "--cplus" "pyclipper.pyx")))))))
17368 `(("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive)))
17370 `(("python-cython" ,python-cython)
17371 ("python-pytest" ,python-pytest)
17372 ("python-pytest-runner" ,python-pytest-runner)
17373 ("python-unittest2" ,python-unittest2)
17375 (home-page "https://github.com/greginvm/pyclipper")
17376 (synopsis "Wrapper for Angus Johnson's Clipper library")
17378 "Pyclipper is a Cython wrapper for the C++ translation of the
17379 Angus Johnson's polygon clipping Clipper library (ver. 6.4.2).")
17380 (license license:expat)))
17382 (define-public python2-pyclipper
17383 (package-with-python2 python-pyclipper))
17385 (define-public python2-booleanoperations
17387 (name "python2-booleanoperations")
17392 (uri (pypi-uri "booleanOperations" version ".zip"))
17395 "1hw42fazdpvsn77glx96hwsj9l17mvx37sc5707s08y5w6fx16mn"))))
17396 (build-system python-build-system)
17398 `(#:python ,python-2))
17401 ("python2-pytest" ,python2-pytest)
17402 ("python2-pytest-runner" ,python2-pytest-runner)))
17404 `(("python-fonttools" ,python2-fonttools)
17405 ("python-pyclipper" ,python2-pyclipper)
17406 ("python-ufolib" ,python2-ufolib)))
17407 (home-page "https://github.com/typemytype/booleanOperations")
17408 (synopsis "Boolean operations on paths")
17410 "BooleanOperations provides a Python library that enables
17411 boolean operations on paths.")
17412 (license license:expat)))
17414 (define-public python-tempdir
17416 (name "python-tempdir")
17421 (uri (pypi-uri "tempdir" version))
17424 "13msyyxqbicr111a294x7fsqbkl6a31fyrqflx3q7k547gnq15k8"))))
17425 (build-system python-build-system)
17426 (home-page "https://pypi.org/project/tempdir/")
17428 ;; the package has no tests
17430 (synopsis "Python library for managing temporary directories")
17432 "This library manages temporary directories that are automatically
17433 deleted with all their contents when they are no longer needed. It is
17434 particularly convenient for use in tests.")
17435 (license license:expat)))
17437 (define-public python2-tempdir
17438 (package-with-python2 python-tempdir))
17440 (define-public python-activepapers
17442 (name "python-activepapers")
17447 (uri (pypi-uri "ActivePapers.Py" version))
17450 "12wkhjh90ffipjzv10swndp2xv9hd7xrxvg6v0n4n3i411pj4xb8"))))
17451 (build-system python-build-system)
17453 `(#:modules ((ice-9 ftw)
17456 (guix build python-build-system))
17459 (modify-phases %standard-phases
17460 (add-after 'unpack 'delete-python2-code
17462 (for-each delete-file
17463 '("lib/activepapers/builtins2.py"
17464 "lib/activepapers/standardlib2.py"
17465 "lib/activepapers/utility2.py"))))
17468 ;; Deactivate the test cases that download files
17469 (setenv "NO_NETWORK_ACCESS" "1")
17470 ;; For some strange reason, some tests fail if nosetests runs all
17471 ;; test modules in a single execution. They pass if each test
17472 ;; module is run individually.
17473 (for-each (lambda (filename)
17474 (invoke "nosetests"
17475 (string-append "tests/" filename)))
17478 (string-suffix? ".py" filename)))))))))
17480 `(("python-tempdir" ,python-tempdir)
17481 ("python-nose" ,python-nose)))
17483 `(("python-h5py" ,python-h5py)))
17484 (home-page "https://www.activepapers.org/")
17485 (synopsis "Executable papers for scientific computing")
17487 "ActivePapers is a tool for working with executable papers, which
17488 combine data, code, and documentation in single-file packages,
17489 suitable for publication as supplementary material or on repositories
17490 such as figshare or Zenodo.")
17491 (properties `((python2-variant . ,(delay python2-activepapers))))
17492 (license license:bsd-3)))
17494 (define-public python2-activepapers
17495 (let ((base (package-with-python2
17496 (strip-python2-variant python-activepapers))))
17500 (substitute-keyword-arguments (package-arguments base)
17502 `(modify-phases ,phases
17503 (delete 'delete-python2-code)
17504 (add-after 'unpack 'delete-python3-code
17506 (for-each delete-file
17507 '("lib/activepapers/builtins3.py"
17508 "lib/activepapers/standardlib3.py"
17509 "lib/activepapers/utility3.py")))))))))))
17511 (define-public python-semver
17513 (name "python-semver")
17518 (uri (pypi-uri "semver" version))
17521 "183kg1rhzz3hqizvphkd8hlbf1zxfx8737zhfkmqzxi71jmdw7pd"))))
17522 (build-system python-build-system)
17524 `(#:phases (modify-phases %standard-phases
17527 (delete-file "setup.cfg")
17528 (invoke "py.test"))))))
17530 `(("python-pytest" ,python-pytest)))
17531 (home-page "https://github.com/k-bx/python-semver")
17532 (synopsis "Python helper for Semantic Versioning")
17533 (description "This package provides a Python library for
17534 @url{Semantic Versioning, http://semver.org/}.")
17535 (license license:bsd-3)))
17537 (define-public python2-semver
17538 (package-with-python2 python-semver))
17540 (define-public python-pyro4
17542 (name "python-pyro4")
17547 (uri (pypi-uri "Pyro4" version))
17549 (base32 "0gsjg869y4gpy265s1gj1f2qy6jn5iz8r2bwwnq78r1r5yi15zib"))))
17550 (build-system python-build-system)
17552 '(#:tests? #f)) ;FIXME: Some tests require network access.
17554 `(("python-cloudpickle" ,python-cloudpickle)
17555 ("python-dill" ,python-dill)
17556 ("python-msgpack" ,python-msgpack)))
17558 `(("python-serpent" ,python-serpent)))
17559 (home-page "https://pyro4.readthedocs.io")
17560 (synopsis "Distributed object middleware for Python")
17562 "Pyro enables you to build applications in which objects can talk to each
17563 other over the network. You can just use normal Python method calls to call
17564 objects on other machines, also known as remote procedure calls (RPC).")
17565 (license license:expat)))
17567 (define-public python2-pyro
17569 (name "python2-pyro")
17574 (uri (pypi-uri "Pyro" version))
17575 (file-name (string-append "Pyro-" version ".tar.gz"))
17578 "0y75wzdqbjy565rpxaxscav4j8xg060sa90lnmb7aypgaf251v8v"))))
17579 (build-system python-build-system)
17581 ;; Pyro is not compatible with Python 3
17582 `(#:python ,python-2
17583 ;; Pyro has no test cases for automatic execution
17585 (home-page "https://pythonhosted.org/Pyro/")
17586 (synopsis "Distributed object manager for Python")
17587 (description "Pyro is a Distributed Object Technology system
17588 written in Python that is designed to be easy to use. It resembles
17589 Java's Remote Method Invocation (RMI). It has less similarity to CORBA,
17590 which is a system and language independent Distributed Object Technology
17591 and has much more to offer than Pyro or RMI. Pyro 3.x is no
17592 longer maintained. New projects should use Pyro4 instead, which
17593 is the new Pyro version that is actively developed.")
17594 (license license:expat)))
17596 (define-public python2-scientific
17598 (name "python2-scientific")
17603 (uri (git-reference
17604 (url "https://github.com/khinsen/ScientificPython")
17605 (commit (string-append "rel" version))))
17606 (file-name (git-file-name name version))
17609 "16l48aj9fps9r7jyk8gpxppwrv0fqvlc13sayxskz28r5s6sjwbl"))))
17610 (build-system python-build-system)
17612 `(("netcdf" ,netcdf)))
17614 `(("python-numpy" ,python2-numpy-1.8)
17615 ("python-pyro" ,python2-pyro)))
17617 ;; ScientificPython is not compatible with Python 3
17618 `(#:python ,python-2
17619 #:tests? #f ; No test suite
17621 (modify-phases %standard-phases
17623 (lambda* (#:key inputs #:allow-other-keys)
17624 (invoke "python" "setup.py" "build"
17625 (string-append "--netcdf_prefix="
17626 (assoc-ref inputs "netcdf"))))))))
17627 (home-page "http://dirac.cnrs-orleans.fr/ScientificPython")
17628 (synopsis "Python modules for scientific computing")
17629 (description "ScientificPython is a collection of Python modules that are
17630 useful for scientific computing. Most modules are rather general (Geometry,
17631 physical units, automatic derivatives, ...) whereas others are more
17632 domain-specific (e.g. netCDF and PDB support). The library is currently
17633 not actively maintained and works only with Python 2 and NumPy < 1.9.")
17634 (license license:cecill-c)))
17636 (define-public python2-mmtk
17638 (name "python2-mmtk")
17643 (uri (git-reference
17644 (url "https://github.com/khinsen/MMTK")
17645 (commit (string-append "rel" version))))
17646 (file-name (git-file-name name version))
17649 "1fqwh3ba9jd42nigvn5shndgwb1zy7kh9520ncvqci7n8ffjr6p1"))))
17650 (build-system python-build-system)
17652 `(("netcdf" ,netcdf)))
17654 `(("python-scientific" ,python2-scientific)
17655 ("python-tkinter" ,python-2 "tk")))
17657 `(#:python ,python-2
17660 (modify-phases %standard-phases
17661 (add-before 'build 'includes-from-scientific
17662 (lambda* (#:key inputs #:allow-other-keys)
17663 (mkdir-p "Include/Scientific")
17666 (assoc-ref inputs "python-scientific")
17667 "/include/python2.7/Scientific")
17668 "Include/Scientific"))))))
17669 (home-page "http://dirac.cnrs-orleans.fr/MMTK")
17670 (synopsis "Python library for molecular simulation")
17671 (description "MMTK is a library for molecular simulations with an emphasis
17672 on biomolecules. It provides widely used methods such as Molecular Dynamics
17673 and normal mode analysis, but also basic routines for implementing new methods
17674 for simulation and analysis. The library is currently not actively maintained
17675 and works only with Python 2 and NumPy < 1.9.")
17676 (license license:cecill-c)))
17678 (define-public python-phonenumbers
17680 (name "python-phonenumbers")
17685 (uri (pypi-uri "phonenumbers" version))
17688 "03fmrgb4r8x3ykmddjs9i3zhs703in8smikj3a6447blqpimwyh1"))))
17689 (build-system python-build-system)
17691 "https://github.com/daviddrysdale/python-phonenumbers")
17693 "Python library for dealing with international phone numbers")
17695 "This package provides a Python port of Google's libphonenumber library.")
17696 (license license:asl2.0)))
17698 (define-public python2-phonenumbers
17699 (package-with-python2 python-phonenumbers))
17701 (define-public python-send2trash
17703 (name "python-send2trash")
17706 (origin (method git-fetch)
17707 ;; Source tarball on PyPI doesn't include tests.
17708 (uri (git-reference
17709 (url "https://github.com/hsoft/send2trash")
17711 (file-name (git-file-name name version))
17714 "1c76zldhw2ay7q7r00nnzcampjz9lkqfcbzqpm0iqp5i6bmmv30v"))))
17715 (build-system python-build-system)
17718 (modify-phases %standard-phases
17719 (add-before 'check 'pre-check
17721 (mkdir-p "/tmp/foo")
17722 (setenv "HOME" "/tmp/foo")
17724 (home-page "https://github.com/hsoft/send2trash")
17725 (synopsis "Send files to the user's @file{~/Trash} directory")
17726 (description "This package provides a Python library to send files to the
17727 user's @file{~/Trash} directory.")
17728 (properties `((python2-variant . ,(delay python2-send2trash))))
17729 (license license:bsd-3)))
17731 (define-public python2-send2trash
17733 (inherit (package-with-python2 (strip-python2-variant python-send2trash)))
17735 (substitute-keyword-arguments (package-arguments python-send2trash)
17737 `(modify-phases ,phases
17738 (add-before 'check 'setenv
17740 (setenv "PYTHONPATH"
17741 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
17744 (define-public python-pyfavicon
17746 (name "python-pyfavicon")
17751 (uri (pypi-uri "pyfavicon" version))
17753 (base32 "15wfpa99hvcfsv8j0m8iprmydi2p4qkhm86qfx485244y0ia5mgx"))))
17754 (build-system python-build-system)
17756 ;; There are no tests in the PyPI tarball and the tests from the
17757 ;; repository require online data.
17760 `(("python-aiohttp" ,python-aiohttp)
17761 ("python-beautifulsoup4" ,python-beautifulsoup4)
17762 ("python-pillow" ,python-pillow)))
17763 (home-page "https://github.com/bilelmoussaoui/pyfavicon")
17764 (synopsis "Async favicon fetcher")
17766 "@code{pyfavicon} is an async favicon fetcher.")
17767 (license license:expat)))
17769 (define-public python-yapf
17771 (name "python-yapf")
17776 (uri (pypi-uri "yapf" version))
17779 "1pj3xzblmbssshi889b6n9hwqbjpabw6j0fimlng2sshd3226bki"))))
17780 (build-system python-build-system)
17781 (home-page "https://github.com/google/yapf")
17782 (synopsis "Formatter for Python code")
17783 (description "YAPF is a formatter for Python code. It's based off of
17784 @dfn{clang-format}, developed by Daniel Jasper. In essence, the algorithm
17785 takes the code and reformats it to the best formatting that conforms to the
17786 style guide, even if the original code didn't violate the style guide.")
17787 (license license:asl2.0)))
17789 (define-public python2-yapf
17790 (package-with-python2 python-yapf))
17792 (define-public python-yq
17799 (uri (pypi-uri "yq" version))
17802 "1q4rky0a6n4izmq7slb91a54g8swry1xrbfqxwc8lkd3hhvlxxkl"))))
17803 (build-system python-build-system)
17806 (modify-phases %standard-phases
17807 (add-after 'unpack 'patch
17808 (lambda* (#:key inputs #:allow-other-keys)
17809 (substitute* "yq/__init__.py"
17810 (("Popen\\(\\[\"jq")
17813 (assoc-ref inputs "jq")
17817 `(("python-argcomplete" ,python-argcomplete)
17818 ("python-pyyaml" ,python-pyyaml)
17819 ("python-xmltodict" ,python-xmltodict)
17822 `(("python-coverage" ,python-coverage)
17823 ("python-flake8" ,python-flake8)
17824 ("python-wheel" ,python-wheel)))
17825 (home-page "https://github.com/kislyuk/yq")
17826 (synopsis "Command-line YAML/XML processor")
17828 "This package provides @command{yq} and @command{xq} for processing YAML
17829 and XML respectively. The processing is done through @command{jq}, @command{jq}
17830 filters can be used to process the data as it passes through.")
17831 (license license:asl2.0)))
17833 (define-public python-gyp
17834 (let ((commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f")
17837 (name "python-gyp")
17838 ;; Google does not release versions,
17839 ;; based on second most recent commit date.
17840 (version (git-version "0.0.0" revision commit))
17843 ;; Google does not release tarballs,
17844 ;; git checkout is needed.
17846 (uri (git-reference
17847 (url "https://chromium.googlesource.com/external/gyp")
17849 (file-name (git-file-name name version))
17852 "0fr7nxcrk292djmxzpcjaphnsd123k31gp8jnd91vwknhq6snmv9"))))
17853 (build-system python-build-system)
17854 (home-page "https://gyp.gsrc.io/")
17855 (synopsis "GYP is a Meta-Build system")
17857 "GYP builds build systems for large, cross platform applications.
17858 It can be used to generate XCode projects, Visual Studio projects, Ninja build
17859 files, and Makefiles.")
17860 (license license:bsd-3))))
17862 (define-public python2-gyp
17863 (package-with-python2 python-gyp))
17865 (define-public python-whatever
17867 (name "python-whatever")
17872 (uri (git-reference
17873 (url "https://github.com/Suor/whatever")
17875 (file-name (git-file-name name version))
17877 (base32 "1q7ajgqjfivxqsqgnhp4lc4p6jxyh4zprcsdbpd6dw54inaf0av5"))))
17878 (build-system python-build-system)
17881 (modify-phases %standard-phases
17884 (invoke "py.test"))))))
17886 `(("python-pytest" ,python-pytest)))
17887 (home-page "https://github.com/Suor/whatever")
17888 (synopsis "Make anonymous functions by partial application of operators")
17889 (description "@code{whatever} provides an easy way to make anonymous
17890 functions by partial application of operators.")
17891 (license license:bsd-3)))
17893 (define-public python2-whatever
17894 (package-with-python2 python-whatever))
17896 (define-public python-funcy
17898 (name "python-funcy")
17903 (uri (git-reference
17904 (url "https://github.com/Suor/funcy")
17907 (base32 "1s98vkjnq3zq71737hn8xa15kssvmy1sfzsll3vrlv53902418mw"))
17908 (file-name (git-file-name name version))))
17909 (build-system python-build-system)
17912 (modify-phases %standard-phases
17915 (invoke "py.test"))))))
17917 `(("python-pytest" ,python-pytest)
17918 ("python-whatever" ,python-whatever)))
17919 (home-page "https://github.com/Suor/funcy")
17920 (synopsis "Functional tools")
17921 (description "@code{funcy} is a library that provides functional tools.
17924 @item merge - Merges collections of the same type
17925 @item walk - Type-preserving map
17926 @item select - Selects a part of a collection
17927 @item take - Takes the first n items of a collection
17928 @item first - Takes the first item of a collection
17929 @item remove - Predicated-removes items of a collection
17930 @item concat - Concatenates two collections
17931 @item flatten - Flattens a collection with subcollections
17932 @item distinct - Returns only distinct items
17933 @item split - Predicated-splits a collection
17934 @item split_at - Splits a collection at a given item
17935 @item group_by - Groups items by group
17936 @item pairwise - Pairs off adjacent items
17937 @item partial - Partially-applies a function
17938 @item curry - Curries a function
17939 @item compose - Composes functions
17940 @item complement - Complements a predicate
17941 @item all_fn - \"all\" with predicate
17943 (license license:bsd-3)))
17945 (define-public python2-funcy
17946 (package-with-python2 python-funcy))
17948 (define-public python-isoweek
17950 (name "python-isoweek")
17955 (uri (pypi-uri "isoweek" version))
17958 "1s7zsf0pab0l9gn6456qadnz5i5h90hafcjwnhx5mq23qjxggwvk"))))
17959 (build-system python-build-system)
17960 (home-page "https://github.com/gisle/isoweek")
17961 (synopsis "Objects representing a week")
17962 (description "The @code{isoweek} module provide the class Week that
17963 implements the week definition of ISO 8601. This standard also defines
17964 a notation for identifying weeks; yyyyWww (where the W is a literal).
17965 Week instances stringify to this form.")
17966 (license license:bsd-3)))
17968 (define-public python2-isoweek
17969 (package-with-python2 python-isoweek))
17971 (define-public python-pyzbar
17973 (name "python-pyzbar")
17977 ;; There's no source tarball on PyPI.
17979 (uri (git-reference
17980 (url "https://github.com/NaturalHistoryMuseum/pyzbar")
17981 (commit (string-append "v" version))))
17982 (file-name (git-file-name name version))
17984 (base32 "1fqlfg5p2v9lzzzi0si2sz54lblprk6jjjhjw54b64lp58c1yhsl"))))
17985 (build-system python-build-system)
17988 (modify-phases %standard-phases
17989 (add-after 'unpack 'remove-failing-test
17991 ;; This tests if find_library was called once, but we remove
17992 ;; the call in the stage below to make the library find libzbar.
17993 (delete-file "pyzbar/tests/test_zbar_library.py")
17995 (add-before 'build 'set-library-file-name
17996 (lambda* (#:key inputs #:allow-other-keys)
17997 (let ((libzbar (assoc-ref inputs "zbar")))
17998 (substitute* "pyzbar/zbar_library.py"
17999 (("find_library\\('zbar'\\)")
18000 (string-append "'" libzbar "/lib/libzbar.so.0'")))
18003 `(("pkg-config" ,pkg-config)
18004 ("python-numpy" ,python-numpy)
18005 ("python-pillow" ,python-pillow)))
18008 (home-page "https://github.com/NaturalHistoryMuseum/pyzbar/")
18009 (synopsis "Read one-dimensional barcodes and QR codes")
18011 "Read one-dimensional barcodes and QR codes using the zbar library.
18017 @item Works with PIL / Pillow images, OpenCV / numpy ndarrays, and raw bytes
18018 @item Decodes locations of barcodes
18019 @item No dependencies, other than the zbar library itself
18021 (license license:expat)))
18023 (define-public python-tokenize-rt
18025 (name "python-tokenize-rt")
18030 (uri (pypi-uri "tokenize-rt" version))
18033 "1yjvbz7rvrz31zjyax1cgy3xhf4wb3j18jwnj4bnl77ca4gliyiw"))))
18034 (build-system python-build-system)
18035 (home-page "https://github.com/asottile/tokenize-rt")
18036 (synopsis "Wrapper around the stdlib tokenize which roundtrips.")
18038 "This Python library is a wrapper around @code{tokenize} from the Python
18039 standard library. It provides two additional tokens @code{ESCAPED_NL} and
18040 @code{UNIMPORTANT_WS}, and a @code{Token} data type. Use @code{src_to_tokens}
18041 and @code{tokens_to_src} to roundtrip.")
18042 (license license:expat)))
18044 (define-public python-future-fstrings
18046 (name "python-future-fstrings")
18051 (uri (pypi-uri "future_fstrings" version))
18054 "0ydxqz2dvns44g55p8ix2x18qkfk3aaz0m0dc70f3g6n8js35h47"))))
18055 (build-system python-build-system)
18057 `(("python-tokenize-rt" ,python-tokenize-rt)))
18058 (home-page "https://github.com/asottile/future-fstrings")
18059 (synopsis "Backport of fstrings to Python < 3.6")
18061 "This package provides a UTF-8 compatible encoding
18062 @code{future_fstrings}, which performs source manipulation. It decodes the
18063 source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
18064 @code{f} strings.")
18065 (license license:expat)))
18067 (define-public python-typed-ast
18069 (name "python-typed-ast")
18074 (uri (git-reference
18075 (url "https://github.com/python/typed_ast")
18078 (base32 "0l0hz809f7i356kmqkvfsaswiidb98j9hs9rrjnfawzqcbffzgyb"))
18079 (file-name (git-file-name name version))))
18080 (build-system python-build-system)
18082 `(#:modules ((guix build utils)
18083 (guix build python-build-system)
18088 (modify-phases %standard-phases
18091 (let ((cwd (getcwd)))
18092 (setenv "PYTHONPATH"
18093 (string-append cwd "/build/"
18094 (find (cut string-prefix? "lib" <>)
18095 (scandir (string-append cwd "/build")))
18097 (getenv "PYTHONPATH"))))
18100 (native-inputs `(("python-pytest" ,python-pytest)))
18101 (home-page "https://github.com/python/typed_ast")
18102 (synopsis "Fork of Python @code{ast} modules with type comment support")
18103 (description "This package provides a parser similar to the standard
18104 @code{ast} library. Unlike @code{ast}, the parsers in @code{typed_ast}
18105 include PEP 484 type comments and are independent of the version of Python
18106 under which they are run. The @code{typed_ast} parsers produce the standard
18107 Python AST (plus type comments), and are both fast and correct, as they are
18108 based on the CPython 2.7 and 3.7 parsers.")
18109 ;; See the file "LICENSE" for the details.
18110 (license (list license:psfl
18112 license:expat)))) ;ast27/Parser/spark.py
18114 (define-public python-typing
18116 (name "python-typing")
18117 (version "3.7.4.3")
18121 (uri (pypi-uri "typing" version))
18123 (base32 "1j8wnz8c9s049w9xbf7ssr1dmgg4rz7vdfq7m880srzxhafgp1qi"))))
18124 (build-system python-build-system)
18125 (home-page "https://docs.python.org/3/library/typing.html")
18126 (synopsis "Type hints for Python")
18127 (description "This is a backport of the standard library @code{typing}
18128 module to Python versions older than 3.5. Typing defines a standard notation
18129 for Python function and variable type annotations. The notation can be used
18130 for documenting code in a concise, standard format, and it has been designed
18131 to also be used by static and runtime type checkers, static analyzers, IDEs
18133 (license license:psfl)))
18135 (define-public python2-typing
18136 (package-with-python2 python-typing))
18138 (define-public python-typing-extensions
18140 (name "python-typing-extensions")
18141 (version "3.7.4.3")
18145 (uri (pypi-uri "typing_extensions" version))
18148 "0356ljrrplm917dqgpn8wjkw6j3mpp916gwxas7jhc3xc4xhgm4r"))))
18149 (build-system python-build-system)
18151 "https://github.com/python/typing/blob/master/typing_extensions/README.rst")
18152 (synopsis "Experimental type hints for Python")
18154 "The typing_extensions module contains additional @code{typing} hints not
18155 yet present in the of the @code{typing} standard library.
18156 Included are implementations of:
18159 @item ContextManager
18170 @item TYPE_CHECKING
18171 @item AsyncGenerator
18173 (license license:psfl)))
18175 (define-public bpython
18182 (uri (pypi-uri "bpython" version))
18184 (base32 "1hl6frgvr2lqaxqczl8amg9xih32b3gzv429vs0qrjb8wpdj1k2n"))))
18185 (build-system python-build-system)
18188 (modify-phases %standard-phases
18189 (add-after 'unpack 'remove-failing-test
18191 ;; Remove failing test. FIXME: make it pass
18192 (delete-file "bpython/test/test_args.py")
18194 (add-after 'wrap 'add-aliases
18195 ;; for symmetry to bpython2, add symlinks bypthon3, bpdb3, etc.
18196 (lambda* (#:key outputs #:allow-other-keys)
18197 (let ((out (assoc-ref outputs "out")))
18200 (symlink old (string-append out "/bin/" new)))
18201 '("bpython" "bpython-curses" "bpython-urwid" "bpdb")
18202 '("bpython3" "bpython3-curses" "bpython3-urwid" "bpdb3")))
18205 `(("python-pygments" ,python-pygments)
18206 ("python-requests" ,python-requests)
18207 ("python-babel" ,python-babel) ; optional, for internationalization
18208 ("python-curtsies" ,python-curtsies) ; >= 0.1.18
18209 ("python-greenlet" ,python-greenlet)
18210 ("python-urwid" ,python-urwid) ; for bpython-urwid only
18211 ("python-six" ,python-six)))
18213 `(("python-sphinx" ,python-sphinx)
18214 ("python-mock" ,python-mock)))
18215 (home-page "https://bpython-interpreter.org/")
18216 (synopsis "Fancy interface to the Python interpreter")
18217 (description "Bpython is a fancy interface to the Python
18218 interpreter. bpython's main features are
18221 @item in-line syntax highlighting,
18222 @item readline-like autocomplete with suggestions displayed as you type,
18223 @item expected parameter list for any Python function,
18224 @item \"rewind\" function to pop the last line of code from memory and
18226 @item send the code you've entered off to a pastebin,
18227 @item save the code you've entered to a file, and
18228 @item auto-indentation.
18230 (license license:expat)))
18232 (define-public python-pyinotify
18234 (name "python-pyinotify")
18238 (uri (pypi-uri "pyinotify" version))
18241 "1x3i9wmzw33fpkis203alygfnrkcmq9w1aydcm887jh6frfqm6cw"))))
18242 (build-system python-build-system)
18243 (arguments `(#:tests? #f)) ;no tests
18244 (home-page "https://github.com/seb-m/pyinotify")
18245 (synopsis "Python library for monitoring inotify events")
18247 "@code{pyinotify} provides a Python interface for monitoring
18248 file system events on Linux.")
18249 (license license:expat)))
18251 (define-public python2-pyinotify
18252 (package-with-python2 python-pyinotify))
18254 ;; Ada parser uses this version.
18255 (define-public python2-quex-0.67.3
18257 (name "python2-quex")
18262 (uri (string-append "mirror://sourceforge/quex/HISTORY/"
18263 (version-major+minor version)
18264 "/quex-" version ".zip"))
18267 "14gv8ll3ipqv4kyc2xiy891nrmjl4ic823zfyx8hassagyclyppw"))))
18268 (build-system python-build-system)
18270 `(("unzip" ,unzip)))
18272 `(#:python ,python-2
18275 (modify-phases %standard-phases
18276 (delete 'configure)
18279 (lambda* (#:key outputs #:allow-other-keys)
18280 (let* ((out (assoc-ref outputs "out"))
18281 (share/quex (string-append out "/share/quex"))
18282 (bin (string-append out "/bin")))
18283 (copy-recursively "." share/quex)
18285 (symlink (string-append share/quex "/quex-exe.py")
18286 (string-append bin "/quex"))
18288 (native-search-paths
18289 (list (search-path-specification
18290 (variable "QUEX_PATH")
18291 (files '("share/quex")))))
18292 (home-page "http://quex.sourceforge.net/")
18293 (synopsis "Lexical analyzer generator in Python")
18294 (description "@code{quex} is a lexical analyzer generator in Python.")
18295 (license license:lgpl2.1+))) ; Non-military
18297 (define-public python2-quex
18298 (package (inherit python2-quex-0.67.3)
18299 (name "python2-quex")
18304 (uri (string-append "mirror://sourceforge/quex/DOWNLOAD/quex-" version ".tar.gz"))
18307 "0svc9nla3b9145d6b7fb9dizx412l3difzqw0ilh9lz52nsixw8j"))
18308 (file-name (string-append name "-" version ".tar.gz"))))))
18310 (define-public python-more-itertools
18312 (name "python-more-itertools")
18317 (uri (pypi-uri "more-itertools" version))
18320 "01x5nwm1zxmnd06cllbdd095xxc2nd25ing1a726m2kd30rbkpdi"))))
18321 (build-system python-build-system)
18322 (home-page "https://github.com/erikrose/more-itertools")
18323 (synopsis "More routines for operating on iterables, beyond itertools")
18324 (description "Python's built-in @code{itertools} module implements a
18325 number of iterator building blocks inspired by constructs from APL, Haskell,
18326 and SML. @code{more-itertools} includes additional building blocks for
18327 working with iterables.")
18328 (properties `((python2-variant . ,(delay python2-more-itertools))))
18329 (license license:expat)))
18331 ;; The 5.x series are the last versions supporting Python 2.7.
18332 (define-public python2-more-itertools
18334 (inherit python-more-itertools)
18335 (name "python2-more-itertools")
18339 (uri (pypi-uri "more-itertools" version))
18342 "1r12cm6mcdwdzz7d47a6g4l437xsvapdlgyhqay3i2nrlv03da9q"))))
18344 `(#:python ,python-2))
18346 `(("python2-six" ,python2-six-bootstrap)))))
18348 (define-public python-latexcodec
18350 (name "python-latexcodec")
18355 (uri (pypi-uri "latexcodec" version))
18357 (base32 "0wnp3yqcgx0rpy8dz51vh75lbp2qif67da19zi7m3ca98n887hgb"))))
18358 (build-system python-build-system)
18360 `(("python-six" ,python-six)))
18361 (home-page "https://readthedocs.org/projects/latexcodec/")
18362 (synopsis "Work with LaTeX code in Python")
18363 (description "Lexer and codec to work with LaTeX code in Python.")
18364 (license license:expat)))
18366 (define-public python-pybtex
18368 (name "python-pybtex")
18373 (uri (pypi-uri "pybtex" version))
18375 (base32 "070wfcmxrd7xg1si421mi9150gmx2qwx431nwf69sq3hhmgnx080"))))
18376 (build-system python-build-system)
18378 `(("python-nose" ,python-nose)))
18380 `(("python-latexcodec" ,python-latexcodec)
18381 ("python-pyyaml" ,python-pyyaml)
18382 ("python-six" ,python-six)))
18384 `(#:test-target "nosetests"))
18385 (home-page "https://pybtex.org/")
18386 (synopsis "BibTeX-compatible bibliography processor")
18387 (description "Pybtex is a BibTeX-compatible bibliography processor written
18388 in Python. You can simply type pybtex instead of bibtex.")
18389 (license license:expat)))
18391 (define-public python-onetimepass
18393 (name "python-onetimepass")
18398 (uri (pypi-uri "onetimepass" version))
18400 (base32 "09vagxgbq78wvq4xbikmn2hpqqsa2i96kqsmphf7dqynfv0dlsd5"))))
18401 (build-system python-build-system)
18402 (propagated-inputs `(("python-six" ,python-six)))
18403 (home-page "https://github.com/tadeck/onetimepass/")
18404 (synopsis "One-time password library")
18405 (description "Python one-time password library for HMAC-based (HOTP) and
18406 time-based (TOTP) passwords.")
18407 (license license:expat)))
18409 (define-public python-parso
18411 (name "python-parso")
18416 (uri (pypi-uri "parso" version))
18418 (base32 "1f9fc99mjx0h2ad4mgsid728nnmw58hvnq3411g8ljlr9dr49fna"))))
18420 `(("python-pytest" ,python-pytest)))
18421 (build-system python-build-system)
18423 `(#:phases (modify-phases %standard-phases
18425 (lambda _ (invoke "pytest" "-vv"))))))
18426 (home-page "https://github.com/davidhalter/parso")
18427 (synopsis "Python Parser")
18428 (description "Parso is a Python parser that supports error recovery and
18429 round-trip parsing for different Python versions (in multiple Python versions).
18430 Parso is also able to list multiple syntax errors in your Python file.")
18431 (license license:expat)))
18433 (define-public python2-parso
18434 (package-with-python2 python-parso))
18436 (define-public python-async-generator
18438 (name "python-async-generator")
18443 (uri (pypi-uri "async_generator" version))
18446 "0i11f6z6lix8ixi3vsk6s76zvvpmgrw6zjrcwjm0m4hjdh83vfvf"))))
18447 (build-system python-build-system)
18449 `(("python-pytest" ,python-pytest)))
18450 (home-page "https://github.com/python-trio/async_generator")
18451 (synopsis "Async generators and context managers for Python 3.5+")
18452 (description "@code{async_generator} back-ports Python 3.6's native async
18453 generators and Python 3.7's context managers into Python 3.5.")
18455 (license (list license:expat license:asl2.0))))
18457 (define-public python-async-timeout
18459 (name "python-async-timeout")
18464 (uri (pypi-uri "async-timeout" version))
18467 "0pscbyr840m7fyfc3r8zv9kgkwdcn9f78p7zsrczciwd09m82g0c"))))
18468 (build-system python-build-system)
18469 (home-page "https://github.com/aio-libs/async_timeout/")
18470 (synopsis "Timeout context manager for asyncio programs")
18471 (description "@code{async-timeout} provides a timeout timeout context
18472 manager compatible with @code{asyncio}.")
18473 (license license:asl2.0)))
18475 (define-public python-glob2
18477 (name "python-glob2")
18482 (uri (git-reference
18483 (url "https://github.com/miracle2k/python-glob2")
18484 (commit (string-append "v" version))))
18485 (file-name (git-file-name name version))
18487 (base32 "160nh2ay9lw2hi0rixpzb2k87r6ql56k0j2cm87lqz8xc8zbw919"))))
18488 (build-system python-build-system)
18489 (home-page "https://github.com/miracle2k/python-glob2/")
18490 (synopsis "Extended Version of the python buildin glob module")
18491 (description "This is an extended version of the Python
18492 @url{http://docs.python.org/library/glob.html, built-in glob module} which
18496 @item The ability to capture the text matched by glob patterns, and return
18497 those matches alongside the file names.
18498 @item A recursive @code{**} globbing syntax, akin for example to the
18499 @code{globstar} option of Bash.
18500 @item The ability to replace the file system functions used, in order to glob
18501 on virtual file systems.
18502 @item Compatible with Python 2 and Python 3 (tested with 3.3).
18505 Glob2 currently based on the glob code from Python 3.3.1.")
18506 (license license:bsd-2)))
18508 (define-public python2-glob2
18509 (package-with-python2 python-glob2))
18511 (define-public python-gipc
18513 (name "python-gipc")
18518 (uri (pypi-uri "gipc" version ".zip"))
18521 "0pd9by719qh882hqs6xpby61sn1x5h98hms5p2p8yqnycrf1s0h2"))))
18522 (build-system python-build-system)
18524 `(("unzip" ,unzip)))
18526 `(("python-gevent" ,python-gevent)))
18527 (home-page "https://gehrcke.de/gipc/")
18528 (synopsis "Child process management in the context of gevent")
18529 (description "Usage of Python's multiprocessing package in a
18530 gevent-powered application may raise problems. With @code{gipc},
18531 process-based child processes can safely be created anywhere within a
18532 gevent-powered application.")
18533 (license license:expat)))
18535 (define-public python-beautifultable
18537 (name "python-beautifultable")
18542 (uri (pypi-uri "beautifultable" version))
18545 "0wwlbifcbpzy3wfv6yzsxncarsngzizmmxbn6cy5gazlcq7h4k5x"))))
18546 (build-system python-build-system)
18548 `(("python-wcwidth" ,python-wcwidth)))
18551 (modify-phases %standard-phases
18552 (add-after 'unpack 'patch-setup.py
18554 (substitute* "setup.py"
18556 "setup(\n test_suite=\"test\",")))))))
18557 (home-page "https://github.com/pri22296/beautifultable")
18558 (synopsis "Print ASCII tables for terminals")
18559 (description "@code{python-beautifultable} provides a class for easily
18560 printing tabular data in a visually appealing ASCII format to a terminal.
18562 Features include, but are not limited to:
18564 @item Full customization of the look and feel of the table
18565 @item Row and column accessors.
18566 @item Full support for colors using ANSI sequences or any library.
18567 @item Plenty of predefined styles and option to create custom ones.
18568 @item Support for Unicode characters.
18569 @item Supports streaming table when data is slow to retrieve.
18571 (license license:expat)))
18573 (define-public python-globber
18575 (name "python-globber")
18580 (uri (git-reference
18581 (url "https://github.com/asharov/globber")
18583 (file-name (git-file-name name version))
18586 "055xf7ja7zjhxis0ab5fnfsx16fsvr5fvc6mixqybanwxh8sgfjk"))))
18587 (build-system python-build-system)
18588 (home-page "https://github.com/asharov/globber")
18589 (synopsis "Library for string matching with glob patterns")
18591 "Globber is a Python library for matching file names against glob patterns.
18592 In contrast to other glob-matching libraries, it matches arbitrary strings and
18593 doesn't require the matched names to be existing files. In addition, it
18594 supports the globstar @code{**} operator to match an arbitrary number of
18596 (license license:asl2.0)))
18598 (define-public python-git-hammer
18600 (name "python-git-hammer")
18605 (uri (git-reference
18606 (url "https://github.com/asharov/git-hammer")
18608 (file-name (git-file-name name version))
18611 "0f9xlk86ijzpdj25hr1q4wcy8k72v3w470ngwm9mpdkfj8ng84wr"))))
18612 (build-system python-build-system)
18615 (modify-phases %standard-phases
18616 (add-after 'unpack 'patch-setup.py
18618 (substitute* "setup.py"
18620 "setup(\n test_suite=\"test\",")))))))
18622 `(("python-beautifultable" ,python-beautifultable)
18623 ("python-dateutil" ,python-dateutil)
18624 ("python-gitpython" ,python-gitpython)
18625 ("python-globber" ,python-globber)
18626 ("python-matplotlib" ,python-matplotlib)
18627 ("python-sqlalchemy" ,python-sqlalchemy)
18628 ("python-sqlalchemy-utils"
18629 ,python-sqlalchemy-utils)))
18630 (home-page "https://github.com/asharov/git-hammer")
18631 (synopsis "Provide statistics for git repositories")
18633 "Git Hammer is a statistics tool for projects in git repositories.
18634 Its major feature is tracking the number of lines authored by each person for every
18635 commit, but it also includes some other useful statistics.")
18636 (license license:asl2.0)))
18638 (define-public python-fusepy
18640 (name "python-fusepy")
18645 (uri (pypi-uri "fusepy" version))
18648 "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h"))))
18649 (build-system python-build-system)
18652 (modify-phases %standard-phases
18653 (add-before 'build 'set-library-file-name
18654 (lambda* (#:key inputs #:allow-other-keys)
18655 (let ((fuse (assoc-ref inputs "fuse")))
18656 (substitute* "fuse.py"
18657 (("find_library\\('fuse'\\)")
18658 (string-append "'" fuse "/lib/libfuse.so'")))
18662 (home-page "https://github.com/fusepy/fusepy")
18663 (synopsis "Simple ctypes bindings for FUSE")
18664 (description "Python module that provides a simple interface to FUSE and
18665 MacFUSE. The binding is created using the standard @code{ctypes} library.")
18666 (license license:isc)))
18668 (define-public python2-fusepy
18669 (package-with-python2 python-fusepy))
18671 (define-public python-fusepyng
18673 (name "python-fusepyng")
18678 (uri (pypi-uri "fusepyng" version))
18681 "17w9iw6m6zjbmnhs4ikd27pq4mb1nan6k4ahlwyz40463vw6wkwb"))))
18682 (build-system python-build-system)
18685 (modify-phases %standard-phases
18686 (add-after 'unpack 'set-libfuse-path
18687 (lambda* (#:key inputs #:allow-other-keys)
18688 (let ((fuse (assoc-ref inputs "fuse")))
18689 (substitute* "fusepyng.py"
18690 (("os.environ.get\\('FUSE_LIBRARY_PATH'\\)")
18691 (string-append "\"" fuse "/lib/libfuse.so\""))))
18696 `(("python-paramiko" ,python-paramiko)))
18697 (home-page "https://github.com/rianhunter/fusepyng")
18698 (synopsis "Simple ctypes bindings for FUSE")
18699 (description "@code{fusepyng} is a Python module that provides a simple
18700 interface to FUSE on various operating systems. It's just one file and is
18701 implemented using @code{ctypes}.")
18702 (license license:isc)))
18704 (define-public python-userspacefs
18706 (name "python-userspacefs")
18711 (uri (pypi-uri "userspacefs" version))
18714 "0kyz52jyxw3m7hqvn5g6z0sx9cq6k0nq1wj44lvdrghdljjgyk2z"))))
18715 (build-system python-build-system)
18717 `(("python-fusepyng" ,python-fusepyng)))
18718 (home-page "https://github.com/rianhunter/userspacefs")
18719 (synopsis "User-space file systems for Python")
18721 "@code{userspacefs} is a library that allows you to easily write
18722 user-space file systems in Python.")
18723 (license license:gpl3+)))
18725 (define-public pybind11
18731 (uri (git-reference
18732 (url "https://github.com/pybind/pybind11")
18733 (commit (string-append "v" version))))
18736 "0k89w4bsfbpzw963ykg1cyszi3h3nk393qd31m6y46pcfxkqh4rd"))
18737 (file-name (git-file-name name version))))
18738 (build-system cmake-build-system)
18740 `(("python" ,python-wrapper)
18742 ;; The following dependencies are used for tests.
18743 ("python-pytest" ,python-pytest)
18744 ("catch" ,catch-framework2-1)
18747 `(#:configure-flags
18748 (list (string-append "-DCATCH_INCLUDE_DIR="
18749 (assoc-ref %build-inputs "catch")
18752 #:phases (modify-phases %standard-phases
18753 (add-after 'install 'install-python
18754 (lambda* (#:key outputs #:allow-other-keys)
18755 (let ((out (assoc-ref outputs "out")))
18756 (with-directory-excursion "../source"
18757 (setenv "PYBIND11_USE_CMAKE" "yes")
18758 (invoke "python" "setup.py" "install"
18759 "--single-version-externally-managed"
18761 (string-append "--prefix=" out)))))))
18763 #:test-target "check"))
18764 (home-page "https://github.com/pybind/pybind11/")
18765 (synopsis "Seamless operability between C++11 and Python")
18767 "@code{pybind11} is a lightweight header-only library that exposes C++
18768 types in Python and vice versa, mainly to create Python bindings of existing
18769 C++ code. Its goals and syntax are similar to the @code{Boost.Python}
18770 library: to minimize boilerplate code in traditional extension modules by
18771 inferring type information using compile-time introspection.")
18772 (license license:bsd-3)))
18774 (define-public python-fasteners
18776 (name "python-fasteners")
18781 (uri (pypi-uri "fasteners" version))
18784 "1vzmz1xh38b84dv0f4hlp7arwmx8wjlih6lf964bpy8dnyk6s5rs"))))
18785 (build-system python-build-system)
18787 `(("python-monotonic" ,python-monotonic)
18788 ("python-six" ,python-six)))
18790 `(("python-testtools" ,python-testtools)))
18791 (home-page "https://github.com/harlowja/fasteners")
18792 (synopsis "Python package that provides useful locks")
18794 "This package provides a Python program that provides following locks:
18797 @item Locking decorator
18798 @item Reader-writer locks
18799 @item Inter-process locks
18800 @item Generic helpers
18802 (properties `((python2-variant . ,(delay python2-fasteners))))
18803 (license license:asl2.0)))
18805 (define-public python2-fasteners
18806 (let ((base (package-with-python2 (strip-python2-variant python-fasteners))))
18810 `(("python2-futures" ,python2-futures)
18811 ,@(package-propagated-inputs base))))))
18813 (define-public python-requests-file
18815 (name "python-requests-file")
18820 (uri (pypi-uri "requests-file" version))
18823 "1yp2jaxg3v86pia0q512dg3hz6s9y5vzdivsgrba1kds05ial14g"))))
18824 (build-system python-build-system)
18826 `(("python-requests" ,python-requests)
18827 ("python-six" ,python-six)))
18829 "https://github.com/dashea/requests-file")
18830 (synopsis "File transport adapter for Requests")
18832 "Requests-File is a transport adapter for use with the Requests Python
18833 library to allow local file system access via @code{file://} URLs.")
18834 (license license:asl2.0)))
18836 (define-public python2-requests-file
18837 (package-with-python2 python-requests-file))
18839 (define-public python-identify
18841 (name "python-identify")
18845 ;; There are no tests in the PyPI tarball.
18847 (uri (git-reference
18848 (url "https://github.com/chriskuehl/identify")
18849 (commit (string-append "v" version))))
18850 (file-name (git-file-name name version))
18852 (base32 "1fqgci6skckcq0x5pnxh6k2qjzn1ndsrgha1j6wwv1ld4g9bd3hz"))))
18853 (build-system python-build-system)
18856 (modify-phases %standard-phases
18859 (invoke "pytest" "-vv"))))))
18861 `(("python-coverage" ,python-coverage)
18862 ("python-pytest" ,python-pytest)))
18864 `(("python-editdistance" ,python-editdistance)))
18865 (home-page "https://github.com/chriskuehl/identify")
18866 (synopsis "File identification library for Python")
18868 "@code{identify} is a file identification library for Python. Given
18869 a file (or some information about a file), return a set of standardized tags
18870 identifying what the file is.")
18871 (license license:expat)))
18873 (define-public python-tldextract
18875 (name "python-tldextract")
18880 (uri (pypi-uri "tldextract" version))
18883 "1d5s8v6kpsgazyahflhji1cfdcf89rv7l7z55v774bhzvcjp2y99"))))
18884 (build-system python-build-system)
18886 `(("python-pytest" ,python-pytest)
18887 ("python-responses" ,python-responses)))
18889 `(("python-idna" ,python-idna)
18890 ("python-requests" ,python-requests)
18891 ("python-requests-file" ,python-requests-file)))
18893 "https://github.com/john-kurkowski/tldextract")
18895 "Separate the TLD from the registered domain and subdomains of a URL")
18897 "TLDExtract accurately separates the TLD from the registered domain and
18898 subdomains of a URL, using the Public Suffix List. By default, this includes
18899 the public ICANN TLDs and their exceptions. It can optionally support the
18900 Public Suffix List's private domains as well.")
18901 (license license:bsd-3)))
18903 (define-public python2-tldextract
18904 (package-with-python2 python-tldextract))
18906 (define-public python-nodeenv
18908 (name "python-nodeenv")
18912 ;; There's no tarball in PyPI.
18914 (uri (git-reference
18915 (url "https://github.com/ekalinin/nodeenv")
18917 (file-name (git-file-name name version))
18919 (base32 "0y443icx0w7jlzmxmmcm4q8dqfiwgafbb9cp8jpm68mbqxbz40a7"))))
18920 (build-system python-build-system)
18923 (modify-phases %standard-phases
18926 ;; This test fails. It tries to open a network socket.
18927 (invoke "pytest" "-vv" "-k" "not test_smoke"))))))
18929 `(("python-coverage" ,python-coverage)
18930 ("python-mock" ,python-mock)
18931 ("python-pytest" ,python-pytest)))
18932 (home-page "https://ekalinin.github.io/nodeenv/")
18933 (synopsis "Create isolated node.js environments")
18935 "Nodeenv (node.js virtual environment) is a tool to create isolated
18936 node.js environments. It creates an environment that has its own installation
18937 directories, that doesn't share libraries with other node.js virtual
18939 (license license:bsd-3)))
18941 (define-public python-pynamecheap
18943 (name "python-pynamecheap")
18948 (uri (pypi-uri "PyNamecheap" version))
18951 "0wkbwz208j8nfrsmzmclvxg22ymknn0mlz76wbdza9k2bx2zja6l"))))
18952 (build-system python-build-system)
18954 `(("python-requests" ,python-requests)))
18956 "https://github.com/Bemmu/PyNamecheap")
18958 "Namecheap API client in Python")
18960 "PyNamecheap is a Namecheap API client in Python.")
18961 (license license:expat)))
18963 (define-public python2-pynamecheap
18964 (package-with-python2 python-pynamecheap))
18966 (define-public python-dns-lexicon
18968 (name "python-dns-lexicon")
18973 (uri (pypi-uri "dns-lexicon" version))
18976 "0jdn3ns71bsybr7njgsqr9xlxsqh7zh6phn4ld0liazqdn2l5f6m"))))
18977 (build-system python-build-system)
18979 `(#:tests? #f)) ;requires internet access
18981 `(("python-future" ,python-future)
18982 ("python-pynamecheap" ,python-pynamecheap)
18983 ("python-requests" ,python-requests)
18984 ("python-tldextract" ,python-tldextract)
18985 ("python-urllib3" ,python-urllib3)))
18986 (home-page "https://github.com/AnalogJ/lexicon")
18988 "Manipulate DNS records on various DNS providers")
18990 "Lexicon provides a way to manipulate DNS records on multiple DNS
18991 providers in a standardized way. It has a CLI but it can also be used as a
18992 Python library. It was designed to be used in automation, specifically with
18994 (license license:expat)))
18996 (define-public python2-dns-lexicon
18997 (package-with-python2 python-dns-lexicon))
18999 (define-public python-cfgv
19001 (name "python-cfgv")
19005 ;; There are no tests in the PyPI tarball.
19007 (uri (git-reference
19008 (url "https://github.com/asottile/cfgv")
19009 (commit (string-append "v" version))))
19010 (file-name (git-file-name name version))
19012 (base32 "1vvkkqw92sak4b28bpscpppq483amy52ch2yqy1i2m23q7xjkabx"))))
19013 (build-system python-build-system)
19016 (modify-phases %standard-phases
19019 (invoke "pytest" "-vv"))))))
19021 `(("python-covdefaults" ,python-covdefaults)
19022 ("python-coverage" ,python-coverage)
19023 ("python-pytest" ,python-pytest)))
19024 (home-page "https://github.com/asottile/cfgv")
19025 (synopsis "Configuration validation library")
19027 "This library helps to validate configuration files and produce human
19028 readable error messages.")
19029 (license license:expat)))
19031 (define-public python-commandlines
19033 (name "python-commandlines")
19038 (uri (pypi-uri "commandlines" version))
19041 "0r7xcr0knv02p4mswa2bng61nn8nbhhrs6kvdnb9bb3hhjvm1dl6"))))
19042 (build-system python-build-system)
19043 (home-page "https://github.com/chrissimpkins/commandlines")
19044 (synopsis "Command line argument to object parsing library")
19046 "@code{Commandlines} is a Python library for command line application
19047 development that supports command line argument parsing, command string
19048 validation testing and application logic.")
19049 (license license:expat)))
19051 ;; Make sure to upgrade python-llvmlite in (gnu packages llvm) together with
19052 ;; python-numba. They have a very unflexible relationship.
19053 (define-public python-numba
19055 (name "python-numba")
19060 (uri (pypi-uri "numba" version))
19063 "0s0777m8kq4l96i88zj78np7283v1n4878qfc1gvzb8l45bmkg8n"))))
19064 (build-system python-build-system)
19067 (modify-phases %standard-phases
19068 (add-after 'unpack 'disable-proprietary-features
19070 (setenv "NUMBA_DISABLE_HSA" "1")
19071 (setenv "NUMBA_DISABLE_CUDA" "1")
19074 (lambda* (#:key inputs outputs #:allow-other-keys)
19075 (add-installed-pythonpath inputs outputs)
19076 ;; Something is wrong with the PYTHONPATH when running the
19077 ;; tests from the build directory, as it complains about not being
19078 ;; able to import certain modules.
19079 (with-directory-excursion "/tmp"
19080 (setenv "HOME" (getcwd))
19081 (invoke "python3" "-m" "numba.runtests" "-v" "-m")))))))
19083 `(("python-llvmlite" ,python-llvmlite)
19084 ("python-numpy" ,python-numpy)
19085 ("python-singledispatch" ,python-singledispatch)))
19086 (native-inputs ;for tests
19087 `(("python-jinja2" ,python-jinja2)
19088 ("python-pygments" ,python-pygments)))
19089 (home-page "https://numba.pydata.org")
19090 (synopsis "Compile Python code using LLVM")
19091 (description "Numba gives you the power to speed up your applications with
19092 high performance functions written directly in Python. With a few
19093 annotations, array-oriented and math-heavy Python code can be just-in-time
19094 compiled to native machine instructions, similar in performance to C, C++ and
19095 Fortran, without having to switch languages or Python interpreters.
19097 Numba works by generating optimized machine code using the LLVM compiler
19098 infrastructure at import time, runtime, or statically (using the included pycc
19100 (license license:bsd-3)))
19102 (define-public python-numcodecs
19104 (name "python-numcodecs")
19109 (uri (pypi-uri "numcodecs" version))
19112 "0kbfr8pl3x9glsypbq8hzim003f16ml1b1cvgrh4w1sdvgal6j7g"))))
19113 (build-system python-build-system)
19115 `(("python-numpy" ,python-numpy)
19116 ("python-msgpack" ,python-msgpack)))
19118 `(("python-pytest" ,python-pytest)
19119 ("python-setuptools-scm" ,python-setuptools-scm)))
19120 (home-page "https://github.com/zarr-developers/numcodecs")
19121 (synopsis "Buffer compression and transformation codecs")
19123 "This Python package provides buffer compression and transformation
19124 codecs for use in data storage and communication applications.")
19125 (license license:expat)))
19127 (define-public python-asciitree
19129 (name "python-asciitree")
19134 (uri (pypi-uri "asciitree" version))
19137 "0vhgri2m2xlnibhz4xwn4hpbc7xacisxjqrk6k5kyppq96vbk92a"))))
19138 (build-system python-build-system)
19139 (home-page "https://github.com/mbr/asciitree")
19140 (synopsis "Draws ASCII trees")
19141 (description "This package draws tree structures using characters.")
19142 (license license:expat)))
19144 (define-public python-zarr
19146 (name "python-zarr")
19151 (uri (pypi-uri "zarr" version))
19154 "026n3sjzjv2gmwx6y72b8ij0hk42bc8zdbvfj5gdqzd4i6wj3ajk"))))
19155 (build-system python-build-system)
19158 (modify-phases %standard-phases
19159 (add-after 'unpack 'disable-service-tests
19161 (setenv "ZARR_TEST_ABS" "0")
19162 (setenv "ZARR_TEST_MONGO" "0")
19163 (setenv "ZARR_TEST_REDIS" "0")
19167 (invoke "pytest" "-vv" "-k" "not lmdb")
19170 `(("python-asciitree" ,python-asciitree)
19171 ("python-fasteners" ,python-fasteners)
19172 ("python-numcodecs" ,python-numcodecs)
19173 ("python-numpy" ,python-numpy)))
19175 `(("python-pytest" ,python-pytest)
19176 ("python-setuptools-scm" ,python-setuptools-scm)))
19177 (home-page "https://github.com/zarr-developers/zarr-python")
19178 (synopsis "Chunked, compressed, N-dimensional arrays for Python")
19180 "This package provides an implementation of chunked, compressed,
19181 N-dimensional arrays for Python.")
19182 (license license:expat)))
19184 (define-public python-anndata
19186 (name "python-anndata")
19191 (uri (pypi-uri "anndata" version))
19194 "0rnfbpr55j1a1bi2kd4mz444741hrn74kz90h5rnjr59jmpfnh09"))))
19195 (build-system python-build-system)
19198 (modify-phases %standard-phases
19199 (add-after 'unpack 'delete-inconvenient-tests
19201 ;; This test depends on python-scikit-learn.
19202 (delete-file "anndata/tests/test_inplace_subset.py")
19205 (add-after 'install 'check
19206 (lambda* (#:key inputs outputs #:allow-other-keys)
19207 (add-installed-pythonpath inputs outputs)
19208 (invoke "pytest" "-vv"))))))
19210 `(("python-h5py" ,python-h5py)
19211 ("python-importlib-metadata" ,python-importlib-metadata)
19212 ("python-natsort" ,python-natsort)
19213 ("python-numcodecs" ,python-numcodecs)
19214 ("python-packaging" ,python-packaging)
19215 ("python-pandas" ,python-pandas)
19216 ("python-scipy" ,python-scipy)
19217 ("python-zarr" ,python-zarr)))
19219 `(("python-joblib" ,python-joblib)
19220 ("python-pytest" ,python-pytest)
19221 ("python-setuptools-scm" ,python-setuptools-scm)))
19222 (home-page "https://github.com/theislab/anndata")
19223 (synopsis "Annotated data for data analysis pipelines")
19224 (description "Anndata is a package for simple (functional) high-level APIs
19225 for data analysis pipelines. In this context, it provides an efficient,
19226 scalable way of keeping track of data together with learned annotations and
19227 reduces the code overhead typically encountered when using a mostly
19228 object-oriented library such as @code{scikit-learn}.")
19229 (license license:bsd-3)))
19231 (define-public python-dill
19233 (name "python-dill")
19234 (version "0.3.1.1")
19238 (uri (pypi-uri "dill" version))
19240 (base32 "1704g8z70d210ksgbccs2v545v9w0wc6lx15m296alb7jf0yzn22"))))
19241 (build-system python-build-system)
19244 (modify-phases %standard-phases
19247 (with-directory-excursion "/tmp"
19248 (invoke "nosetests" "-v"))
19251 `(("python-nose" ,python-nose)))
19252 (home-page "https://pypi.org/project/dill/")
19253 (synopsis "Serialize all of Python")
19254 (description "Dill extends Python's @code{pickle} module for serializing
19255 and de-serializing Python objects to the majority of the built-in Python
19256 types. Dill provides the user the same interface as the @code{pickle} module,
19257 and also includes some additional features. In addition to pickling Python
19258 objects, @code{dill} provides the ability to save the state of an interpreter
19259 session in a single command. Hence, it would be feasible to save a
19260 interpreter session, close the interpreter, ship the pickled file to another
19261 computer, open a new interpreter, unpickle the session and thus continue from
19262 the saved state of the original interpreter session.")
19263 (license license:bsd-3)))
19265 (define-public python-multiprocess
19267 (name "python-multiprocess")
19272 (uri (pypi-uri "multiprocess" version))
19275 "1r882nvd44xqwbrclwqx5rhs80l6809rcvpc7pkpgnij06cvvmcz"))))
19276 (build-system python-build-system)
19279 (modify-phases %standard-phases
19280 (add-after 'unpack 'disable-broken-tests
19282 ;; This test is broken as there is no keyboard interrupt.
19283 (substitute* "py3.7/multiprocess/tests/__init__.py"
19284 (("^(.*)def test_wait_result"
19286 (string-append indent
19287 "@unittest.skip(\"Disabled by Guix\")\n"
19290 ;; Tests must be run after installation.
19292 (add-after 'install 'check
19293 (lambda* (#:key inputs outputs #:allow-other-keys)
19294 (add-installed-pythonpath inputs outputs)
19295 (invoke "python" "-m" "multiprocess.tests")
19298 `(("python-dill" ,python-dill)))
19299 (home-page "https://pypi.org/project/multiprocess/")
19300 (synopsis "Multiprocessing and multithreading in Python")
19302 "This package is a fork of the multiprocessing Python package, a package
19303 which supports the spawning of processes using the API of the standard
19304 library's @code{threading} module.")
19305 (license license:bsd-3)))
19307 (define-public python-toolz
19309 (name "python-toolz")
19314 (uri (pypi-uri "toolz" version))
19317 "1j9i7fdjnx9dz35fdj5gvgxx6585ja9sxgaiv65if77nlxz0m7wj"))))
19318 (build-system python-build-system)
19319 ;; FIXME: tests cannot be computed: "Can't perform this operation for
19320 ;; unregistered loader type"
19321 (arguments '(#:tests? #f))
19322 (home-page "https://github.com/pytoolz/toolz/")
19323 (synopsis "List processing tools and functional utilities")
19325 "This package provides a set of utility functions for iterators,
19326 functions, and dictionaries.")
19327 (license license:bsd-3)))
19329 (define-public python2-toolz
19330 (package-with-python2 python-toolz))
19332 (define-public python-cytoolz
19334 (name "python-cytoolz")
19335 (version "0.9.0.1")
19339 (uri (pypi-uri "cytoolz" version))
19342 "1r80p88hm3f3r4zpixzr047y5hw4bzy41m4xywnhycda83x0dk44"))))
19343 (build-system python-build-system)
19344 ;; FIXME: tests fail with "module 'cytoolz.curried' has no attribute
19346 (arguments '(#:tests? #f))
19348 `(("python-toolz" ,python-toolz)))
19350 `(("python-cython" ,python-cython)))
19351 (home-page "https://github.com/pytoolz/cytoolz")
19352 (synopsis "High performance functional utilities")
19354 "The cytoolz package implements the same API as provided by toolz. The
19355 main differences are that @code{cytoolz} is faster and cytoolz offers a C API
19356 that is accessible to other projects developed in Cython.")
19357 (license license:bsd-3)))
19359 (define-public python-sortedcontainers
19361 (name "python-sortedcontainers")
19366 (uri (pypi-uri "sortedcontainers" version))
19369 "0fm0w5id2yhqld95hg2m636vjgkz377rvgdfqaxc25vbylr9lklp"))))
19370 (build-system python-build-system)
19372 ;; FIXME: Tests require many extra dependencies, and would introduce
19373 ;; a circular dependency on hypothesis, which uses this package.
19376 `(("python-appdirs" ,python-appdirs)
19377 ("python-distlib" ,python-distlib)
19378 ("python-filelock" ,python-filelock)
19379 ("python-six" ,python-six-bootstrap)))
19380 (home-page "http://www.grantjenks.com/docs/sortedcontainers/")
19381 (synopsis "Sorted List, Sorted Dict, Sorted Set")
19383 "This package provides a sorted collections library, written in
19385 (license license:asl2.0)))
19387 (define-public python2-sortedcontainers
19388 (package-with-python2 python-sortedcontainers))
19390 (define-public python-cloudpickle
19392 (name "python-cloudpickle")
19397 (uri (pypi-uri "cloudpickle" version))
19400 "0lx7gy9clp427qwcm7b23zdsldpr03gy3vxxhyi8fpbhwz859brq"))))
19401 (build-system python-build-system)
19403 '(#:phases (modify-phases %standard-phases
19404 (add-before 'check 'do-not-override-PYTHONPATH
19406 ;; Append to PYTHONPATH instead of overriding it so
19407 ;; that dependencies from Guix can be found.
19408 (substitute* "tests/testutils.py"
19409 (("env\\['PYTHONPATH'\\] = pythonpath")
19410 "env['PYTHONPATH'] += os.pathsep + pythonpath"))
19413 (lambda* (#:key tests? #:allow-other-keys)
19415 (invoke "pytest" "-s" "-vv")
19416 (format #t "test suite not run~%"))
19420 ("python-psutil" ,python-psutil)
19421 ("python-pytest" ,python-pytest)
19422 ("python-tornado" ,python-tornado)))
19423 (home-page "https://github.com/cloudpipe/cloudpickle")
19424 (synopsis "Extended pickling support for Python objects")
19426 "Cloudpickle makes it possible to serialize Python constructs not
19427 supported by the default pickle module from the Python standard library. It
19428 is especially useful for cluster computing where Python expressions are
19429 shipped over the network to execute on remote hosts, possibly close to the
19431 (properties `((python2-variant . ,(delay python2-cloudpickle))))
19432 (license license:bsd-3)))
19434 (define-public python2-cloudpickle
19435 (let ((base (package-with-python2 (strip-python2-variant python-cloudpickle))))
19439 `(("python-mock" ,python2-mock)
19440 ,@(package-native-inputs base)))
19442 `(("python-futures" ,python2-futures)
19443 ,@(package-propagated-inputs base))))))
19445 (define-public python-locket
19447 (name "python-locket")
19452 (uri (pypi-uri "locket" version))
19455 "1d4z2zngrpqkrfhnd4yhysh66kjn4mblys2l06sh5dix2p0n7vhz"))))
19456 (build-system python-build-system)
19457 (home-page "https://github.com/mwilliamson/locket.py")
19458 (synopsis "File-based locks for Python")
19460 "Locket implements a lock that can be used by multiple processes provided
19461 they use the same path.")
19462 (license license:bsd-2)))
19464 (define-public python2-locket
19465 (package-with-python2 python-locket))
19467 (define-public python-blosc
19469 (name "python-blosc")
19474 (uri (pypi-uri "blosc" version))
19477 "1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw"))))
19478 (build-system python-build-system)
19479 ;; FIXME: all tests pass, but then this error is printed:
19480 ;; TypeError: calling <function run at 0x7ffff2568d90> returned None, not a test
19481 (arguments '(#:tests? #f))
19483 `(("python-numpy" ,python-numpy)))
19484 (home-page "https://github.com/blosc/python-blosc")
19485 (synopsis "Python wrapper for the Blosc data compressor library")
19486 (description "Blosc is a high performance compressor optimized for binary
19487 data. It has been designed to transmit data to the processor cache faster
19488 than the traditional, non-compressed, direct memory fetch approach via a
19489 @code{memcpy()} system call.
19491 Blosc works well for compressing numerical arrays that contains data with
19492 relatively low entropy, like sparse data, time series, grids with
19493 regular-spaced values, etc.
19495 This Python package wraps the Blosc library.")
19496 (license license:bsd-3)))
19498 (define-public python2-blosc
19499 (package-with-python2 python-blosc))
19501 (define-public python-partd
19503 (name "python-partd")
19508 (uri (pypi-uri "partd" version))
19511 "0sz6rwlnl4fqq220pyz863cnv0gjdxl4m7lscl71ishl5z0xkmhz"))))
19512 (build-system python-build-system)
19514 `(("python-blosc" ,python-blosc)
19515 ("python-locket" ,python-locket)
19516 ("python-numpy" ,python-numpy)
19517 ("python-pandas" ,python-pandas)
19518 ("python-pyzmq" ,python-pyzmq)
19519 ("python-toolz" ,python-toolz)))
19520 (home-page "https://github.com/dask/partd/")
19521 (synopsis "Appendable key-value storage")
19522 (description "Partd stores key-value pairs. Values are raw bytes. We
19523 append on old values. Partd excels at shuffling operations.")
19524 (license license:bsd-3)))
19526 (define-public python2-partd
19527 (package-with-python2 python-partd))
19529 (define-public python-fsspec
19531 (name "python-fsspec")
19536 (uri (pypi-uri "fsspec" version))
19539 "1g9ba8v04s1nrh7pvzfm2md7ivl2mrz3hcq3y9d1a44gd62h17zj"))))
19540 (build-system python-build-system)
19541 (arguments '(#:tests? #f)) ; there are none
19542 (home-page "https://github.com/intake/filesystem_spec")
19543 (synopsis "File-system specification")
19544 (description "The purpose of this package is to produce a template or
19545 specification for a file-system interface, that specific implementations
19546 should follow, so that applications making use of them can rely on a common
19547 behavior and not have to worry about the specific internal implementation
19548 decisions with any given backend.")
19549 (license license:bsd-3)))
19551 (define-public python-dask
19553 (name "python-dask")
19558 (uri (pypi-uri "dask" version))
19560 (base32 "031j0j26s0675v0isyps2dphm03330n7dy8ifdy70jgvf78d119q"))))
19561 (build-system python-build-system)
19564 (modify-phases %standard-phases
19565 (add-after 'unpack 'disable-broken-tests
19567 ;; This test is marked as xfail when pytest-xdist is used.
19568 (substitute* "dask/tests/test_threaded.py"
19569 (("def test_interrupt\\(\\)" m)
19570 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
19572 ;; This one fails with a type error:
19573 ;; TypeError: Already tz-aware, use tz_convert to convert.
19574 (substitute* "dask/dataframe/tests/test_shuffle.py"
19575 (("def test_set_index_timestamp\\(\\)" m)
19576 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
19580 (lambda _ (invoke "pytest" "-vv"))))))
19582 `(("python-cloudpickle" ,python-cloudpickle)
19583 ("python-fsspec" ,python-fsspec)
19584 ("python-numpy" ,python-numpy)
19585 ("python-packaging" ,python-packaging)
19586 ("python-pandas" ,python-pandas)
19587 ("python-partd" ,python-partd)
19588 ("python-toolz" ,python-toolz)
19589 ("python-pyyaml" ,python-pyyaml)))
19591 `(("python-pytest" ,python-pytest)
19592 ("python-pytest-runner" ,python-pytest-runner)))
19593 (home-page "https://github.com/dask/dask/")
19594 (synopsis "Parallel computing with task scheduling")
19596 "Dask is a flexible parallel computing library for analytics. It
19597 consists of two components: dynamic task scheduling optimized for computation,
19598 and large data collections like parallel arrays, dataframes, and lists that
19599 extend common interfaces like NumPy, Pandas, or Python iterators to
19600 larger-than-memory or distributed environments. These parallel collections
19601 run on top of the dynamic task schedulers. ")
19602 (license license:bsd-3)))
19604 (define-public python-ilinkedlist
19606 (name "python-ilinkedlist")
19611 (uri (pypi-uri "ilinkedlist" version))
19614 "0nrw4sr3afldrp7073hvc0rgdz282s0l819jdmj1i6nn05v33h0l"))))
19615 (build-system python-build-system)
19616 (native-inputs `(("python-pytest" ,python-pytest)))
19617 (inputs `(("python" ,python)))
19618 (home-page "https://github.com/luther9/ilinkedlist-py")
19619 (synopsis "Immutable linked list library")
19621 "This is a implementation of immutable linked lists for Python. It
19622 contains @code{nil} (the empty linked list) and a @code{Pair} class for nodes.
19623 Since a linked list is treated as immutable, it is hashable, and its length
19624 can be retrieved in constant time. Some of the terminology is inspired by
19625 LISP. It is possible to create an improper list by creating a @code{Pair}
19626 with a non-list @code{cdr}.")
19627 (license license:gpl3+)))
19629 (define-public python-readlike
19631 (name "python-readlike")
19636 (uri (pypi-uri "readlike" version))
19638 (base32 "027w8fvi50ksl57q0a7kb5zvmq8jxaawnviib1jdqw0p3igvm1j4"))))
19639 (build-system python-build-system)
19640 (home-page "https://github.com/jangler/readlike")
19641 (synopsis "GNU Readline-like line editing module")
19643 "This Python module provides line editing functions similar to the default
19644 Emacs-style ones of GNU Readline. Unlike the Python standard library's
19645 @code{readline} package, this one allows access to those capabilities in settings
19646 outside of a standard command-line interface. It is especially well-suited to
19647 interfacing with Urwid, due to a shared syntax for describing key inputs.
19649 Currently, all stateless Readline commands are implemented. Yanking and history
19650 are not supported.")
19651 (license license:expat)))
19653 (define-public python2-readlike
19654 (package-with-python2 python-readlike))
19656 (define-public python-reparser
19658 (name "python-reparser")
19663 (uri (pypi-uri "ReParser" version))
19665 (base32 "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776"))))
19666 (build-system python-build-system)
19667 (home-page "https://github.com/xmikos/reparser")
19668 (synopsis "Simple lexer/parser for inline markup based on regular expressions")
19670 "This Python library provides a simple lexer/parser for inline markup based
19671 on regular expressions.")
19672 (license license:expat)))
19674 (define-public python2-reparser
19675 (let ((reparser (package-with-python2
19676 (strip-python2-variant python-reparser))))
19677 (package (inherit reparser)
19679 `(("python2-enum34" ,python2-enum34)
19680 ,@(package-propagated-inputs reparser))))))
19682 (define-public python-retrying
19684 (name "python-retrying")
19689 (uri (git-reference
19690 (url "https://github.com/rholder/retrying")
19691 (commit (string-append "v" version))))
19692 (file-name (git-file-name name version))
19695 "1kqipkbdaw5s1xg0gi29awm03vp1x8dz24pjidgxagvkvrjpzhi7"))))
19696 (build-system python-build-system)
19698 `(("python-six" ,python-six)))
19699 (home-page "https://github.com/rholder/retrying")
19700 (synopsis "Library for adding retry behavior")
19701 (description "Retrying is a general-purpose retrying library to simplify
19702 the task of adding retry behavior to just about anything.
19707 @item Generic Decorator API.
19708 @item Specify stop condition (i.e. limit by number of attempts).
19709 @item Specify wait condition (i.e. exponential backoff sleeping between attempts).
19710 @item Customize retrying on Exceptions.
19711 @item Customize retrying on expected returned result.
19713 (license license:asl2.0)))
19715 (define-public python-precis-i18n
19717 (name "python-precis-i18n")
19722 (uri (pypi-uri "precis_i18n" version))
19725 "0gjhvwd8aifx94rl1ag08vlmndyx2q3fkyqb0c4i46x3p2bc2yi2"))))
19726 (build-system python-build-system)
19727 (home-page "https://github.com/byllyfish/precis_i18n")
19728 (synopsis "Implementation of the PRECIS framework")
19730 "This module implements the PRECIS Framework as described in RFC 8264,
19731 RFC 8265 and RFC 8266.")
19732 (license license:expat)))
19734 (define-public python-absl-py
19736 (name "python-absl-py")
19741 (uri (pypi-uri "absl-py" version))
19744 "1mp9lk0b2qa37b7y6ak4lvf6ifw2ylyy6bkf9ik77md3j4xrwlc7"))))
19745 (build-system python-build-system)
19747 `(("python-six" ,python-six)))
19748 (home-page "https://github.com/abseil/abseil-py")
19749 (synopsis "Abseil Python common libraries")
19751 "This package provides the Abseil Python Common Libraries, a collection
19752 of Python libraries for building Python applications.")
19753 (license license:asl2.0)))
19755 (define-public python-astor
19757 (name "python-astor")
19762 (uri (pypi-uri "astor" version))
19765 "13gv6f2xz9i564byp21gcpc0l3w4cs23k1wbcam8kky2ls3hvhwm"))))
19766 (build-system python-build-system)
19767 ;; FIXME: There are two errors and two test failures.
19768 (arguments `(#:tests? #f))
19769 (home-page "https://github.com/berkerpeksag/astor")
19770 (synopsis "Read and write Python ASTs")
19771 (description "Astor is designed to allow easy manipulation of Python
19772 source via the Abstract Syntax Tree.")
19773 (license license:bsd-3)))
19775 (define-public python2-astor
19776 (package-with-python2 python-astor))
19778 (define-public python-astunparse
19780 (name "python-astunparse")
19785 (uri (pypi-uri "astunparse" version))
19787 (base32 "0rzbc44xcvzjhhiy7wac96mgal5mcjz1mfq8rmvgswskf4kf9cys"))))
19788 (build-system python-build-system)
19789 (arguments '(#:tests? #f)) ; there are none
19791 `(("python-six" ,python-six)
19792 ("python-wheel" ,python-wheel)))
19793 (home-page "https://github.com/simonpercivall/astunparse")
19794 (synopsis "AST unparser for Python")
19795 (description "This package provides an AST unparser for Python. It is a
19796 factored out version of @code{unparse} found in the Python source
19798 (license license:bsd-3)))
19800 (define-public python-gast
19802 (name "python-gast")
19807 (uri (pypi-uri "gast" version))
19809 (base32 "0mrvvfzqafj1wzd0xxfmjf4vphnlxypbhpic1m283aj9i8lfz0dq"))))
19810 (build-system python-build-system)
19812 `(("python-astunparse" ,python-astunparse)))
19813 (home-page "https://pypi.org/project/gast/")
19814 (synopsis "Generic Python AST that abstracts the underlying Python version")
19816 "GAST provides a compatibility layer between the AST of various Python
19817 versions, as produced by @code{ast.parse} from the standard @code{ast}
19819 (license license:bsd-3)))
19821 (define-public python-wikidata
19823 (name "python-wikidata")
19828 (uri (pypi-uri "Wikidata" version))
19831 "08nlnydddfp1jj0cdmshvld1irzngbp3dij928wqsg9ziklm6mw9"))))
19832 (build-system python-build-system)
19834 `(("python-babel" ,python-babel)))
19835 (home-page "https://github.com/dahlia/wikidata")
19836 (synopsis "Wikidata client library")
19838 "This package provides a Python interface to
19839 @url{https://www.wikidata.org/, Wikidata}.")
19840 (properties '((upstream-name . "Wikidata")))
19841 (license license:gpl3+)))
19843 (define-public python-doctest-ignore-unicode
19845 (name "python-doctest-ignore-unicode")
19850 (uri (pypi-uri "doctest-ignore-unicode" version))
19853 "1m9aa4qnyj21lbq4sbvmv1vcz7zksss4rz37ddf2hxv4hk8b547w"))))
19854 (build-system python-build-system)
19856 `(("python-nose" ,python-nose)))
19857 (home-page "https://github.com/gnublade/doctest-ignore-unicode")
19858 (synopsis "Ignore Unicode literal prefixes in doctests")
19860 "This package adds support for a flag to ignore Unicode literal prefixes
19862 (license license:asl2.0)))
19864 (define-public python-attr
19866 (name "python-attr")
19871 (uri (pypi-uri "attr" version))
19874 "0pbpskvxp5hzdvcaf766ljwpckshir8sf7z6jqji6zyib20594ch"))))
19875 (build-system python-build-system)
19876 (home-page "https://github.com/denis-ryzhkov/attr")
19877 (synopsis "Decorator for attributes of target function or class")
19878 (description "Simple decorator to set attributes of target function or
19879 class in a @acronym{DRY, Don't Repeat Yourself} way.")
19880 (license license:expat)))
19882 (define-public python-construct
19884 (name "python-construct")
19885 (version "2.10.56")
19889 (uri (pypi-uri "construct" version))
19892 "0q86jjzsvy835h3c8pjj4619vbp7ihfg8njmyw86ym4qrpni7flp"))))
19893 (build-system python-build-system)
19895 `(#:tests? #f)) ; No tests exist.
19897 `(("python-extras" ,python-extras)
19898 ("python-arrow" ,python-arrow)
19899 ("python-numpy" ,python-numpy)
19900 ("python-ruamel.yaml" ,python-ruamel.yaml)))
19901 (home-page "https://construct.readthedocs.io")
19902 (synopsis "Declarative and symmetrical parser and builder for binary data")
19904 "This package provides both simple, atomic constructs (such as
19905 integers of various sizes), as well as composite ones which allow you
19906 form hierarchical and sequential structures of increasing complexity.
19907 It features bit and byte granularity, easy debugging and testing, an
19908 easy-to-extend subclass system, and lots of primitive constructs to
19909 make your work easier.")
19910 (license license:expat)))
19912 (define-public python-outcome
19914 (name "python-outcome")
19919 (uri (pypi-uri "outcome" version))
19921 (base32 "0vxn04vspmlkkyijjkjnsc46f93ki8g62hr7ag10zpd7ic324y7w"))))
19922 (build-system python-build-system)
19925 (modify-phases %standard-phases
19927 (lambda* (#:key inputs outputs #:allow-other-keys)
19928 (add-installed-pythonpath inputs outputs)
19929 (invoke "pytest" "-vv"))))))
19931 `(("python-pytest" ,python-pytest)
19932 ("python-pytest-cov" ,python-pytest-cov)
19933 ("python-pytest-asyncio" ,python-pytest-asyncio)))
19935 `(("python-async-generator" ,python-async-generator)
19936 ("python-attrs" ,python-attrs)))
19937 (home-page "https://github.com/python-trio/outcome")
19938 (synopsis "Capture the outcome of Python function calls")
19940 "Capture the outcome of Python function calls. Extracted from the Trio
19942 ;; Either license applies.
19943 (license (list license:expat license:asl2.0))))
19945 (define-public python-trio
19947 (name "python-trio")
19952 (uri (pypi-uri "trio" version))
19954 (base32 "0zcxirpdvvl54pbfkgw7vz984879xwvdygqfpggnam24is2zjp78"))))
19955 (build-system python-build-system)
19958 (modify-phases %standard-phases
19959 (add-before 'check 'change-home
19961 ;; Tests require a writable home.
19962 (setenv "HOME" "/tmp")
19966 (invoke "pytest" "-vv" "-k"
19968 ;; This test times out.
19969 "not test_ki_protection_works"
19970 ;; Assertion errors.
19971 " and not test_guest_mode_ki"
19972 " and not test_run_in_trio_thread_ki"
19973 ;; These try to raise KeyboardInterrupt which does not work
19974 ;; in the build environment.
19975 " and not test_ki_self"
19976 " and not test_ki_wakes_us_up"
19977 ;; Failure in name resolution.
19978 " and not test_getnameinfo"
19979 " and not test_SocketType_resolve"
19980 ;; OSError: protocol not found.
19981 " and not test_getprotobyname")))))))
19983 `(("python-astor" ,python-astor)
19984 ("python-ipython" ,python-ipython)
19985 ("python-jedi" ,python-jedi)
19986 ("python-pylint" ,python-pylint)
19987 ("python-pyopenssl" ,python-pyopenssl)
19988 ("python-pytest" ,python-pytest)
19989 ("python-pytest-cov" ,python-pytest-cov)
19990 ("python-trustme" ,python-trustme)))
19992 `(("python-attrs" ,python-attrs)
19993 ("python-idna" ,python-idna)
19994 ("python-outcome" ,python-outcome)
19995 ("python-sniffio" ,python-sniffio)
19996 ("python-sortedcontainers"
19997 ,python-sortedcontainers)))
19998 (home-page "https://github.com/python-trio/trio")
19999 (synopsis "Friendly Python library for async concurrency and I/O")
20001 "Trio strives to be a production-quality, async/await-native I/O library
20002 for Python. Like all async libraries, its main purpose is to help you write
20003 programs that do multiple things at the same time with parallelized I/O.")
20004 ;; Either license applies.
20005 (license (list license:expat license:asl2.0))))
20007 (define-public python-trio-typing
20009 (name "python-trio-typing")
20014 (uri (pypi-uri "trio-typing" version))
20016 (base32 "1yvlj4vf3wyvp16dw6vyfm4i2idm8lvdc3fvjhi6mhm62zv7s07j"))))
20017 (build-system python-build-system)
20020 (modify-phases %standard-phases
20023 (invoke "pytest" "-vv"))))))
20025 `(("python-attrs" ,python-attrs)
20026 ("python-pytest" ,python-pytest)))
20028 `(("python-mypy" ,python-mypy)
20029 ("python-mypy-extensions"
20030 ,python-mypy-extensions)
20031 ("python-trio" ,python-trio)
20032 ("python-typing-extensions"
20033 ,python-typing-extensions)))
20034 (home-page "https://github.com/python-trio/trio-typing")
20035 (synopsis "Static type checking support for Trio and related projects")
20037 "This package provides:
20040 @item PEP 561 typing stubs packages for the Trio project packages:
20043 @item trio (@code{trio-stubs})
20044 @item outcome (@code{outcome-stubs})
20045 @item async_generator (@code{async_generator-stubs})
20048 @item A package @code{trio_typing} containing types that Trio programs often
20049 want to refer to (@code{AsyncGenerator[Y, S]} and @code{TaskStatus[T])} and
20050 a mypy plugin that smooths over some limitations in the basic type hints.
20052 ;; Either license applies.
20053 (license (list license:expat license:asl2.0))))
20055 (define-public python-humanize
20057 (name "python-humanize")
20062 (uri (pypi-uri "humanize" version))
20065 "06dvhm3k8lf2rayn1gxbd46y0fy1db26m3h9vrq7rb1ib08mfgx4"))))
20067 '(#:tests? #f)) ; tests not in pypi archive
20068 (build-system python-build-system)
20069 (home-page "https://github.com/jmoiron/humanize")
20070 (synopsis "Print numerical information in a human-readable form")
20071 (description "This package provides a Python module that displays numbers
20072 and dates in \"human readable\" forms. For example, it would display
20073 \"12345591313\" as \"12.3 billion\".")
20074 (license license:expat)))
20076 (define-public python-txaio
20078 (name "python-txaio")
20083 (uri (pypi-uri "txaio" version))
20086 "1zmpdph6zddgrnkkcykh6qk5s46l7s5mzfqrh82m4b5iffn61qv7"))))
20087 (build-system python-build-system)
20089 `(("python-twisted" ,python-twisted)
20090 ("python-six" ,python-six)))
20091 (home-page "https://github.com/crossbario/txaio")
20092 (synopsis "Compatibility layer between Python asyncio and Twisted")
20093 (description "Txaio provides a compatibility layer between the Python
20094 @code{asyncio} module and @code{Twisted}.")
20095 (license license:expat)))
20097 (define-public python-toolshed
20099 (name "python-toolshed")
20104 (uri (pypi-uri "toolshed" version))
20107 "14zvz51gzf9i1i3d1sj363ba4rksl6lcf4lz1arl8hpqgcbir8r3"))))
20108 (build-system python-build-system)
20110 `(("python-nose" ,python-nose)))
20111 (home-page "https://github.com/brentp/toolshed/")
20112 (synopsis "Collection of modules and functions for working with data")
20113 (description "This is a collection of well-tested, simple modules and
20114 functions that aim to reduce boilerplate when working with data.")
20115 (license license:bsd-2)))
20117 (define-public python-annoy
20119 (name "python-annoy")
20124 (uri (pypi-uri "annoy" version))
20127 "1rxn6snn0r32r07g45hdjhh8aa1xzx6fjrm8g62d8vzp46z7rzrp"))))
20128 (build-system python-build-system)
20130 `(("python-nose" ,python-nose)))
20131 (home-page "https://github.com/spotify/annoy/")
20132 (synopsis "Approximate nearest neighbors library")
20134 "Annoy is a C++ library with Python bindings to search for points in
20135 space that are close to a given query point. It also creates large read-only
20136 file-based data structures that are @code{mmap}ped into memory so that many
20137 processes may share the same data.")
20138 (license license:asl2.0)))
20140 (define-public python-croniter
20142 (name "python-croniter")
20146 (uri (pypi-uri "croniter" version))
20149 "0r79cx4v2dw4hzr0annkkxxis46c8hivq61sr39z6p7lcjsbk1ki"))))
20150 (build-system python-build-system)
20152 `(("python-dateutil" ,python-dateutil)
20153 ("python-natsort" ,python-natsort)))
20154 (home-page "https://github.com/kiorky/croniter")
20155 (synopsis "Iterate datetime objects with cron-like syntax")
20157 "@code{croniter} provides iteration for datetime object with cron-like
20159 (license license:expat)))
20161 (define-public python-pylzma
20163 (name "python-pylzma")
20168 (uri (pypi-uri "pylzma" version))
20171 "074anvhyjgsv2iby2ql1ixfvjgmhnvcwjbdz8gk70xzkzcm1fx5q"))))
20172 (build-system python-build-system)
20173 (home-page "http://www.joachim-bauch.de/projects/pylzma/")
20174 (synopsis "Python bindings for the LZMA library by Igor Pavlov.")
20175 (description "This package provides Python bindings for the LZMA library
20177 (license license:lgpl2.1+)))
20179 (define-public python2-pylzma
20180 (package-with-python2 python-pylzma))
20182 (define-public python2-zeroconf
20184 (name "python2-zeroconf")
20186 ;; This is the last version that supports Python 2.x.
20191 (uri (pypi-uri "zeroconf" version))
20194 "0ykzg730n915qbrq9bn5pn06bv6rb5zawal4sqjyfnjjm66snkj3"))))
20195 (build-system python-build-system)
20197 `(#:python ,python-2
20199 (modify-phases %standard-phases
20200 (add-after 'unpack 'patch-requires
20201 (lambda* (#:key inputs #:allow-other-keys)
20202 (substitute* "setup.py"
20207 `(("python2-six" ,python2-six)
20208 ("python2-enum32" ,python2-enum34)
20209 ("python2-netifaces" ,python2-netifaces)
20210 ("python2-typing" ,python2-typing)))
20211 (home-page "https://github.com/jstasiak/python-zeroconf")
20212 (synopsis "Pure Python mDNS service discovery")
20214 "Pure Python multicast DNS (mDNS) service discovery library (Bonjour/Avahi
20216 (license license:lgpl2.1+)))
20218 (define-public python-bsddb3
20220 (name "python-bsddb3")
20225 (uri (pypi-uri "bsddb3" version))
20228 "019db2y6bfmiqbrgg9x9f6h72qjmqh05czdn2v5sy9bl0gs23mj2"))))
20229 (build-system python-build-system)
20234 (modify-phases %standard-phases
20235 (add-after 'unpack 'configure-locations
20236 (lambda* (#:key inputs #:allow-other-keys)
20237 (setenv "BERKELEYDB_DIR" (assoc-ref inputs "bdb"))
20238 (setenv "YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION" "1")
20242 (invoke "python3" "test3.py" "-v"))))))
20243 (home-page "https://www.jcea.es/programacion/pybsddb.htm")
20244 (synopsis "Python bindings for Oracle Berkeley DB")
20246 "This module provides a nearly complete wrapping of the Oracle/Sleepycat
20247 C API for the Database Environment, Database, Cursor, Log Cursor, Sequence and
20248 Transaction objects, and each of these is exposed as a Python type in the
20249 bsddb3.db module. The database objects can use various access methods: btree,
20250 hash, recno, and queue. Complete support of Berkeley DB distributed
20251 transactions. Complete support for Berkeley DB Replication Manager.
20252 Complete support for Berkeley DB Base Replication. Support for RPC.")
20253 (license license:bsd-3)))
20255 (define-public python-dbfread
20257 (name "python-dbfread")
20261 (uri (pypi-uri "dbfread" version))
20264 "0gdpwdzf1fngsi6jrdyj4qdf6cr7gnnr3zp80dpkzbgz0spskj07"))))
20265 (build-system python-build-system)
20267 `(("python-pytest" ,python-pytest)))
20268 (home-page "https://dbfread.readthedocs.io")
20269 (synopsis "Read DBF Files with Python")
20271 "This library reads DBF files and returns the data as native Python data
20272 types for further processing. It is primarily intended for batch jobs and
20274 (license license:expat)))
20276 (define-public python-cached-property
20278 (name "python-cached-property")
20283 (uri (pypi-uri "cached-property" version))
20286 "010m1bl380l2r3vwq24r5v14l6gwvgm9v0mqqjkjss552jgsa5wj"))))
20287 (build-system python-build-system)
20290 (modify-phases %standard-phases
20291 ;; https://github.com/pydanny/cached-property/issues/131
20292 ;; recent versions of freezegun break one test
20293 (add-after 'unpack 'disable-broken-test
20295 (substitute* "tests/test_cached_property.py"
20296 (("def test_threads_ttl_expiry\\(self\\)" m)
20297 (string-append "@unittest.skip(\"Disabled by Guix\")\n"
20301 `(("python-freezegun" ,python-freezegun)))
20303 "https://github.com/pydanny/cached-property")
20305 "Decorator for caching properties in classes")
20307 "This package provides a decorator which makes caching
20308 time-or-computationally-expensive properties quick and easy and works in Python
20310 (license license:bsd-3)))
20312 (define-public python-folium
20314 (name "python-folium")
20319 (uri (pypi-uri "folium" version))
20321 (base32 "19sclsq3xcjfa7bavzjpyn6rl9b15jbc76n5aag4cwhqqamqj1sl"))))
20322 (build-system python-build-system)
20324 `(("python-branca" ,python-branca)
20325 ("python-jinja2" ,python-jinja2)
20326 ("python-numpy" ,python-numpy)
20327 ("python-requests" ,python-requests)))
20329 `(("python-pytest" ,python-pytest)))
20330 (home-page "https://github.com/python-visualization/folium")
20331 (synopsis "Make beautiful maps with Leaflet.js & Python")
20332 (description "@code{folium} makes it easy to visualize data that’s been
20333 manipulated in Python on an interactive leaflet map. It enables both the
20334 binding of data to a map for @code{choropleth} visualizations as well as
20335 passing rich vector/raster/HTML visualizations as markers on the map.
20337 The library has a number of built-in tilesets from OpenStreetMap, Mapbox, and
20338 Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys. It
20339 supports Image, Video, GeoJSON and TopoJSON overlays.")
20340 (license license:expat)))
20342 (define-public jube
20344 ;; This is a command-line tool, so no "python-" prefix.
20349 (uri (string-append
20350 "http://apps.fz-juelich.de/jsc/jube/jube2/download.php?version="
20354 "0xq4k1q63s1p6swgyp61vahlrd1fqmgbm0gm5kpj8ikwy0yc0nqk"))
20355 (file-name (string-append "jube-" version ".tar.gz"))))
20356 (build-system python-build-system)
20357 (home-page "https://apps.fz-juelich.de/jsc/jube/jube2/docu/index.html")
20358 (synopsis "Benchmarking environment")
20360 "JUBE helps perform and analyze benchmarks in a systematic way. For each
20361 benchmarked application, benchmark data is stored in a format that allows JUBE
20362 to deduct the desired information. This data can be parsed by automatic pre-
20363 and post-processing scripts that draw information and store it more densely
20364 for manual interpretation.")
20365 (license license:gpl3+)))
20367 (define-public python-pyroutelib3
20369 (name "python-pyroutelib3")
20370 (version "1.3.post1")
20374 (uri (pypi-uri "pyroutelib3" version))
20377 "1hpbydpn2alyswiajfbvhzq4c7f36vdmvxy91hgv8l1lb2g2vfrj"))))
20378 (build-system python-build-system)
20380 `(("python-dateutil" ,python-dateutil)))
20381 (home-page "https://github.com/MKuranowski/pyroutelib3")
20382 (synopsis "Library for simple routing on OSM data")
20383 (description "Library for simple routing on OSM data")
20384 (license license:gpl3+)))
20386 (define-public python-bibtexparser
20388 (name "python-bibtexparser")
20393 (uri (pypi-uri "bibtexparser" version))
20396 "0zwhfkrzf3n5847dbnfng92k7ak199l9v6x6ax3dgdidfpm6d2fz"))))
20397 (build-system python-build-system)
20399 `(("python-pyparsing" ,python-pyparsing)))
20401 `(("python-future" ,python-future)))
20402 (home-page "https://github.com/sciunto-org/python-bibtexparser")
20403 (synopsis "Python library to parse BibTeX files")
20404 (description "BibtexParser is a Python library to parse BibTeX files.")
20405 (license (list license:bsd-3 license:lgpl3))))
20407 (define-public python-distro
20409 (name "python-distro")
20414 (uri (pypi-uri "distro" version))
20417 "0mrg75w4ap7mdzyga75yaid9n8bgb345ih5mwjp3plj6v1jxwb9n"))))
20418 (build-system python-build-system)
20420 `(("python-pytest" ,python-pytest)))
20421 (home-page "https://github.com/nir0s/distro")
20423 "OS platform information API")
20425 "@code{distro} provides information about the OS distribution it runs on,
20426 such as a reliable machine-readable ID, or version information.
20428 It is the recommended replacement for Python's original
20429 `platform.linux_distribution` function (which will be removed in Python 3.8).
20430 @code{distro} also provides a command-line interface to output the platform
20431 information in various formats.")
20432 (license license:asl2.0)))
20434 (define-public python-cairosvg
20436 (name "python-cairosvg")
20441 (uri (pypi-uri "CairoSVG" version))
20443 (base32 "1ylsisha2cc4w0yydxwhy7idkfw1inl9fsipxsrm7vyby080vi9z"))))
20444 (build-system python-build-system)
20447 (modify-phases %standard-phases
20449 (lambda _ (invoke "pytest"))))))
20451 `(("python-cairocffi" ,python-cairocffi)
20452 ("python-cssselect2" ,python-cssselect2)
20453 ("python-defusedxml" ,python-defusedxml)
20454 ("python-pillow" ,python-pillow)
20455 ("python-tinycss2" ,python-tinycss2)))
20457 `(("python-pytest-flake8" ,python-pytest-flake8)
20458 ("python-pytest-isort" ,python-pytest-isort)
20459 ("python-pytest-runner" ,python-pytest-runner)))
20460 (home-page "https://cairosvg.org/")
20461 (synopsis "SVG to PDF/PS/PNG converter based on Cairo")
20462 (description "CairoSVG is a SVG converter based on Cairo. It can export
20463 SVG files to PDF, PostScript and PNG files. The main part of CairoSVG is a
20464 SVG parser, trying to follow the SVG 1.1 recommendation from the W3C. Once
20465 parsed, the result is drawn to a Cairo surface that can be exported to
20466 qvarious formats: PDF, PostScript, PNG and even SVG.")
20467 (license license:lgpl3+)))
20469 (define-public python-pyphen
20471 (name "python-pyphen")
20476 (uri (pypi-uri "Pyphen" version))
20478 (base32 "0a1iwrgs4hzwzz60q4i1813kbzimhm0i4q8grh8vqkxhnkgj36vi"))))
20479 (build-system python-build-system)
20480 ;; TODO: Use the Guix system hyphenation packages hyphen-* rather than the
20481 ;; embedded set provided by upstream - like Debian does.
20482 (home-page "https://github.com/Kozea/Pyphen")
20483 (synopsis "Pure Python module to hyphenate text")
20484 (description "Pyphen is a pure Python module to hyphenate text using
20485 existing Hunspell hyphenation dictionaries.")
20486 (license (list license:gpl2 license:lgpl2.1 license:mpl1.1))))
20488 (define-public python-intelhex
20490 (name "python-intelhex")
20495 (uri (pypi-uri "intelhex" version))
20498 "0ckqjbxd8gwcg98gfzpn4vq1qxzfvq3rdbrr1hikj1nmw08qb780"))))
20499 (build-system python-build-system)
20500 (arguments '(#:tests? #f)) ;issue with version
20501 (home-page "https://pypi.org/project/IntelHex/")
20502 (synopsis "Python library for Intel HEX files manipulations")
20503 (description "The Intel HEX file format is widely used in microprocessors
20504 and microcontrollers area (embedded systems etc.) as the de facto standard for
20505 representation of code to be programmed into microelectronic devices. This
20506 package provides an intelhex Python library to read, write, create from
20507 scratch and manipulate data from Intel HEX file format. It also includes
20508 several convenience Python scripts, including \"classic\" hex2bin and bin2hex
20509 converters and more, those based on the library itself.")
20510 (license license:bsd-3)))
20512 (define-public python-pykwalify
20514 (name "python-pykwalify")
20519 (uri (pypi-uri "pykwalify" version))
20522 "1cnfzkg1b01f825ikpw2fhjclf9c8akxjfrbd1vc22x1lg2kk2vy"))))
20523 (build-system python-build-system)
20524 (arguments '(#:tests? #f)) ;missing dependencies
20526 `(("python-dateutil" ,python-dateutil)
20527 ("python-docopt" ,python-docopt)
20528 ("python-pyyaml" ,python-pyyaml)))
20529 (home-page "https://github.com/grokzen/pykwalify")
20531 "Python lib/cli for JSON/YAML schema validation")
20533 "This package provides a parser, schema validator, and data binding tool
20534 for YAML and JSON.")
20535 (license license:expat)))
20537 (define-public python-dbusmock
20539 (name "python-dbusmock")
20544 (uri (pypi-uri "python-dbusmock" version))
20547 "0hp2kyac88nh9iv6l8hlmv7s1sa1s5f1a3wc2pmlmmxnd211fjlr"))))
20548 (build-system python-build-system)
20551 (modify-phases %standard-phases
20552 (add-after 'unpack 'patch-shell-path
20554 (substitute* "tests/test_code.py"
20555 (("/bin/bash") (which "bash")))
20559 ("dbus" ,dbus) ; for dbus-daemon
20560 ("python-nose" ,python-nose)
20563 `(("python-dbus" ,python-dbus)
20564 ("python-pygobject" ,python-pygobject)))
20565 (home-page "https://github.com/martinpitt/python-dbusmock")
20566 (synopsis "Python library for mock D-Bus objects")
20567 (description "python-dbusmock allows for the easy creation of mock objects on
20568 D-Bus. This is useful for writing tests for software which talks to D-Bus
20569 services such as upower, systemd, logind, gnome-session or others, and it is
20570 hard (or impossible without root privileges) to set the state of the real
20571 services to what you expect in your tests.")
20572 (license license:lgpl3+)))
20574 (define-public python-jsonplus
20576 (name "python-jsonplus")
20578 (home-page "https://github.com/randomir/jsonplus")
20581 (uri (pypi-uri "jsonplus" version))
20584 "05yv3dw813zwas9snz124k2hki49y268b3mx0gj9w7v1nrjmglq1"))))
20585 (build-system python-build-system)
20586 ;; XXX: No tests on PyPI, and the repository has no tags.
20587 (arguments '(#:tests? #f))
20589 `(("python-dateutil" ,python-dateutil)
20590 ("python-simplejson" ,python-simplejson)
20591 ("python-sortedcontainers" ,python-sortedcontainers)))
20592 (synopsis "Serialize Python types to/from JSON")
20594 "This package provides functionality to serialize arbitrary data types
20595 to and from JSON. Common data types are implemented and it is easy to
20596 register custom encoders and decoders.")
20597 (license license:expat)))
20599 (define-public python-ujson
20601 (name "python-ujson")
20606 (uri (pypi-uri "ujson" version))
20609 "1lr9lbm76y3ah1463jggwg2hjcb709mpns5f752wxxbgnd0n5kr6"))
20610 (modules '((guix build utils)))
20612 '(begin (delete-file-recursively "deps") #t))))
20613 (build-system python-build-system)
20616 (modify-phases %standard-phases
20617 (add-after 'unpack 'link-to-system-double-conversion
20618 (lambda* (#:key inputs #:allow-other-keys)
20619 (let ((d-c (assoc-ref inputs "double-conversion")))
20620 (substitute* "setup.py"
20621 (("./deps/double-conversion/double-conversion\"")
20622 (string-append d-c "/include/double-conversion\""))
20624 (string-append "-L" d-c "/lib\","
20625 " \"-ldouble-conversion\","
20629 (lambda* (#:key inputs outputs #:allow-other-keys)
20630 (add-installed-pythonpath inputs outputs)
20631 (invoke "pytest"))))))
20633 `(("double-conversion" ,double-conversion)
20634 ("python-setuptools-scm" ,python-setuptools-scm)
20635 ("python-pytest" ,python-pytest)))
20636 (home-page "https://github.com/ultrajson/ultrajson")
20637 (synopsis "Ultra fast JSON encoder and decoder for Python")
20639 "UltraJSON is an ultra fast JSON encoder and decoder written in pure C with
20640 bindings for Python 3.")
20641 (license license:bsd-3)))
20643 (define-public python-iocapture
20644 ;; The latest release is more than a year older than this commit.
20645 (let ((commit "fdc021c431d0840303908dfc3ca8769db383595c")
20648 (name "python-iocapture")
20653 (uri (git-reference
20654 (url "https://github.com/oinume/iocapture")
20656 (file-name (git-file-name name version))
20659 "1mkbhqibxvgwg0p7slr8dfraa3g2s6bsayladhax2jccwj4kcndz"))))
20660 (build-system python-build-system)
20663 (modify-phases %standard-phases
20665 (add-after 'install 'check
20666 (lambda* (#:key inputs outputs #:allow-other-keys)
20667 (add-installed-pythonpath inputs outputs)
20668 (invoke "py.test" "-v" "tests")
20671 `(("python-flexmock" ,python-flexmock)
20672 ("python-pytest" ,python-pytest)
20673 ("python-pytest-cov" ,python-pytest-cov)
20674 ("python-six" ,python-six)))
20675 (home-page "https://github.com/oinume/iocapture")
20676 (synopsis "Python capturing tool for stdout and stderr")
20678 "This package helps you to capture the standard out (stdout) and the
20679 standard error channel (stderr) in your program.")
20680 (license license:expat))))
20682 (define-public python-argh
20683 ;; There are 21 commits since the latest release containing important
20685 (let ((commit "dcd3253f2994400a6a58a700c118c53765bc50a4")
20688 (name "python-argh")
20689 (version (git-version "0.26.2" revision commit))
20693 (uri (git-reference
20694 (url "https://github.com/neithere/argh")
20696 (file-name (git-file-name name version))
20699 "1p5h3dnpbsjmqrvil96s71asc6i3gpinmbrabqmwnrsxprz7r3ns"))))
20700 (build-system python-build-system)
20702 `(("python-iocapture" ,python-iocapture)
20703 ("python-mock" ,python-mock)
20704 ("python-pytest" ,python-pytest)
20705 ("python-pytest-cov" ,python-pytest-cov)
20706 ("python-pytest-xdist" ,python-pytest-xdist)
20707 ("python-tox" ,python-tox)))
20708 (home-page "https://github.com/neithere/argh/")
20709 (synopsis "Argparse wrapper with natural syntax")
20711 "python-argh is a small library that provides several layers of
20712 abstraction on top of @code{python-argparse}. The layers can be mixed. It is
20713 always possible to declare a command with the highest possible (and least
20714 flexible) layer and then tune the behaviour with any of the lower layers
20715 including the native API of @code{python-argparse}.")
20716 (license license:lgpl3+))))
20718 (define-public python-ppft
20720 (name "python-ppft")
20721 (version "1.6.6.1")
20725 (uri (pypi-uri "ppft" version))
20728 "1z1invkhszc5d2mvgr221v7cszzifcc77mz0pv3wjp6x5q2768cy"))))
20729 (build-system python-build-system)
20730 (arguments '(#:tests? #f)) ; there are none
20732 `(("python-six" ,python-six)))
20733 (home-page "https://pypi.org/project/ppft/")
20734 (synopsis "Fork of Parallel Python")
20736 "This package is a fork of Parallel Python. The Parallel Python
20737 module (@code{pp}) provides an easy and efficient way to create
20738 parallel-enabled applications for @dfn{symmetric multiprocessing} (SMP)
20739 computers and clusters. It features cross-platform portability and dynamic
20741 (license license:bsd-3)))
20743 (define-public python-pox
20745 (name "python-pox")
20750 (uri (pypi-uri "pox" version))
20753 "0y17ckc2p6i6709s279sjdj4q459mpcc38ymg9zv9y6vl6jf3bq6"))))
20754 (build-system python-build-system)
20757 (modify-phases %standard-phases
20760 (mkdir-p "/tmp/guix")
20761 (setenv "SHELL" "bash")
20762 (setenv "USERNAME" "guix")
20763 (setenv "HOME" "/tmp/guix") ; must end on USERNAME...
20764 (invoke "py.test" "-vv")
20767 `(("python-pytest" ,python-pytest)
20769 (home-page "https://pypi.org/project/pox/")
20770 (synopsis "Python utilities for file system exploration and automated builds")
20772 "Pox provides a collection of utilities for navigating and manipulating
20773 file systems. This module is designed to facilitate some of the low-level
20774 operating system interactions that are useful when exploring a file system on a
20775 remote host. Pox provides Python equivalents of several shell commands such
20776 as @command{which} and @command{find}. These commands allow automated
20777 discovery of what has been installed on an operating system, and where the
20778 essential tools are located.")
20779 (license license:bsd-3)))
20781 (define-public python-pathos
20783 (name "python-pathos")
20788 (uri (pypi-uri "pathos" version))
20791 "0in8hxdz7k081ijn6q94gr39ycy7363sx4zysmbwyvd7snqjrbi1"))))
20792 (build-system python-build-system)
20795 (modify-phases %standard-phases
20798 (setenv "PYTHONPATH"
20799 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
20800 (invoke "python" "./tests/__main__.py"))))))
20802 `(("python-dill" ,python-dill)
20803 ("python-multiprocess" ,python-multiprocess)
20804 ("python-pox" ,python-pox)
20805 ("python-ppft" ,python-ppft)))
20807 `(("python-pytest" ,python-pytest)))
20808 (home-page "https://pypi.org/project/pathos/")
20810 "Parallel graph management and execution in heterogeneous computing")
20812 "Python-pathos is a framework for heterogeneous computing. It provides a
20813 consistent high-level interface for configuring and launching parallel
20814 computations across heterogeneous resources. Python-pathos provides configurable
20815 launchers for parallel and distributed computing, where each launcher contains
20816 the syntactic logic to configure and launch jobs in an execution environment.")
20817 (license license:bsd-3)))
20819 (define-public python-flit
20821 (name "python-flit")
20826 (uri (pypi-uri "flit" version))
20829 "14q8qa48bli2mniznc8b54qkwvhbik4kw99y01fi5gzzl620zzml"))))
20830 (build-system python-build-system)
20832 `(#:tests? #f)) ; XXX: Check requires network access.
20833 (home-page "https://flit.readthedocs.io/")
20835 "Simple packaging tool for simple packages")
20837 "Flit is a simple way to put Python packages and modules on PyPI. Flit
20838 packages a single importable module or package at a time, using the import
20839 name as the name on PyPI. All subpackages and data files within a package
20840 are included automatically.")
20841 (license license:bsd-3)))
20843 (define-public python-pathtools
20845 (name "python-pathtools")
20850 (uri (pypi-uri "pathtools" version))
20853 "1h7iam33vwxk8bvslfj4qlsdprdnwf8bvzhqh3jq5frr391cadbw"))))
20854 (build-system python-build-system)
20856 "https://github.com/gorakhargosh/pathtools")
20857 (synopsis "Path utilities for Python")
20858 (description "Pattern matching and various utilities for file systems
20860 (license license:expat)))
20862 (define-public python-fastentrypoints
20864 (name "python-fastentrypoints")
20869 (uri (pypi-uri "fastentrypoints" version))
20872 "02s1j8i2dzbpbwgq2a3fiqwm3cnmhii2qzc0k42l0rdxd4a4ya7z"))))
20873 (build-system python-build-system)
20875 "https://github.com/ninjaaron/fast-entry_points")
20877 "Makes entry_points specified in setup.py load more quickly")
20879 "Using entry_points in your setup.py makes scripts that start really
20880 slowly because it imports pkg_resources. This package allows such setup
20881 scripts to load entry points more quickly.")
20882 (license license:bsd-3)))
20884 (define-public python-funcparserlib
20886 (name "python-funcparserlib")
20891 (uri (pypi-uri "funcparserlib" version))
20894 "07f9cgjr3h4j2m67fhwapn8fja87vazl58zsj4yppf9y3an2x6dp"))))
20896 `(("python-tox" ,python-tox)))
20899 (modify-phases %standard-phases
20902 (invoke "tox"))))))
20903 (build-system python-build-system)
20905 "https://github.com/vlasovskikh/funcparserlib")
20907 "Recursive descent parsing library based on functional combinators")
20909 "This package is a recursive descent parsing library for Python based on
20910 functional combinators. Parser combinators are just higher-order functions
20911 that take parsers as their arguments and return them as result values.")
20912 (license license:expat)))
20914 (define-public python-speg
20916 (name "python-speg")
20921 (uri (pypi-uri "speg" version ".zip"))
20923 (base32 "0w9y4jf4787dzhy6rvhwi0mpl0r8qkqmqmyv2hpwdpv8w53yzjqh"))))
20925 `(#:tests? #f)) ;FIXME: tests fail, not sure why
20927 `(("unzip" ,unzip)))
20928 (build-system python-build-system)
20929 (home-page "https://github.com/avakar/speg")
20930 (synopsis "PEG-based parser interpreter with memoization")
20931 (description "This package is a PEG-based parser and interpreter with
20933 (license license:expat)))
20935 (define-public python-cson
20937 (name "python-cson")
20942 (uri (pypi-uri "cson" version))
20944 (base32 "00cyvigg4npbph39ghkg77xbxisa6plf75vii24igxfizik0337f"))))
20945 (build-system python-build-system)
20947 `(("python-speg" ,python-speg)))
20948 (home-page "https://github.com/avakar/pycson")
20949 (synopsis "Parser for Coffeescript Object Notation (CSON)")
20950 (description "This package is a parser for Coffeescript Object
20952 (license license:expat)))
20954 (define-public python-asynctest
20956 (name "python-asynctest")
20961 (uri (pypi-uri "asynctest" version))
20964 "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"))))
20965 (build-system python-build-system)
20968 (modify-phases %standard-phases
20971 (invoke "python" "-X" "dev" "-m" "unittest" "-v" "test")))
20972 (add-after 'unpack 'disable-tests
20974 ;; XXX: 7 tests fail out of 220. Disable them for now.
20975 (substitute* (list "test/test_selector.py"
20976 "test/test_mock.py")
20977 (("def test_events_watched_outside_test_are_ignored")
20978 "@unittest.skip('disabled by guix')
20979 def test_events_watched_outside_test_are_ignored")
20980 (("def test_awaited_from_autospec_mock.*" line)
20981 (string-append line " return True\n"))
20982 (("def test_create_autospec_on_coroutine_and_using_assert_methods.*" line)
20983 (string-append line " return True\n"))
20984 (("def test_patch_coroutine_with_multiple_scopes.*" line)
20985 (string-append line " return True\n"))
20986 (("def test_multiple_patches_on_coroutine.*" line)
20987 (string-append line " return True\n"))
20988 (("def test_patch_coroutine_only_when_running.*" line)
20989 (string-append line " return True\n")))
20991 (home-page "https://github.com/Martiusweb/asynctest")
20992 (synopsis "Extension of unittest for testing asyncio libraries")
20994 "The package asynctest is built on top of the standard unittest module
20995 and cuts down boilerplate code when testing libraries for asyncio.")
20996 (license license:asl2.0)))
20998 (define-public python-aionotify
21000 (name "python-aionotify")
21004 ;; Source tarball on PyPi lacks tests
21006 (uri (git-reference
21007 (url "https://github.com/rbarrois/aionotify")
21008 (commit (string-append "v" version))))
21009 (file-name (git-file-name name version))
21011 (base32 "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y"))
21012 (patches (search-patches "python-aionotify-0.2.0-py3.8.patch"))))
21013 (build-system python-build-system)
21014 (home-page "https://github.com/rbarrois/aionotify")
21015 (synopsis "Asyncio-powered inotify library")
21017 "@code{aionotify} is a simple, asyncio-based inotify library.")
21018 (license license:bsd-3)))
21020 (define-public python-forbiddenfruit
21022 (name "python-forbiddenfruit")
21026 ;; Source tarball on PyPi lacks Makefile that builds and runs tests
21028 (uri (git-reference
21029 (url "https://github.com/clarete/forbiddenfruit")
21031 (file-name (git-file-name name version))
21033 (base32 "1fp2xvdqpi910j9r3q68x38phpxbm700gjdi2m2j5gs91xdnyyh2"))))
21034 (build-system python-build-system)
21037 (modify-phases %standard-phases
21040 (invoke "make" "SKIP_DEPS=1"))))))
21042 `(("python-nose" ,python-nose)
21043 ("python-coverage" ,python-coverage)))
21044 (home-page "https://github.com/clarete/forbiddenfruit")
21045 (synopsis "Patch python built-in objects")
21046 (description "This project allows Python code to extend built-in types.")
21047 (license (list license:gpl3+ license:expat))))
21049 (define-public python-shouldbe
21051 (name "python-shouldbe")
21056 (uri (pypi-uri "shouldbe" version))
21059 "16zbvjxf71dl4yfbgcr6idyim3mdrfvix1dv8b95p0s9z07372pj"))
21060 (patches (search-patches "python-shouldbe-0.1.2-cpy3.8.patch"))))
21061 (build-system python-build-system)
21063 `(("python-forbiddenfruit" ,python-forbiddenfruit)))
21065 `(("python-nose" ,python-nose)))
21066 (home-page "https://github.com/directxman12/should_be")
21067 (synopsis "Python Assertion Helpers inspired by Shouldly")
21069 "Python Assertion Helpers inspired by Shouldly.")
21070 (license license:isc)))
21072 (define-public python-k5test
21074 (name "python-k5test")
21079 (uri (pypi-uri "k5test" version))
21082 "1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8"))))
21083 (build-system python-build-system)
21085 `(("python-six" ,python-six)
21086 ;; `which`, `kadmin.local` binaries called inside library
21088 ("mit-krb5" ,mit-krb5)))
21089 (native-inputs `(("mit-krb5" ,mit-krb5)))
21092 (modify-phases %standard-phases
21093 (add-after 'unpack 'patch-paths
21095 (substitute* "k5test/realm.py"
21096 (("'kadmin_local'") "'kadmin.local'")))))))
21097 (home-page "https://github.com/pythongssapi/k5test")
21098 (synopsis "Library for setting up self-contained Kerberos 5 environments")
21100 "@code{k5test} is a library for setting up self-contained Kerberos 5
21101 environments, and running Python unit tests inside those environments. It is
21102 based on the file of the same name found alongside the MIT Kerberos 5 unit
21104 (license license:isc)))
21106 (define-public python-gssapi
21108 (name "python-gssapi")
21113 (uri (pypi-uri "gssapi" version))
21116 "1fa78pn5jzfbwf3y6mj4fc8sh11wjf1hwh5qv39cdlxb71qsq2hb"))))
21117 (build-system python-build-system)
21120 (modify-phases %standard-phases
21122 ;; https://github.com/pythongssapi/python-gssapi/issues/220.
21123 (add-before 'check 'disable-failing-tests
21125 (let ((reason "Disabled failing test (see: \
21126 https://github.com/pythongssapi/python-gssapi/issues/220)."))
21127 (substitute* "gssapi/tests/test_high_level.py"
21128 ((".*def test_add_with_impersonate.*" all)
21129 (string-append all " self.skipTest('" reason "')\n")))
21130 (substitute* "gssapi/tests/test_raw.py"
21131 ((".*def test_.*impersonate_name.*" all)
21132 (string-append all " self.skipTest('" reason "')\n")))
21135 `(("python-decorator" ,python-decorator)
21136 ("python-six" ,python-six)))
21138 `(("mit-krb5" ,mit-krb5)))
21141 `(("python-shouldbe" ,python-shouldbe)
21142 ("python-parameterized" ,python-parameterized)
21143 ("python-k5test" ,python-k5test)
21144 ("python-nose" ,python-nose)))
21145 (home-page "https://github.com/pythongssapi/python-gssapi")
21146 (synopsis "Python GSSAPI Wrapper")
21148 "Python-GSSAPI provides both low-level and high level wrappers around the
21149 GSSAPI C libraries. While it focuses on the Kerberos mechanism, it should
21150 also be usable with other GSSAPI mechanisms.")
21151 (license license:isc)))
21153 (define-public python-check-manifest
21155 (name "python-check-manifest")
21160 (uri (pypi-uri "check-manifest" version))
21163 "0lk45ifdv2cpkl6ayfyix7jwmnxa1rha7xvb0ih5999k115wzqs4"))))
21164 (build-system python-build-system)
21166 `(("python-mock" ,python-mock)
21168 (home-page "https://github.com/mgedmin/check-manifest")
21169 (synopsis "Check MANIFEST.in in a Python source package for completeness")
21170 (description "Python package can include a MANIFEST.in file to help with
21171 sending package files to the Python Package Index. This package checks that
21172 file to ensure it completely and accurately describes your project.")
21173 (license license:expat)))
21175 (define-public python-android-stringslib
21177 (name "python-android-stringslib")
21182 (uri (git-reference
21183 (url "https://framagit.org/tyreunom/python-android-strings-lib")
21184 (commit (string-append "v" version))))
21185 (file-name (git-file-name name version))
21188 "0gij55qzzq1h83kfpvhai1vf78kkhyvxa6l17m2nl24454lhfin4"))))
21189 (build-system python-build-system)
21192 (home-page "https://framagit.org/tyreunom/python-android-strings-lib")
21193 (synopsis "Android strings.xml support")
21194 (description "Android Strings Lib provides support for android's strings.xml
21195 files. These files are used to translate strings in android apps.")
21196 (license license:expat)))
21198 (define-public python-watchdog
21200 (name "python-watchdog")
21205 (uri (pypi-uri "watchdog" version))
21208 "07cnvvlpif7a6cg4rav39zq8fxa5pfqawchr46433pij0y6napwn"))))
21209 (build-system python-build-system)
21212 (modify-phases %standard-phases
21213 (add-before 'check 'remove-failing
21215 (delete-file "tests/test_inotify_buffer.py")
21216 (delete-file "tests/test_snapshot_diff.py")
21219 `(("python-argh" ,python-argh)
21220 ("python-pathtools" ,python-pathtools)
21221 ("python-pyyaml" ,python-pyyaml)))
21223 `(("python-pytest-cov" ,python-pytest-cov)
21224 ("python-pytest-timeout" ,python-pytest-timeout)))
21225 (home-page "https://github.com/gorakhargosh/watchdog")
21226 (synopsis "File system events monitoring")
21227 (description "This package provides a way to monitor file system events
21228 such as a file modification and trigger an action. This is similar to inotify,
21230 (license license:asl2.0)))
21232 (define-public python-watchgod
21234 (name "python-watchgod")
21238 ;; There are no tests in the PyPI tarball.
21240 (uri (git-reference
21241 (url "https://github.com/samuelcolvin/watchgod")
21242 (commit (string-append "v" version))))
21243 (file-name (git-file-name name version))
21245 (base32 "1lqx44wkryakgpyqj3m0hsz61bqr07vc7smgzh188374hwvscp66"))))
21246 (build-system python-build-system)
21249 (modify-phases %standard-phases
21252 (invoke "pytest" "-vv"))))))
21254 `(("python-coverage" ,python-coverage)
21255 ("python-docutils" ,python-docutils)
21256 ("python-flake8" ,python-flake8)
21257 ("python-isort" ,python-isort)
21258 ("python-pycodestyle" ,python-pycodestyle)
21259 ("python-pyflakes" ,python-pyflakes)
21260 ("python-pygments" ,python-pygments)
21261 ("python-pytest" ,python-pytest)
21262 ("python-pytest-cov" ,python-pytest-cov)
21263 ("python-pytest-aiohttp" ,python-pytest-aiohttp)
21264 ("python-pytest-mock" ,python-pytest-mock)
21265 ("python-pytest-sugar" ,python-pytest-sugar)
21266 ("python-pytest-toolbox" ,python-pytest-toolbox)))
21267 (home-page "https://github.com/samuelcolvin/watchgod")
21268 (synopsis "Simple, modern file watching and code reload in Python")
21270 "Simple, modern file watching and code reload in Python inspired by
21271 @code{watchdog}. Among the differences are a unified approach for each
21272 operating systems and an elegant approach to concurrency using threading.")
21273 (license license:expat)))
21275 (define-public python-wget
21277 (name "python-wget")
21282 (uri (pypi-uri "wget" version ".zip"))
21285 "0qb0y7ipby42m4m7h0ipazpdyc3bn9xi46lvifcwwl5albn31rim"))))
21286 (build-system python-build-system)
21287 (native-inputs `(("unzip" ,unzip)))
21288 (home-page "https://bitbucket.org/techtonik/python-wget/")
21289 (synopsis "Pure Python download utility")
21290 (description "The python-wget library provides an API to download files
21291 with features similar to the @command{wget} utility.")
21292 (license license:unlicense)))
21294 (define-public offlate
21301 (uri (git-reference
21302 (url "https://framagit.org/tyreunom/offlate")
21304 (file-name (git-file-name name version))
21307 "13pqnbl05wcyldfvl75fp89vjgwsvxyc69vhnb17kkha2rc2k1h7"))))
21308 (build-system python-build-system)
21313 `(("python-android-stringslib" ,python-android-stringslib)
21314 ("python-dateutil" ,python-dateutil)
21315 ("python-gitlab" ,python-gitlab)
21316 ("python-lxml" ,python-lxml)
21317 ("python-polib" ,python-polib)
21318 ("python-pyenchant" ,python-pyenchant)
21319 ("python-pygit2" ,python-pygit2)
21320 ("python-pygithub" ,python-pygithub)
21321 ("python-pyqt" ,python-pyqt)
21322 ("python-requests" ,python-requests)
21323 ("python-ruamel.yaml" ,python-ruamel.yaml)
21324 ("python-translation-finder" ,python-translation-finder)
21325 ("python-watchdog" ,python-watchdog)))
21327 `(("qttools" ,qttools)))
21328 (home-page "https://framagit.org/tyreunom/offlate")
21329 (synopsis "Offline translation interface for online translation tools")
21330 (description "Offlate offers a unified interface for different translation
21331 file formats, as well as many different online translation platforms. You can
21332 use it to get work from online platforms, specialized such as the Translation
21333 Project, or not such a gitlab instance when your upstream doesn't use any
21334 dedicated platform. The tool proposes a unified interface for any format and
21335 an upload option to send your work back to the platform.")
21336 (license license:gpl3+)))
21338 (define-public python-titlecase
21340 (name "python-titlecase")
21345 (uri (pypi-uri "titlecase" version))
21348 "0486i99wf8ssa7sgn81fn6fv6i4rhhq6n751bc740b3hzfbpmpl4"))))
21349 (build-system python-build-system)
21351 `(("python-nose" ,python-nose)))
21352 (home-page "https://github.com/ppannuto/python-titlecase")
21353 (synopsis "Capitalize strings similar to book titles")
21355 "Python-Titlecase is a Python port of John Gruber's titlecase.pl.
21356 It capitalizes (predominantly English) strings in a way that is similar to
21357 book titles, using the New York Times Manual of Style to leave certain words
21359 (license license:expat)))
21361 (define-public python-pypng
21363 (name "python-pypng")
21368 (uri (pypi-uri "pypng" version))
21370 (base32 "02qpa22ls41vwsrzw9r9qhj1nhq05p03hb5473pay6y980s86chh"))))
21371 (build-system python-build-system)
21372 (home-page "https://github.com/drj11/pypng")
21373 (synopsis "Pure Python PNG image encoder/decoder")
21375 "The PyPNG module implements support for PNG images. It reads and writes
21376 PNG files with all allowable bit depths (1/2/4/8/16/24/32/48/64 bits per
21377 pixel) and colour combinations: greyscale (1/2/4/8/16 bit); RGB, RGBA,
21378 LA (greyscale with alpha) with 8/16 bits per channel; colour mapped
21379 images (1/2/4/8 bit). Adam7 interlacing is supported for reading and writing.
21380 A number of optional chunks can be specified (when writing) and
21381 understood (when reading): tRNS, bKGD, gAMA.
21383 PyPNG is not a high level toolkit for image processing (like PIL) and does not
21384 aim at being a replacement or competitor. Its strength lies in fine-grained
21385 extensive support of PNG features. It can also read and write Netpbm PAM
21386 files, with a focus on its use as an intermediate format for implementing
21387 custom PNG processing.")
21388 (license license:expat)))
21390 (define-public python-fuzzywuzzy
21392 (name "python-fuzzywuzzy")
21397 (uri (pypi-uri "fuzzywuzzy" version))
21400 "1s00zn75y2dkxgnbw8kl8dw4p1mc77cv78fwfa4yb0274s96w0a5"))))
21401 (build-system python-build-system)
21403 `(("python-hypothesis" ,python-hypothesis)
21404 ("python-pycodestyle" ,python-pycodestyle)
21405 ("python-pytest" ,python-pytest)))
21407 `(("python-levenshtein" ,python-levenshtein)))
21408 (home-page "https://github.com/seatgeek/fuzzywuzzy")
21409 (synopsis "Fuzzy string matching in Python")
21410 (description "Approximate string matching using
21411 @emph{Levenshtein Distance} to calculate the differences between
21413 (license license:gpl2)))
21415 (define-public python2-fuzzywuzzy
21416 (package-with-python2 python-fuzzywuzzy))
21418 (define-public python-block-tracing
21420 (name "python-block-tracing")
21425 (uri (pypi-uri "block_tracing" version))
21428 "0s2y729qr5rs7n506qfh8cssk8m2bi6k2y5vbrh2z3raf2d01alz"))))
21429 (build-system python-build-system)
21430 (arguments '(#:tests? #f)) ; no tests
21431 (home-page "https://github.com/rianhunter/block_tracing")
21432 (synopsis "Protect process memory")
21434 "@code{block_tracing} is a tiny Python library that can be used to
21435 prevent debuggers and other applications from inspecting the memory within
21437 (license license:expat)))
21439 (define-public python-gcovr
21441 (name "python-gcovr")
21446 (uri (pypi-uri "gcovr" version))
21449 "0gyady7x3v3l9fm1zan0idaggqqcm31y7g5vxk7h05p5h7f39bjs"))))
21450 (build-system python-build-system)
21452 `(("python-lxml" ,python-lxml)
21453 ("python-jinja2" ,python-jinja2)))
21454 (home-page "https://gcovr.com/")
21455 (synopsis "Utility for generating code coverage results")
21457 "Gcovr provides a utility for managing the use of the GNU gcov
21458 utility and generating summarized code coverage results. It is inspired
21459 by the Python coverage.py package, which provides a similar utility for
21461 (license license:bsd-3)))
21463 (define-public python-owslib
21465 (name "python-owslib")
21470 (uri (pypi-uri "OWSLib" version))
21472 (base32 "0v8vg0naa9rywvd31cpq65ljbdclpsrx09788v4xj7lg10np8nk0"))))
21473 (build-system python-build-system)
21475 '(#:tests? #f)) ; TODO: package dependencies required for tests.
21476 (synopsis "Interface for Open Geospatial Consortium web service")
21478 "OWSLib is a Python package for client programming with Open Geospatial
21479 Consortium (OGC) web service (hence OWS) interface standards, and their related
21481 (home-page "https://geopython.github.io/OWSLib/")
21482 (license license:bsd-3)))
21484 (define-public python-docusign-esign
21486 (name "python-docusign-esign")
21490 (uri (pypi-uri "docusign_esign" version))
21493 "01f3h03vc97syjlmqyl7xa5j90pzgmwpspc5a0gra9saynnbkx37"))))
21494 (build-system python-build-system)
21495 ;; Testing requires undocumented setup changes, and so testing is disabled here.
21496 (arguments `(#:tests? #f))
21498 `(("python-certifi" ,python-certifi)
21499 ("python-six" ,python-six)
21500 ("python-dateutil" ,python-dateutil)
21501 ("python-urllib3" ,python-urllib3)
21502 ("python-pyjwt" ,python-pyjwt)
21503 ("python-cryptography" ,python-cryptography)
21504 ("python-nose" ,python-nose)))
21505 (synopsis "DocuSign Python Client")
21506 (description "The Official DocuSign Python Client Library used to interact
21507 with the eSign REST API. Send, sign, and approve documents using this client.")
21508 (home-page "https://www.docusign.com/devcenter")
21509 (license license:expat)))
21511 (define-public python-xattr
21513 (name "python-xattr")
21518 (uri (pypi-uri "xattr" version))
21521 "0i4xyiqbhjz2g16zbim17zjdbjkw79xsw8k59942vvq4is1cmfxh"))))
21522 (build-system python-build-system)
21524 `(("python-cffi" ,python-cffi)))
21525 (home-page "https://github.com/xattr/xattr")
21527 "Python wrapper for extended file system attributes")
21528 (description "This package provides a Python wrapper for using extended
21529 file system attributes. Extended attributes extend the basic attributes of files
21530 and directories in the file system. They are stored as name:data pairs
21531 associated with file system objects (files, directories, symlinks, etc).")
21532 (license license:expat)))
21534 (define-public python-json-logger
21536 (name "python-json-logger")
21541 (uri (pypi-uri "python-json-logger" version))
21544 "10g2ya6nsvn5vxzvq2wb8q4d43i3d7756i5rxyjna6d0y9i138xp"))))
21545 (build-system python-build-system)
21547 "https://github.com/madzak/python-json-logger")
21548 (synopsis "JSON log formatter in Python")
21549 (description "This library allows standard Python logging to output log data
21550 as JSON objects. With JSON we can make our logs more readable by machines and
21551 we can stop writing custom parsers for syslog-type records.")
21552 (license license:bsd-3)))
21554 (define-public python-daiquiri
21556 (name "python-daiquiri")
21561 (uri (pypi-uri "daiquiri" version))
21564 "1qmank3c217ddiig3xr8ps0mqaydcp0q5a62in9a9g4zf72zjnqd"))))
21565 (build-system python-build-system)
21567 `(("python-json-logger" ,python-json-logger)))
21569 `(("python-mock" ,python-mock)
21570 ("python-pytest" ,python-pytest)
21571 ("python-setuptools-scm" ,python-setuptools-scm)
21572 ("python-six" ,python-six)))
21573 (home-page "https://github.com/jd/daiquiri")
21575 "Library to configure Python logging easily")
21576 (description "The daiquiri library provides an easy way to configure
21577 logging in Python. It also provides some custom formatters and handlers.")
21578 (license license:asl2.0)))
21580 (define-public python-pifpaf
21582 (name "python-pifpaf")
21587 (uri (pypi-uri "pifpaf" version))
21590 "1gy9p4nqf70fh38wn4icyfm7i9wrvx22wnjpg71g89wxbz27igaa"))))
21591 (build-system python-build-system)
21594 (modify-phases %standard-phases
21597 (invoke "python" "setup.py" "testr" "--slowest"
21598 "--testr-args=until-failure"))))))
21600 `(("python-click" ,python-click)
21601 ("python-daiquiri" ,python-daiquiri)
21602 ("python-fixtures" ,python-fixtures)
21603 ("python-jinja2" ,python-jinja2)
21604 ("python-pbr" ,python-pbr)
21605 ("python-psutil" ,python-psutil)
21606 ("python-six" ,python-six)
21607 ("python-xattr" ,python-xattr)))
21609 `(("python-mock" ,python-mock)
21610 ("python-os-testr" ,python-os-testr)
21611 ("python-requests" ,python-requests)
21612 ("python-testrepository" ,python-testrepository)
21613 ("python-testtools" ,python-testtools)))
21614 (home-page "https://github.com/jd/pifpaf")
21615 (synopsis "Tools and fixtures to manage daemons for testing in Python")
21616 (description "Pifpaf is a suite of fixtures and a command-line tool that
21617 starts and stops daemons for a quick throw-away usage. This is typically
21618 useful when needing these daemons to run integration testing. It originally
21619 evolved from its precursor @code{overtest}.")
21620 (license license:asl2.0)))
21622 (define-public python-pytest-check-links
21624 (name "python-pytest-check-links")
21629 ;; URI uses underscores
21630 (uri (pypi-uri "pytest_check_links" version))
21633 "12x3wmrdzm6wgk0vz02hb769h68nr49q47w5q1pj95pc89hsa34v"))))
21634 (build-system python-build-system)
21636 `(("python-docutils" ,python-docutils)
21637 ("python-html5lib" ,python-html5lib)
21638 ("python-nbconvert" ,python-nbconvert)
21639 ("python-nbformat" ,python-nbformat)
21640 ("python-pytest" ,python-pytest)
21641 ("python-six" ,python-six)))
21643 `(("python-pbr-minimal" ,python-pbr-minimal)))
21644 (home-page "https://github.com/minrk/pytest-check-links")
21645 (synopsis "Check links in files")
21646 (description "This package provides a pytest plugin that checks URLs for
21647 HTML-containing files.")
21648 (license license:bsd-3)))
21650 (define-public python-json5
21652 (name "python-json5")
21656 ;; sample.json5 is missing from PyPi source tarball
21658 (uri (git-reference
21659 (url "https://github.com/dpranke/pyjson5")
21660 (commit (string-append "v" version))))
21661 (file-name (git-file-name name version))
21663 (base32 "0nyngj18jlkgvm1177lc3cj47wm4yh3dqigygvcvw7xkyryafsqn"))))
21664 (build-system python-build-system)
21665 (home-page "https://github.com/dpranke/pyjson5")
21667 "Python implementation of the JSON5 data format")
21669 "JSON5 extends the JSON data interchange format to make it slightly more
21670 usable as a configuration language. This Python package implements parsing and
21671 dumping of JSON5 data structures.")
21672 (license license:asl2.0)))
21674 (define-public python-frozendict
21676 (name "python-frozendict")
21681 (uri (pypi-uri "frozendict" version))
21683 (base32 "0ibf1wipidz57giy53dh7mh68f2hz38x8f4wdq88mvxj5pr7jhbp"))))
21684 (build-system python-build-system)
21685 (home-page "https://github.com/slezica/python-frozendict")
21686 (synopsis "Simple immutable mapping for Python")
21688 "@dfn{frozendict} is an immutable wrapper around dictionaries that
21689 implements the complete mapping interface. It can be used as a drop-in
21690 replacement for dictionaries where immutability is desired.")
21691 (license license:expat)))
21693 (define-public python-unpaddedbase64
21695 (name "python-unpaddedbase64")
21700 (uri (git-reference
21701 (url "https://github.com/matrix-org/python-unpaddedbase64")
21702 (commit (string-append "v" version))))
21703 (file-name (git-file-name name version))
21706 "0if3fjfxga0bwdq47v77fs9hrcqpmwdxry2i2a7pdqsp95258nxd"))))
21707 (build-system python-build-system)
21708 (home-page "https://pypi.org/project/unpaddedbase64/")
21709 (synopsis "Encode and decode Base64 without “=” padding")
21711 "RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes
21712 using “=” characters. However this conveys no benefit so many protocols
21713 choose to use Base64 without the “=” padding.")
21714 (license license:asl2.0)))
21716 (define-public python-py-cpuinfo
21718 (name "python-py-cpuinfo")
21723 (uri (pypi-uri "py-cpuinfo" version))
21726 "0045y6832gqjg63jmw0qj2jwyypgjwr7sfdq3lfv49b6fxpl5xic"))))
21727 (build-system python-build-system)
21728 (home-page "https://github.com/workhorsy/py-cpuinfo")
21729 (synopsis "Get CPU info with Python")
21731 "This Python module returns the CPU info by using the best sources of
21732 information for your operating system.")
21733 (license license:expat)))
21735 (define-public python-canonicaljson
21737 (name "python-canonicaljson")
21742 (uri (pypi-uri "canonicaljson" version))
21744 (base32 "0c86g0vvzdcg3nrcsqnbzlfhpprc2i894p8i14hska56yl27d6w9"))))
21745 (build-system python-build-system)
21747 `(("python-six" ,python-six)
21748 ("python-frozendict" ,python-frozendict)
21749 ("python-simplejson" ,python-simplejson)))
21750 (home-page "https://github.com/matrix-org/python-canonicaljson")
21751 (synopsis "Canonical JSON")
21753 "Deterministically encode JSON.
21756 @item Encodes objects and arrays as RFC 7159 JSON.
21757 @item Sorts object keys so that you get the same result each time.
21758 @item Has no insignificant whitespace to make the output as small as possible.
21759 @item Escapes only the characters that must be escaped, U+0000 to
21760 U+0019 / U+0022 / U+0056, to keep the output as small as possible.
21761 @item Uses the shortest escape sequence for each escaped character.
21762 @item Encodes the JSON as UTF-8.
21763 @item Can encode frozendict immutable dictionaries.
21765 (license license:asl2.0)))
21767 (define-public python-signedjson
21769 (name "python-signedjson")
21774 (uri (pypi-uri "signedjson" version))
21776 (base32 "0280f8zyycsmd7iy65bs438flm7m8ffs1kcxfbvhi8hbazkqc19m"))))
21777 (build-system python-build-system)
21779 `(("python-canonicaljson" ,python-canonicaljson)
21780 ("python-importlib-metadata" ,python-importlib-metadata)
21781 ("python-pynacl" ,python-pynacl)
21782 ("python-typing-extensions" ,python-typing-extensions)
21783 ("python-unpaddedbase64" ,python-unpaddedbase64)))
21785 `(("python-setuptools-scm" ,python-setuptools-scm)))
21786 (home-page "https://github.com/matrix-org/python-signedjson")
21787 (synopsis "Sign JSON objects with ED25519 signatures")
21789 "Sign JSON objects with ED25519 signatures.
21792 @item More than one entity can sign the same object.
21793 @item Each entity can sign the object with more than one key making it easier to
21795 @item ED25519 can be replaced with a different algorithm.
21796 @item Unprotected data can be added to the object under the @dfn{\"unsigned\"}
21799 (license license:asl2.0)))
21801 (define-public python-daemonize
21803 (name "python-daemonize")
21808 (uri (pypi-uri "daemonize" version))
21810 (base32 "1hwbl3gf9fdds9sc14zgjyjisjvxidrvqc11xlbb0b6jz17nw0nx"))))
21811 (build-system python-build-system)
21812 (home-page "https://github.com/thesharp/daemonize")
21813 (synopsis "Library for writing system daemons in Python")
21814 (description "Daemonize is a library for writing system daemons in Python.")
21815 (license license:expat)))
21817 (define-public python-pymacaroons
21819 (name "python-pymacaroons")
21824 (uri (pypi-uri "pymacaroons" version))
21826 (base32 "1f0357a6g1h96sk6wy030xmc1p4rd80a999qvxd28v7nlm1blsqy"))))
21827 (build-system python-build-system)
21829 `(("python-six" ,python-six)
21830 ("python-pynacl" ,python-pynacl)))
21831 (home-page "https://github.com/ecordell/pymacaroons")
21832 (synopsis "Python Macaroon Library")
21834 "Macaroons, like cookies, are a form of bearer credential. Unlike opaque
21835 tokens, macaroons embed caveats that define specific authorization
21836 requirements for the target service, the service that issued the root macaroon
21837 and which is capable of verifying the integrity of macaroons it receives.
21839 Macaroons allow for delegation and attenuation of authorization. They are
21840 simple and fast to verify, and decouple authorization policy from the
21841 enforcement of that policy.")
21842 (license license:expat)))
21844 (define-public python-ldap3
21846 (name "python-ldap3")
21848 (home-page "https://github.com/cannatag/ldap3")
21852 (uri (git-reference (url home-page)
21853 (commit (string-append "v" version))))
21854 (file-name (git-file-name name version))
21856 (base32 "0xw9fkqld21xsvdpaqir8ccc2l805xnn9gxahsnl70xzp3mwl0xv"))))
21857 (build-system python-build-system)
21859 '(#:tests? #f ;TODO: Tests need a real LDAP server to run
21860 #:phases (modify-phases %standard-phases
21862 (lambda* (#:key tests? #:allow-other-keys)
21864 (invoke "nosetests" "-s" "test"))
21867 `(("python-nose" ,python-nose)))
21869 `(("python-gssapi" ,python-gssapi)
21870 ("python-pyasn1" ,python-pyasn1)))
21871 (synopsis "Python LDAP client")
21873 "LDAP3 is a strictly RFC 4510 conforming LDAP V3 pure Python client
21875 (license license:lgpl3+)))
21877 (define-public python-boltons
21879 (name "python-boltons")
21884 (uri (pypi-uri "boltons" version))
21887 "0lrr40qqj3ch8xarvyzbnbjs79pz5aywklllq53l347h1b8xnkg4"))))
21888 (build-system python-build-system)
21889 (home-page "https://github.com/mahmoud/boltons")
21890 (synopsis "Extensions to the Python standard library")
21892 "Boltons is a set of over 230 pure-Python utilities in the same spirit
21893 as — and yet conspicuously missing from — the standard library, including:
21896 @item Atomic file saving, bolted on with fileutils
21897 @item A highly-optimized OrderedMultiDict, in dictutils
21898 @item Two types of PriorityQueue, in queueutils
21899 @item Chunked and windowed iteration, in iterutils
21900 @item Recursive data structure iteration and merging, with iterutils.remap
21901 @item Exponential backoff functionality, including jitter, through
21903 @item A full-featured TracebackInfo type, for representing stack traces, in
21906 (license license:bsd-3)))
21908 (define-public python-eliot
21910 (name "python-eliot")
21915 (uri (pypi-uri "eliot" version))
21917 (base32 "0wabv7hk63l12881f4zw02mmj06583qsx2im0yywdjlj8f56vqdn"))))
21918 (build-system python-build-system)
21921 (modify-phases %standard-phases
21922 (add-after 'unpack 'remove-journald-support
21924 (for-each delete-file
21925 '("eliot/tests/test_journald.py"
21926 "eliot/journald.py"))
21928 (add-after 'remove-journald-support 'remove-eliot-prettyprint-tests
21929 ;; remove command-line tool's tests. TODO eliot-prettyprint should
21930 ;; be installed and these tests should pass.
21932 (delete-file "eliot/tests/test_prettyprint.py")
21935 `(("python-boltons" ,python-boltons)
21936 ("python-pyrsistent" ,python-pyrsistent)
21937 ("python-six" ,python-six)
21938 ("python-zope-interface" ,python-zope-interface)))
21940 `(("python-black" ,python-black)
21941 ("python-coverage" ,python-coverage)
21942 ("python-dask" ,python-dask)
21943 ("python-flake8" ,python-flake8)
21944 ("python-hypothesis" ,python-hypothesis)
21945 ("python-pytest" ,python-pytest)
21946 ("python-setuptools" ,python-setuptools)
21947 ("python-sphinx" ,python-sphinx)
21948 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
21949 ("python-testtools" ,python-testtools)
21950 ("python-twine" ,python-twine)
21951 ("python-twisted" ,python-twisted)))
21952 (home-page "https://github.com/itamarst/eliot/")
21953 (synopsis "Eliot: the logging system that tells you why it happened")
21955 "@dfn{eliot} is a Python logging system that outputs causal chains of
21956 actions: actions can spawn other actions, and eventually they either succeed
21957 or fail. The resulting logs tell you the story of what your software did: what
21958 happened, and what caused it.")
21959 (license license:asl2.0)))
21961 (define-public python-pem
21963 (name "python-pem")
21968 (uri (pypi-uri "pem" version))
21971 "1xh88ss279fprxnzd10dczmqwjhppbyvljm33zrg2mgybwd66qr7"))))
21972 (build-system python-build-system)
21974 `(("python-certifi" ,python-certifi)
21975 ("python-coverage" ,python-coverage)
21976 ("python-pretend" ,python-pretend)
21977 ("python-pyopenssl" ,python-pyopenssl)
21978 ("python-pytest" ,python-pytest)
21979 ("python-sphinx" ,python-sphinx)
21980 ("python-twisted" ,python-twisted)))
21981 (home-page "https://pem.readthedocs.io/")
21982 (synopsis "Easy PEM file parsing in Python")
21984 "This package provides a Python module for parsing and splitting PEM files.")
21985 (license license:expat)))
21987 (define-public python-txsni
21988 ;; We need a few commits on top of 0.1.9 for compatibility with newer
21989 ;; Python and OpenSSL.
21990 (let ((commit "5014c141a7acef63e20fcf6c36fa07f0cd754ce1")
21993 (name "python-txsni")
21994 (version (git-version "0.1.9" revision commit))
21995 (home-page "https://github.com/glyph/txsni")
21999 (uri (git-reference (url home-page) (commit commit)))
22000 (file-name (git-file-name name version))
22003 "0imfxx4yjj1lbq0n5ad45al3wvv4qv96sivnc1r51i66mxi658z8"))))
22004 (build-system python-build-system)
22006 `(("python-pyopenssl" ,python-pyopenssl)
22007 ("python-service-identity" ,python-service-identity)
22008 ("python-twisted" ,python-twisted)))
22009 (synopsis "Run TLS servers with Twisted")
22011 "This package provides an easy-to-use SNI endpoint for use
22012 with the Twisted web framework.")
22013 (license license:expat))))
22015 (define-public python-txacme
22017 (name "python-txacme")
22022 (uri (pypi-uri "txacme" version))
22024 (base32 "1cplx4llq7i508w6fgwjdv9di7rsz9k9irfmzdfbiz6q6a0ykf1d"))))
22025 (build-system python-build-system)
22027 `(("python-acme" ,python-acme)
22028 ("python-attrs" ,python-attrs)
22029 ("python-eliot" ,python-eliot)
22030 ("python-josepy" ,python-josepy)
22031 ("python-pem" ,python-pem)
22032 ("python-treq" ,python-treq)
22033 ("python-twisted" ,python-twisted)
22034 ("python-txsni" ,python-txsni)))
22036 `(("python-fixtures" ,python-fixtures)
22037 ("python-hypothesis" ,python-hypothesis)
22038 ("python-mock" ,python-mock)
22039 ("python-service-identity"
22040 ,python-service-identity)
22041 ("python-testrepository" ,python-testrepository)
22042 ("python-testscenarios" ,python-testscenarios)
22043 ("python-testtools" ,python-testtools)))
22044 (home-page "https://github.com/twisted/txacme")
22045 (synopsis "Twisted implexmentation of the ACME protocol")
22047 "ACME is Automatic Certificate Management Environment, a protocol that
22048 allows clients and certificate authorities to automate verification and
22049 certificate issuance. The ACME protocol is used by the free Let's Encrypt
22050 Certificate Authority.
22052 txacme is an implementation of the protocol for Twisted, the event-driven
22053 networking engine for Python.")
22054 (license license:expat)))
22056 (define-public python-pysaml2
22058 (name "python-pysaml2")
22063 (uri (pypi-uri "pysaml2" version))
22066 "1h8cmxh9cvxhrdfmkh92wg6zpxmhi2fixq1cy4hxismmaar7bsny"))))
22067 (build-system python-build-system)
22069 `(("python-cryptography" ,python-cryptography)
22070 ("python-dateutil" ,python-dateutil)
22071 ("python-defusedxml" ,python-defusedxml)
22072 ("python-pyopenssl" ,python-pyopenssl)
22073 ("python-pytz" ,python-pytz)
22074 ("python-requests" ,python-requests)
22075 ("python-six" ,python-six)))
22076 (home-page "https://idpy.org")
22077 (synopsis "Python implementation of SAML Version 2 Standard")
22079 "PySAML2 is a pure python implementation of SAML Version 2 Standard.
22080 It contains all necessary pieces for building a SAML2 service provider or
22081 an identity provider. The distribution contains examples of both.
22083 This package was originally written to work in a WSGI environment, but
22084 there are extensions that allow you to use it with other frameworks.")
22085 (license license:asl2.0)))
22087 (define-public python-click-plugins
22089 (name "python-click-plugins")
22094 (uri (pypi-uri "click-plugins" version))
22096 (base32 "0jr6bxj67vg988vkm6nz8jj98v9lg46bn49lkhak3n598jbrkas6"))))
22097 (build-system python-build-system)
22099 `(("python-pytest" ,python-pytest)))
22101 `(("python-click" ,python-click)))
22102 (synopsis "Extension for Click to register external CLI commands")
22103 (description "This package provides n extension module for Click to
22104 register external CLI commands via setuptools entry-points.")
22105 (home-page "https://github.com/click-contrib/click-plugins")
22106 (license license:bsd-3)))
22108 (define-public python-diceware
22110 (name "python-diceware")
22115 (uri (pypi-uri "diceware" version))
22118 "0klb0ysybzlh2wihvir82hgq62v0jjmlcqklwajyms7c0p529yby"))))
22119 (build-system python-build-system)
22121 `(("python-coverage" ,python-coverage)
22122 ("python-pytest" ,python-pytest)
22123 ("python-pytest-runner" ,python-pytest-runner)))
22124 (home-page "https://github.com/ulif/diceware/")
22125 (synopsis "Generates memorable passphrases")
22126 (description "This package generates passphrases by concatenating words
22127 randomly picked from wordlists. It supports several sources of
22128 randomness (including real life dice) and different wordlists (including
22129 cryptographically signed ones).")
22130 (license license:gpl3+)))
22132 (define-public python-dictdiffer
22134 (name "python-dictdiffer")
22138 (uri (pypi-uri "dictdiffer" version))
22141 "1lk3qmy1hkaphk4n7ayfk0wl6m2yvd6r7qkam6yncqfzgkbc1phs"))))
22142 (build-system python-build-system)
22144 `(("python-check-manifest" ,python-check-manifest)
22145 ("python-coverage" ,python-coverage)
22146 ("python-isort" ,python-isort)
22147 ("python-mock" ,python-mock)
22148 ("python-pydoctstyle" ,python-pydocstyle)
22149 ("python-pytest-cache" ,python-pytest-cache)
22150 ("python-pytest-cov" ,python-pytest-cov)
22151 ("python-pytest-pep8" ,python-pytest-pep8)
22152 ("python-pytest-runner" ,python-pytest-runner)
22153 ("python-pytest" ,python-pytest)
22154 ("python-setuptools-scm" ,python-setuptools-scm)
22155 ("python-tox" ,python-tox)))
22156 (home-page "https://github.com/inveniosoftware/dictdiffer")
22157 (synopsis "Diff and patch Python dictionary objects")
22159 "Dictdiffer is a Python module that helps you to diff and patch
22161 (license license:expat)))
22163 (define-public pyzo
22170 (uri (pypi-uri "pyzo" version))
22172 (base32 "1jk5f79lj09vnsdk9h01w21p9h49z2hhf8xhkx8471pjbg9vrlzr"))))
22173 (build-system python-build-system)
22176 (modify-phases %standard-phases
22177 (add-before 'check 'fix-home-directory
22179 ;; Tests fail with "Permission denied: '/homeless-shelter'".
22180 (setenv "HOME" "/tmp")
22182 ;; Tests fail with "Uncaught Python exception: python: undefined
22183 ;; symbol: objc_getClass".
22186 `(("python-pyqt" ,python-pyqt)))
22187 (home-page "https://pyzo.org")
22189 "Python IDE for scientific computing")
22191 "Pyzo is a Python IDE focused on interactivity and introspection,
22192 which makes it very suitable for scientific computing. Its practical
22193 design is aimed at simplicity and efficiency.
22195 It consists of two main components, the editor and the shell, and uses
22196 a set of pluggable tools to help the programmer in various ways. Some
22197 example tools are source structure, project manager, interactive help,
22199 (license license:bsd-2)))
22201 (define-public python-osc
22203 (name "python-osc")
22208 (uri (pypi-uri "python-osc" version))
22211 "0cnh0z5lnng7fh48nmfaqqn8j25k13gkd4rhxd3m6sjqiix9s3vn"))))
22212 (build-system python-build-system)
22213 (home-page "https://github.com/attwad/python-osc")
22214 (synopsis "Open Sound Control server and client implementations")
22216 "@code{python-osc} is a pure Python library with no external
22217 dependencies. It implements the @uref{http://opensoundcontrol.org/spec-1_0,
22218 Open Sound Control 1.0} specification.")
22219 (license license:unlicense)))
22221 (define-public python-voluptuous
22223 (name "python-voluptuous")
22228 (uri (pypi-uri "voluptuous" version))
22231 "0mplkcpb5d8wjf8vk195fys4y6a3wbibiyf708imw33lphfk9g1a"))))
22232 (build-system python-build-system)
22234 `(("python-nose" ,python-nose)))
22235 (home-page "https://github.com/alecthomas/voluptuous")
22236 (synopsis "Python data validation library")
22238 "Voluptuous is a Python data validation library. It is primarily
22239 intended for validating data coming into Python as JSON, YAML, etc.")
22240 (license license:bsd-3)))
22242 (define-public python-cmd2
22244 (name "python-cmd2")
22249 (uri (pypi-uri "cmd2" version))
22252 "1f18plbc9yyvhn0js3d2bii9yld8zfl775gxsaw9jza5pmlg9ss2"))))
22253 (build-system python-build-system)
22255 `(("python-attrs" ,python-attrs)
22256 ("python-colorama" ,python-colorama)
22257 ("python-pyperclip" ,python-pyperclip)
22258 ("python-wcwidth" ,python-wcwidth)))
22260 `(("python-codecov" ,python-codecov)
22261 ("python-coverage" ,python-coverage)
22262 ("python-doc8" ,python-doc8)
22263 ("python-flake8" ,python-flake8)
22264 ("python-invoke" ,python-invoke)
22265 ("python-mock" ,python-mock)
22266 ("python-pytest" ,python-pytest)
22267 ("python-pytest-cov" ,python-pytest-cov)
22268 ("python-pytest-mock" ,python-pytest-mock)
22269 ("python-setuptools-scm" ,python-setuptools-scm)
22270 ("python-sphinx" ,python-sphinx)
22271 ("python-sphinx-autobuild" ,python-sphinx-autobuild)
22272 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
22273 ("python-tox" ,python-tox)
22274 ("python-twine" ,python-twine)
22276 (home-page "https://github.com/python-cmd2/cmd2")
22277 (synopsis "Tool for building interactive command line applications")
22279 "Cmd2 is a tool for building interactive command line applications in
22280 Python. Its goal is to make it quick and easy for developers to build
22281 feature-rich and user-friendly interactive command line applications. It
22282 provides a simple API which is an extension of Python's built-in @code{cmd}
22283 module. @code{cmd2} provides a wealth of features on top of @code{cmd} to
22284 make your life easier and eliminates much of the boilerplate code which would
22285 be necessary when using @code{cmd}.")
22286 (license license:expat)))
22288 (define-public python-pytidylib
22290 (name "python-pytidylib")
22294 (uri (pypi-uri "pytidylib" version))
22297 "1wqa9dv5d7swka14rnky862hc7dgk2g3dhlrz57hdn3hb7bwic92"))))
22298 (build-system python-build-system)
22301 (modify-phases %standard-phases
22302 (add-before 'build 'qualify-libtidy
22303 (lambda* (#:key inputs #:allow-other-keys)
22304 (let ((libtidy (string-append (assoc-ref inputs "tidy")
22305 "/lib/libtidy.so")))
22306 (substitute* "tidylib/tidy.py"
22307 (("ctypes\\.util\\.find_library\\('tidy'\\)")
22308 (format #f "'~a'" libtidy)))
22310 (inputs `(("tidy" ,tidy)))
22311 (home-page "https://github.com/countergram/pytidylib")
22312 (synopsis "Python wrapper for HTML Tidy library")
22314 "PyTidyLib is a Python package that wraps the HTML Tidy library. This
22315 allows you, from Python code, to “fix” invalid (X)HTML markup.")
22316 (license license:expat)))
22318 (define-public python2-pytidylib
22319 (package-with-python2 python-pytidylib))
22321 (define-public python-mujson
22323 (name "python-mujson")
22328 (uri (pypi-uri "mujson" version))
22331 "0wbj6r8yzsdx2b0kbldlkznr1a9nn33za2q9x3g0hbg420dwzn97"))))
22332 (build-system python-build-system)
22333 (home-page "https://github.com/mattgiles/mujson")
22334 (synopsis "Use the fastest JSON functions available at import time")
22335 (description "This package selects the fastest JSON functions available
22337 (license license:expat)))
22339 (define-public python-bashlex
22341 (name "python-bashlex")
22346 (uri (pypi-uri "bashlex" version))
22349 "1z9g96fgsfpdwawp4sb5x6hbdhmda7kgmcrqlf9xx4bs1f8f14js"))))
22350 (build-system python-build-system)
22353 (modify-phases %standard-phases
22354 (add-before 'build 'pregenerate-yacc-tables
22356 ;; parser.py caches tables, which attempts to write to site lib
22357 ;; see https://github.com/idank/bashlex/issues/51
22358 (invoke "python" "-c" "import bashlex"))))))
22360 "https://github.com/idank/bashlex")
22361 (synopsis "Python parser for bash")
22362 (description "@code{bashlex} is a Python port of the parser used
22363 internally by GNU bash.
22365 For the most part it's transliterated from C, the major differences are:
22368 @item it does not execute anything
22369 @item it is reentrant
22370 @item it generates a complete AST
22373 (license license:gpl3+)))
22375 (define-public python-jinxed
22377 (name "python-jinxed")
22382 (uri (pypi-uri "jinxed" version))
22385 "1n7vl03rhjd0xhjgbjlh8x9f8yfbhamcwkgvs4jg7g5qj8f0wk89"))))
22386 (build-system python-build-system)
22389 (modify-phases %standard-phases
22390 (add-before 'check 'set-environment-variables
22391 (lambda* (#:key inputs #:allow-other-keys)
22392 (let ((ncurses (assoc-ref inputs "ncurses")))
22393 (setenv "TERM" "LINUX")
22394 (setenv "TERMINFO" (string-append ncurses "/share/terminfo"))
22396 #:tests? #f)) ; _curses.error: setupterm: could not find terminal
22398 `(("ncurses" ,ncurses)))
22399 (home-page "https://github.com/Rockhopper-Technologies/jinxed")
22400 (synopsis "Jinxed Terminal Library")
22402 "Jinxed is an implementation of a subset of the Python curses library.")
22403 (license license:mpl2.0)))
22405 (define-public python-blessed
22407 (name "python-blessed")
22412 (uri (pypi-uri "blessed" version))
22415 "1wdj342sk22hfrg0n91x2qnqsbzbiyq9y009v3pxnvfzn9bx0wbn"))
22416 (modules '((guix build utils)))
22419 ;; Don't get hung up on Windows test failures.
22420 (delete-file "blessed/win_terminal.py") #t))))
22421 (build-system python-build-system)
22423 `(("python-jinxed" ,python-jinxed)
22424 ("python-six" ,python-six)
22425 ("python-wcwidth" ,python-wcwidth)))
22427 `(("python-mock" ,python-mock)
22428 ("python-pytest" ,python-pytest)))
22429 (home-page "https://github.com/jquast/blessed")
22430 (synopsis "Wrapper around terminal capabilities")
22432 "Blessed is a thin, practical wrapper around terminal styling, screen
22433 positioning, and keyboard input.")
22434 (license license:expat)))
22436 (define-public python-readme-renderer
22438 (name "python-readme-renderer")
22443 (uri (pypi-uri "readme_renderer" version))
22446 "13fnrv7z3y0yfafzcjbl55cqxncvbxadr72ql4l29pgyvrqxpsfb"))))
22447 (build-system python-build-system)
22449 `(("python-bleach" ,python-bleach)
22450 ("python-docutils" ,python-docutils)
22451 ("python-pygments" ,python-pygments)
22452 ("python-six" ,python-six)))
22454 `(("python-mock" ,python-mock)
22455 ("python-pytest" ,python-pytest)))
22456 (home-page "https://github.com/pypa/readme_renderer")
22457 (synopsis "Render README files in Warehouse")
22459 "Readme Renderer is a library that will safely render arbitrary README
22460 files into HTML. It is designed to be used in Warehouse to render the
22461 @code{long_description} for packages. It can handle Markdown, reStructuredText,
22463 (license license:asl2.0)))
22465 (define-public python-lazr-delegates
22467 (name "python-lazr-delegates")
22472 (uri (pypi-uri "lazr.delegates" version))
22475 "1rdnl85j9ayp8n85l0ciip621j9dcziz5qnmv2m7krgwgcn31vfx"))))
22476 (build-system python-build-system)
22479 (modify-phases %standard-phases
22482 (invoke "python" "setup.py" "nosetests"))))))
22484 `(("python-nose" ,python-nose)))
22486 `(("python-zope-interface" ,python-zope-interface)))
22487 (home-page "https://launchpad.net/lazr.delegates")
22488 (synopsis "Easily write objects that delegate behavior")
22490 "The @code{lazr.delegates} package makes it easy to write objects that
22491 delegate behavior to another object. The new object adds some property or
22492 behavior on to the other object, while still providing the underlying interface,
22493 and delegating behavior.")
22494 (license license:lgpl3)))
22496 (define-public python-lazr-config
22498 (name "python-lazr-config")
22503 (uri (pypi-uri "lazr.config" version))
22506 "11xpddgyhyj7sf27wbmrq5lnqk21wnprx3ajycgwlxjamh6sgffd"))))
22507 (build-system python-build-system)
22510 (modify-phases %standard-phases
22513 (invoke "python" "-s" "-m" "nose" "-P" "lazr"))))))
22515 `(("python-nose" ,python-nose)))
22517 `(("python-lazr-delegates" ,python-lazr-delegates)
22518 ("python-zope-interface" ,python-zope-interface)))
22519 (home-page "https://launchpad.net/lazr.config")
22520 (synopsis "Create configuration schemas and process and validate configurations")
22522 "The LAZR config system is typically used to manage process configuration.
22523 Process configuration is for saying how things change when we run systems on
22524 different machines, or under different circumstances. This system uses ini-like
22525 file format of section, keys, and values. The config file supports inheritance
22526 to minimize duplication of information across files. The format supports schema
22528 (license license:lgpl3)))
22530 (define-public python-flufl-bounce
22532 (name "python-flufl-bounce")
22537 (uri (pypi-uri "flufl.bounce" version))
22540 "01lg1b0jpf8605mzaz9miq3nray6s7a7gc8n4wzg5nsxl8fglcp4"))))
22541 (build-system python-build-system)
22543 `(("python-atpublic" ,python-atpublic)
22544 ("python-zope-interface" ,python-zope-interface)))
22546 `(("python-nose2" ,python-nose2)))
22547 (home-page "https://fluflbounce.readthedocs.io/en/latest/")
22548 (synopsis "Email bounce detectors")
22549 (description "The @code{flufl.bounce} library provides a set of heuristics
22550 and an API for detecting the original bouncing email addresses from a bounce
22551 message. Many formats found in the wild are supported, as are VERP and
22553 (license (list license:asl2.0
22554 license:lgpl3)))) ; only for setup_headers.py
22556 (define-public python-flufl-i18n
22558 (name "python-flufl-i18n")
22563 (uri (pypi-uri "flufl.i18n" version))
22566 "1flwpn1xhgc957zj3zxw92dhdjh0lsy0hdvzq32dzqpsajfsvq1r"))))
22567 (build-system python-build-system)
22569 `(("python-atpublic" ,python-atpublic)))
22570 (home-page "https://flufli18n.readthedocs.io")
22571 (synopsis "API for Python internationalization")
22573 "This package provides a high-level, convenient API for managing
22574 internationalization/translation contexts in Python applications. There is a
22575 simple API for single-context applications, such as command line scripts which
22576 only need to translate into one language during the entire course of their
22577 execution. There is a more flexible, but still convenient API for multi-context
22578 applications, such as servers, which may need to switch language contexts for
22580 (license license:asl2.0)))
22582 (define-public python-flufl-lock
22584 (name "python-flufl-lock")
22589 (uri (pypi-uri "flufl.lock" version))
22592 "055941zyma3wfx25jhm8wcsghpv3jc3iwi1gdrdjhzcnfhn62lxq"))))
22593 (build-system python-build-system)
22595 `(("python-atpublic" ,python-atpublic)
22596 ("python-psutil" ,python-psutil)))
22597 (home-page "https://flufllock.readthedocs.io")
22598 (synopsis "NFS-safe file locking with timeouts for POSIX systems")
22600 "The @dfn{flufl.lock} package provides NFS-safe file locking with
22601 timeouts for POSIX systems. It is similar to the @code{O_EXCL} option of the
22602 @code{open} system call but uses a lockfile. Lock objects support lock-breaking
22603 and have a maximum lifetime built-in.")
22604 (license (list license:asl2.0
22605 license:lgpl3)))) ; only for setup_helpers.py
22607 (define-public python-flufl-testing
22609 (name "python-flufl-testing")
22614 (uri (pypi-uri "flufl.testing" version))
22617 "1nkm95mhcfhl4x5jgs6y97ikszaxsfh07nyawsih6cxxm6l62641"))))
22618 (build-system python-build-system)
22620 `(("python-nose2" ,python-nose2)))
22621 (home-page "https://gitlab.com/warsaw/flufl.testing")
22622 (synopsis "Collection of test tool plugins")
22624 "This package contains a small collection of test tool plugins for
22625 @code{nose2} and @code{flake8}.")
22626 (license license:asl2.0)))
22628 (define-public python-devtools
22630 (name "python-devtools")
22635 (uri (git-reference
22636 (url "https://github.com/samuelcolvin/python-devtools")
22637 (commit (string-append "v" version))))
22638 (file-name (git-file-name name version))
22640 (base32 "15zczdcm90wl54c68f1qjb05nkd5bjsc9xjl3lk4frs7k7wkmrvp"))))
22641 (build-system python-build-system)
22643 `(("python-pytest" ,python-pytest)
22644 ("python-pytest-mock" ,python-pytest-mock)))
22646 `(("python-pygments" ,python-pygments)))
22648 `(#:phases (modify-phases %standard-phases
22653 (home-page "https://github.com/samuelcolvin/python-devtools")
22654 (synopsis "Debug command and development tools")
22656 "This package provides a debug print command and other development tools.
22657 It adds a simple and readable way to print stuff during development.")
22658 (license license:expat)))
22660 (define-public python-dateparser
22662 (name "python-dateparser")
22667 (uri (pypi-uri "dateparser" version))
22670 "1ypbyqxlk7n6zibk90js3ybz37xmin3kk0i35g8c51bwqpcfyxg8"))))
22671 (build-system python-build-system)
22673 `(("python-dateutil" ,python-dateutil)
22674 ("python-pytz" ,python-pytz)
22675 ("python-regex" ,python-regex)
22676 ("python-ruamel.yaml" ,python-ruamel.yaml)
22677 ("python-tzlocal" ,python-tzlocal)))
22679 `(("python-mock" ,python-mock)
22680 ("python-parameterized" ,python-parameterized)
22681 ("tzdata" ,tzdata-for-tests)))
22683 `(;; TODO: Of 23320 tests, 6 fail and 53 error.
22686 (modify-phases %standard-phases
22687 (add-before 'check 'set-check-environment
22688 (lambda* (#:key inputs #:allow-other-keys)
22689 (setenv "TZ" "UTC")
22691 (string-append (assoc-ref inputs "tzdata")
22692 "/share/zoneinfo"))
22694 (home-page "https://github.com/scrapinghub/dateparser")
22696 "Date parsing library designed to parse dates from HTML pages")
22698 "@code{python-dateparser} provides modules to easily parse localized
22699 dates in almost any string formats commonly found on web pages.")
22700 (license license:bsd-3)))
22702 (define-public python-dparse
22704 (name "python-dparse")
22709 (uri (pypi-uri "dparse" version))
22712 "0rzkg3nymsbwdjc0ms2bsajkda02jipwyp3xk97qj71f21lz3dd1"))))
22713 (build-system python-build-system)
22715 `(("python-pytest" ,python-pytest)))
22717 `(("python-packaging" ,python-packaging)
22718 ("python-pyyaml" ,python-pyyaml)
22719 ("python-toml" ,python-toml)))
22720 (home-page "https://github.com/pyupio/dparse")
22721 (synopsis "Parser for Python dependency files")
22722 (description "This package provides a parser for Python dependency files.")
22723 (license license:expat)))
22725 (define-public python-dpath
22727 (name "python-dpath")
22732 (uri (pypi-uri "dpath" version))
22735 "1ymi9ssk7i0mx3mviplf4csfvzibdd6wyj4qzj6s487n9xgnp85y"))))
22736 (build-system python-build-system)
22738 `(("python-hypothesis" ,python-hypothesis)
22739 ("python-mock" ,python-mock)
22740 ("python-nose" ,python-nose)))
22743 (modify-phases %standard-phases
22745 (lambda* (#:key inputs outputs #:allow-other-keys)
22746 (add-installed-pythonpath inputs outputs)
22747 ;; This invokation is taken from tox.ini.
22748 (invoke "nosetests" "-d" "-v" "tests/"))))))
22749 (home-page "https://github.com/akesterson/dpath-python")
22750 (synopsis "Filesystem-like pathing and searching for dictionaries")
22752 "@code{python-dpath} is a library for accessing and searching
22753 dictionaries via /slashed/paths ala xpath.
22755 Basically it lets you glob over a dictionary as if it were a filesystem. It
22756 allows you to specify globs (ala the bash eglob syntax, through some advanced
22757 fnmatch.fnmatch magic) to access dictionary elements, and provides some
22758 facility for filtering those results.")
22759 (license license:expat)))
22761 (define-public python-safety
22763 (name "python-safety")
22768 (uri (pypi-uri "safety" version))
22771 "1j801xsxfzavjbzhhc934awvnk1b7jc0qsw3jp3ys0241mlj1gr3"))))
22772 (build-system python-build-system)
22775 (modify-phases %standard-phases
22776 (add-after 'unpack 'disable-tests
22778 (substitute* "tests/test_safety.py"
22779 ;; requires network
22780 (("def test_check_live") "def _test_check_live"))
22783 `(("python-click" ,python-click)
22784 ("python-dparse" ,python-dparse)
22785 ("python-packaging" ,python-packaging)
22786 ("python-requests" ,python-requests)))
22787 (home-page "https://github.com/pyupio/safety")
22788 (synopsis "Check installed dependencies for known vulnerabilities")
22789 (description "Safety checks installed dependencies for known vulnerabilities.
22790 By default it uses the open Python vulnerability database Safety DB.")
22791 (license license:expat)))
22793 (define-public python-pypandoc
22795 (name "python-pypandoc")
22800 (uri (pypi-uri "pypandoc" version))
22803 "1zvn9764cf7kkjkmr9gw6wc8adpk06qxr1rhxwa9pg0zmdvrk90l"))))
22804 (build-system python-build-system)
22806 `(("pandoc" ,pandoc)
22807 ("pandoc-citeproc" ,pandoc-citeproc)))
22809 `(("wheel" ,python-wheel)))
22811 `(("texlive" ,(texlive-union (list texlive-amsfonts
22813 texlive-latex-hyperref
22814 texlive-latex-oberdiek
22816 texlive-xcolor)))))
22819 (modify-phases %standard-phases
22820 (add-before 'check 'disable-tests
22822 ;; Disable test requiring network access
22823 (substitute* "tests.py"
22824 (("test_basic_conversion_from_http_url")
22825 "skip_test_basic_conversion_from_http_url"))
22826 ;; Needed by texlive-union to generate fonts
22827 (setenv "HOME" "/tmp")
22829 (home-page "https://github.com/bebraw/pypandoc")
22830 (synopsis "Python wrapper for pandoc")
22831 (description "pypandoc is a thin Python wrapper around pandoc
22832 and pandoc-citeproc.")
22833 (license license:expat)))
22835 (define-public python-rnc2rng
22837 (name "python-rnc2rng")
22842 (uri (pypi-uri "rnc2rng" version))
22845 "1kmp3iwxxyzjsd47j2sprd47ihhkwhb3yydih3af5bbfq0ibh1w8"))))
22846 (build-system python-build-system)
22848 `(("python-rply" ,python-rply)))
22850 `(#:phases (modify-phases %standard-phases
22853 (invoke "python" "test.py"))))))
22854 (home-page "https://github.com/djc/rnc2rng")
22855 (synopsis "Convert RELAX NG Compact to regular syntax")
22857 "This package provides the @command{rnc2rng} command-line tool as well as
22858 a Python library to convert RELAX NG schemata in Compact syntax (rnc) to
22859 equivalent schemata in the XML-based default RELAX NG syntax.")
22860 (license license:expat)))
22862 (define-public python-telethon
22864 (name "python-telethon")
22869 (uri (git-reference
22870 (url "https://github.com/LonamiWebs/Telethon")
22871 (commit (string-append "v" version))))
22872 (file-name (git-file-name name version))
22874 (base32 "0l9fhdrq576vllgi9aam45xzw5xi6jhgdv5zz8i4ygssdp7cm8jl"))))
22875 (build-system python-build-system)
22878 (modify-phases %standard-phases
22880 (lambda* (#:key tests? #:allow-other-keys)
22882 (invoke "py.test" "-v"))
22885 `(("python-rsa" ,python-rsa)
22886 ("python-pyaes" ,python-pyaes)))
22888 `(("python-pytest" ,python-pytest)
22889 ("python-pytest-asyncio" ,python-pytest-asyncio)
22890 ("python-pytest-trio" ,python-pytest-trio)))
22891 (home-page "https://docs.telethon.dev")
22892 (synopsis "Full-featured Telegram client library for Python 3")
22893 (description "This library is designed to make it easy to write Python
22894 programs that can interact with Telegram.")
22895 (license license:expat)))
22897 (define-public python-citeproc-py
22899 (name "python-citeproc-py")
22904 (uri (pypi-uri "citeproc-py" version))
22907 "00aaff50jy4j0nakdzq9258z1gzrac9baarli2ymgspj88jg5968"))))
22908 (build-system python-build-system)
22910 `(("python-lxml" ,python-lxml)
22911 ("python-rnc2rng" ,python-rnc2rng)))
22913 "https://github.com/brechtm/citeproc-py")
22914 (synopsis "Citations and bibliography formatter")
22916 "Citeproc-py is a CSL processor for Python. It aims to implement the
22917 CSL 1.0.1 specification. citeproc-py can output styled citations and
22918 bibliographies in a number of different output formats. Currently supported
22919 are plain text, reStructuredText and HTML.")
22920 (license license:bsd-2)))
22922 (define-public python-inform
22924 (name "python-inform")
22929 (uri (pypi-uri "inform" version))
22932 "0dvc5klbnbryrvspp45nmlg02g40j7xspcz7lqsm0c0dj0z29zdz"))))
22933 (build-system python-build-system)
22935 `(#:tests? #f)) ; PyPI tarball lacks tests
22937 `(("python-hypothesis" ,python-hypothesis)
22938 ("python-pytest-cov" ,python-pytest-cov)
22939 ("python-pytest-runner" ,python-pytest-runner)))
22941 `(("python-arrow" ,python-arrow)
22942 ("python-six" ,python-six)))
22943 (home-page "https://inform.readthedocs.io")
22944 (synopsis "Print & logging utilities for communicating with user")
22946 "Inform is designed to display messages from programs that are typically run from
22947 a console. It provides a collection of ‘print’ functions that allow you to simply and
22948 cleanly print different types of messages.")
22949 (license license:gpl3+)))
22951 (define-public python-nestedtext
22953 (name "python-nestedtext")
22958 (uri (pypi-uri "nestedtext" version))
22961 "0xjx863n7yd1xmkwhy48lhmqrmlzgbx3civhk386hvrzyq4sx148"))))
22962 (build-system python-build-system)
22964 `(#:tests? #f)) ; PyPI tarball lacks tests
22966 `(("python-inform" ,python-inform)))
22967 (home-page "https://nestedtext.org")
22968 (synopsis "Human readable and writable data interchange format")
22970 "NestedText is a file format for holding data that is to be entered, edited, or
22971 viewed by people. It allows data to be organized into a nested collection of
22972 dictionaries, lists, and strings. In this way it is similar to JSON and YAML, but
22973 without the complexity and risk of YAML and without the syntatic clutter of JSON.
22974 NestedText is both simple and natural. Only a small number of concepts and rules must
22975 be kept in mind when creating it. It is easily created, modified, or viewed with
22976 a text editor and easily understood and used by both programmers and non-programmers.")
22977 (license license:expat))) ; MIT license
22979 (define-public python-parallel
22981 (name "python-parallel")
22982 (version "1.6.4.4")
22986 (uri (string-append
22987 "https://www.parallelpython.com/downloads/pp/pp-"
22991 "1mzk4yabxj6r149fswhis18hd8dnag5sj8i4wb06450zq3pi8dh7"))))
22993 `(("unzip" ,unzip)))
22994 (build-system python-build-system)
22995 (arguments '(#:tests? #f)) ; No test suite.
22996 (home-page "https://www.parallelpython.com")
22997 (synopsis "Parallel and distributed programming for Python")
22998 (description "Parallel Python module (PP) provides an easy and efficient
22999 way to create parallel-enabled applications for SMP computers and clusters.
23000 PP module features cross-platform portability and dynamic load balancing.
23001 Thus applications written with PP will parallelize efficiently even on
23002 heterogeneous and multi-platform clusters (including clusters running other
23003 applications with variable CPU loads).")
23004 (license license:bsd-3)))
23006 (define-public python2-parallel
23007 (package-with-python2 python-parallel))
23009 (define-public python-djvulibre
23011 (name "python-djvulibre")
23016 (uri (pypi-uri "python-djvulibre" version))
23018 (base32 "1c0lvpg7j2525cv52s3q5sg7hfnakkb8rmghg0jc02gshsxmrj4f"))))
23019 (build-system python-build-system)
23021 `(("ghostscript" ,ghostscript)
23022 ("pkg-config" ,pkg-config)
23023 ("python-nose" ,python-nose)))
23025 `(("djvulibre" ,djvulibre)
23026 ("python-cython" ,python-cython)))
23029 (modify-phases %standard-phases
23030 (add-after 'unpack 'fix-tests
23032 ;; Unit tests try to load the 'dllpath.py' and fail, because it
23033 ;; doesn't make sense on GNU/Linux.
23034 (delete-file "djvu/dllpath.py")
23036 (synopsis "Python bindings for DjVuLibre")
23037 (description "This is a set of Python bindings for the DjVuLibre library.")
23038 (home-page "https://jwilk.net/software/python-djvulibre")
23039 (license license:gpl2)))
23041 (define-public python2-djvulibre
23042 (package-with-python2 python-djvulibre))
23044 (define-public python-versioneer
23046 (name "python-versioneer")
23051 (uri (pypi-uri "versioneer" version))
23054 "1bmg8y78am371rd9b4clf11b8g1h7xvq8q58z03jvgdwpsdx7zm4"))))
23055 (build-system python-build-system)
23057 "https://github.com/python-versioneer/python-versioneer")
23059 "Version-string management for VCS-controlled trees")
23061 "@code{versioneer} is a tool for managing a recorded version number in
23062 distutils-based python projects. The goal is to remove the tedious and
23063 error-prone \"update the embedded version string\" step from your release
23065 (license license:public-domain)))
23067 (define-public python2-gamera
23069 (name "python2-gamera")
23074 (uri (string-append "https://gamera.informatik.hsnr.de/download/"
23075 "gamera-" version ".tar.gz"))
23077 (base32 "1g4y1kxk1hmxfsiz682hbxvwryqilnb21ci509m559yp7hcliiyy"))
23078 (modules '((guix build utils)))
23081 ;; Remove bundled libraries.
23082 (for-each delete-file-recursively
23083 '("src/libpng-1.2.5"
23085 "src/zlib-1.2.8"))))))
23086 (build-system python-build-system)
23088 `(("libpng" ,libpng)
23089 ("libtiff" ,libtiff)
23090 ("python2-wxpython" ,python2-wxpython)
23093 `(#:python ,python-2))
23094 (synopsis "Framework for building document analysis applications")
23096 "Gamera is a toolkit for building document image recognition systems.")
23097 (home-page "https://gamera.informatik.hsnr.de/")
23098 (license license:gpl2+)))
23100 (define-public python-contextvars
23102 (name "python-contextvars")
23107 (uri (pypi-uri "contextvars" version))
23110 "17n3w8c20kgkgc6khaafdhhlcdj4bzman4paxqsl7harma59137k"))))
23111 (build-system python-build-system)
23113 `(("python-immutables" ,python-immutables)))
23115 "https://github.com/MagicStack/contextvars")
23116 (synopsis "PEP 567 Backport")
23117 (description "This package implements a backport of Python 3.7
23118 @code{contextvars} module (see PEP 567) for Python 3.6.")
23119 (license license:asl2.0)))
23121 (define-public python-aiofiles
23123 (name "python-aiofiles")
23128 (uri (pypi-uri "aiofiles" version))
23131 "1bqmv019x16qa3zah0z915cw6z4va3fjs60fk2s7vyah3gyvrrlq"))))
23132 (build-system python-build-system)
23133 (home-page "https://github.com/Tinche/aiofiles")
23134 (synopsis "File support for @code{asyncio}")
23135 (description "@code{python-aiofiles} is a library for handling local
23136 disk files in asyncio applications.")
23137 (license license:asl2.0)))
23139 (define-public python-pyre-extensions
23141 (name "python-pyre-extensions")
23146 (uri (pypi-uri "pyre-extensions" version))
23149 "0c5cbbqrfyjwakdh3kbwxis6mbrbwky1z1fqslgszgpcj4g43q30"))))
23150 (build-system python-build-system)
23152 `(("python-typing-extensions"
23153 ,python-typing-extensions)
23154 ("python-typing-inspect" ,python-typing-inspect)))
23155 (home-page "https://pyre-check.org")
23157 "Type system extensions for use with @code{python-pyre}")
23159 "@code{python-pyre-extensions} defines extensions to the standard
23160 @code{typing} module that are supported by the Pyre typechecker.")
23161 (license license:expat)))
23163 (define-public python-dataclasses
23165 (name "python-dataclasses")
23170 (uri (pypi-uri "dataclasses" version))
23173 "1rh8111fbws2vxyf2qy2zw3x6p6cq1jfz8pf904gig5qwg56sjj9"))))
23174 (build-system python-build-system)
23176 "https://github.com/ericvsmith/dataclasses")
23178 "Backport of the @code{dataclasses} module for Python 3.6")
23180 "This is an implementation of PEP 557, Data Classes. It is a
23181 backport of the @code{dataclasses} module for Python 3.6.")
23182 (license license:asl2.0)))
23184 (define-public python-pywatchman
23186 (name "python-pywatchman")
23191 (uri (pypi-uri "pywatchman" version))
23194 "1yf2gm20wc3djpb5larxii3l55xxby0il2ns3q0v1byyfnr7w16h"))))
23195 (build-system python-build-system)
23197 `(#:tests? #f)) ;there are none
23199 "https://facebook.github.io/watchman/")
23200 (synopsis "Watchman client for python")
23201 (description "@code{python-pywatchman} is a library to connect and
23202 query Watchman to discover file changes.")
23203 (license license:bsd-3)))