projects/guix·blob kernel-updates · refs

43868 lines · 1.6 MiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Nikita Karetnikov <[email protected]>
3;;; Copyright © 2013-2026 Ludovic Courtès <[email protected]>
4;;; Copyright © 2013, 2014, 2015, 2016, 2019, 2023 Andreas Enge <[email protected]>
5;;; Copyright © 2014, 2015 Mark H Weaver <[email protected]>
6;;; Copyright © 2014, 2017, 2021, 2022, 2024 Eric Bavier <[email protected]>
7;;; Copyright © 2014, 2015 Federico Beffa <[email protected]>
8;;; Copyright © 2015 Omar Radwan <[email protected]>
9;;; Copyright © 2015 Pierre-Antoine Rault <[email protected]>
10;;; Copyright © 2015-2026 Ricardo Wurmus <[email protected]>
11;;; Copyright © 2015, 2016, 2020 Christine Lemmer-Webber <[email protected]>
12;;; Copyright © 2015 Eric Dvorsak <[email protected]>
13;;; Copyright © 2015, 2016 David Thompson <[email protected]>
14;;; Copyright © 2015, 2016, 2017, 2019, 2022 Leo Famulari <[email protected]>
15;;; Copyright © 2015, 2017 Ben Woodcroft <[email protected]>
16;;; Copyright © 2015, 2016 Erik Edrosa <[email protected]>
17;;; Copyright © 2015-2026 Efraim Flashner <[email protected]>
18;;; Copyright © 2015, 2017, 2020 Kyle Meyer <[email protected]>
19;;; Copyright © 2015, 2016 Chris Marusich <[email protected]>
20;;; Copyright © 2016 Danny Milosavljevic <[email protected]>
21;;; Copyright © 2016 Lukas Gradl <[email protected]>
22;;; Copyright © 2016, 2018, 2019, 2021 Hartmut Goebel <[email protected]>
23;;; Copyright © 2016 Daniel Pimentel <[email protected]>
24;;; Copyright © 2016 Sou Bunnbu <[email protected]>
25;;; Copyright © 2016, 2017 Troy Sankey <[email protected]>
26;;; Copyright © 2016, 2017 Nikita <[email protected]>
27;;; Copyright © 2016 Dylan Jeffers <sapientech@[email protected]>
28;;; Copyright © 2016 David Craven <[email protected]>
29;;; Copyright © 2016-2023 Marius Bakke <[email protected]>
30;;; Copyright © 2016, 2017, 2021, 2022 Stefan Reichör <[email protected]>
31;;; Copyright © 2016, 2017, 2019 Alex Vong <[email protected]>
32;;; Copyright © 2016–2018, 2021–2024, 2026 Arun Isaac <[email protected]>
33;;; Copyright © 2016, 2017, 2018, 2020, 2021 Julien Lepiller <[email protected]>
34;;; Copyright © 2016–2022 Tobias Geerinckx-Rice <[email protected]>
35;;; Copyright © 2016, 2017 Thomas Danckaert <[email protected]>
36;;; Copyright © 2017 Carlo Zancanaro <[email protected]>
37;;; Copyright © 2017 Frederick M. Muriithi <[email protected]>
38;;; Copyright © 2017, 2018 Adriano Peluso <[email protected]>
39;;; Copyright © 2017 Ben Sturmfels <[email protected]>
40;;; Copyright © 2017, 2018, 2019, 2021, 2022 Mathieu Othacehe <[email protected]>
41;;; Copyright © 2017 José Miguel Sánchez García <[email protected]>
42;;; Copyright © 2017, 2020, 2021 Roel Janssen <[email protected]>
43;;; Copyright © 2017, 2018, 2019 Kei Kebreau <[email protected]>
44;;; Copyright © 2017 Rutger Helling <[email protected]>
45;;; Copyright © 2017, 2019, 2021, 2025 Brendan Tildesley <[email protected]>
46;;; Copyright © 2018 Ethan R. Jones <[email protected]
47;;; Copyright © 2018 Fis Trivial <[email protected]>
48;;; Copyright © 2018 Vijayalakshmi Vedantham <[email protected]>
49;;; Copyright © 2018 Mathieu Lirzin <[email protected]>
50;;; Copyright © 2018 Adam Massmann <[email protected]>
51;;; Copyright © 2016, 2018 Tomáš Čech <[email protected]>
52;;; Copyright © 2018-2025 Nicolas Goaziou <[email protected]>
53;;; Copyright © 2018 Oleg Pykhalov <[email protected]>
54;;; Copyright © 2018, 2019, 2021, 2023 Clément Lassieur <[email protected]>
55;;; Copyright © 2018-2026 Maxim Cournoyer <[email protected]>
56;;; Copyright © 2018 Luther Thompson <[email protected]>
57;;; Copyright © 2018 Vagrant Cascadian <[email protected]>
58;;; Copyright © 2015, 2018 Pjotr Prins <[email protected]>
59;;; Copyright © 2019 [email protected] <[email protected]>
60;;; Copyright © 2019, 2020 Brett Gilio <[email protected]>
61;;; Copyright © 2019 Sam <[email protected]>
62;;; Copyright © 2019, 2023 Jack Hill <[email protected]>
63;;; Copyright © 2019-2023, Guillaume Le Vaillant <[email protected]>
64;;; Copyright © 2019, 2020 Alex Griffin <[email protected]>
65;;; Copyright © 2019, 2020, 2021, 2022, 2023 Pierre Langlois <[email protected]>
66;;; Copyright © 2019 Jacob MacDonald <[email protected]>
67;;; Copyright © 2019-2021, 2023, 2024, 2026 Giacomo Leidi <[email protected]>
68;;; Copyright © 2019 Wiktor Żelazny <[email protected]>
69;;; Copyright © 2019, 2020, 2021, 2022, 2026 Tanguy Le Carrour <[email protected]>
70;;; Copyright © 2019, 2021-2023 Mădălin Ionel Patrașcu <[email protected]>
71;;; Copyright © 2020 Riku Viitanen <[email protected]>
72;;; Copyright © 2020 Jakub Kądziołka <[email protected]>
73;;; Copyright © 2020 sirgazil <[email protected]>
74;;; Copyright © 2020 Sebastian Schott <[email protected]>
75;;; Copyright © 2020 Alexandros Theodotou <[email protected]>
76;;; Copyright © 2020 Josh Marshall <[email protected]>
77;;; Copyright © 2020 Lars-Dominik Braun <[email protected]>
78;;; Copyright © 2020 Alex ter Weele <[email protected]>
79;;; Copyright © 2020, 2022 Matthew James Kraai <[email protected]>
80;;; Copyright © 2020 Ryan Prior <[email protected]>
81;;; Copyright © 2020 Josh Holland <[email protected]>
82;;; Copyright © 2020 Yuval Kogman <[email protected]>
83;;; Copyright © 2020, 2022 Michael Rohleder <[email protected]>
84;;; Copyright © 2020, 2021, 2022, 2023, 2024, 2025 Vinicius Monego <[email protected]>
85;;; Copyright © 2020 Guy Fleury Iteriteka <[email protected]>
86;;; Copyright © 2020 Hendursaga <[email protected]>
87;;; Copyright © 2020 Malte Frank Gerdes <[email protected]>
88;;; Copyright © 2020 Joseph LaFreniere <[email protected]>
89;;; Copyright © 2020 Tim Gesthuizen <[email protected]>
90;;; Copyright © 2020, 2021 Bonface Munyoki Kilyungi <[email protected]>
91;;; Copyright © 2020 Ekaitz Zarraga <[email protected]>
92;;; Copyright © 2020 Diego N. Barbato <[email protected]>
93;;; Copyright © 2020 Liliana Marie Prikler <[email protected]>
94;;; Copyright © 2019 Kristian Trandem <[email protected]>
95;;; Copyright © 2020, 2021, 2024, 2025 Zheng Junjie <[email protected]>
96;;; Copyright © 2020 EuAndreh <[email protected]>
97;;; Copyright © 2021, 2022 Morgan Smith <[email protected]>
98;;; Copyright © 2021-2026 Sharlatan Hellseher <[email protected]>
99;;; Copyright © 2021 Ellis Kenyő <[email protected]>
100;;; Copyright © 2021 LibreMiami <[email protected]>
101;;; Copyright © 2021 Mathieu Othacehe <[email protected]>
102;;; Copyright © 2021 Xinglu Chen <[email protected]>
103;;; Copyright © 2021 Raghav Gururajan <[email protected]>
104;;; Copyright © 2021, 2023-2025 jgart <[email protected]>
105;;; Copyright © 2021 Danial Behzadi <[email protected]>
106;;; Copyright © 2021 Maxime Devos <[email protected]>
107;;; Copyright © 2021 Hugo Lecomte <[email protected]>
108;;; Copyright © 2021 Franck Pérignon <[email protected]>
109;;; Copyright © 2021, 2022 Petr Hodina <[email protected]>
110;;; Copyright © 2021 Simon Streit <[email protected]>
111;;; Copyright © 2021 Stefan Reichör <[email protected]>
112;;; Copyright © 2021, 2022, 2023 Daniel Meißner <[email protected]>
113;;; Copyright © 2021, 2022 Pradana Aumars <[email protected]>
114;;; Copyright © 2021–2024, 2026 Felix Gruber <[email protected]>
115;;; Copyright © 2021 Sébastien Lerique <[email protected]>
116;;; Copyright © 2021 Raphaël Mélotte <[email protected]>
117;;; Copyright © 2021 ZmnSCPxj <[email protected]>
118;;; Copyright © 2021 Filip Lajszczak <[email protected]>
119;;; Copyright © 2021 Greg Hogan <[email protected]>
120;;; Copyright © 2022, 2023 John Kehayias <[email protected]>
121;;; Copyright © 2022 Aleksandr Vityazev <[email protected]>
122;;; Copyright © 2022, 2024-2026 Evgeny Pisemsky <[email protected]>
123;;; Copyright © 2022 drozdov <[email protected]>
124;;; Copyright © 2022 Peter Polidoro <[email protected]>
125;;; Copyright © 2022, 2023 Wamm K. D. <[email protected]>
126;;; Copyright © 2022 Jai Vetrivelan <[email protected]>
127;;; Copyright © 2022-2025 Artyom V. Poptsov <[email protected]>
128;;; Copyright © 2022, 2023 Paul A. Patience <[email protected]>
129;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <[email protected]>
130;;; Copyright © 2022 Philip McGrath <[email protected]>
131;;; Copyright © 2022 Marek Felšöci <[email protected]>
132;;; Copyright © 2022 Hilton Chain <[email protected]>
133;;; Copyright © 2022 Tomasz Jeneralczyk <[email protected]>
134;;; Copyright © 2022 Mathieu Laparie <[email protected]>
135;;; Copyright © 2022 Garek Dyszel <[email protected]>
136;;; Copyright © 2022 Baptiste Strazzulla <[email protected]>
137;;; Copyright © 2022-2025 Nicolas Graves <[email protected]>
138;;; Copyright © 2023 Gabriel Wicki <[email protected]>
139;;; Copyright © 2023 Amade Nemes <[email protected]>
140;;; Copyright © 2023 Bruno Victal <[email protected]>
141;;; Copyright © 2023 Lu Hui <[email protected]>
142;;; Copyright © 2023 Jean-Pierre De Jesus DIAZ <[email protected]>
143;;; Copyright © 2023 Kaelyn Takata <[email protected]>
144;;; Copyright © 2023 dan <[email protected]>
145;;; Copyright © 2023 Dominik Delgado Steuter <[email protected]>
146;;; Copyright © 2023 Ivan Vilata-i-Balaguer <[email protected]>
147;;; Copyright © 2023 Ontje Lünsdorf <[email protected]>
148;;; Copyright © 2023, 2025 gemmaro <[email protected]>
149;;; Copyright © 2023 Parnikkapore <[email protected]>
150;;; Copyright © 2023 Foundation Devices, Inc. <[email protected]>
151;;; Copyright © c4droid <[email protected]>
152;;; Copyright © 2023, 2024, 2025 Janneke Nieuwenhuizen <[email protected]>
153;;; Copyright © 2023 Attila Lendvai <[email protected]>
154;;; Copyright © 2023, 2024 Troy Figiel <[email protected]>
155;;; Copyright © 2023 Adam Faiz <[email protected]>
156;;; Copyright © 2023 Wiktor Żelazny <[email protected]>
157;;; Copyright © 2023-2026 Spencer King <[email protected]>
158;;; Copyright © 2024 Timothee Mathieu <[email protected]>
159;;; Copyright © 2024 Ian Eure <[email protected]>
160;;; Copyright © 2024 Adriel Dumas--Jondeau <[email protected]>
161;;; Copyright © 2024 Navid Afkhami <[email protected]>
162;;; Copyright © 2024 TakeV <[email protected]>
163;;; Copyright © 2024, 2025 David Elsing <[email protected]>
164;;; Copyright © 2024 Rick Huijzer <[email protected]>
165;;; Copyright © 2024 Peter Kannewitz <[email protected]>
166;;; Copyright © 2024 Aaron Covrig <[email protected]>
167;;; Copyright © 2024 Markku Korkeala <[email protected]>
168;;; Copyright © 2025 Jordan Moore <[email protected]>
169;;; Copyright © 2025 Dariqq <[email protected]>
170;;; Copyright © 2025-2026 Nguyễn Gia Phong <[email protected]>
171;;; Copyright © 2025, 2026 Cayetano Santos <[email protected]>
172;;; Copyright © 2025 Jake Forster <[email protected]>
173;;; Copyright © 2025 Luis Felipe López Acevedo <[email protected]>
174;;; Copyright © 2025 Josep Bigorra <[email protected]>
175;;; Copyright © 2025 Matthias Riße <[email protected]>
176;;; Copyright © 2025 Ghislain Vaillant <[email protected]>
177;;; Copyright © 2025 Allan Adair <[email protected]>
178;;; Copyright © 2025-2026 Hennadii Stepanov <[email protected]>
179;;; Copyright © 2025 Luca Kredel <[email protected]>
180;;; Copyright © 2025 Isidor Zeuner <[email protected]>
181;;; Copyright © 2025 Andy Tai <[email protected]>
182;;; Copyright © 2026 Daniel Khodabakhsh <[email protected]>
183;;; Copyright © 2026 Akiyoshi Suda <[email protected]>
184;;; Copyright © 2026 Sughosha <[email protected]>
185;;; Copyright © 2026 orahcio <[email protected]>
186;;; Copyright © 2026 John Dawson <[email protected]>
187;;; Copyright © 2026 Kevin Deldycke <[email protected]>
188;;; Copyright © 2026 Ryan Desfosses <[email protected]>
189;;; Copyright © 2026 nick <[email protected]>
190;;; Copyright © 2026 Mattia Bunel <[email protected]>
191;;;
192;;; This file is part of GNU Guix.
193;;;
194;;; GNU Guix is free software; you can redistribute it and/or modify it
195;;; under the terms of the GNU General Public License as published by
196;;; the Free Software Foundation; either version 3 of the License, or (at
197;;; your option) any later version.
198;;;
199;;; GNU Guix is distributed in the hope that it will be useful, but
200;;; WITHOUT ANY WARRANTY; without even the implied warranty of
201;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
202;;; GNU General Public License for more details.
203;;;
204;;; You should have received a copy of the GNU General Public License
205;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
206
207(define-module (gnu packages python-xyz)
208 #:use-module (gnu packages algebra)
209 #:use-module (gnu packages attr)
210 #:use-module (gnu packages autotools)
211 #:use-module (gnu packages backup)
212 #:use-module (gnu packages base)
213 #:use-module (gnu packages bash)
214 #:use-module (gnu packages bdw-gc)
215 #:use-module (gnu packages bioinformatics)
216 #:use-module (gnu packages boost)
217 #:use-module (gnu packages build-tools)
218 #:use-module (gnu packages c)
219 #:use-module (gnu packages check)
220 #:use-module (gnu packages cmake)
221 #:use-module (gnu packages compression)
222 #:use-module (gnu packages cpp)
223 #:use-module (gnu packages crypto)
224 #:use-module (gnu packages databases)
225 #:use-module (gnu packages dbm)
226 #:use-module (gnu packages dictionaries)
227 #:use-module (gnu packages digest)
228 #:use-module (gnu packages django)
229 #:use-module (gnu packages djvu)
230 #:use-module (gnu packages dns)
231 #:use-module (gnu packages documentation)
232 #:use-module (gnu packages duckdb)
233 #:use-module (gnu packages elf)
234 #:use-module (gnu packages emulators)
235 #:use-module (gnu packages enchant)
236 #:use-module (gnu packages file)
237 #:use-module (gnu packages fonts)
238 #:use-module (gnu packages fontutils)
239 #:use-module (gnu packages freedesktop)
240 #:use-module (gnu packages gcc)
241 #:use-module (gnu packages gdb)
242 #:use-module (gnu packages geo)
243 #:use-module (gnu packages ghostscript)
244 #:use-module (gnu packages glib)
245 #:use-module (gnu packages gnome)
246 #:use-module (gnu packages gnupg)
247 #:use-module (gnu packages graphviz)
248 #:use-module (gnu packages gsasl)
249 #:use-module (gnu packages gtk)
250 #:use-module (gnu packages guile-xyz)
251 #:use-module (gnu packages haskell-xyz)
252 #:use-module (gnu packages icu4c)
253 #:use-module (gnu packages image)
254 #:use-module (gnu packages image-processing)
255 #:use-module (gnu packages imagemagick)
256 #:use-module (gnu packages inkscape)
257 #:use-module (gnu packages iso-codes)
258 #:use-module (gnu packages java)
259 #:use-module (gnu packages javascript)
260 #:use-module (gnu packages jupyter)
261 #:use-module (gnu packages kerberos)
262 #:use-module (gnu packages less)
263 #:use-module (gnu packages libevent)
264 #:use-module (gnu packages libffi)
265 #:use-module (gnu packages libusb)
266 #:use-module (gnu packages linux)
267 #:use-module (gnu packages llvm)
268 #:use-module (gnu packages machine-learning)
269 #:use-module (gnu packages man)
270 #:use-module (gnu packages markup)
271 #:use-module (gnu packages maths)
272 #:use-module (gnu packages messaging)
273 #:use-module (gnu packages monitoring)
274 #:use-module (gnu packages mpi)
275 #:use-module (gnu packages multiprecision)
276 #:use-module (gnu packages ncurses)
277 #:use-module (gnu packages networking)
278 #:use-module (gnu packages node)
279 #:use-module (gnu packages node-xyz)
280 #:use-module (gnu packages nss)
281 #:use-module (gnu packages openstack)
282 #:use-module (gnu packages pcre)
283 #:use-module (gnu packages pdf)
284 #:use-module (gnu packages perl)
285 #:use-module (gnu packages photo)
286 #:use-module (gnu packages pkg-config)
287 #:use-module (gnu packages protobuf)
288 #:use-module (gnu packages python)
289 #:use-module (gnu packages python-build)
290 #:use-module (gnu packages python-check)
291 #:use-module (gnu packages python-compression)
292 #:use-module (gnu packages python-crypto)
293 #:use-module (gnu packages python-science)
294 #:use-module (gnu packages python-web)
295 #:use-module (gnu packages qt)
296 #:use-module (gnu packages rdf)
297 #:use-module (gnu packages readline)
298 #:use-module (gnu packages regex)
299 #:use-module (gnu packages rpc)
300 #:use-module (gnu packages rust)
301 #:use-module (gnu packages scanner)
302 #:use-module (gnu packages search)
303 #:use-module (gnu packages serialization)
304 #:use-module (gnu packages shells)
305 #:use-module (gnu packages specifications)
306 #:use-module (gnu packages sphinx)
307 #:use-module (gnu packages ssh)
308 #:use-module (gnu packages statistics)
309 #:use-module (gnu packages task-management)
310 #:use-module (gnu packages tcl)
311 #:use-module (gnu packages tex)
312 #:use-module (gnu packages texinfo)
313 #:use-module (gnu packages time)
314 #:use-module (gnu packages tls)
315 #:use-module (gnu packages tree-sitter)
316 #:use-module (gnu packages valgrind)
317 #:use-module (gnu packages version-control)
318 #:use-module (gnu packages video)
319 #:use-module (gnu packages web)
320 #:use-module (gnu packages wxwidgets)
321 #:use-module (gnu packages xdisorg)
322 #:use-module (gnu packages xml)
323 #:use-module (gnu packages xorg)
324 #:use-module (gnu packages)
325 #:use-module (guix build-system cargo)
326 #:use-module (guix build-system cmake)
327 #:use-module (guix build-system copy)
328 #:use-module (guix build-system gnu)
329 #:use-module (guix build-system meson)
330 #:use-module (guix build-system pyproject)
331 #:use-module (guix deprecation)
332 #:use-module (guix download)
333 #:use-module (guix gexp)
334 #:use-module (guix git-download)
335 #:use-module (guix hg-download)
336 #:use-module ((guix licenses) #:prefix license:)
337 #:use-module (guix packages)
338 #:use-module (guix utils)
339 #:use-module (ice-9 match)
340 #:use-module (srfi srfi-1)
341 #:use-module (srfi srfi-26))
342
343(define-public python-aenum
344 (package
345 (name "python-aenum")
346 (version "3.1.17")
347 (source
348 (origin
349 (method git-fetch)
350 (uri (git-reference
351 (url "https://github.com/ethanfurman/aenum")
352 (commit version)))
353 (file-name (git-file-name name version))
354 (sha256
355 (base32 "0nygn64ydkvlpz9hw1f26z8w1dk7bws8qsirwkxyfw99vpbzlz3v"))))
356 (build-system pyproject-build-system)
357 (arguments
358 (list
359 #:phases
360 #~(modify-phases %standard-phases
361 (add-after 'unpack 'fix
362 (lambda _
363 (substitute* "aenum/_py2.py"
364 (("raise exc.*")
365 "raise exc.with_traceback(tb)")))))
366 #:tests? #f)) ;no tests
367 (native-inputs (list python-setuptools))
368 (home-page "https://github.com/ethanfurman/aenum")
369 (synopsis
370 "Support for advanced enumerations, namedtuples and namedconstants")
371 (description
372 "AEnum is a set of symbolic names (members) bound to unique, constant
373values. Within an enumeration, the members can be compared by identity, and
374the enumeration itself can be iterated over. There is built-in support for
375unique values, multiple values, auto-numbering, and suspension of aliasing
376(members with the same value are not identical), plus the ability to have
377values automatically bound to attributes.")
378 (license license:bsd-3)))
379
380(define-public python-accumulation-tree
381 ;; Only minor releases (0.x) are tagged, not patch versions.
382 (let ((commit "3617051f952ce12385c015be8e3d052d1883f17a")
383 (revision "0"))
384 (package
385 (name "python-accumulation-tree")
386 (version (git-version "0.6.4" revision commit))
387 (source
388 (origin
389 (method git-fetch)
390 (uri (git-reference
391 (url "https://github.com/tkluck/accumulation_tree")
392 (commit commit)))
393 (file-name (git-file-name name version))
394 (sha256
395 (base32 "0bgqy07rpiyz60y8nfh8mha38l650x25l4bbbv6fx42czw7kzhbx"))
396 (modules '((guix build utils)))
397 (snippet ;use src layout for isolated tests
398 #~(let* ((src "src/")
399 (old "accumulation_tree/")
400 (new (string-append src old)))
401 (mkdir src)
402 (rename-file old new)
403 (substitute* "setup.py"
404 (("packages=" all)
405 (string-append "package_dir={'': '" src "'}, " all))
406 ((old)
407 new))))))
408 (build-system pyproject-build-system)
409 (arguments
410 (list #:test-backend #~'custom
411 #:test-flags #~'("-m" "doctest" "README.md" "tests.md")))
412 (native-inputs (list python-cloudpickle python-cython python-setuptools))
413 (home-page "https://github.com/tkluck/accumulation_tree")
414 (synopsis "Red-black tree with fast value accumulation in a key range")
415 (description
416 "This Python package implements a red-black tree which also stores
417partial aggregations at each node, making getting aggregations
418of key range slices an O(log(N)) operation.
419
420This data structure is very similar to a binary indexed tree,
421with heap allocation instead of a flat array to represent a tree.")
422 (license license:expat))))
423
424(define-public python-anaconda-cli-base
425 (package
426 (name "python-anaconda-cli-base")
427 (version "0.8.2")
428 (source
429 (origin
430 (method git-fetch)
431 (uri (git-reference
432 (url "https://github.com/anaconda/anaconda-cli-base")
433 (commit (string-append "v" version))))
434 (file-name (git-file-name name version))
435 (sha256
436 (base32 "1vsbxcgn05d7mlwl17f0bfq25lydl7i8n4x0a95hmjdl45n1q9wx"))))
437 (build-system pyproject-build-system)
438 (arguments
439 (list
440 #:test-flags
441 #~(list "--deselect=tests/test_cli.py::test_cli_version"
442 "--deselect=tests/test_cli.py::test_load_plugin")))
443 (native-inputs
444 (list python-hatch-vcs
445 python-hatchling
446 python-pytest
447 python-pytest-mock
448 python-setuptools-scm
449 python-types-requests))
450 (propagated-inputs
451 (list python-click
452 python-packaging
453 python-pydantic
454 python-pydantic-settings
455 python-readchar
456 python-rich
457 python-tomli
458 python-tomlkit
459 python-typer))
460 (home-page "https://anaconda.github.io/anaconda-cli-base/")
461 (synopsis "Base CLI entrypoint Anaconda CLI plugins")
462 (description
463 "This package provides a base CLI entrypoint supporting Anaconda CLI plugins.")
464 (license license:bsd-3)))
465
466(define-public python-annexremote
467 (package
468 (name "python-annexremote")
469 (version "1.6.6")
470 (source
471 (origin
472 (method git-fetch)
473 (uri (git-reference
474 (url "https://github.com/Lykos153/AnnexRemote")
475 (commit (string-append "v" version))))
476 (file-name (git-file-name name version))
477 (sha256
478 (base32 "0fhd712z143mvsidlwhnq951cvkbfcpybbim3fiyn6r3l1r46a25"))))
479 (build-system pyproject-build-system)
480 (native-inputs
481 (list python-pytest
482 python-setuptools
483 python-setuptools-scm))
484 (home-page "https://github.com/Lykos153/AnnexRemote")
485 (synopsis "Helper module to easily develop git-annex special remotes")
486 (description
487 "This package provides a helper module to develop special remotes for
488git-annex. AnnexRemote implements the line-based external special remote
489protocol of git-annex, while leaving the behavior of the remote up to the
490user.")
491 (license license:gpl3)))
492
493(define-public python-annotated-doc
494 (package
495 (name "python-annotated-doc")
496 (version "0.0.4")
497 (source
498 (origin
499 (method git-fetch)
500 (uri (git-reference
501 (url "https://github.com/fastapi/annotated-doc")
502 (commit version)))
503 (file-name (git-file-name name version))
504 (sha256
505 (base32 "13fh58q1a8kvrx1kjgr6qmd09jhikxc7wlyccajpfz657ipjif9v"))))
506 (build-system pyproject-build-system)
507 (native-inputs
508 (list python-pytest
509 python-pdm-backend))
510 (home-page "https://github.com/fastapi/annotated-doc")
511 (synopsis "Annotated for some Python objects")
512 (description
513 "This package implements a functionality for document parameters, class
514attributes, return types, and variables inline, with
515Annotated.")
516 (license license:expat)))
517
518(define-public python-archspec
519 (package
520 (name "python-archspec")
521 (version "0.2.5")
522 (source
523 (origin
524 (method git-fetch)
525 (uri (git-reference
526 (url "https://github.com/archspec/archspec")
527 (commit (string-append "v" version))
528 (recursive? #t)))
529 (file-name (git-file-name name version))
530 (sha256
531 (base32 "0pdqdyzwy75fmcv4ncvar57r3zvfbnqgsya6dgfkzjfd0wvwby05"))))
532 (build-system pyproject-build-system)
533 (native-inputs
534 (list python-jsonschema
535 python-poetry-core
536 python-pytest))
537 (home-page "https://github.com/archspec/archspec")
538 (synopsis "Library to query system architecture")
539 (description
540 "Archspec offers human-readable labels for system architecture aspects.
541These aspects include CPU, network fabrics, etc. In addition, it offers
542APIs to detect, query, and compare them.")
543 (license license:expat)))
544
545(define-public python-astar
546 ;; The Git repository has no tag.
547 (let ((commit "b48388f5fa7dc1e5069ff85b05f0ad72ea8d5e93")
548 (revision "0"))
549 (package
550 (name "python-astar")
551 (version (git-version "0.99" revision commit))
552 (source
553 (origin
554 (method git-fetch)
555 (uri (git-reference
556 (url "https://github.com/jrialland/python-astar")
557 (commit commit)))
558 (file-name (git-file-name name version))
559 (sha256
560 (base32 "1gc4r3xmvw7hgqfadr2cz024ywbzmfak319cdkahd3dzpvyh404q"))))
561 (build-system pyproject-build-system)
562 ;; Despite pytest being listed in tool.poetry.group.dev.dependencies,
563 ;; the test suite has been written for unittest.
564 (native-inputs (list python-poetry-core))
565 (home-page "https://github.com/jrialland/python-astar")
566 (synopsis "Implementation of the A* search algorithm")
567 (description
568 "The @code{astar} Python package provide a generic implementation
569of the A* graph traversal and pathfinding algorithm.")
570 (license license:bsd-3))))
571
572(define-public python-asyncclick
573 (package
574 (name "python-asyncclick")
575 (version "8.3.0.3")
576 (source
577 (origin
578 (method url-fetch)
579 (uri (pypi-uri "asyncclick" version))
580 (sha256
581 (base32 "1i8jb2mir9gflw9pram720diq6fb2yn8pjja1m1q3arzq64zl993"))))
582 (build-system pyproject-build-system)
583 ;; tests: 1418 passed, 21 skipped, 1 xfailed
584 (native-inputs
585 (list less
586 python-flit-core
587 python-pytest
588 python-trio))
589 (propagated-inputs
590 (list python-anyio))
591 (home-page "https://github.com/python-trio/asyncclick")
592 (synopsis "Python composable command line utility, trio-compatible version ")
593 (description
594 "AsyncClick is a fork of Click that works well with anyio, Trio, or
595asyncio.")
596 (license license:bsd-3)))
597
598(define-public python-asyncstdlib
599 (package
600 (name "python-asyncstdlib")
601 (version "3.13.0")
602 (source
603 (origin
604 (method url-fetch)
605 (uri (pypi-uri "asyncstdlib" version))
606 (sha256
607 (base32 "0cxms50gygrvp4n4rk5xxhnl6k7nsrhhixdyk6xk70hi9ysgz9pj"))))
608 (build-system pyproject-build-system)
609 (native-inputs (list python-flit-core python-pytest))
610 (home-page "https://asyncstdlib.readthedocs.io")
611 (synopsis "Compatibility layer between the Python stdlib and @code{async}
612callables")
613 (description
614 "The @code{asyncstdlib} library re-implements functions and classes of
615the Python standard library to make them compatible with @code{async}
616callables, iterables and context managers. It is fully agnostic to
617@code{async} event loops and seamlessly works with @code{asyncio}, third-party
618libraries such as @code{trio}, as well as any custom @code{async} event
619loop.")
620 (license license:expat)))
621
622(define-public python-awesomeversion
623 (package
624 (name "python-awesomeversion")
625 (version "24.6.0")
626 (source
627 (origin
628 (method git-fetch)
629 (uri (git-reference
630 (url "https://github.com/ludeeus/awesomeversion")
631 (commit version)))
632 (file-name (git-file-name name version))
633 (sha256
634 (base32 "1kvzhhd2ah0sadlsp5xs3qbiknixq4xwhk3yb6kmhcdl2zcbi4cn"))
635 (modules '((guix build utils)))
636 (snippet #~(substitute* "pyproject.toml"
637 (("version = \"0\"")
638 (format #f "version = \"~a\"" #$version))))))
639 (build-system pyproject-build-system)
640 (native-inputs
641 (list python-poetry-core
642 python-pytest
643 python-pytest-snapshot))
644 (home-page "https://github.com/ludeeus/awesomeversion")
645 (synopsis "Create and compare version objects")
646 (description
647 "This package provides a way to make anything a version object, and
648compare against a vast section of other version formats.")
649 (license license:expat)))
650
651(define-public python-awkward-cpp
652 (package
653 (name "python-awkward-cpp")
654 ;; TODO: any higher versions need pybind11 >= 3, see:
655 ;; <https://codeberg.org/guix/guix/pulls/4696>.
656 (version "47")
657 (source
658 (origin
659 (method url-fetch)
660 (uri (pypi-uri "awkward_cpp" version))
661 (sha256
662 (base32 "03wm649lzr1vgp99d303p53m1ybaf655mpvy30rapv8hd2bz8v37"))))
663 (build-system pyproject-build-system)
664 ;; tests: 22304 passed, 524 skipped
665 (native-inputs
666 (list cmake-minimal
667 pybind11-2
668 python-pytest
669 python-scikit-build-core))
670 (propagated-inputs
671 (list python-numpy))
672 (home-page "https://awkward-array.org/")
673 (synopsis "CPU kernels and compiled extensions for Awkward Array")
674 (description "Awkward CPP provides precompiled routines for the awkward
675package. It is not useful on its own, only as a dependency for awkward.")
676 (license license:bsd-3)))
677
678(define-public python-awkward
679 (package
680 (name "python-awkward")
681 (version "2.8.5")
682 (source
683 (origin
684 (method url-fetch)
685 (uri (pypi-uri "awkward" version))
686 (sha256
687 (base32 "12bw8hkxnx4pkwamih933c5syrjg1pyql288b7h190mr1d24k42b"))))
688 (build-system pyproject-build-system)
689 (arguments
690 (list
691 ;; tests: 2798 passed, 156 skipped
692 #:test-flags
693 ;; CUDA is and requires proprietary software.
694 #~(list "--ignore=tests-cuda-kernels/"
695 "--ignore=tests-cuda/")))
696 (native-inputs
697 (list python-hatch-fancy-pypi-readme
698 python-hatchling
699 python-pytest))
700 (propagated-inputs
701 (list python-awkward-cpp
702 python-fsspec
703 python-importlib-metadata
704 python-numpy
705 python-packaging))
706 (home-page "https://awkward-array.org/")
707 (synopsis "Manipulate JSON-like data with NumPy-like idioms")
708 (description "Awkward Array is a library for nested, variable-sized data,
709including arbitrary-length lists, records, mixed types, and missing data,
710using NumPy-like idioms.")
711 (license license:bsd-3)))
712
713(define-public python-bracex
714 (package
715 (name "python-bracex")
716 (version "2.6")
717 (source
718 (origin
719 (method git-fetch)
720 (uri (git-reference
721 (url "https://github.com/facelessuser/bracex")
722 (commit version)))
723 (file-name (git-file-name name version))
724 (sha256
725 (base32 "1j717bsjr3ms4snzrbv4izbblcwgdk1lzxzi2cjhr9365zgz4kdk"))))
726 (build-system pyproject-build-system)
727 (native-inputs
728 (list python-hatchling
729 python-pytest))
730 (home-page "https://facelessuser.github.io/bracex/")
731 (synopsis "Bash-style brace expansion for Python")
732 (description
733 "Bracex is a brace expansion library for Python that implements
734Bash-style brace expansion. It can generate strings from patterns like
735@code{@{a,b,c@}} or @code{@{1..10@}}.")
736 (license license:expat)))
737
738(define-public python-bresenham
739 (package
740 (name "python-bresenham")
741 (version "0.2.1")
742 (source
743 (origin
744 (method git-fetch)
745 (uri (git-reference
746 (url "https://github.com/encukou/bresenham")
747 (commit (string-append "v" version))))
748 (file-name (git-file-name name version))
749 (sha256
750 (base32 "07h04l50y35rhp13mqis61d1dkd7426q1gdfy5hd6rcgcfv15kxd"))))
751 (build-system pyproject-build-system)
752 (native-inputs
753 (list python-pytest
754 python-setuptools
755 python-wheel))
756 (home-page "https://github.com/encukou/bresenham")
757 (synopsis "Implementation of Bresenham's line drawing algorithm")
758 (description
759 "This package provides a Python implementation of
760@url{https://en.wikipedia.org/wiki/Bresenham's_line_algorithm, Bresenham's
761line drawing algorithm}.")
762 (license license:expat)))
763
764(define-public python-cachey
765 (package
766 (name "python-cachey")
767 (version "0.2.1")
768 (source
769 (origin
770 (method git-fetch)
771 (uri (git-reference
772 (url "https://github.com/dask/cachey/")
773 (commit version)))
774 (file-name (git-file-name name version))
775 (sha256
776 (base32 "12rkn4cvdwlpjhlmyxi1glvn1nzlx147xs96h9k6pbgbwyxaci75"))))
777 (build-system pyproject-build-system)
778 (native-inputs
779 (list python-pytest
780 python-setuptools))
781 (propagated-inputs
782 (list python-heapdict))
783 (home-page "https://github.com/dask/cachey/")
784 (synopsis "Caching based on computation time and storage space")
785 (description
786 "This package provides a Python module for caching mindful of
787computation/storage costs.")
788 (license license:bsd-3)))
789
790(define-public python-catalogus
791 (package
792 (name "python-catalogus")
793 (version "0.1.0")
794 (source
795 (origin
796 (method git-fetch)
797 (uri (git-reference
798 (url "https://github.com/breezy-team/catalogus")
799 (commit (string-append "v" version))))
800 (file-name (git-file-name name version))
801 (sha256
802 (base32 "0l34anf0h4rcsimq78q6y1s2m91605pxwpzfzxr2vh2hl45sy4w5"))))
803 (build-system pyproject-build-system)
804 (native-inputs
805 (list python-pytest
806 python-setuptools
807 python-setuptools-scm))
808 (home-page "https://github.com/breezy-team/catalogus")
809 (synopsis "Classes to provide name-to-object registry-like support")
810 (description
811 "This package provides classes to provide name-to-object registry-like
812support.")
813 (license license:gpl2+)))
814
815(define-public python-catppuccin
816 (package
817 (name "python-catppuccin")
818 (version "2.5.0")
819 (source
820 (origin
821 (method url-fetch)
822 (uri (pypi-uri "catppuccin" version))
823 (sha256
824 (base32 "0d38gjn6661pb9jl4bg6l698aw4llir44xacrg8nj8xw6nzz6d9h"))))
825 (build-system pyproject-build-system)
826 (native-inputs
827 (list python-hatchling python-pytest
828 ;; These are optional dependencies but required for tests.
829 python-matplotlib python-pygments python-rich))
830 (home-page "https://github.com/catppuccin/python")
831 (synopsis "Pastel palette for Python libraries")
832 (description "Catppuccin for Python is a soothing pastel palette for Python
833libraries. It aims to be the middle ground between low and high contrast
834themes. It also includes themes for IPython, Matplotlib, Pygments and Rich.")
835 (license license:expat)))
836
837(define-public python-calmjs-parse
838 (package
839 (name "python-calmjs-parse")
840 (version "1.3.3")
841 (source
842 (origin
843 (method git-fetch)
844 (uri (git-reference
845 (url "https://github.com/calmjs/calmjs.parse/")
846 (commit version)))
847 (file-name (git-file-name name version))
848 (sha256
849 (base32 "08dmi4chamk5dbdpvrc0nb09iybfhj3wqwxgffiqnkj7030qhqb8"))))
850 (build-system pyproject-build-system)
851 ;; tests: 797 passed, 1 warning
852 (native-inputs (list python-pytest python-setuptools))
853 (propagated-inputs (list python-ply))
854 (home-page "https://github.com/calmjs/calmjs.parse/")
855 (synopsis "Parsers for ECMA standards")
856 (description
857 "@code{Calmjs-parse} is a collection of helper libraries for
858understanding ECMA script.")
859 (license license:expat)))
860
861(define-public python-chameleon
862 (package
863 (name "python-chameleon")
864 (version "4.6.0")
865 (source
866 (origin
867 (method url-fetch)
868 (uri (pypi-uri "Chameleon" version))
869 (sha256
870 (base32 "06qwg3sk26m53b1sl8b798scik7klkx53vijs7d8mwzpyqlxf34i"))))
871 (build-system pyproject-build-system)
872 (native-inputs
873 (list python-pytest
874 python-setuptools))
875 (home-page "https://chameleon.readthedocs.io")
876 (synopsis "Fast HTML/XML Template Compiler")
877 (description
878 "Chameleon is an HTML/XML template engine for Python. It uses the page
879templates language.")
880 ;; Project is duo licensed, see: LICENSE.txt.
881 (license (list license:zpl2.1
882 license:psfl))))
883
884(define-public python-click-extra
885 (package
886 (name "python-click-extra")
887 (version "8.8.1")
888 (source
889 (origin
890 (method git-fetch)
891 (uri (git-reference
892 (url "https://github.com/kdeldycke/click-extra")
893 (commit (string-append "v" version))))
894 (file-name (git-file-name name version))
895 (sha256
896 (base32 "0i22as7f22qhnp69c7zwdh7k4pzl45ywa0hdj71j0n07lqdmdqc7"))))
897 (build-system pyproject-build-system)
898 (arguments
899 (list
900 ;; Upstream uses uv-build which is not yet available in Guix.
901 #:build-backend "setuptools.build_meta"
902 ;; tets: 3659 passed, 509 skipped, 4 deselected, 4 xfailed, 1267 warnings
903 #:test-flags
904 ;; Skip the network tests.
905 #~(list "-m" "not network"
906 ;; Prevent adding python-sphinx into scope.
907 (string-append "--deselect=tests/test_blocks.py"
908 "::test_blocks_reexported_from_sphinx_package"))))
909 (native-inputs
910 ;; Optional libraries imported at module level by the test suite.
911 (list python-hjson
912 python-jsonschema
913 python-pygments
914 python-pytest
915 python-pytest-httpserver
916 python-pyyaml
917 python-requests
918 python-setuptools
919 python-tomlkit
920 python-xmltodict))
921 (propagated-inputs
922 (list python-boltons
923 python-click
924 python-cloup
925 python-deepmerge
926 python-extra-platforms
927 python-tabulate
928 python-wcmatch
929 python-wcwidth))
930 (home-page "https://kdeldycke.github.io/click-extra/")
931 (synopsis "Drop-in replacement for Click to build colorful CLIs")
932 (description
933 "Click Extra extends the Click framework with colored help screens,
934configuration file support, table rendering, and platform detection. It
935serves as a drop-in replacement adding features for user-friendly command-line
936interfaces.")
937 (license license:gpl2+)))
938
939(define-public python-comrak
940 (package
941 (name "python-comrak")
942 (version "0.0.16")
943 (source
944 (origin
945 (method url-fetch)
946 (uri (pypi-uri "comrak" version))
947 (sha256
948 (base32 "1nzr1d957vac16kvy4si3hykx5cbcm73vpy94nm74rf66hgpx8m3"))))
949 (build-system pyproject-build-system)
950 (arguments
951 (list
952 #:imported-modules (append %cargo-build-system-modules
953 %pyproject-build-system-modules)
954 #:modules '(((guix build cargo-build-system) #:prefix cargo:)
955 (guix build pyproject-build-system)
956 (guix build utils))
957 #:phases
958 #~(modify-phases %standard-phases
959 (add-after 'unpack 'prepare-cargo-build-system
960 (lambda args
961 (for-each (lambda (phase)
962 (format #t "Running cargo phase: ~a~%" phase)
963 (apply (assoc-ref cargo:%standard-phases phase)
964 #:cargo-target #$(cargo-triplet)
965 args))
966 '(prepare-rust-crates
967 unpack-rust-crates
968 configure
969 check-for-pregenerated-files
970 patch-cargo-checksums)))))))
971 (native-inputs
972 (append
973 (list maturin
974 python-pytest
975 rust
976 `(,rust "cargo"))
977 (or (and=> (%current-target-system)
978 (compose list make-rust-sysroot))
979 '())))
980 (inputs (cargo-inputs 'python-comrak))
981 (home-page "https://github.com/lmmx/comrak")
982 (synopsis "Python bindings for the Comrak Rust library")
983 (description
984 "This package provides Python bindings for the Comrak Rust library, a
985fast @code{CommonMark/GFM} parser.")
986 (license license:expat)))
987
988(define-public python-conda-content-trust
989 (package
990 (name "python-conda-content-trust")
991 (version "0.2.0")
992 (source
993 (origin
994 (method git-fetch)
995 (uri (git-reference
996 (url "https://github.com/conda/conda-content-trust")
997 (commit version)))
998 (file-name (git-file-name name version))
999 (sha256
1000 (base32 "1yvfwm7i18sfvgdasibdgnghvj5w5p4hr6i37v0cspwmkczgna7z"))))
1001 (build-system pyproject-build-system)
1002 (arguments
1003 (list
1004 #:test-flags
1005 ;; XXX: Not packaged yet:
1006 ;; <https://github.com/secure-systems-lab/securesystemslib>.
1007 ;;
1008 ;; ImportError: The securesystemslib library is required, which appears
1009 ;; to be unavailable.
1010 #~(list #$@(map (lambda (test) (string-append "--deselect="
1011 "tests/test_root.py::"
1012 test))
1013 (list "test_sign_root_metadata_dict_via_gpg"
1014 "test_sign_root_metadata_via_gpg"
1015 "test_gpg_pubkey_in_ssl_format")))))
1016 (native-inputs
1017 (list python-hatch-vcs
1018 python-hatchling
1019 python-pytest))
1020 (propagated-inputs
1021 (list python-cryptography))
1022 (home-page "https://github.com/conda/conda-content-trust")
1023 (synopsis "Signing and verification tools for Conda")
1024 (description
1025 "This package implements a functionalit of signing and verification tools
1026for Conda. @url{https://theupdateframework.io/, Based on The Update
1027Framework (TUF)}, conda-content-trust is intended to ensure that when users in
1028the conda ecosystem obtain a package or data about that package, they can know
1029whether or not it is trustworthy (e.g. originally comes from a reliable source
1030and has not been tampered with). A basic library and basic CLI are included
1031to provide signing, verification, and trust delegation functionality.")
1032 (license license:bsd-3)))
1033
1034(define-public python-conda-inject
1035 (package
1036 (name "python-conda-inject")
1037 (version "1.3.2")
1038 (source
1039 (origin
1040 (method git-fetch)
1041 (uri (git-reference
1042 (url "https://github.com/koesterlab/conda-inject")
1043 (commit (string-append "v" version))))
1044 (file-name (git-file-name name version))
1045 (sha256
1046 (base32 "1aig9l676wc2sjb20y7rdqf0hfcfjhh92yfiy82mf7kfnv7rp3rk"))))
1047 (build-system pyproject-build-system)
1048 (arguments
1049 (list #:tests? #f)) ; tests require setting up Conda
1050 (native-inputs
1051 (list python-poetry-core))
1052 (propagated-inputs
1053 (list python-pyyaml))
1054 (home-page "https://github.com/koesterlab/conda-inject")
1055 (synopsis "Inject a conda environment into the current python environment")
1056 (description
1057 "This package provides helper functions for injecting a conda
1058environment into the current python environment (by modifying @code{sys.path},
1059without actually changing the current python environment).")
1060 (license license:expat)))
1061
1062(define-public python-copydetect
1063 (package
1064 (name "python-copydetect")
1065 (version "0.5.0")
1066 (source
1067 (origin
1068 (method git-fetch)
1069 (uri (git-reference
1070 (url "https://github.com/blingenf/copydetect")
1071 (commit version)))
1072 (sha256
1073 (base32 "0hp9994bbnzp79xxprgwsbgc0w06sb4n82nghl90w1z9zbvwn6gz"))))
1074 (build-system pyproject-build-system)
1075 (propagated-inputs (list python-jinja2
1076 python-matplotlib
1077 python-numpy
1078 python-pygments
1079 python-tqdm))
1080 (native-inputs (list python-setuptools
1081 python-pytest
1082 python-wheel))
1083 (home-page "https://github.com/blingenf/copydetect")
1084 (synopsis "Code plagiarism detection tool")
1085 (description "Copydetect is a tool to detect likely instances of plagiarism
1086based on the winnowing algorithm. It takes a list of directories as input and
1087generates an HTML report displaying copied slices as output.")
1088 (license license:expat)))
1089
1090(define-public python-couleur
1091 (package
1092 (name "python-couleur")
1093 (version "0.7.4")
1094 (source
1095 (origin
1096 (method url-fetch)
1097 (uri (pypi-uri "couleur" version))
1098 (sha256
1099 (base32 "1fk175k6l8isx43jmh7n7xyzb18ysdixzr74dxqqhpyd5sbsb5hy"))))
1100 (build-system pyproject-build-system)
1101 (arguments (list #:tests? #f)) ;no tests in PyPI, tests depend on Nose
1102 (native-inputs
1103 (list python-setuptools
1104 python-wheel))
1105 (home-page "https://github.com/gabrielfalcao/couleur")
1106 (synopsis "ANSI terminal tool for Python")
1107 (description
1108 "This package provides an ANSI terminal tool for Python, colored shell
1109and other handy fancy features.")
1110 (license license:lgpl3+)))
1111
1112(define-public python-crc
1113 (package
1114 (name "python-crc")
1115 (version "7.1.0")
1116 (source
1117 (origin
1118 (method git-fetch)
1119 (uri (git-reference
1120 (url "https://github.com/Nicoretti/crc/")
1121 (commit version)))
1122 (file-name (git-file-name name version))
1123 (sha256
1124 (base32 "1b9164z6v3ng5s8564a0gjdzqws6zf5aqvk6mnzw7ysk6d5rbb9r"))))
1125 (build-system pyproject-build-system)
1126 (native-inputs
1127 (list python-poetry-core
1128 python-pytest
1129 python-wheel))
1130 (home-page "https://nicoretti.github.io/crc/")
1131 (synopsis "Pure Python CRC library")
1132 (description
1133 "This library computes and verifies @acronym{Cyclic Redundancy Check,
1134CRC} checksums, using predefined and custom CRC configurations.
1135
1136Configurations:
1137@table @asis
1138@item CRC8
1139 CCITT AUTOSAR SAEJ1850 SAEJ1850_ZERO BLUETOOTH MAXIM-DOW
1140@item CRC16
1141 XMODEM GSM PROFIBUS MODBUS IBM-3740 KERMIT
1142@item CRC32
1143 CRC32 AUTOSAR BZIP2 POSIX
1144@item CRC64
1145 CRC64
1146@end table")
1147 (license license:bsd-2)))
1148
1149(define-public python-cron-converter
1150 (package
1151 (name "python-cron-converter")
1152 (version "1.3.1")
1153 (source
1154 (origin
1155 (method git-fetch)
1156 (uri (git-reference
1157 (url "https://github.com/Sonic0/cron-converter")
1158 (commit (string-append "v" version))))
1159 (file-name (git-file-name name version))
1160 (sha256
1161 (base32 "0k5svwh9g6fxjx567iwjysq8x07cmy8qfwpk0pm0jjrgr42w9l6c"))))
1162 (build-system pyproject-build-system)
1163 (arguments
1164 (list #:test-backend #~'unittest
1165 #:test-flags #~(list "discover" "--verbose" "tests/unit")))
1166 (native-inputs
1167 (list python-dateutil
1168 python-setuptools))
1169 (propagated-inputs
1170 (list python-dateutil))
1171 (home-page "https://github.com/Sonic0/cron-converter")
1172 (synopsis "Cron string parser and scheduler for Python")
1173 (description
1174 "Cron-converter provides a Cron string parser (from string/lists to
1175string/lists) and iteration for the datetime object with a cron like format.")
1176 (license license:expat)))
1177
1178(define-public python-curtsies
1179 (package
1180 (name "python-curtsies")
1181 (version "0.4.3")
1182 (source
1183 (origin
1184 (method url-fetch)
1185 (uri (pypi-uri "curtsies" version))
1186 (sha256
1187 (base32 "09c8c4vssm2zkq017xj99vhcrisfva4nkz92w8dly4jjz7xhyahh"))))
1188 (build-system pyproject-build-system)
1189 (native-inputs
1190 (list python-pyte
1191 python-pytest
1192 python-setuptools
1193 python-wheel))
1194 (propagated-inputs
1195 (list python-blessed
1196 python-cwcwidth))
1197 (home-page "https://github.com/bpython/curtsies")
1198 (synopsis "Library for curses-like terminal interaction with colored strings")
1199 (description
1200 "Curtsies is a Python library for interacting with the terminal. It
1201features string-like objects which carry formatting information, per-line
1202fullscreen terminal rendering, and keyboard input event reporting.")
1203 (license license:expat)))
1204
1205(define-public python-customtkinter
1206 (package
1207 (name "python-customtkinter")
1208 (version "5.2.2")
1209 (source
1210 (origin
1211 (method git-fetch)
1212 (uri (git-reference
1213 (url "https://github.com/TomSchimansky/CustomTkinter")
1214 (commit (string-append "v" version))))
1215 (file-name (git-file-name name version))
1216 (sha256
1217 (base32 "0vma6x8zg7d5h2ggphi6m7bnqzskxysi9rcpkr6rrgylfrsv03fn"))))
1218 (build-system pyproject-build-system)
1219 (arguments
1220 (list
1221 #:phases
1222 #~(modify-phases %standard-phases
1223 (add-before 'check 'start-xorg-server
1224 (lambda _
1225 (setenv "HOME" "/tmp")
1226 ;; The test suite requires a running X server.
1227 (system "Xvfb :99 -screen 0 1024x768x24 &")
1228 (setenv "DISPLAY" ":99.0")))
1229 (replace 'check
1230 (lambda* (#:key tests? #:allow-other-keys)
1231 (when tests?
1232 (with-directory-excursion "test"
1233 (invoke "python" "unit_tests/test_all.py"))))))))
1234 (propagated-inputs
1235 (list (list python "tk")
1236 python-darkdetect
1237 python-packaging))
1238 (native-inputs
1239 (list python-setuptools
1240 xorg-server-for-tests))
1241 (home-page "https://customtkinter.tomschimansky.com")
1242 (synopsis
1243 "Python @acronym{User Interface, UI} library based on Tkinter")
1244 (description
1245 "CustomTkinter provides fully customizable widgets, created and used
1246like normal Tkinter widgets, which can also be used in combination with normal
1247Tkinter elements.")
1248 (license license:expat)))
1249
1250(define-public python-cyclopts
1251 (package
1252 (name "python-cyclopts")
1253 (version "4.14.0")
1254 (source
1255 (origin
1256 (method git-fetch)
1257 (uri (git-reference
1258 (url "https://github.com/BrianPugh/cyclopts")
1259 (commit (string-append "v" version))))
1260 (file-name (git-file-name name version))
1261 (sha256
1262 (base32 "0wbhlpdl7higrgwd45si48l5k1kgjms6f4lzqd6y9qmbfsx0x48l"))))
1263 (build-system pyproject-build-system)
1264 (arguments
1265 (list
1266 ;; tests: 2194 passed, 95 skipped, 69 deselected, 3 warnings
1267 #:test-flags
1268 #~(list #$@(map (lambda (test) (string-append "--deselect="
1269 "tests/completion/"
1270 "test_bash.py::"
1271 test))
1272 (list "test_list_path_multi_positional_default_case"
1273 "test_eq_form_path_completion"
1274 "test_bash_path_completion_reflects_caller_cwd"))
1275 "--deselect=tests/completion/test_behavior.py::test_behavior")))
1276 (native-inputs
1277 (list python-docutils
1278 python-hatch-vcs
1279 python-hatchling
1280 python-mkdocs
1281 python-pexpect
1282 python-pydantic
1283 python-pytest
1284 python-pytest-mock
1285 python-pyyaml
1286 python-sphinx
1287 python-syrupy
1288 python-toml
1289 python-trio))
1290 (propagated-inputs
1291 (list python-attrs
1292 python-docstring-parser
1293 python-rich
1294 python-rich-rst
1295 python-tomli
1296 python-typing-extensions))
1297 (home-page "https://github.com/BrianPugh/cyclopts")
1298 (synopsis "Intuitive, easy CLIs based on type hints")
1299 (description
1300 "Cyclopts is a modern, easy-to-use command-line interface (CLI) framework
1301that aims to provide an intuitive & efficient developer experience.")
1302 (license license:asl2.0)))
1303
1304(define-public python-darkdetect
1305 (package
1306 (name "python-darkdetect")
1307 (version "0.8.0")
1308 (source
1309 (origin
1310 (method url-fetch)
1311 (uri (pypi-uri "darkdetect" version))
1312 (sha256
1313 (base32 "1cgqgpz36dfn7hsqc29ha9pmxmzdjlwdq9aclkgbagi6f08qwhmm"))))
1314 (build-system pyproject-build-system)
1315 (arguments
1316 (list
1317 #:tests? #f)) ;no tests in PyPI or Git.
1318 (native-inputs (list python-setuptools))
1319 (home-page "https://github.com/albertosottile/darkdetect")
1320 (synopsis "Detect OS dark mode from Python")
1321 (description
1322 "This package allows to detect if the user is using Dark Mode.")
1323 (license license:bsd-3)))
1324
1325(define-public python-dbus-deviation
1326 (package
1327 (name "python-dbus-deviation")
1328 (version "0.6.1")
1329 (source
1330 (origin
1331 (method url-fetch)
1332 (uri (pypi-uri "dbus-deviation" version))
1333 (sha256
1334 (base32 "18xp1s6k2x08d7a4ksh4dwf3sikvkdycylfz4lkmv213wbpqhsz0"))))
1335 (build-system pyproject-build-system)
1336 (arguments
1337 (list
1338 #:phases
1339 #~(modify-phases %standard-phases
1340 (add-after 'unpack 'patch-sources
1341 ;; See: <https://github.com/pwithnall/dbus-deviation/issues/22>.
1342 (lambda _
1343 (with-directory-excursion "dbusapi/tests"
1344 (substitute* '("test_interfaceparser.py" "test_ast.py")
1345 (("assertEquals") "assertEqual"))))))))
1346 (propagated-inputs (list python-lxml))
1347 (native-inputs (list python-pytest python-setuptools))
1348 (home-page "https://tecnocode.co.uk/dbus-deviation/")
1349 (synopsis "D-Bus introspection XML parser")
1350 (description "The @{dbus-deviation} library and utility parses D-Bus
1351introspection XML and processes it in various ways. For example, it can
1352represent a parsed D-Bus API XML description as an @acronym{AST, abstract
1353syntax tree}, or calculate the differences between two D-Bus APIs.")
1354 (license license:lgpl2.1+)))
1355
1356(define-public python-decopatch
1357 (package
1358 (name "python-decopatch")
1359 (version "1.4.10")
1360 (source
1361 (origin
1362 (method url-fetch)
1363 (uri (pypi-uri "decopatch" version))
1364 (sha256
1365 (base32 "082pnnc7a1d7rk40k7m72w7kw8dk7g8m3yzq4cn1hl217z4ljzwm"))))
1366 (build-system pyproject-build-system)
1367 (arguments
1368 (list #:tests? #f)) ;XXX: cycles with python-pytest-cases
1369 (native-inputs
1370 (list python-setuptools
1371 python-setuptools-scm))
1372 (propagated-inputs
1373 (list python-makefun))
1374 (home-page "https://github.com/smarie/python-decopatch")
1375 (synopsis "Create decorators easily in Python")
1376 (description
1377 "This package provide implements a functionality to simplify writing
1378decorators in Python.")
1379 (license license:bsd-3)))
1380
1381(define-public python-dek
1382 (package
1383 (name "python-dek")
1384 (version "1.6.0")
1385 (source
1386 (origin
1387 (method git-fetch)
1388 (uri (git-reference
1389 (url "https://github.com/rec/dek")
1390 (commit (string-append "v" version))))
1391 (file-name (git-file-name name version))
1392 (sha256
1393 (base32 "14y4d1vv9w13ng12x0gk1y4gfqn2sqz91r6bf4019gpgr6kvqj8v"))))
1394 (build-system pyproject-build-system)
1395 (native-inputs (list python-hatchling python-pytest))
1396 (propagated-inputs (list python-xmod))
1397 (home-page "https://rec.github.io/dek/")
1398 (synopsis "The decorator-decorator")
1399 (description
1400 "This package implements a functionality to write a Python decorator
1401which takes no parameters isn't hard.")
1402 (license license:expat)))
1403
1404(define-public python-discovery
1405 (package
1406 (name "python-discovery")
1407 (version "1.2.1")
1408 (source
1409 (origin
1410 (method git-fetch)
1411 (uri (git-reference
1412 (url "https://github.com/tox-dev/python-discovery")
1413 (commit version)))
1414 (file-name (git-file-name name version))
1415 (sha256
1416 (base32 "0zshaiar80h5zzbgv05z74kj8y4dgc96hwqfj2gziwdpcyl3rapp"))))
1417 (build-system pyproject-build-system)
1418 (arguments
1419 (list
1420 #:test-flags
1421 ;; assert []
1422 #~(list "--deselect=tests/test_discovery.py::test_get_paths_no_path_env")))
1423 (native-inputs
1424 (list python-pytest
1425 python-pytest-mock
1426 python-hatchling
1427 python-hatch-vcs))
1428 (propagated-inputs
1429 (list python-filelock
1430 python-platformdirs))
1431 (home-page "https://github.com/tox-dev/python-discovery")
1432 (synopsis "Python interpreter discovery")
1433 (description
1434 "@code{python-discovery} is a library for discovering Python interpreters
1435installed on the current machine which may have multiple Python versions from
1436system packages, @code{pyenv}, @code{mise}, @code{asdf}, @code{uv}, or the
1437Windows registry (PEP 514). This library finds the right one.")
1438 (license license:expat)))
1439
1440(define-public python-distance
1441 (let ((commit "ad7f9dc7e9b0e88a08d0cefd1442f4ab1dd1779b")
1442 (revision "0"))
1443 (package
1444 (name "python-distance")
1445 (version (git-version "0.1.3" revision commit))
1446 (source
1447 (origin
1448 (method git-fetch)
1449 (uri (git-reference
1450 (url "https://github.com/doukremt/distance")
1451 (commit commit)))
1452 (file-name (git-file-name name version))
1453 (sha256
1454 (base32 "1vcn0506dy68xyjxdjsl75zzc4b8lmg2yxjgak4i35l7a97yzvwy"))))
1455 (build-system pyproject-build-system)
1456 (arguments
1457 (list #:test-backend #~'custom
1458 #:test-flags #~(list "tests/tests.py")))
1459 (native-inputs (list python-setuptools))
1460 (home-page "https://github.com/doukremt/distance")
1461 (synopsis "Utilities for comparing sequences")
1462 (description
1463 "This package provides helpers for computing similarities between
1464arbitrary sequences. Included metrics are Levenshtein, Hamming, Jaccard, and
1465Sorensen distance, plus some bonuses. All distance computations are
1466implemented in pure Python, and most of them are also implemented in C.")
1467 (license license:gpl2+))))
1468
1469(define-public python-docopt-ng
1470 (package
1471 (name "python-docopt-ng")
1472 (version "0.9.0")
1473 (source
1474 (origin
1475 (method git-fetch)
1476 (uri (git-reference
1477 (url "https://github.com/jazzband/docopt-ng")
1478 (commit version)))
1479 (file-name (git-file-name name version))
1480 (sha256
1481 (base32 "1vdh1amh8jkhll0ym1r72q1ddg8ds3pyx37kyw9abg1w3abh6ih8"))))
1482 (build-system pyproject-build-system)
1483 (native-inputs
1484 (list python-pdm-backend
1485 python-pytest-8))
1486 (home-page "https://github.com/jazzband/docopt-ng")
1487 (synopsis "Humane command line arguments parser")
1488 (description
1489 "This package provides Jazzband-maintained fork of docopt, the humane
1490command line arguments parser.")
1491 (license license:expat)))
1492
1493(define-public python-doi
1494 (package
1495 (name "python-doi")
1496 (version "0.2.0")
1497 (source
1498 (origin
1499 (method url-fetch)
1500 (uri (pypi-uri "python-doi" version))
1501 (sha256
1502 (base32 "16pxc7llqb14f2n5ccd88pz4sygwl51slssqm2g23g8rndpya09f"))))
1503 (build-system pyproject-build-system)
1504 (arguments
1505 (list #:test-flags
1506 #~(list "-vv"
1507 (string-append "-k not (test_validate_doi "
1508 "or test_get_real_url_from_doi)"))))
1509 (native-inputs
1510 (list python-pytest
1511 python-pytest-xdist
1512 python-setuptools
1513 python-sphinx
1514 python-sphinx-autobuild
1515 python-sphinx-rtd-theme))
1516 (home-page "https://github.com/papis/python-doi")
1517 (synopsis "Python package to work with Document Object Identifier (doi)")
1518 (description
1519 "Python package to work with Document Object Identifier (doi).")
1520 (license license:gpl3)))
1521
1522(define-public python-domdf-python-tools
1523 (package
1524 (name "python-domdf-python-tools")
1525 (version "3.10.0")
1526 (source
1527 (origin
1528 (method url-fetch)
1529 (uri (pypi-uri "domdf_python_tools" version))
1530 (sha256
1531 (base32 "16727afn92bp6hj4hvp27scc5ldz1y27z9abbxgi9sgiyk90iqra"))))
1532 (build-system pyproject-build-system)
1533 (native-inputs (list python-hatch-requirements-txt))
1534 (arguments (list #:tests? #f)) ;no tests in PyPI archive
1535 (propagated-inputs
1536 (list python-natsort
1537 python-typing-extensions))
1538 (home-page "https://github.com/domdfcoding/domdf_python_tools")
1539 (synopsis "Helpful functions for Python")
1540 (description
1541 "This package provide helpful functions for Python's testing and
1542packaging tasks.")
1543 (license license:expat)))
1544
1545(define-public python-donfig
1546 (package
1547 (name "python-donfig")
1548 (version "0.8.1.post1")
1549 (source
1550 (origin
1551 (method git-fetch)
1552 (uri (git-reference
1553 (url "https://github.com/pytroll/donfig")
1554 (commit (string-append "v" version))))
1555 (file-name (git-file-name name version))
1556 (sha256
1557 (base32 "0hp6v9lh4gaym48ljvpb00cgcwssj306ypyszha2rlwb7mkknmj6"))))
1558 (build-system pyproject-build-system)
1559 (native-inputs
1560 (list python-cloudpickle
1561 python-pytest
1562 python-setuptools
1563 python-versioneer))
1564 (propagated-inputs
1565 (list python-pyyaml))
1566 (home-page "https://github.com/pytroll/donfig")
1567 (synopsis "Python package for configuring a python package")
1568 (description
1569 "Donfig is a Python library meant to make configuration easier for other
1570python packages. Donfig can be configured programmatically, by environment
1571variables, or from YAML files in standard locations. The below examples show
1572the basics of using donfig.")
1573 (license license:expat)))
1574
1575(define-public python-duet
1576 (package
1577 (name "python-duet")
1578 (version "0.2.9")
1579 (source
1580 (origin
1581 (method git-fetch)
1582 (uri (git-reference
1583 (url "https://github.com/google/duet")
1584 (commit (string-append "v" version))))
1585 (file-name (git-file-name name version))
1586 (sha256
1587 (base32 "1y1jkhlhhdg0bvlv65xqarhr86sph25zj5c7nshrrv8351973ciz"))))
1588 (build-system pyproject-build-system)
1589 (native-inputs (list python-pytest python-setuptools))
1590 (home-page "https://github.com/google/duet")
1591 (synopsis "Simple future-based async library for Python")
1592 (description
1593 "This package provides a simple @code{Future}-based async library for
1594Python. Duet uses a structured concurrency approach to async programming,
1595relying on the @code{Future} interface for parallelism. Duet also provides
1596a way to run async/await coroutines around those @code{Future}s. Unlike most
1597async libraries, duet is re-entrant.")
1598 (license license:asl2.0)))
1599
1600(define-public python-encutils
1601 (package
1602 (name "python-encutils")
1603 (version "1.0.0")
1604 (source
1605 (origin
1606 (method git-fetch)
1607 (uri (git-reference
1608 (url "https://github.com/coherent-oss/encutils")
1609 (commit (string-append "v" version))))
1610 (file-name (git-file-name name version))
1611 (sha256
1612 (base32 "09q2rnlnkfw0pjg95can05xf8z4x5ighbckxnzkccz1f0z2y8xrc"))
1613 (snippet
1614 #~(begin
1615 ;; Upstream is badly packaged, prepare to use Flit-core build
1616 ;; backend.
1617 (use-modules (guix build utils))
1618 (mkdir "encutils")
1619 (rename-file "__init__.py" "encutils/__init__.py")))))
1620 (build-system pyproject-build-system)
1621 (arguments
1622 (list
1623 #:phases
1624 #~(modify-phases %standard-phases
1625 (add-after 'unpack 'prepare-python-module-with-flit
1626 (lambda _
1627 (call-with-output-file "pyproject.toml"
1628 (lambda (port)
1629 (format port "[build-system]
1630requires = ['flit_core']
1631build-backend = 'flit_core.buildapi'
1632[project]
1633name = ~s
1634version = ~s
1635description = ~s
1636[tool.flit.module]
1637name = ~s~%"
1638 "encutils"
1639 #$version
1640 #$(package-description this-package)
1641 "encutils"))))))))
1642 (propagated-inputs (list python-chardet))
1643 (native-inputs (list python-flit-core python-pytest))
1644 (home-page "https://github.com/coherent-oss/encutils")
1645 (synopsis "Encoding detection collection for Python")
1646 (description
1647 "This package provides a collection of helper functions to detect
1648encodings of text files (like HTML, XHTML, XML, CSS, etc.) retrieved via HTTP,
1649file or string.")
1650 ;; See: <https://github.com/coherent-oss/encutils/issues/1>.
1651 (license license:lgpl3+)))
1652
1653(define-public python-envs
1654 (package
1655 (name "python-envs")
1656 (version "1.4")
1657 (source
1658 (origin
1659 (method url-fetch)
1660 (uri (pypi-uri "envs" version))
1661 (sha256
1662 (base32 "160358zskyg6g606lndjcv7yd2nv5f7ca14y55lds72xk333b14x"))))
1663 (build-system pyproject-build-system)
1664 (arguments
1665 (list #:test-backend #~'unittest))
1666 (native-inputs
1667 (list python-packaging python-poetry-core))
1668 (propagated-inputs
1669 (list python-click python-jinja2 python-terminaltables))
1670 (home-page "https://github.com/capless/envs")
1671 (synopsis "Easy access of environment variables from Python")
1672 (description
1673 "This package implements a functionality to access of environment
1674variables from Python with support for strings, booleans, list, tuples, and
1675dicts.")
1676 (license license:asl2.0)))
1677
1678(define-public python-eval-type-backport
1679 (package
1680 (name "python-eval-type-backport")
1681 (version "0.4.0")
1682 (source
1683 (origin
1684 (method git-fetch)
1685 (uri (git-reference
1686 (url "https://github.com/alexmojaki/eval_type_backport")
1687 (commit (string-append "v" version))))
1688 (file-name (git-file-name name version))
1689 (sha256
1690 (base32 "0ygbmsfyxis62xipcag8z2avl0bwpiwy83hbaghl5kq0s1m396la"))))
1691 (build-system pyproject-build-system)
1692 (native-inputs
1693 (list python-pytest python-setuptools python-setuptools-scm))
1694 (home-page "https://github.com/alexmojaki/eval_type_backport")
1695 (synopsis "Letting older Python versions use newer typing features")
1696 (description
1697 "This package makes runtime typing inspection with the typing module
1698possible with newer syntax in older Python versions. Specifically, this
1699transforms @code{X | Y} into @code{typing.Union[X, Y]} and @code{list[X]} into
1700@code{typing.List[X]} etc. (for all the types made generic in PEP 585) if the
1701original syntax is not supported in the current Python version.")
1702 (license license:expat)))
1703
1704(define-public python-exitcode
1705 (package
1706 (name "python-exitcode")
1707 (version "0.1.0")
1708 (source
1709 (origin
1710 (method url-fetch)
1711 (uri (pypi-uri "exitcode" version))
1712 (sha256
1713 (base32 "01yybyi4pkvvf4382p28gh4lkxrcyl5vcx2xk95nbsb8011f37mw"))))
1714 (build-system pyproject-build-system)
1715 (arguments
1716 (list #:tests? #f)) ; no tests in PyPI or Git
1717 (native-inputs
1718 (list python-poetry-core
1719 python-setuptools))
1720 (home-page "https://github.com/rumpelsepp/exitcode")
1721 (synopsis "Preferred system exit codes as defined by sysexits.h")
1722 (description
1723 "This package implements a preferred system exit codes as defined by
1724@url{https://man.openbsd.org/sysexits, sysexits.h}. This library is inspired by
1725Rust's @url{https://docs.rs/exitcode, exitcode}.")
1726 (license license:expat)))
1727
1728(define-public python-exrex
1729 (package
1730 (name "python-exrex")
1731 (version "0.12.0")
1732 (source
1733 (origin
1734 (method git-fetch)
1735 (uri (git-reference
1736 (url "https://github.com/asciimoo/exrex")
1737 (commit (string-append "v" version))))
1738 (file-name (git-file-name name version))
1739 (sha256
1740 (base32 "0lvhkxfrpgi7g6lzp97m1hqzkn5aa9yr544jff2ya2w49c5flg81"))))
1741 (build-system pyproject-build-system)
1742 (arguments (list #:test-backend #~'custom
1743 #:test-flags #~'("tests.py")))
1744 (native-inputs (list python-setuptools))
1745 (home-page "https://github.com/asciimoo/exrex")
1746 (synopsis "Irregular methods for regular expressions")
1747 (description
1748 "Exrex is a command line tool and Python module that generates all,
1749or random, matching strings to a given regular expression.")
1750 (license license:agpl3+)))
1751
1752(define-public python-extra-platforms
1753 (package
1754 (name "python-extra-platforms")
1755 (version "13.6.0")
1756 (source
1757 (origin
1758 (method git-fetch)
1759 (uri (git-reference
1760 (url "https://github.com/kdeldycke/extra-platforms")
1761 (commit (string-append "v" version))))
1762 (file-name (git-file-name name version))
1763 (sha256
1764 (base32 "0h9bg8dn5zzcm0nnn5wvnc7yrwlglg5yvbxfzwkg4vm123l72zsa"))))
1765 (build-system pyproject-build-system)
1766 (arguments
1767 (list
1768 #:build-backend "setuptools.build_meta"
1769 ;; Skip the network tests.
1770 #:test-flags #~(list "-m" "not network")))
1771 (native-inputs
1772 (list python-pytest
1773 python-setuptools))
1774 (home-page "https://kdeldycke.github.io/extra-platforms/")
1775 (synopsis "Detection of architectures, platforms, and OS families")
1776 (description
1777 "Extra Platforms detects and identifies operating systems, platforms,
1778architectures, and OS families. It groups them by family for conditional
1779logic in cross-platform applications.")
1780 (license license:asl2.0)))
1781
1782(define-public python-ezdxf
1783 (package
1784 (name "python-ezdxf")
1785 (version "1.3.5")
1786 (source
1787 (origin
1788 (method git-fetch)
1789 (uri (git-reference
1790 (url "https://github.com/mozman/ezdxf")
1791 (commit (string-append "v" version))))
1792 (sha256
1793 (base32 "14rb99dakzzpdflnsw2wr2y0s28fhqz4dp78mi823457bdpv18ix"))))
1794 (build-system pyproject-build-system)
1795 (native-inputs (list python-cython python-pillow python-pytest
1796 python-setuptools unzip))
1797 (propagated-inputs (list python-fonttools python-numpy python-pyparsing
1798 python-typing-extensions))
1799 (home-page "https://ezdxf.mozman.at/")
1800 (synopsis "Python library to read and write DXF drawings")
1801 (description "ezdxf is a Python package to create new DXF files and
1802read/modify/write existing DXF files.")
1803 (license license:expat)))
1804
1805(define-public python-fastnumbers
1806 (package
1807 (name "python-fastnumbers")
1808 (version "5.1.1")
1809 (source
1810 (origin
1811 (method url-fetch)
1812 (uri (pypi-uri "fastnumbers" version))
1813 (sha256
1814 (base32 "0jzsylarbckivx762rxmc9syn7a6hqq3xhp5xnpfsln0rlhs0gqq"))))
1815 (build-system pyproject-build-system)
1816 (native-inputs
1817 (list python-numpy
1818 python-pytest
1819 python-setuptools
1820 python-setuptools-scm))
1821 (home-page "https://github.com/SethMMorton/fastnumbers")
1822 (synopsis "Super-fast and clean conversions to numbers")
1823 (description
1824 "This package provides provides drop-in replacements for the Python
1825built-in @code{int} and @code{float} that are on par or faster with the Python
1826equivalents.")
1827 (license license:expat)))
1828
1829(define-public python-findpython
1830 (package
1831 (name "python-findpython")
1832 (version "0.7.0")
1833 (source
1834 (origin
1835 (method url-fetch)
1836 (uri (pypi-uri "findpython" version))
1837 (sha256
1838 (base32 "1p3kqr00sym0yaddsbaw1gf7nslfnscnd050q6ipj9rmfry68ccb"))))
1839 (build-system pyproject-build-system)
1840 (native-inputs
1841 (list python-pdm-backend
1842 python-pytest))
1843 (propagated-inputs
1844 (list python-packaging
1845 python-platformdirs))
1846 (home-page "https://github.com/frostming/findpython")
1847 (synopsis "Find Python versions the system")
1848 (description
1849 "This package provides a utility to find Python versions on the current
1850system.")
1851 (license license:expat)))
1852
1853(define-public python-flexcache
1854 (package
1855 (name "python-flexcache")
1856 (version "0.3")
1857 (source
1858 (origin
1859 (method git-fetch)
1860 (uri (git-reference
1861 (url "https://github.com/hgrecco/flexcache")
1862 (commit version)))
1863 (file-name (git-file-name name version))
1864 (sha256
1865 (base32 "08b1i79q6gxcn6c5gkgscwjnzwlwaaz9vmlgrr7z9kbindxx61ih"))))
1866 (build-system pyproject-build-system)
1867 (native-inputs
1868 (list python-pytest
1869 python-setuptools
1870 python-setuptools-scm))
1871 (propagated-inputs
1872 (list python-typing-extensions))
1873 (home-page "https://github.com/hgrecco/flexcache")
1874 (synopsis "Caching transformed versions of a source object")
1875 (description
1876 "This package implements a functionality to cache on disk the result of
1877expensive calculations. It was started as part of
1878@url{https://github.com/hgrecco/pint, Pint}, the Python units package.")
1879 (license license:bsd-3)))
1880
1881(define-public python-flexparser
1882 (package
1883 (name "python-flexparser")
1884 (version "0.4")
1885 (source
1886 (origin
1887 (method git-fetch)
1888 (uri (git-reference
1889 (url "https://github.com/hgrecco/flexparser")
1890 (commit version)))
1891 (file-name (git-file-name name version))
1892 (sha256
1893 (base32 "1aj6b2a5w0z814x4gr8z4lmpf4ivp41gikx998lkk7rbdgh2kryh"))))
1894 (build-system pyproject-build-system)
1895 (native-inputs
1896 (list python-pytest
1897 python-setuptools
1898 python-setuptools-scm))
1899 (propagated-inputs
1900 (list python-typing-extensions))
1901 (home-page "https://github.com/hgrecco/flexparser")
1902 (synopsis "Parsing made fun ... using typing")
1903 (description "This project provides a typed parser. It was started as
1904part of @url{https://github.com/hgrecco/pint, Pint}, the Python units
1905package. ")
1906 (license license:bsd-3)))
1907
1908(define-public python-fortranformat
1909 (package
1910 (name "python-fortranformat")
1911 (version "2.0.3")
1912 (source
1913 (origin
1914 (method git-fetch)
1915 (uri (git-reference
1916 (url "https://github.com/brendanarnold/py-fortranformat")
1917 (commit (string-append "v" version))))
1918 (file-name (git-file-name name version))
1919 (sha256
1920 (base32 "0k4lpj72a6zy1m5855w6b127q8h20c1xfr0x3gasqbkqqz65kli6"))))
1921 (build-system pyproject-build-system)
1922 (native-inputs
1923 (list python-poetry-core
1924 python-pytest))
1925 (home-page "https://github.com/brendanarnold/py-fortranformat")
1926 (synopsis "FORTRAN format interpreter for Python")
1927 (description
1928 "This package mimics FORTRAN textual IO in Python - generates text from a
1929Python list of variables or will read a line of text into Python variables
1930according to the FORTRAN format statement passed.")
1931 (license license:expat)))
1932
1933(define-public python-gest-api
1934 (package
1935 (name "python-gest-api")
1936 (version "0.1")
1937 (source
1938 (origin
1939 (method url-fetch)
1940 (uri (pypi-uri "gest_api" version))
1941 (sha256
1942 (base32 "1a15glcwadq7zkp3dzrlbwj2k5xr1lad8xp9yzg8zarg0whjfwf5"))))
1943 (build-system pyproject-build-system)
1944 (native-inputs
1945 (list python-pytest
1946 python-setuptools))
1947 (propagated-inputs
1948 (list python-pydantic))
1949 (home-page "https://github.com/campa-consortium/gest-api")
1950 (synopsis "Standardization for generators")
1951 (description
1952 "This package provides a standard for generating test points and
1953exchanging variables, objectives, and constraints in optimization problems.
1954
1955It is an effort to standardize the interface of the generators in optimization
1956libraries such as:
1957@itemize
1958@item @url{https://github.com/ChristopherMayes/Xopt, Xopt} - flexible
1959high-level optimization in Python
1960@item @url{https://github.com/optimas-org/optimas, optimas} - optimization at
1961scale, powered by @code{libEnsemble}
1962@item @url{https://github.com/Libensemble/libensemble, libEnsemble} - a Python
1963toolkit for coordinating asynchronous and dynamic ensembles of calculations
1964@item @url{https://github.com/radiasoft/rsopt, rsopt} - flexible configuration
1965and execution of large, black-box optimization problems
1966@end itemize")
1967 (license license:bsd-3)))
1968
1969(define-public python-grapheme
1970 ;; 0.6.0 has not git tag, PyPI has no tests. use the latest commit on master
1971 ;; branch.
1972 (let ((commit "66f07ca02fc64a9ea2f9b4ad66593b226d473adb")
1973 (revision "0"))
1974 (package
1975 (name "python-grapheme")
1976 (version (git-version "0.6.0" revision commit))
1977 (source
1978 (origin
1979 (method git-fetch)
1980 (uri (git-reference
1981 (url "https://github.com/alvinlindstam/grapheme")
1982 (commit commit)))
1983 (file-name (git-file-name name version))
1984 (sha256
1985 (base32 "0fqw6iymg7s8q1pfwijx0awcj1j55jppx7hfa5ci7y0c7x4jc8v9"))))
1986 (build-system pyproject-build-system)
1987 (native-inputs
1988 (list python-pytest
1989 python-setuptools))
1990 (home-page "https://github.com/alvinlindstam/grapheme")
1991 (synopsis "Unicode grapheme helpers")
1992 (description
1993 "This package provides a functionality for working with user perceived
1994characters. More specifically, string manipulation and calculation functions
1995for working with grapheme cluster groups (graphemes) as defined by the
1996@url{http://unicode.org/reports/tr29/, Unicode Standard Annex #29}.")
1997 (license license:expat))))
1998
1999(define-public python-halo
2000 (package
2001 (name "python-halo")
2002 (version "0.0.31")
2003 (source
2004 (origin
2005 (method url-fetch)
2006 (uri (pypi-uri "halo" version))
2007 (sha256
2008 (base32 "1mn97h370ggbc9vi6x8r6akd5q8i512y6kid2nvm67g93r9a6rvv"))))
2009 (build-system pyproject-build-system)
2010 (arguments
2011 (list #:tests? #f)) ;no tests in PyPI archive, no tags in Git
2012 (native-inputs
2013 (list python-setuptools))
2014 (propagated-inputs
2015 (list python-colorama
2016 python-log-symbols
2017 python-six
2018 python-spinners
2019 python-termcolor))
2020 (home-page "https://github.com/manrajgrover/halo")
2021 (synopsis "Python library to display graphical spinners in the terminal")
2022 (description
2023 "Halo is a Python library to display graphical spinners in the terminal.
2024It also supports IPython/Jupyter.")
2025 (license license:expat)))
2026
2027(define-public python-hatch-argparse-manpage
2028 (package
2029 (name "python-hatch-argparse-manpage")
2030 (version "1.0.0")
2031 (source
2032 (origin
2033 (method git-fetch)
2034 (uri (git-reference
2035 (url "https://github.com/damonlynch/hatch-argparse-manpage")
2036 (commit (string-append "v" version))))
2037 (file-name (git-file-name name version))
2038 (sha256
2039 (base32 "1zhh3q7xfz9mvwdihjprw89g0ffl0m5xc6v24cskrm4j35wgmq25"))))
2040 (build-system pyproject-build-system)
2041 (arguments (list #:tests? #f)) ; No tests upstream.
2042 (native-inputs (list python-hatchling))
2043 (propagated-inputs (list python-argparse-manpage python-rich))
2044 (home-page "https://github.com/damonlynch/hatch-argparse-manpage")
2045 (synopsis "Hatch build hook plugin to generate manual pages")
2046 (description
2047 "This package provides a build hook plugin for Hatch to automatically
2048 bs generate a manual page from an ArgumentParser object, using argparse-manpage
2049by Pavel Raiskup.")
2050 (license license:gpl3+)))
2051
2052(define-public python-hatch-cython
2053 (package
2054 (name "python-hatch-cython")
2055 (version "0.6.0")
2056 (source
2057 (origin
2058 (method git-fetch)
2059 (uri (git-reference
2060 (url "https://github.com/joshua-auchincloss/hatch-cython")
2061 (commit (string-append "v" version))))
2062 (file-name (git-file-name name version))
2063 (sha256
2064 (base32 "0fczzvmg7i62p3wr2jayyl11p5q5cmwnyw79f0a6jv5d9xhaygpn"))))
2065 (build-system pyproject-build-system)
2066 (arguments
2067 (list
2068 #:test-flags #~(list "tests")))
2069 (native-inputs
2070 (list python-hatchling
2071 python-numpy
2072 python-pytest
2073 python-toml))
2074 (propagated-inputs
2075 (list python-cython
2076 python-hatchling
2077 python-setuptools))
2078 (home-page "https://github.com/joshua-auchincloss/hatch-cython")
2079 (synopsis "Cython build hooks for Hatch")
2080 (description "This package provides a Cython build hooks for Hatch.")
2081 (license license:expat)))
2082
2083(define-public python-hatch-gettext
2084 (package
2085 (name "python-hatch-gettext")
2086 (version "1.1.0")
2087 (source
2088 (origin
2089 (method git-fetch)
2090 (uri (git-reference
2091 (url "https://github.com/damonlynch/hatch-gettext")
2092 (commit (string-append "v" version))))
2093 (file-name (git-file-name name version))
2094 (sha256
2095 (base32 "0q35pscb6grwpdghxig8i0016gdsqn3jmcqi844yg9dcrvj4swwq"))))
2096 (build-system pyproject-build-system)
2097 (arguments (list #:tests? #f)) ; No tests upstream.
2098 (native-inputs (list python-hatchling))
2099 (propagated-inputs (list python-rich))
2100 (home-page "https://github.com/damonlynch/hatch-gettext")
2101 (synopsis "Hatch build hook plugin for GNU gettext")
2102 (description
2103 "This package provides a build hook plugin for Hatch that compiles
2104 bsmulti-lingual messages with GNU gettext's tools msgfmt.")
2105 (license license:gpl3+)))
2106
2107(define-public python-hatch-nodejs-version
2108 (package
2109 (name "python-hatch-nodejs-version")
2110 (version "0.4.0")
2111 (source
2112 (origin
2113 (method git-fetch)
2114 (uri (git-reference
2115 (url "https://github.com/agoose77/hatch-nodejs-version")
2116 (commit (string-append "v" version))))
2117 (file-name (git-file-name name version))
2118 (sha256
2119 (base32 "00ik9yjc9329qq487lk0hs04jsj6l0adffb39l3711p1bhf3pv9r"))))
2120 (build-system pyproject-build-system)
2121 (propagated-inputs (list python-hatchling))
2122 (native-inputs (list python-hatchling python-pytest))
2123 (home-page "https://github.com/agoose77/hatch-nodejs-version")
2124 (synopsis "Hatch plugin for versioning from a package.json file")
2125 (description "This package provides a hatch plugin for fetching a version
2126from a @code{package.json} file.")
2127 (license license:expat)))
2128
2129(define-public python-hatch-regex-commit
2130 (package
2131 (name "python-hatch-regex-commit")
2132 (version "0.0.4")
2133 (source
2134 (origin
2135 (method git-fetch)
2136 (uri (git-reference
2137 (url "https://github.com/frankie567/hatch-regex-commit")
2138 (commit (string-append "v" version))))
2139 (file-name (git-file-name name version))
2140 (sha256
2141 (base32 "01ngfz2x49h323akksfhwlpp6hiy36ai5gnxfspd10g2rjm7gny5"))))
2142 (build-system pyproject-build-system)
2143 (arguments (list #:tests? #f)) ;test directory is empty
2144 (propagated-inputs (list python-hatchling))
2145 (native-inputs (list python-hatchling))
2146 (home-page "https://github.com/frankie567/hatch-regex-commit")
2147 (synopsis "Hatch plugin to create a commit and tag when bumping version")
2148 (description
2149 "This provides a plugin for Hatch that automatically creates a Git commit
2150and tag after version bumping.")
2151 (license license:expat)))
2152
2153;; TODO: Move to ci or task-runners, see:
2154;; <https://codeberg.org/guix/guix/issues/3096>.
2155(define-public python-huey
2156 (package
2157 (name "python-huey")
2158 (version "2.5.3")
2159 (source
2160 (origin
2161 (method git-fetch)
2162 (uri (git-reference
2163 (url "https://github.com/coleifer/huey")
2164 (commit version)))
2165 (file-name (git-file-name name version))
2166 (sha256
2167 (base32 "189sin0k9imiddm10xa5llql3953p1jv6dqgxm78hy18qrlbkz02"))))
2168 (build-system pyproject-build-system)
2169 (arguments
2170 (list
2171 #:phases
2172 #~(modify-phases %standard-phases
2173 (add-after 'unpack 'remove-which
2174 (lambda _
2175 (substitute* "huey/tests/test_kt_huey.py"
2176 (("^has_ktserver = sp.call\\(\\['which', 'ktserver'\\].*$")
2177 "has_ktserver = False"))))
2178 (replace 'check
2179 (lambda* (#:key tests? #:allow-other-keys)
2180 (when tests?
2181 (spawn "redis-server" '("redis-server"))
2182 (invoke "python3" "-m" "runtests" "--verbosity" "2")))))))
2183 (native-inputs (list python-setuptools redis tzdata-for-tests))
2184 (propagated-inputs (list python-redis))
2185 (home-page "https://huey.readthedocs.io")
2186 (synopsis "Lightweight task queue for Python")
2187 (description
2188 "Huey is a lightweight task queue for Python applications. Huey
2189supports:
2190@itemize
2191@item Redis, SQLite, file-system, or in-memory storage
2192@item multi-process, multi-thread or greenlet task execution models
2193@item scheduling tasks to execute at a given time, or after a given delay
2194@item scheduling recurring tasks, like a crontab
2195@item automatically retrying tasks that fail
2196@item task prioritization
2197@item task result storage
2198@item task expiration
2199@item task locking
2200@item task pipelines and chains
2201@end itemize")
2202 (license license:expat)))
2203
2204(define-public python-id
2205 (package
2206 (name "python-id")
2207 (version "1.5.0")
2208 (source
2209 (origin
2210 (method url-fetch)
2211 (uri (pypi-uri "id" version))
2212 (sha256
2213 (base32 "07acfgq7vmbz94p5axn9d40m8qjcgfllfkr4jz7dpfxcksjbhb19"))))
2214 (build-system pyproject-build-system)
2215 (native-inputs
2216 (list python-flit-core
2217 python-pretend
2218 python-pytest))
2219 (propagated-inputs
2220 (list python-requests))
2221 (home-page "https://github.com/di/id")
2222 (synopsis "Tool for generating OIDC identities")
2223 (description
2224 "This package provides a tool for generating @code{OIDC, OpenID Connect}
2225identities.")
2226 (license license:asl2.0)))
2227
2228(define-public python-iniparse
2229 (package
2230 (name "python-iniparse")
2231 (version "0.5.1")
2232 (source
2233 (origin
2234 (method git-fetch)
2235 (uri (git-reference
2236 (url "https://github.com/candlepin/python-iniparse")
2237 (commit version)))
2238 (file-name (git-file-name name version))
2239 (sha256
2240 (base32 "0hh676j1yw7krwmzpaxl59bhl5g04dbbzbr84qryrw420npy2prp"))))
2241 (build-system pyproject-build-system)
2242 (arguments
2243 (list
2244 #:test-backend #~'custom
2245 #:test-flags #~(list "runtests.py")
2246 #:phases
2247 #~(modify-phases %standard-phases
2248 (add-before 'check 'disable-tests
2249 (lambda _
2250 ;; XXX: Three tests failed to compare lists.
2251 (substitute* "tests/test_compat.py"
2252 (("test_read_returns_file_list")
2253 "disabled_test_read_returns_file_list")))))))
2254 (native-inputs
2255 (list python-setuptools))
2256 (home-page "https://github.com/candlepin/python-iniparse")
2257 (synopsis "Accessing and Modifying INI files")
2258 (description
2259 "iniparse is a INI parser for Python which is:
2260@itemize
2261@item Compatible with ConfigParser: Backward compatible implementations of
2262ConfigParser, RawConfigParser, and SafeConfigParser are included that are
2263API-compatible with the Python standard library.
2264@item Preserves structure of INI files: Order of sections & options,
2265indentation, comments, and blank lines are preserved as far as possible when
2266data is updated.
2267@item More convenient: Values can be accessed using dotted notation
2268(@code{cfg.user.name}), or using container syntax
2269(@code{cfg['user']['name']}).
2270@end itemize")
2271 (license license:expat)))
2272
2273(define-public python-inotify
2274 (package
2275 (name "python-inotify")
2276 (version "0.2.12")
2277 (source
2278 (origin
2279 (method git-fetch)
2280 (uri (git-reference
2281 (url "https://github.com/dsoprea/PyInotify")
2282 (commit version)))
2283 (file-name (git-file-name name version))
2284 (sha256
2285 (base32 "1n1rqpzk70ap2i4zk2k0znz407i909y2001v65agy7y30apjzb67"))))
2286 (build-system pyproject-build-system)
2287 (arguments
2288 (list
2289 #:phases
2290 #~(modify-phases %standard-phases
2291 (add-after 'unpack 'fix-requirements
2292 (lambda _
2293 (substitute* "inotify/resources/requirements.txt"
2294 (("build")
2295 "")))))))
2296 (native-inputs (list python-pytest python-setuptools))
2297 (propagated-inputs (list python-pyasyncore))
2298 (home-page "https://github.com/dsoprea/PyInotify")
2299 (synopsis "Linux filesystem activity monitor library for Python")
2300 (description
2301 "This package provides an efficient and elegant inotify (Linux filesystem
2302activity monitor) library for Python.")
2303 (license license:gpl2)))
2304
2305(define-public python-intervaltree
2306 (package
2307 (name "python-intervaltree")
2308 (version "3.1.0")
2309 (source
2310 (origin
2311 (method url-fetch)
2312 (uri (pypi-uri "intervaltree" version))
2313 (sha256
2314 (base32
2315 "0bcm6c6r4ck9nfj9xwz4rm2swc5lrjvmw3lyl6rgj639jf41nawh"))))
2316 (build-system pyproject-build-system)
2317 (arguments
2318 `(#:phases
2319 (modify-phases %standard-phases
2320 ;; pytest seems to have a check to make sure the user is testing
2321 ;; their checked-out code and not an installed, potentially
2322 ;; out-of-date copy. This is harmless here, since we just installed
2323 ;; the package, so we disable the check to avoid skipping tests
2324 ;; entirely.
2325 (add-before 'check 'import-mismatch-error-workaround
2326 (lambda _
2327 (setenv "PY_IGNORE_IMPORTMISMATCH" "1")
2328 #t)))))
2329 (propagated-inputs
2330 (list python-sortedcontainers))
2331 (native-inputs
2332 (list python-setuptools python-pytest))
2333 (home-page "https://github.com/chaimleib/intervaltree")
2334 (synopsis "Editable interval tree data structure")
2335 (description
2336 "This package provides a mutable, self-balancing interval tree
2337implementation for Python. Queries may be by point, by range overlap, or by
2338range envelopment. This library was designed to allow tagging text and time
2339intervals, where the intervals include the lower bound but not the upper
2340bound.")
2341 (license license:asl2.0)))
2342
2343(define-public python-jschon
2344 (package
2345 (name "python-jschon")
2346 (version "0.11.1")
2347 (source
2348 (origin
2349 (method git-fetch)
2350 (uri (git-reference
2351 (url "https://github.com/marksparkza/jschon/")
2352 (commit (string-append "v" version))
2353 (recursive? #t))) ;required for tests
2354 (sha256
2355 (base32 "0javlbq83ffy98kinhl7i17ja00917856yg55qlbn8048lhc9sxq"))
2356 (file-name (git-file-name name version))))
2357 (build-system pyproject-build-system)
2358 (propagated-inputs
2359 (list python-rfc3986))
2360 (native-inputs
2361 (list python-coverage
2362 python-hypothesis
2363 python-pytest
2364 python-pytest-benchmark
2365 python-pytest-httpserver
2366 python-requests
2367 python-setuptools))
2368 (home-page "https://jschon.readthedocs.io/")
2369 (synopsis "Object-oriented JSON Schema implementation for Python")
2370 (description
2371 "This package provides a JSON toolkit for Python developers.")
2372 (license license:expat)))
2373
2374(define-public python-jsonpath-ng
2375 (package
2376 (name "python-jsonpath-ng")
2377 (version "1.7.0" )
2378 (source
2379 (origin
2380 (method git-fetch)
2381 (uri (git-reference
2382 (url "https://github.com/h2non/jsonpath-ng")
2383 (commit (string-append "v" version))))
2384 (file-name (git-file-name name version))
2385 (sha256
2386 (base32 "0z0qm5sgzal0qzml2fmc9h5nim8m3x6sz55gqhcd9c2jrq8jmwmi"))))
2387 (build-system pyproject-build-system)
2388 (native-inputs
2389 (list python-pytest
2390 python-setuptools))
2391 (propagated-inputs
2392 (list python-ply))
2393 (home-page "https://github.com/h2non/jsonpath-ng")
2394 (synopsis "JSONPath Next-Generation")
2395 (description
2396 "This package provides a final implementation of @code{JSONPath} for
2397Python that aims to be standard compliant, including arithmetic and binary
2398comparison operators, as defined in the original
2399@url{http://goessner.net/articles/JsonPath/, JSONPath} proposal.")
2400 (license license:asl2.0)))
2401
2402(define-public python-json-log-formatter
2403 (package
2404 (name "python-json-log-formatter")
2405 (version "1.2.1")
2406 (source
2407 (origin
2408 (method git-fetch)
2409 (uri (git-reference
2410 (url "https://github.com/marselester/json-log-formatter")
2411 (commit (string-append "v" version))))
2412 (file-name (git-file-name name version))
2413 (sha256
2414 (base32 "0xpsv3a5cvwpggqyjkkr59z8wl8n44zkhpwqjnnn7cshb9skvkz1"))))
2415 (build-system pyproject-build-system)
2416 (arguments (list #:test-flags #~(list "-s" "tests.py")))
2417 (native-inputs
2418 (list python-django-minimal
2419 python-pytest
2420 python-setuptools
2421 python-simplejson
2422 python-ujson))
2423 (home-page "https://github.com/marselester/json-log-formatter")
2424 (synopsis "JSON log formatter")
2425 (description "The library helps you to store logs in JSON format.")
2426 (license license:expat)))
2427
2428(define-public python-keeper-secrets-manager-core
2429 ;; released from a monorepo with other packages following various versioning
2430 ;; schemes. This commit was selected because some failing tests were fixed
2431 ;; since the most recent release of the Python SDK packages.
2432 (let ((commit "2c9a63d433721dee129a3647077d59bb243b52ec")
2433 (revision "0"))
2434 (package
2435 (name "python-keeper-secrets-manager-core")
2436 (version (git-version "17.0.0" revision commit))
2437 (source
2438 (origin
2439 (method git-fetch)
2440 (uri (git-reference
2441 (url "https://github.com/Keeper-Security/secrets-manager")
2442 (commit commit)))
2443 (file-name (git-file-name name version))
2444 (sha256
2445 (base32 "1mqx0xv28xyljd4s7wwi154h8v22ayi8k337afhhw0pg2c8150pp"))))
2446 (build-system pyproject-build-system)
2447 (arguments
2448 (list
2449 #:phases
2450 #~(modify-phases %standard-phases
2451 (add-after 'unpack 'chdir
2452 (lambda _
2453 (chdir "sdk/python/core"))))))
2454 (propagated-inputs
2455 (list python-cryptography
2456 python-importlib-metadata
2457 python-requests))
2458 (native-inputs
2459 (list python-pytest
2460 python-setuptools))
2461 (home-page "https://github.com/Keeper-Security/secrets-manager")
2462 (synopsis "Keeper Secrets Manager for Python SDK")
2463 (description
2464 "The Keeper Secrets Manager Python SDK provides access to
2465@url{https://www.keepersecurity.com/secrets-manager.html, Keeper Secrets
2466Management} services.")
2467 (license license:expat))))
2468
2469(define-public python-keeper-secrets-manager-helper
2470 ;; released alongside keeper-secrets-manager-core, but with a different
2471 ;; versioning scheme.
2472 (let ((commit "2c9a63d433721dee129a3647077d59bb243b52ec")
2473 (revision "0"))
2474 (package
2475 (name "python-keeper-secrets-manager-helper")
2476 (version (git-version "1.0.6" revision commit))
2477 (source
2478 (origin
2479 (method git-fetch)
2480 (uri (git-reference
2481 (url "https://github.com/Keeper-Security/secrets-manager")
2482 (commit commit)))
2483 (file-name (git-file-name name version))
2484 (sha256
2485 (base32 "1mqx0xv28xyljd4s7wwi154h8v22ayi8k337afhhw0pg2c8150pp"))))
2486 (build-system pyproject-build-system)
2487 (arguments
2488 (list
2489 #:phases
2490 #~(modify-phases %standard-phases
2491 (add-after 'unpack 'chdir
2492 (lambda _
2493 (chdir "sdk/python/helper"))))))
2494 (propagated-inputs
2495 (list python-iso8601
2496 python-keeper-secrets-manager-core
2497 python-pyyaml))
2498 (native-inputs
2499 (list python-pytest
2500 python-setuptools))
2501 (home-page "https://github.com/Keeper-Security/secrets-manager")
2502 (synopsis "Keeper Secrets Manager for Python SDK helper for managing records")
2503 (description
2504 "Keeper Secrets Manager SDK helper is for creating and managing secret
2505records. It is intended to be used with @code{keeper-secrets-manager-core}.")
2506 (license license:expat))))
2507
2508(define-public python-language-data
2509 (package
2510 (name "python-language-data")
2511 (version "1.3.0")
2512 (source
2513 (origin
2514 (method url-fetch)
2515 (uri (pypi-uri "language_data" version))
2516 (sha256
2517 (base32 "1v6pp8z2wxj3hafl62hbx8sbinpp9cr0r7y80rfi8mcmlf5fy03n"))))
2518 (build-system pyproject-build-system)
2519 (native-inputs
2520 (list python-pytest
2521 python-setuptools
2522 python-setuptools-scm))
2523 (propagated-inputs
2524 (list python-marisa-trie))
2525 (home-page "https://github.com/georgkrause/language_data")
2526 (synopsis "Supplementary data about languages used by the langcodes module")
2527 (description
2528 "language_data is a supplement to the langcodes module, for working with
2529standardized codes for human languages. It stores the more bulky and
2530hard-to-index data about languages, particularly what they are named in
2531various languages.")
2532 (license license:expat)))
2533
2534(define-public python-log-symbols
2535 (package
2536 (name "python-log-symbols")
2537 (version "0.0.14")
2538 (source
2539 (origin
2540 (method url-fetch)
2541 (uri (pypi-uri "log_symbols" version))
2542 (sha256
2543 (base32 "0mh5d0igw33libfmbsr1ri1p1y644p36nwaa2w6kzrd8w5pvq2yg"))))
2544 (build-system pyproject-build-system)
2545 (arguments
2546 (list #:tests? #f)) ;no tests in PyPI archive, tests depend on Nose
2547 (native-inputs
2548 (list python-setuptools))
2549 (propagated-inputs
2550 (list python-colorama))
2551 (home-page "https://github.com/manrajgrover/py-log-symbols")
2552 (synopsis "Python library with graphical symbols for logging on the terminal")
2553 (description
2554 "This package provides a Python library with graphical symbols that can
2555be displayed on the terminal, with color if possible, for logging purposes.")
2556 (license license:expat)))
2557
2558(define-public python-lsprotocol
2559 (package
2560 (name "python-lsprotocol")
2561 (version "2025.0.0")
2562 (source
2563 (origin
2564 (method git-fetch)
2565 (uri (git-reference
2566 (url "https://github.com/microsoft/lsprotocol")
2567 (commit version)))
2568 (file-name (git-file-name name version))
2569 (sha256
2570 (base32 "0m5c2wd7f3i1ipdf0lqhfmgi7d9jw6sa49pvx8828r83r0f9gd8f"))))
2571 (build-system pyproject-build-system)
2572 (arguments
2573 (list
2574 #:tests? #f ;no tests for Python package
2575 #:phases
2576 #~(modify-phases %standard-phases
2577 (add-after 'unpack 'cd-packages-python
2578 (lambda _
2579 (chdir "packages/python"))))))
2580 (native-inputs
2581 (list python-flit-core))
2582 (propagated-inputs
2583 (list python-attrs
2584 python-cattrs))
2585 (home-page "https://github.com/microsoft/lsprotocol")
2586 (synopsis "Python types for Language Server Protocol.")
2587 (description
2588 "@code{lsprotocol} is a Python implementation of object types used in
2589the Language Server Protocol (LSP). This repository contains the code
2590generator and the generated types for LSP.")
2591 (license license:expat)))
2592
2593(define-public python-marisa-trie
2594 (package
2595 (name "python-marisa-trie")
2596 (version "1.3.1")
2597 (source
2598 (origin
2599 (method url-fetch)
2600 (uri (pypi-uri "marisa_trie" version))
2601 (sha256
2602 (base32 "0nzq9yc3qdpnnvhi9zlp6vcpk6id5lx3943pm7zgir1h5z8py44p"))))
2603 (build-system pyproject-build-system)
2604 (native-inputs
2605 (list python-cython
2606 python-hypothesis
2607 python-pytest
2608 python-readme-renderer
2609 python-setuptools))
2610 (home-page "https://github.com/pytries/marisa-trie")
2611 (synopsis "Static memory-efficient Trie-like structures for Python")
2612 (description
2613 "This package provides static memory-efficient and fast Trie-like structures
2614for Python.")
2615 (license license:expat)))
2616
2617(define-public python-materialyoucolor
2618 (package
2619 (name "python-materialyoucolor")
2620 (version "3.0.2")
2621 (source
2622 (origin
2623 (method git-fetch)
2624 (uri (git-reference
2625 (url "https://github.com/T-Dynamos/materialyoucolor-python")
2626 (commit (string-append "v" version))))
2627 (file-name (git-file-name name version))
2628 (sha256
2629 (base32 "1yxz05g681zpvxzfcvp4dwayq8hjvw773n4lixkhgxkvvan5hah8"))))
2630 (build-system pyproject-build-system)
2631 (arguments
2632 (list #:test-backend #~'custom
2633 #:test-flags #~(list "tests/test_all.py")))
2634 (propagated-inputs (list python-pillow))
2635 (native-inputs (list pybind11 python-psutil python-rich python-setuptools))
2636 (home-page "https://github.com/T-Dynamos/materialyoucolor-python")
2637 (synopsis "Material You color generation algorithms")
2638 (description
2639 "@code{python-materialyoucolor} provides a tool that generates harmonious
2640color palettes from the dominant colors of an image, based on the
2641@uref{https://m3.material.io/styles/color/system/overview, Material color
2642system}.")
2643 (license license:expat)))
2644
2645(define-public python-menuinst
2646 (package
2647 (name "python-menuinst")
2648 (version "2.4.1")
2649 (source
2650 (origin
2651 (method git-fetch)
2652 (uri (git-reference
2653 (url "https://github.com/conda/menuinst")
2654 (commit version)))
2655 (file-name (git-file-name name version))
2656 (sha256
2657 (base32 "0606j3mwpcj4rqj8mifnrdqqhp8dqf802kagqkp7mmi2wffly27w"))))
2658 (build-system pyproject-build-system)
2659 (arguments
2660 (list
2661 #:tests? #f)) ;tests need conda
2662 (native-inputs
2663 (list python-setuptools
2664 python-setuptools-scm))
2665 (home-page "https://conda.github.io/menuinst/")
2666 (synopsis "Cross platform menu item installation")
2667 (description
2668 "This package provides cross platform menu item installation for conda
2669packages.")
2670 (license license:bsd-3)))
2671
2672(define-public python-multiplex
2673 (package
2674 (name "python-multiplex")
2675 (version "0.6.1")
2676 (source
2677 (origin
2678 (method git-fetch) ;no tests in PyPI archive
2679 (uri (git-reference
2680 (url "https://github.com/dankilman/multiplex")
2681 (commit version)))
2682 (file-name (git-file-name name version))
2683 (sha256
2684 (base32 "1a662liqhiya47i6vrz3q03w08viqg3wj5j3g58mz175hcdcmmmv"))))
2685 (build-system pyproject-build-system)
2686 (native-inputs
2687 (list python-poetry-core
2688 python-pytest
2689 python-pytest-asyncio))
2690 (propagated-inputs
2691 (list python-aiofiles
2692 python-aiostream
2693 python-click
2694 python-easy-ansi-0.3
2695 python-pyte))
2696 (home-page "https://github.com/dankilman/multiplex")
2697 (synopsis "Parallel stream of outputs from multiple processes")
2698 (description
2699 "This package provides a functionality to view output of multiple
2700processes, in parallel, in the console, with an interactive TUI.")
2701 (license license:expat)))
2702
2703(define-public python-nrepl
2704 (package
2705 (name "python-nrepl")
2706 (version "0.3.4")
2707 (source
2708 (origin
2709 (method git-fetch)
2710 (uri (git-reference
2711 (url "https://git.sr.ht/~ngraves/nrepl-python")
2712 (commit version)))
2713 (file-name (git-file-name name version))
2714 (sha256
2715 (base32 "12fi4ilkslh9rg5dilqknrr6sm2rhs2v91xhyfi432f0dp5920lp"))))
2716 (build-system pyproject-build-system)
2717 (arguments
2718 (list
2719 #:test-flags
2720 #~(list "--numprocesses" (number->string (parallel-job-count)))))
2721 (native-inputs
2722 (list python-flit-core
2723 python-pytest
2724 python-pytest-asyncio
2725 python-pytest-xdist))
2726 (propagated-inputs
2727 (list python-fastbencode
2728 python-gevent
2729 python-ipython))
2730 (home-page "https://git.sr.ht/~ngraves/nrepl-python")
2731 (synopsis "NREPL server for Python")
2732 (description
2733 "This package provides an implementation of the @url{https://nrepl.org,
2734NREPL} protocol for Python.")
2735 (license license:gpl3+)))
2736
2737(define-public python-num2words
2738 (package
2739 (name "python-num2words")
2740 (version "0.5.14")
2741 (source
2742 (origin
2743 (method git-fetch)
2744 (uri (git-reference
2745 (url "https://github.com/savoirfairelinux/num2words")
2746 (commit (string-append "v" version))))
2747 (file-name (git-file-name name version))
2748 (sha256
2749 (base32 "1h52kgh1h4q9nkkplpwix2xs6f6wwvlxq09clznr2589xv39iqlz"))))
2750 (build-system pyproject-build-system)
2751 (arguments
2752 (list
2753 #:test-flags
2754 #~(list "--ignore" "tests/test_cli.py"))) ;Requires delegator.py.
2755 (native-inputs (list python-pytest python-setuptools))
2756 (propagated-inputs (list python-docopt))
2757 (home-page "https://github.com/savoirfairelinux/num2words")
2758 (synopsis "Convert numbers to words in multiple languages")
2759 (description
2760 "@code{num2words} is a library that converts numbers like 42 to words like
2761forty-two. It supports multiple languages, and can even generate ordinal
2762numbers like forty-second.")
2763 (license license:lgpl2.1)))
2764
2765(define-public python-orderly-set
2766 (package
2767 (name "python-orderly-set")
2768 (version "5.5.0")
2769 (source
2770 (origin
2771 (method url-fetch)
2772 (uri (pypi-uri "orderly_set" version))
2773 (sha256
2774 (base32 "1kp64m0nabhhb0zxr4f8idrmniraahnfwq41gx7adbyqwk48awg8"))))
2775 (build-system pyproject-build-system)
2776 (native-inputs (list python-flit-core python-pytest))
2777 (home-page "https://github.com/seperman/orderly-set")
2778 (synopsis "Multiple implementations of Ordered Set")
2779 (description "Orderly Set is a package containing multiple implementations
2780of Ordered Set.")
2781 (license license:expat)))
2782
2783(define-public python-packageurl
2784 (package
2785 (name "python-packageurl")
2786 (version "0.17.6")
2787 (source
2788 (origin
2789 (method git-fetch)
2790 (uri (git-reference
2791 (url "https://github.com/package-url/packageurl-python")
2792 (commit (string-append "v" version))))
2793 (file-name (git-file-name name version))
2794 (sha256
2795 (base32 "03b6nf6jxzcbgkmqdp3bsl2lvzszqiaiqfwk88cnpvqbgq67lafb"))
2796 (modules '((guix build utils)))
2797 ;; Remove bundled virtualenv and license files used only for
2798 ;; development; not needed at build or runtime.
2799 (snippet '(delete-file-recursively "thirdparty"))))
2800 (build-system pyproject-build-system)
2801 (arguments
2802 (list #:test-flags
2803 ;; test_purl_spec.py reads JSON fixtures from the 'spec' git
2804 ;; submodule at import time; skip it when the submodule is absent.
2805 #~(list "--ignore=tests/test_purl_spec.py")))
2806 (native-inputs
2807 (list python-pytest
2808 python-setuptools))
2809 (home-page "https://www.packageurl.org")
2810 (synopsis "Package URL parser and builder")
2811 (description
2812 "This library parses and builds Package URLs (purls) as defined in the
2813purl specification. It provides a @code{PackageURL} class for creating,
2814parsing, and normalizing package URL strings across different package
2815management ecosystems.")
2816 (license license:expat)))
2817
2818(define-public python-pandocfilters
2819 (package
2820 (name "python-pandocfilters")
2821 (version "1.5.1")
2822 (source
2823 (origin
2824 (method url-fetch)
2825 (uri (pypi-uri "pandocfilters" version))
2826 (sha256
2827 (base32 "17lknixjja23jczlv8afgfky94m4gwl7wc36iczw1sz4brallaq0"))))
2828 (build-system pyproject-build-system)
2829 (arguments
2830 (list #:tests? #f)) ;require pandoc to run tests
2831 (native-inputs
2832 (list python-setuptools))
2833 (home-page "https://github.com/jgm/pandocfilters")
2834 (synopsis "Python module for writing Pandoc filters")
2835 (description "Pandoc is a powerful utility to transform various
2836input formats into a wide range of output formats. To alter the
2837exported output document, Pandoc allows the usage of filters, which
2838are pipes that read a JSON serialization of the Pandoc AST from stdin,
2839transform it in some way, and write it to stdout. It allows therefore
2840to alter the processing of Pandoc's supported input formats, for
2841instance one can add new syntax elements to markdown, etc.
2842
2843This package provides Python bindings.")
2844 (license license:bsd-3)))
2845
2846(define-public python-panflute
2847 (package
2848 (name "python-panflute")
2849 (version "2.3.1")
2850 (source
2851 (origin
2852 (method url-fetch)
2853 (uri (pypi-uri "panflute" version))
2854 (sha256
2855 (base32 "07wg5md93jcdkpiqljwr3p1xzvm6nf7vbiay0bp84fgg6hmd06sz"))))
2856 (build-system pyproject-build-system)
2857 (arguments
2858 (list #:tests? #f)) ;require pandoc to run tests
2859 (native-inputs
2860 (list python-setuptools))
2861 (propagated-inputs
2862 (list python-click
2863 python-pyyaml))
2864 (home-page "http://scorreia.com/software/panflute/")
2865 (synopsis "Pythonic Pandoc filters")
2866 (description
2867 "Panflute is a Python package that makes Pandoc filters fun to write.
2868It is a pythonic alternative to John MacFarlane's pandocfilters, from which it
2869is heavily inspired.")
2870 (license license:bsd-3)))
2871
2872(define-public python-pastel
2873 (package
2874 (name "python-pastel")
2875 (version "0.2.1")
2876 (source
2877 (origin
2878 (method git-fetch)
2879 (uri (git-reference
2880 (url "https://github.com/sdispater/pastel")
2881 (commit version)))
2882 (file-name (git-file-name name version))
2883 (sha256
2884 (base32 "1lwip9qaqfacgwnl5ykr0846y1nky228k7h7vzrgyqj1viapprsv"))))
2885 (build-system pyproject-build-system)
2886 (arguments
2887 (list
2888 #:test-flags
2889 #~(list "pastel" "tests/")
2890 #:phases
2891 #~(modify-phases %standard-phases
2892 (add-after 'unpack 'use-poetry-core
2893 (lambda _
2894 ;; Patch to use the core poetry API.
2895 (substitute* "pyproject.toml"
2896 (("poetry.masonry.api") "poetry.core.masonry.api")))))))
2897 (native-inputs (list python-poetry-core python-pytest))
2898 (home-page "https://github.com/sdispater/pastel")
2899 (synopsis "Library to colorize strings in your terminal")
2900 (description
2901 "Pastel is a simple library to help you colorize strings in your
2902terminal.")
2903 (license license:expat)))
2904
2905(define-public python-pathlib-abc
2906 (package
2907 (name "python-pathlib-abc")
2908 (version "0.5.0")
2909 (source
2910 (origin
2911 (method url-fetch)
2912 (uri (pypi-uri "pathlib_abc" version))
2913 (sha256
2914 (base32 "1hy2rscq3msbpjs17jbhsqjs800kcnv2w1n425yh1ly609a9x726"))))
2915 (build-system pyproject-build-system)
2916 (native-inputs (list python-pytest python-hatchling))
2917 (home-page "https://github.com/barneygale/pathlib-abc")
2918 (synopsis "Python base classes for rich path objects")
2919 (description
2920 "This package is a preview of pathlib functionality planned for a future
2921release of Python; specifically, it provides three ABCs that can be used to
2922implement path classes for non-local filesystems")
2923 (license license:psfl)))
2924
2925;; XXX: It's for [email protected], remove when no longer required.
2926(define-public python-pathlib-abc-for-python-pathy
2927 (hidden-package
2928 (package
2929 (inherit python-pathlib-abc)
2930 (version "0.1.1")
2931 (source
2932 (origin
2933 (method url-fetch)
2934 (uri (pypi-uri "pathlib_abc" version))
2935 (sha256
2936 (base32 "1gjsj7r331i54kbisy0zz1h9icx1hv6n97jaj5s7f3wvj7fpnkh8")))))))
2937
2938(define-public python-pbs-installer
2939 (package
2940 (name "python-pbs-installer")
2941 (version "2025.09.18")
2942 (source
2943 (origin
2944 (method git-fetch)
2945 (uri (git-reference
2946 (url "https://github.com/frostming/pbs-installer")
2947 (commit version)))
2948 (file-name (git-file-name name version))
2949 (sha256
2950 (base32 "0f5gpr4xp71d46vk2ggbb31bhagj4drf1ijl1lg1jd1apimr0jkf"))))
2951 (build-system pyproject-build-system)
2952 (arguments
2953 (list
2954 #:tests? #f ;no tests provided
2955 #:phases
2956 #~(modify-phases %standard-phases
2957 (add-before 'build 'set-version
2958 (lambda _
2959 (setenv "PDM_BUILD_SCM_VERSION" #$version))))))
2960 (native-inputs
2961 (list python-pdm-backend
2962 python-pytest))
2963 (propagated-inputs
2964 (list python-httpx
2965 python-zstandard))
2966 (home-page "https://github.com/frostming/pbs-installer")
2967 (synopsis "Installer for Python Build Standalone")
2968 (description
2969 "This package implements an installer for
2970@url{https://github.com/astral-sh/python-build-standalone, Python Build
2971Standalone}.")
2972 (license license:expat)))
2973
2974(define-public python-phply
2975 (package
2976 (name "python-phply")
2977 (version "1.2.6")
2978 (source
2979 (origin
2980 (method url-fetch)
2981 (uri (pypi-uri "phply" version))
2982 (sha256
2983 (base32 "05s9v2q6b2r0i65zfw4jf1nzb619zgw0anl08ls7ll2z516pf9qb"))))
2984 (build-system pyproject-build-system)
2985 (native-inputs
2986 (list python-pytest
2987 python-setuptools))
2988 (propagated-inputs
2989 (list python-ply))
2990 (home-page "https://github.com/viraptor/phply")
2991 (synopsis "PHP parser written in Python using PLY")
2992 (description
2993 "@code{phply} is a parser for the PHP programming language written using
2994PLY,a Lex/YACC-style parser generator toolkit for Python.")
2995 (license license:bsd-3)))
2996
2997(define-public python-puccinialin
2998 (package
2999 (name "python-puccinialin")
3000 (version "0.1.5")
3001 (source
3002 (origin
3003 (method url-fetch)
3004 (uri (pypi-uri "puccinialin" version))
3005 (sha256
3006 (base32 "00nnqcvvyn10zxkhgzcfn8czwvdzm0vh5z16plb0dxspccd69dmv"))))
3007 (build-system pyproject-build-system)
3008 (arguments
3009 (list #:tests? #f)) ;no tests in PyPI or Git
3010 (native-inputs
3011 (list python-hatchling))
3012 (propagated-inputs
3013 (list python-httpx
3014 python-platformdirs
3015 python-tqdm))
3016 (home-page "https://github.com/konstin/puccinialin")
3017 (synopsis "Helper for bootstrapping Rust-based build back-ends for Python")
3018 (description
3019 "This tool helps to install Rust into a temporary directory, allowing
3020support of Rust-based Python builds. Cargo and rustc are installed into a
3021cache directory, to avoid modifying the host's environment, and further
3022activated using a set of environment variables.")
3023 (license (list license:expat license:asl2.0))))
3024
3025(define-public python-py010parser
3026 (package
3027 (name "python-py010parser")
3028 (version "0.1.18")
3029 (source
3030 (origin
3031 (method git-fetch)
3032 (uri (git-reference
3033 (url "https://github.com/d0c-s4vage/py010parser")
3034 (commit (string-append "v" version))))
3035 (file-name (git-file-name name version))
3036 (sha256 (base32 "0yiyal9vxrni2yy3f6fwpndxz4kih6pwm9ikgrmhx4nq0fkb68m3"))
3037 (modules '((guix build utils)))
3038 (snippet #~(begin
3039 ;; Unbundle ply.
3040 (substitute* "requirements.txt"
3041 (("^six\\>.*") ""))
3042 (substitute* "setup.py"
3043 (("(packages += \\['py010parser').*\\]" all first)
3044 (string-append first "]")))
3045 (delete-file-recursively "py010parser/ply")
3046 (substitute* (find-files "py010parser" "\\.py$")
3047 ((" .*\\.ply\\>") " ply"))
3048 ;; Avoid regenerating the lex table.
3049 (substitute* '("py010parser/__init__.py"
3050 "py010parser/c_parser.py")
3051 (("(lex_optimize=)[A-Za-z]+(,)" all open close)
3052 (string-append open "False" close)))
3053 (substitute* '("py010parser/__init__.py"
3054 "setup.py")
3055 (("\\{\\{VERSION\\}\\}") #$version))
3056 (substitute* "setup.cfg"
3057 (("description-file") "description_file"))))))
3058 (build-system pyproject-build-system)
3059 (arguments (list #:test-backend #~'unittest
3060 #:test-flags #~'("discover" "tests")))
3061 (propagated-inputs (list python-regex python-ply))
3062 (native-inputs (list python-setuptools))
3063 (home-page "https://github.com/d0c-s4vage/py010parser")
3064 (synopsis "Parser of 010 editor's template")
3065 (description
3066 "@code{py010parser} is a Python library for parsing templates
3067for the Sweetscape 010 binary-format editor.")
3068 (license license:bsd-3)))
3069
3070(define-public python-pyasynchat
3071 (package
3072 (name "python-pyasynchat")
3073 (version "1.0.5")
3074 (source
3075 (origin
3076 (method git-fetch)
3077 (uri (git-reference
3078 (url "https://github.com/simonrob/pyasynchat")
3079 (commit (string-append "v" version))))
3080 (file-name (git-file-name name version))
3081 (sha256
3082 (base32 "1fsxr7rv662wwlpq8fklj8z6g0x9f693l0mk1qhib5v5xni99698"))))
3083 (build-system pyproject-build-system)
3084 (native-inputs
3085 (list python-pytest
3086 python-setuptools))
3087 (propagated-inputs
3088 (list python-pyasyncore))
3089 (home-page "https://github.com/simonrob/pyasynchat")
3090 (synopsis "Make asynchat available for Python 3.12 onwards")
3091 (description
3092 "This package contains the
3093@url{https://docs.python.org/3.11/library/asynchat.html, asynchat} module as
3094found in Python versions prior to 3.12. It is provided so that existing code
3095relying on @code{import asynchat} is able to continue being used without
3096significant refactoring.")
3097 (license license:psfl)))
3098
3099(define-public python-pyasyncore
3100 (package
3101 (name "python-pyasyncore")
3102 (version "1.0.5")
3103 (source
3104 (origin
3105 (method git-fetch)
3106 (uri (git-reference
3107 (url "https://github.com/simonrob/pyasyncore")
3108 (commit (string-append "v" version))))
3109 (file-name (git-file-name name version))
3110 (sha256
3111 (base32 "11fk83w9dwnwhg5z1524w6h021yvn0aqn2hsf929yzyk0rmsr6c2"))))
3112 (build-system pyproject-build-system)
3113 (native-inputs (list python-pytest python-setuptools))
3114 (home-page "https://github.com/simonrob/pyasyncore")
3115 (synopsis "Make asyncore available for Python 3.12 onwards")
3116 (description
3117 "This package contains the
3118@url{https://docs.python.org/3.11/library/asyncore.html, asyncore} module as
3119found in Python versions prior to 3.12. It is provided so that existing code
3120relying on @code{import asyncore} is able to continue being used without
3121significant refactoring.")
3122 (license license:psfl)))
3123
3124(define-public python-pyconify
3125 (package
3126 (name "python-pyconify")
3127 (version "0.2.1")
3128 (source
3129 (origin
3130 (method git-fetch)
3131 (uri (git-reference
3132 (url "https://github.com/pyapp-kit/pyconify")
3133 (commit (string-append "v" version))))
3134 (file-name (git-file-name name version))
3135 (sha256
3136 (base32 "19amhlha8n9fh9sq4iy1rpasmcagslxbvbjlnv012zndcca22mk6"))))
3137 (build-system pyproject-build-system)
3138 (arguments
3139 (list #:tests? #f)) ;require netwok access
3140 (native-inputs
3141 (list python-hatch-vcs
3142 python-hatchling))
3143 (propagated-inputs
3144 (list python-requests))
3145 (home-page "https://github.com/pyapp-kit/pyconify")
3146 (synopsis "Python wrapper for the Iconify API")
3147 (description
3148 "This packge provides a Python wrapper for the
3149@url{https://github.com/iconify, Iconify} API. Iconify is a versatile icon
3150framework that includes 100+ icon sets with more than 100,000 icons from
3151FontAwesome, Material Design Icons, DashIcons, Feather Icons, EmojiOne, Noto
3152Emoji and many other open source icon sets.")
3153 (license license:bsd-3)))
3154
3155(define-public python-pygls
3156 (package
3157 (name "python-pygls")
3158 (version "2.0.0")
3159 (source
3160 (origin
3161 (method git-fetch)
3162 (uri (git-reference
3163 (url "https://github.com/openlawlibrary/pygls")
3164 (commit (string-append "v" version))))
3165 (file-name (git-file-name name version))
3166 (sha256
3167 (base32 "1y1adnmr4w4c3zk1lzk21fdz9ab9c1az7acm1rz262h0q7bwl0km"))))
3168 (build-system pyproject-build-system)
3169 ;; tests: 265 passed, 8 skipped
3170 (native-inputs
3171 (list python-pytest
3172 python-pytest-asyncio
3173 python-poetry-core))
3174 (propagated-inputs
3175 (list python-attrs
3176 python-cattrs
3177 python-lsprotocol))
3178 (home-page "https://github.com/openlawlibrary/pygls")
3179 (synopsis "Pythonic generic language server")
3180 (description
3181 "This package provides a pythonic generic language server (pronounced
3182like pie glass').")
3183 (license license:asl2.0)))
3184
3185(define-public python-pyls-spyder
3186 (package
3187 (name "python-pyls-spyder")
3188 (version "0.4.0")
3189 (source
3190 (origin
3191 (method git-fetch)
3192 (uri (git-reference
3193 (url "https://github.com/spyder-ide/pyls-spyder")
3194 (commit (string-append "v" version))))
3195 (file-name (git-file-name name version))
3196 (sha256
3197 (base32 "11ajbsia60d4c9s6m6rbvaqp1d69fcdbq6a98lkzkkzv2b9pdhkk"))))
3198 (build-system pyproject-build-system)
3199 (propagated-inputs (list python-lsp-server))
3200 (native-inputs (list python-pytest python-setuptools))
3201 (home-page "https://github.com/spyder-ide/pyls-spyder")
3202 (synopsis "Spyder extensions for @code{python-lsp-server}")
3203 (description "This package provides Spyder-specific extras for the
3204Language Server Protocol (LSP) on Python, such as document symbol searching
3205and others.")
3206 (license license:expat)))
3207
3208(define-public python-pylsp-rope
3209 (package
3210 (name "python-pylsp-rope")
3211 (version "0.1.17")
3212 (source
3213 (origin
3214 (method git-fetch)
3215 (uri (git-reference
3216 (url "https://github.com/python-rope/pylsp-rope")
3217 (commit version)))
3218 (file-name (git-file-name name version))
3219 (sha256
3220 (base32 "1mgmlqv75z6cpqqak4vqprrgdhxa4b2ll56zijjx9bkn0rjr4jc0"))))
3221 (build-system pyproject-build-system)
3222 (native-inputs
3223 (list python-pytest
3224 python-setuptools))
3225 (propagated-inputs
3226 (list python-lsp-server
3227 python-rope))
3228 (home-page "https://github.com/python-rope/pylsp-rope")
3229 (synopsis
3230 "Extended refactoring capabilities for Python LSP Server using Rope")
3231 (description
3232 "This plugs in to Python LSP Server, adding code actions that refactor
3233using Rope.")
3234 (license license:expat)))
3235
3236(define-public python-pypydispatcher
3237 (package
3238 (name "python-pypydispatcher")
3239 (version "2.1.2")
3240 (source
3241 (origin
3242 (method url-fetch)
3243 (uri (pypi-uri "PyPyDispatcher" version))
3244 (sha256
3245 (base32 "1wihj7xgq5fk91li0id6a311lyrnmq7ch8rbr9dm7lprrzgwbgmn"))))
3246 (build-system pyproject-build-system)
3247 (native-inputs
3248 (list python-pytest
3249 python-setuptools
3250 python-setuptools-scm))
3251 (home-page "https://github.com/scrapy/pypydispatcher")
3252 (synopsis "Multi-producer-multi-consumer signal dispatching mechanism")
3253 (description
3254 "This package implements a functionality of pulti-producer-multi-consumer
3255signal dispatching mechanism. It's a fork of
3256http://pydispatcher.sourceforge.net/ with PyPy support.")
3257 (license license:bsd-3)))
3258
3259(define-public python-pyread-eagle
3260 (package
3261 (name "python-pyread-eagle")
3262 (version "1.0.3")
3263 (source
3264 (origin
3265 (method git-fetch)
3266 (uri (git-reference
3267 (url "https://github.com/kyleaoman/pyread_eagle")
3268 (commit version)))
3269 (file-name (git-file-name name version))
3270 (sha256
3271 (base32 "0x8j5wkp46hbfccm88c7dmf8ak488llv1748i2g94npic2rx8yd4"))))
3272 (build-system pyproject-build-system)
3273 (arguments
3274 ;; TODO: Tests need additional test data, see tests/test_regions.py.
3275 (list #:tests? #f))
3276 (native-inputs
3277 (list python-setuptools))
3278 (propagated-inputs
3279 (list python-h5py
3280 python-numpy))
3281 (home-page "https://github.com/kyleaoman/pyread_eagle")
3282 (synopsis "Read routines for Eagle HDF5 snapshots for Python")
3283 (description
3284 "This package provides a pure-python port of
3285@url{https://github.com/jchelly/read_eagle, J. Helly's read_eagle}.")
3286 (license license:gpl3)))
3287
3288(define-public python-pyserial-asyncio-fast
3289 (package
3290 (name "python-pyserial-asyncio-fast")
3291 (version "0.16")
3292 (source
3293 (origin
3294 (method git-fetch)
3295 (uri (git-reference
3296 (url
3297 "https://github.com/home-assistant-libs/pyserial-asyncio-fast")
3298 (commit version)))
3299 (file-name (git-file-name name version))
3300 (sha256
3301 (base32 "1chnqa895rhnl0ygbspp5xmxw60vsvyybk2z93pvxjsm4m574hkc"))))
3302 (build-system pyproject-build-system)
3303 (arguments
3304 (list
3305 #:test-backend
3306 #~'unittest))
3307 (native-inputs (list python-setuptools))
3308 (propagated-inputs (list python-pyserial))
3309 (home-page "https://github.com/home-assistant-libs/pyserial-asyncio-fast")
3310 (synopsis "Fast asyncio extension package for pyserial")
3311 (description
3312 "Async I/O extension package for the Python Serial Port Extension.
3313This version implements eager writes like cpython asyncio selector_events does.
3314This can significantly reduce overhead since the asyncio writer is no longer
3315added and removed frequently.
3316
3317This package is a fork of unmaintained package @code{pyserial-asyncio}
3318@url{https://github.com/pyserial/pyserial-asyncio}.")
3319 (license license:bsd-3)))
3320
3321(define-public python-pyte
3322 (package
3323 (name "python-pyte")
3324 (version "0.8.2")
3325 (source
3326 (origin
3327 (method git-fetch)
3328 (uri (git-reference
3329 (url "https://github.com/selectel/pyte")
3330 (commit version)))
3331 (file-name (git-file-name name version))
3332 (sha256
3333 (base32 "1cdhnl6rp4kcbs3s766519k80pf5ma18mgv6cyidf4nbgysjavmv"))))
3334 (build-system pyproject-build-system)
3335 (propagated-inputs (list python-wcwidth))
3336 (native-inputs (list python-pytest python-setuptools python-wheel))
3337 (home-page "https://pyte.readthedocs.io/")
3338 (synopsis "Simple VTXXX-compatible terminal emulator")
3339 (description "@code{pyte} is an in-memory VTxxx-compatible terminal
3340emulator. @var{VTxxx} stands for a series of video terminals, developed by
3341DEC between 1970 and 1995. The first and probably most famous one was the
3342VT100 terminal, which is now a de-facto standard for all virtual terminal
3343emulators.
3344
3345pyte is a fork of vt102, which was an incomplete pure Python implementation
3346of VT100 terminal.")
3347 (license license:lgpl3+)))
3348
3349(define-public python-pytokens
3350 (package
3351 (name "python-pytokens")
3352 (version "0.4.1")
3353 (source
3354 (origin
3355 (method git-fetch)
3356 (uri (git-reference
3357 (url "https://github.com/tusharsadhwani/pytokens")
3358 (commit version)))
3359 (file-name (git-file-name name version))
3360 (sha256
3361 (base32 "0j5ip72ldyazgznbwxzmrp4j4hwlk2x9yvzdk5yaivnkknhqxq0c"))))
3362 (build-system pyproject-build-system)
3363 (arguments
3364 (list
3365 #:phases
3366 #~(modify-phases %standard-phases
3367 (add-before 'build 'build-with-cython
3368 (lambda _
3369 (setenv "PYTOKENS_USE_MYPYC" "0"))))))
3370 (native-inputs
3371 (list python-cython
3372 python-pytest
3373 python-setuptools))
3374 (home-page "https://github.com/tusharsadhwani/pytokens")
3375 (synopsis "Spec compliant Python 3.14+ tokenizer")
3376 (description
3377 "This package provides a Fast, spec compliant Python 3.14+ tokenizer that
3378runs on older Pythons.")
3379 (license license:expat)))
3380
3381(define-public python-pyuca
3382 (package
3383 (name "python-pyuca")
3384 (version "1.2")
3385 (source
3386 (origin
3387 (method git-fetch)
3388 (uri (git-reference
3389 (url "https://github.com/jtauber/pyuca")
3390 (commit (string-append "v" version))))
3391 (file-name (git-file-name name version))
3392 (sha256
3393 (base32 "1zi301f1kpzcnkgd90ax8f1xhylcxy2c9fy3ym4pwc9mzbxs9198"))))
3394 (build-system pyproject-build-system)
3395 (arguments
3396 (list #:tests? #f)) ; there are no tests
3397 (native-inputs (list python-setuptools))
3398 (home-page "https://github.com/jtauber/pyuca")
3399 (synopsis "Python implementation of the Unicode Collation Algorithm")
3400 (description "This package provides a Python implementation of the
3401@url{http://unicode.org/reports/tr10/, Unicode Collation Algorithm}.")
3402 (license license:expat)))
3403
3404(define-public python-pyxdameraulevenshtein
3405 (package
3406 (name "python-pyxdameraulevenshtein")
3407 (version "1.8.0")
3408 (source
3409 (origin
3410 (method git-fetch)
3411 (uri (git-reference
3412 (url "https://github.com/lanl/pyxDamerauLevenshtein")
3413 (commit (string-append "v" version))))
3414 (file-name (git-file-name name version))
3415 (sha256
3416 (base32 "1qmmpgf8qxv5pfnqp328qqsj34jvyc63w8659xx18d8405agcjdr"))))
3417 (build-system pyproject-build-system)
3418 (native-inputs (list python-cython python-pytest python-setuptools))
3419 (home-page "https://github.com/lanl/pyxDamerauLevenshtein")
3420 (synopsis "Damerau-Levenshtein edit distance algorithm")
3421 (description
3422 "@code{pyxDamerauLevenshtein} implements the Damerau-Levenshtein (DL)
3423edit distance algorithm for Python in Cython for high performance.")
3424 (license license:bsd-3)))
3425
3426(define-public python-qrcodegen
3427 (package
3428 (name "python-qrcodegen")
3429 (version "1.8.0")
3430 (source
3431 (origin
3432 (method git-fetch)
3433 (uri (git-reference
3434 (url "https://github.com/nayuki/QR-Code-generator")
3435 (commit (string-append "v" version))))
3436 (sha256
3437 (base32 "0dk9ci5gchxa8gh0hyhlj3d5jwxqlnfm85xyp791ldaia14bkj39"))))
3438 (build-system pyproject-build-system)
3439 (arguments
3440 (list
3441 #:tests? #f ;no tests
3442 #:phases
3443 #~(modify-phases %standard-phases
3444 (add-before 'build 'chdir
3445 (lambda _
3446 (chdir "python"))))))
3447 (native-inputs (list python-setuptools))
3448 (home-page "https://www.nayuki.io/page/qr-code-generator-library")
3449 (synopsis "QR Code generator")
3450 (description
3451 "@code{python-qrcodegen} is a QR code generator library in Python.")
3452 (license license:expat)))
3453
3454(define-public python-rectpack
3455 (package
3456 (name "python-rectpack")
3457 (version "0.2.2")
3458 (source
3459 (origin
3460 (method git-fetch)
3461 (uri (git-reference
3462 (url "https://github.com/secnot/rectpack/")
3463 (commit version)))
3464 (file-name (git-file-name name version))
3465 (sha256
3466 (base32 "0y6nzpqny2knlq5g53wdnrznv10xv21rbzmlbq5xgf92gi7i6kci"))))
3467 (build-system pyproject-build-system)
3468 (arguments (list #:test-backend #~'unittest))
3469 (native-inputs (list python-setuptools))
3470 (home-page "https://github.com/secnot/rectpack/")
3471 (synopsis "2D Rectangle packing Python library")
3472 (description "Rectpack is a collection of heuristic algorithms for solving
3473the 2D knapsack or bin packing problem, consisting on packing a set of
3474rectangles into the smallest number of bins.")
3475 (license license:asl2.0)))
3476
3477(define-public python-refleak
3478 (package
3479 (name "python-refleak")
3480 (version "0.2.2")
3481 (source
3482 (origin
3483 (method git-fetch)
3484 (uri (git-reference
3485 (url "https://github.com/mne-tools/refleak")
3486 (commit (string-append "v" version))))
3487 (file-name (git-file-name name version))
3488 (sha256
3489 (base32 "1851pxcbvdab1wq64drkw873mis9yqrvamsv0cxj7p6p4l7nfj4h"))))
3490 (build-system pyproject-build-system)
3491 (native-inputs (list python-pytest python-setuptools python-setuptools-scm))
3492 (home-page "https://github.com/mne-tools/refleak")
3493 (synopsis "Track down reference leaks in Python")
3494 (description
3495 "This package provides a library to find out what is still holding a
3496reference to an object that should be dead. It is used to track down reference
3497leaks in @code{MNE-Python}, @code{PyVista} and @code{pyvistaqt}.")
3498 (license license:bsd-3)))
3499
3500(define-public python-represent
3501 (package
3502 (name "python-represent")
3503 (version "2.1")
3504 (source
3505 (origin
3506 (method url-fetch)
3507 (uri (pypi-uri "Represent" version))
3508 (sha256
3509 (base32 "1b5wbnkjirscfqwcb6ik8klky0ajm4qs2yvabqxnpfp72if02b8b"))))
3510 (build-system pyproject-build-system)
3511 (native-inputs
3512 ;; XXX This might be too much for testing, maybe switch them off as it's
3513 ;; a simple middleware library.
3514 (list python-ipython
3515 python-pytest
3516 python-rich
3517 python-setuptools))
3518 (home-page "https://github.com/RazerM/represent")
3519 (synopsis "Create @code{__repr__} automatically or declaratively for Python")
3520 (description
3521 "This package implements a functionality to generate Python
3522@code{__repr__} methods automatically or declaratively.")
3523 (license license:expat)))
3524
3525(define-public python-rich-argparse
3526 (package
3527 (name "python-rich-argparse")
3528 (version "1.8.0")
3529 (source
3530 (origin
3531 (method git-fetch)
3532 (uri (git-reference
3533 (url "https://github.com/hamdanal/rich-argparse")
3534 (commit (string-append "v" version))))
3535 (file-name (git-file-name name version))
3536 (sha256
3537 (base32
3538 "0kz77mv9grlqpjzqvmslqyl86xk40ync9g5ihp6kziw2gwk71vyd"))))
3539 (build-system pyproject-build-system)
3540 (native-inputs
3541 (list python-pytest
3542 python-hatchling))
3543 (propagated-inputs
3544 (list python-rich))
3545 (home-page "https://github.com/hamdanal/rich-argparse")
3546 (synopsis "Format argparse and optparse help using rich")
3547 (description
3548 "This package improves the look and readability of argparse's help while
3549requiring minimal changes to the code.")
3550 (license license:expat)))
3551
3552(define-public python-rich-rst
3553 (package
3554 (name "python-rich-rst")
3555 (version "2.0.1")
3556 (source
3557 (origin
3558 (method git-fetch)
3559 (uri (git-reference
3560 (url "https://github.com/wasi-master/rich-rst")
3561 (commit (string-append "v" version))))
3562 (file-name (git-file-name name version))
3563 (sha256
3564 (base32 "1in5rjzgxyjaqj1vqq8mrcwxxm00whqd2bw8lqs717alxw3f4ygf"))))
3565 (build-system pyproject-build-system)
3566 (native-inputs
3567 (list python-pytest
3568 python-setuptools))
3569 (propagated-inputs
3570 (list python-pygments
3571 python-rich))
3572 (home-page "https://wasi-master.github.io/rich-rst")
3573 (synopsis "Beautiful reStructuredText renderer for Rich")
3574 (description
3575 "This package turns @url{https://docutils.sourceforge.io/rst.html, reST}
3576documents into @url{https://rich.readthedocs.io/en/latest/, Rich}
3577renderables.")
3578 (license license:expat)))
3579
3580(define-public python-roman-numerals
3581 (package
3582 (name "python-roman-numerals")
3583 (version "3.1.0")
3584 (source
3585 (origin
3586 (method url-fetch)
3587 (uri (pypi-uri "roman_numerals" version))
3588 (sha256
3589 (base32 "0l956dwchx6hjncax2kh7xdk8ymfz90jhrxkpmhx6jwd3vy3ckiq"))))
3590 (build-system pyproject-build-system)
3591 (native-inputs (list python-flit-core python-pytest))
3592 (home-page "https://pypi.org/project/roman-numbers/")
3593 (synopsis "Python library to manipulate Roman numerals")
3594 (description "This package provides a Python library to manipulate
3595well-formed Roman numerals.")
3596 (license license:expat)))
3597
3598(define-public python-runs
3599 (package
3600 (name "python-runs")
3601 (version "1.3.0")
3602 (source
3603 (origin
3604 (method git-fetch)
3605 (uri (git-reference
3606 (url "https://github.com/rec/runs")
3607 (commit (string-append "v" version))))
3608 (file-name (git-file-name name version))
3609 (sha256
3610 (base32 "0grzfnamxgnpvf3m0c139sknyj31vsvcplvcng6maq60xvnqrbw1"))))
3611 (build-system pyproject-build-system)
3612 (arguments
3613 (list
3614 #:test-flags
3615 ;; Expecting ".git".
3616 #~(list "--deselect=test/test_runs.py::TestRunsActual::test_many")))
3617 (native-inputs (list python-pytest python-tdir python-uv-build))
3618 (propagated-inputs (list python-xmod))
3619 (home-page "https://github.com/rec/runs")
3620 (synopsis "Run a block of text as a subprocess")
3621 (description
3622 "@code{runs} has improved versions of @code{call()}, @code{check_call()},
3623@code{check_output()}, and @code{run()} from Python's subprocess module that
3624handle multiple commands and blocks of text, fix some defects, and add some
3625features.")
3626 (license license:expat)))
3627
3628(define-public python-rush
3629 (package
3630 (name "python-rush")
3631 (version "2021.04.0")
3632 (source
3633 (origin
3634 (method git-fetch)
3635 (uri (git-reference
3636 (url "https://github.com/sigmavirus24/rush")
3637 (commit version)))
3638 (file-name (git-file-name name version))
3639 (sha256
3640 (base32 "0brqjw34n14rij58giwyqlagjnp11npvsrlwrqj5pbn7rmgd2mhx"))))
3641 (build-system pyproject-build-system)
3642 (arguments
3643 (list
3644 #:test-flags
3645 ;; E ValueError: Redis URL must specify one of the following schemes
3646 ;; (redis://, rediss://, unix://)
3647 #~(list "-k" (string-append "not test_valid_url[redis://]"
3648 " and not test_valid_url[rediss://]"))))
3649 (native-inputs
3650 (list python-mock
3651 python-redis
3652 python-rfc3986
3653 python-pytest
3654 python-setuptools))
3655 (propagated-inputs
3656 (list python-attrs))
3657 (home-page "https://github.com/sigmavirus24/rush")
3658 (synopsis "Throttling and rate-limiting algorithms for Python")
3659 (description
3660 "This package provides is a small collection of algorithms that can be
3661reused when throttling user interactions with a resource (e.g., an API).")
3662 (license license:expat)))
3663
3664(define-public python-rustworkx
3665 (package
3666 (name "python-rustworkx")
3667 (version "0.17.1")
3668 (source
3669 (origin
3670 (method git-fetch)
3671 (uri (git-reference
3672 (url "https://github.com/Qiskit/rustworkx")
3673 (commit version)))
3674 (file-name (git-file-name name version))
3675 (sha256
3676 (base32 "0sr0wrfb9wzxcljhb7swwgk2hdxqjfmcfj785jq624mx14kqc4k8"))))
3677 (build-system pyproject-build-system)
3678 (arguments
3679 (list
3680 #:test-flags #~(list "--test-path" "tests")
3681 #:imported-modules (append %cargo-build-system-modules
3682 %pyproject-build-system-modules)
3683 #:modules '(((guix build cargo-build-system)
3684 #:prefix cargo:)
3685 (guix build pyproject-build-system)
3686 (guix build utils))
3687 #:phases
3688 #~(modify-phases %standard-phases
3689 (add-after 'unpack 'prepare-cargo-build-system
3690 (lambda args
3691 (for-each
3692 (lambda (phase)
3693 (format #t "Running cargo phase: ~a~%" phase)
3694 (apply (assoc-ref cargo:%standard-phases phase)
3695 #:cargo-target #$(cargo-triplet) args))
3696 '(unpack-rust-crates
3697 configure
3698 check-for-pregenerated-files
3699 patch-cargo-checksums))))
3700 (add-before 'check 'pre-check
3701 (lambda _
3702 ;; Delete the source directory to avoid interference.
3703 (delete-file-recursively "rustworkx")
3704 ;; Matplotlib needs to be able to write its configuration file
3705 ;; somewhere.
3706 (setenv "MPLCONFIGDIR" "/tmp")
3707 ;; For fontconfig.
3708 (setenv "XDG_CACHE_HOME" "/tmp"))))))
3709 (propagated-inputs (list python-numpy))
3710 (native-inputs
3711 (append (list graphviz
3712 python-matplotlib
3713 python-networkx
3714 python-pillow
3715 python-setuptools
3716 python-setuptools-rust
3717 python-stestr
3718 rust
3719 `(,rust "cargo"))
3720 (or (and=> (%current-target-system)
3721 (compose list make-rust-sysroot))
3722 '())))
3723 (inputs (cargo-inputs 'python-rustworkx))
3724 (home-page "https://www.rustworkx.org")
3725 (synopsis "High performance graph library for Python")
3726 (description
3727 "@code{rustworkx} is a Python package for working with graphs and complex
3728networks. It enables the creation, interaction with, and study of graphs and
3729networks.")
3730 (license license:asl2.0)))
3731
3732(define-public python-safety-schemas
3733 (package
3734 (name "python-safety-schemas")
3735 (version "0.0.19")
3736 (source
3737 (origin
3738 (method url-fetch)
3739 (uri (pypi-uri "safety_schemas" version))
3740 (sha256
3741 (base32 "13dany62q262l08441aps815nz42k9mcd3lgjs5z592j91nz10a7"))))
3742 (build-system pyproject-build-system)
3743 (arguments
3744 (list
3745 #:test-flags
3746 #~(list "-k" (string-join
3747 ;; These tests are failing for unknown reasons.
3748 ;; (AssertionError).
3749 (list "not test_model[ConfigModel-ConfigModel]"
3750 "test_model[MetadataModel-MetadataModel]"
3751 "test_model[PolicyFileModel-PolicyFileModel]"
3752 "test_model[ProjectModel-ProjectModel]"
3753 "test_model[ReportModel-ReportModel]")
3754 " and not "))))
3755 (propagated-inputs (list python-dparse
3756 python-packaging
3757 python-pydantic
3758 python-ruamel.yaml
3759 python-typing-extensions))
3760 (native-inputs (list python-deepdiff python-hatchling python-pytest))
3761 ;; Source code is not yet published outside of PyPI:
3762 ;; https://github.com/pyupio/safety/issues/494
3763 (home-page "https://pypi.org/project/safety-schemas/")
3764 (synopsis "Schemas for Safety tools")
3765 (description "This package contains models and schemas used by Safety.")
3766 (license license:expat)))
3767
3768(define-public python-scverse-misc
3769 (package
3770 (name "python-scverse-misc")
3771 (version "0.1.1")
3772 (source
3773 (origin
3774 (method git-fetch)
3775 (uri (git-reference
3776 (url "https://github.com/scverse/scverse-misc")
3777 (commit (string-append "v" version))))
3778 (file-name (git-file-name name version))
3779 (sha256
3780 (base32 "14gqrafilfzlc9rydz90rifs48icqvdqa80qsfsmhrwv25mwwjry"))))
3781 (build-system pyproject-build-system)
3782 (arguments
3783 (list
3784 #:test-flags
3785 ;; Optinal tests, Pydantic fails to validate inputs.
3786 #~(list "--deselect=tests/settings/test_runtime.py::test_dotenv[2]"
3787 "--deselect=tests/settings/test_runtime.py::test_dotenv[4]")))
3788 (native-inputs
3789 (list python-hatch-vcs
3790 python-hatchling
3791 python-pytest
3792 python-pyyaml))
3793 (propagated-inputs
3794 (list python-session-info2
3795 python-typing-extensions
3796 ;; [optional]
3797 python-dotenv
3798 python-pydantic-settings))
3799 (home-page "https://github.com/scverse/scverse-misc")
3800 (synopsis "Miscellaneous utility code used by scverse packages")
3801 (description
3802 "This package provides miscellaneous utility code used by scverse
3803packages.")
3804 (license license:bsd-3)))
3805
3806(define-public python-senf
3807 (package
3808 (name "python-senf")
3809 (version "1.5.1")
3810 (source
3811 (origin
3812 (method git-fetch)
3813 (uri (git-reference
3814 (url "https://github.com/quodlibet/senf")
3815 (commit (string-append "v" version))))
3816 (file-name (git-file-name name version))
3817 (sha256
3818 (base32 "023zqvrxdpss9r6bmp5arhy7bhr8j0qzgzwy04gydcbxhg2kh6nq"))))
3819 (build-system pyproject-build-system)
3820 (arguments
3821 (list
3822 #:test-flags
3823 ;; These tests fail due to various home fetching methods during build.
3824 '(list "--deselect" "tests/test_api.py::test_getuserdir"
3825 "--deselect" "tests/test_api.py::test_expanduser_user")))
3826 (native-inputs (list python-pytest python-setuptools))
3827 (home-page "https://github.com/quodlibet/senf")
3828 (synopsis "Text, bytes and paths conversion functions for Python")
3829 (description "Senf introduces a new platform native string type called
3830fsnative. It adds functions to convert text, bytes and paths to and from that
3831new type and helper functions to integrate it nicely with the Python
3832stdlib.")
3833 (license license:expat)))
3834
3835(define-public python-session-info2
3836 (package
3837 (name "python-session-info2")
3838 (version "0.2")
3839 (source
3840 (origin
3841 (method url-fetch)
3842 (uri (pypi-uri "session_info2" version))
3843 (sha256
3844 (base32 "0xs1mcdz0hf626m3421ryv4f7b5rixz2hm8x88czx2i9196x69g9"))))
3845 (build-system pyproject-build-system)
3846 (arguments
3847 (list
3848 #:test-flags
3849 #~(list "--deselect=tests/test_synthetic.py::test_gpu"
3850 ;; Tests require Jupyter Client.
3851 "--ignore=tests/test_subprocess.py")))
3852 (native-inputs
3853 (list python-hatch-docstring-description
3854 python-hatch-vcs
3855 python-hatchling
3856 python-pytest
3857 python-pytest-asyncio))
3858 (home-page "https://session-info2.readthedocs.io/")
3859 (synopsis "Print versions of imported packages")
3860 (description
3861 "This package implements a functionality to print versions of imported
3862Python packages.")
3863 (license license:mpl2.0)))
3864
3865(define-public python-show-in-file-manager
3866 (package
3867 (name "python-show-in-file-manager")
3868 (version "1.1.6")
3869 (source
3870 (origin
3871 (method git-fetch)
3872 (uri (git-reference
3873 (url "https://github.com/damonlynch/showinfilemanager")
3874 (commit (string-append "v" version))))
3875 (file-name (git-file-name name version))
3876 (sha256
3877 (base32 "08vlrkhjjk1fklbgfrpnc6gz1gpzny90r53rr68ni3j8ld7p7vra"))))
3878 (build-system pyproject-build-system)
3879 (arguments (list #:tests? #f)) ;no tests upstream
3880 (native-inputs
3881 (list python-hatch-argparse-manpage python-hatchling python-pytest))
3882 (propagated-inputs
3883 (list python-packaging python-pyxdg))
3884 (home-page "https://github.com/damonlynch/showinfilemanager")
3885 (synopsis "Open the system file manager and select files in it")
3886 (description
3887 "Show in File Manager is a Python package to open the system file manager
3888and optionally select files in it. The point is not to open the files, but to
3889select them in the file manager, thereby highlighting the files and allowing
3890the user to quickly do something with them.")
3891 (license license:expat)))
3892
3893(define-public python-shxparser
3894 (package
3895 (name "python-shxparser")
3896 (version "0.0.2")
3897 (source
3898 (origin
3899 (method url-fetch)
3900 (uri (pypi-uri "shxparser" version))
3901 (sha256
3902 (base32 "0w7j5ywskandp91v74966pw1pvq9d5zrx5gkjcn84xi8wsyf8hc5"))))
3903 (build-system pyproject-build-system)
3904 (arguments (list #:test-backend #~'unittest))
3905 (native-inputs
3906 (list python-svgelements python-setuptools))
3907 (home-page "https://github.com/tatarize/shxparser")
3908 (synopsis "SHX line font parser")
3909 (description
3910 "This is a pure python parser for SHX Hershey font files that are an
3911AutoCad format which can encode single line fonts. This format is used for
3912many CNC and laser operations.")
3913 (license license:expat)))
3914
3915(define-public python-simplify-polyline
3916 (package
3917 (name "python-simplify-polyline")
3918 (version "0.1.0")
3919 (source
3920 (origin
3921 (method url-fetch)
3922 (uri (pypi-uri "simplify_polyline" version))
3923 (sha256
3924 (base32 "08f6bvwbg04z19pirq4ynsiq89yhbzqh9g6zbnp9fvdnmics7hgw"))))
3925 (build-system pyproject-build-system)
3926 (native-inputs
3927 (list python-pytest
3928 python-setuptools
3929 python-setuptools-scm
3930 python-wheel))
3931 (propagated-inputs
3932 (list python-numpy))
3933 (home-page "https://github.com/ShayHill/simplify_polyline")
3934 (synopsis "Simplify an open or closed polyline")
3935 (description
3936 "This package implements functionality to work with plyline.
3937Features:
3938@itemize
3939@item Visvalingham-Whyatt - removes the smallest triangles formed by
3940three consecutive points in a polyline or polygon
3941@item Douglas-Peucker - gives a better representation of the convex hull
3942@end itemize")
3943 (license license:expat)))
3944
3945(define-public python-siphash24
3946 (package
3947 (name "python-siphash24")
3948 (version "1.8")
3949 (source
3950 (origin
3951 (method git-fetch)
3952 (uri (git-reference
3953 (url "https://github.com/dnicolodi/python-siphash24/")
3954 (commit (string-append "v" version))))
3955 (file-name (git-file-name name version))
3956 (sha256
3957 (base32 "0i75mrm2w10njxqb3g1kp9v8r5d22a0v8vc68v0k8c7l3ncf0lp7"))))
3958 (build-system pyproject-build-system)
3959 (arguments
3960 (list
3961 #:test-backend #~'custom
3962 #:test-flags #~(list "test.py")
3963 #:phases
3964 #~(modify-phases %standard-phases
3965 (add-after 'unpack 'patch-pyproject
3966 (lambda _
3967 (substitute* "pyproject.toml"
3968 ;; meson-python: error: Field `project.license` has an invalid
3969 ;; type, expecting a dictionary of strings (got `Apache-2.0 OR
3970 ;; LGPL-2.1-or-later`)
3971 (("^license = .*")
3972 "license = {text = \"Apache-2.0 OR LGPL-2.1-or-later\"}\n")))))))
3973 (native-inputs
3974 (list pkg-config
3975 python-meson
3976 python-pytest))
3977 (inputs
3978 (list c-siphash))
3979 (home-page "https://github.com/dnicolodi/python-siphash24/")
3980 (synopsis "Streaming-capable SipHash-1-3 and SipHash-2-4 Implementation")
3981 (description
3982 "This package provides a C-based implementation of
3983@url{https://cr.yp.to/siphash/siphash-20120918.pdf, SipHash} with an interface
3984compatible with the hash functions provided by the hashlib standard library
3985module. SipHash-1-3 and SipHash-2-4 variants are currently implemented.")
3986 ;; They are in LICENSES directory:
3987 (license (list license:asl2.0
3988 license:lgpl2.1+))))
3989
3990(define-public python-snakesay
3991 (package
3992 (name "python-snakesay")
3993 (version "0.10.4")
3994 (source
3995 (origin
3996 (method git-fetch)
3997 (uri (git-reference
3998 (url "https://github.com/pythonanywhere/snakesay")
3999 (commit (string-append "v" version))))
4000 (file-name (git-file-name name version))
4001 (sha256
4002 (base32 "06p776nf2v5r9643i6f7hv8z984bjiz0k6z9whzla6b2y637mk93"))))
4003 (build-system pyproject-build-system)
4004 (native-inputs (list python-pytest python-uv-build))
4005 (home-page "https://github.com/pythonanywhere/snakesay")
4006 (synopsis "Like @command{cowsay} but with Python flavor")
4007 (description
4008 "This package provides a simple ASCII art pictures generator of a
4009Snake with a message.")
4010 (license license:expat)))
4011
4012(define-public python-jaconv
4013 (package
4014 (name "python-jaconv")
4015 ;; Last release is not tagged.
4016 (properties '((commit . "d4273468279536adb5375ffbfcd34578c6a95b70")
4017 (revision . "0")))
4018 (version (git-version "0.4.0"
4019 (assoc-ref properties 'revision)
4020 (assoc-ref properties 'commit)))
4021 (source
4022 (origin
4023 (method git-fetch)
4024 (uri (git-reference
4025 (url "https://github.com/ikegami-yukino/jaconv")
4026 (commit (assoc-ref properties 'commit))))
4027 (file-name (git-file-name name version))
4028 (sha256
4029 (base32 "00lvkr6jsm2h70658hly5w81ybkfp3x0rmgzpcn0s52d4n4m21fb"))))
4030 (build-system pyproject-build-system)
4031 (native-inputs (list python-setuptools python-pynose))
4032 (home-page "https://github.com/ikegami-yukino/jaconv")
4033 (synopsis
4034 "Pure-Python Japanese character interconverter for Hiragana, Katakana,
4035Hankaku, Zenkaku")
4036 (description
4037 "jaconv (Japanese Converter) is interconverter for Hiragana, Katakana,
4038Hankaku (half-width character) and Zenkaku (full-width character)")
4039 (license license:expat)))
4040
4041(define-public python-janus
4042 (package
4043 (name "python-janus")
4044 (version "1.0.0")
4045 (source
4046 (origin
4047 (method url-fetch)
4048 (uri (pypi-uri "janus" version))
4049 (sha256
4050 (base32 "04hnrdcf03g1s0x3sr72sh9gnszz6kyfsl9dg8a4n0zvvhn6z5yz"))))
4051 (build-system pyproject-build-system)
4052 (native-inputs
4053 (list python-pytest python-pytest-asyncio
4054 python-setuptools python-wheel))
4055 (propagated-inputs (list python-typing-extensions))
4056 (home-page "https://github.com/aio-libs/janus/")
4057 (synopsis
4058 "Sync-async queue to interoperate between asyncio tasks and classic threads")
4059 (description
4060 "Mixed sync-async queue, supposed to be used for communicating between
4061classic synchronous (threaded) code and asynchronous (in terms of
4062@url{https://docs.python.org/3/library/asyncio.html,asyncio}) one. Like
4063@url{https://en.wikipedia.org/wiki/Janus,Janus god} the queue object from the
4064library has two faces: synchronous and asynchronous interface. Synchronous is
4065fully compatible with
4066@url{https://docs.python.org/3/library/queue.html,standard queue},
4067asynchronous one follows
4068@url{https://docs.python.org/3/library/asyncio-queue.html,asyncio queue
4069design}.")
4070 (license license:asl2.0)))
4071
4072(define-public python-concurrent-log-handler
4073 (package
4074 (name "python-concurrent-log-handler")
4075 (version "0.9.25")
4076 ;; No tests in the PyPI tarball.
4077 (source
4078 (origin
4079 (method git-fetch)
4080 (uri (git-reference
4081 (url "https://github.com/Preston-Landers/concurrent-log-handler")
4082 (commit version)))
4083 (file-name (git-file-name name version))
4084 (sha256
4085 (base32 "0jp4zkm0idfdsrq3jzb52iqfkh6xzm7sacz1sa34ffnkyqdk3xzh"))))
4086 (build-system pyproject-build-system)
4087 (arguments
4088 (list
4089 ;; XXX: Tests are broken, no new version fixing them yet.
4090 #:tests? #f))
4091 (native-inputs
4092 (list python-hatchling))
4093 (propagated-inputs
4094 (list python-portalocker))
4095 (home-page "https://github.com/Preston-Landers/concurrent-log-handler")
4096 (synopsis
4097 "Additional log handler for Python's standard @code{logging} package")
4098 (description
4099 "This package provides an additional log handler for Python's standard
4100@code{logging} package (PEP 282). This handler will write log events to a log
4101file which is rotated when the log file reaches a certain size. Multiple
4102processes can safely write to the same log file concurrently and rotated logs
4103can be gzipped if desired. An optional threaded queue logging handler is
4104provided to perform logging in the background.")
4105 (license license:asl2.0)))
4106
4107(define-public python-lazy
4108 (package
4109 (name "python-lazy")
4110 (version "1.6")
4111 (source
4112 (origin
4113 (method url-fetch)
4114 (uri (pypi-uri "lazy" version))
4115 (sha256
4116 (base32 "1sfk1v54dyjxvilcxf9vlnypc5z0mg0i2inb117k5s09qx7349vi"))))
4117 (build-system pyproject-build-system)
4118 (native-inputs (list python-pytest python-setuptools python-wheel))
4119 (home-page "https://github.com/stefanholek/lazy")
4120 (synopsis "Lazy attributes for Python objects")
4121 (description "This package provides a decorator to create lazy
4122attributes.")
4123 (license license:bsd-2)))
4124
4125(define-public python-logfury
4126 (package
4127 (name "python-logfury")
4128 (version "1.0.1")
4129 (source
4130 (origin
4131 (method url-fetch)
4132 (uri (pypi-uri "logfury" version))
4133 (sha256
4134 (base32 "09kanw1iv61hgmd858xkc9kck8ia91qdyb954i4m7bdrxan5s2hk"))))
4135 (build-system pyproject-build-system)
4136 (native-inputs
4137 (list python-pytest
4138 python-setuptools
4139 python-setuptools-scm
4140 python-testfixtures
4141 python-wheel))
4142 (home-page "https://github.com/reef-technologies/logfury/")
4143 (synopsis "Logging of method calls for python libraries")
4144 (description
4145 "Logfury is a tool for python library maintainers. It allows for
4146responsible, low-boilerplate logging of method calls.")
4147 (license license:bsd-3)))
4148
4149(define-public python-logzero
4150 (package
4151 (name "python-logzero")
4152 (version "1.7.0")
4153 (source
4154 (origin
4155 (method git-fetch)
4156 (uri (git-reference
4157 (url "https://github.com/metachris/logzero")
4158 (commit (string-append "v" version))))
4159 (file-name (git-file-name name version))
4160 (sha256
4161 (base32 "1i9c0kynyjws5c24ga0sbidyfww3w5fy98gs67xsyfz4nr7w84b3"))))
4162 (build-system pyproject-build-system)
4163 (native-inputs (list python-pytest python-setuptools))
4164 (home-page "https://github.com/metachris/logzero")
4165 (synopsis "Robust and effective logging for Python")
4166 (description
4167 "@code{logzero} provides a fully configured Python logger object for
4168easy logging and rotating to a console or a file.")
4169 (license license:expat)))
4170
4171(define-public python-logbook
4172 (package
4173 (name "python-logbook")
4174 (version "1.8.2")
4175 (source
4176 (origin
4177 (method url-fetch)
4178 (uri (pypi-uri "logbook" version))
4179 (sha256
4180 (base32 "0afk1nmvj9fp3igzmxa4a048fm21sa4aw1z2ix8jzvs62ry7j6bd"))))
4181 (build-system pyproject-build-system)
4182 (native-inputs
4183 (list python-brotli
4184 python-cython
4185 python-pytest
4186 python-setuptools
4187 python-wheel))
4188 (home-page "https://github.com/getlogbook/logbook")
4189 (synopsis "Logbook is a logging replacement for Python")
4190 (description
4191 "Logbook is a logging system for Python that replaces the standard
4192library’s logging module. It was designed with both complex and simple
4193applications in mind and the idea to make logging fun.")
4194 (license license:bsd-3)))
4195
4196(define-public python-databind-core
4197 (package
4198 (name "python-databind-core")
4199 (version "4.4.2")
4200 (source
4201 (origin
4202 (method url-fetch)
4203 (uri (pypi-uri "databind.core" version))
4204 (sha256
4205 (base32 "130hr19kbzizx9n2q7cwfzfk20ii3cqmqjrzb16psnafll303k2d"))
4206 (snippet
4207 #~(begin (use-modules (guix build utils))
4208 ;; The problem with python-typing-extensions >= 4.7 is only
4209 ;; with python-3.7.
4210 (substitute* "pyproject.toml"
4211 ((",<4.7.*") "\"\n"))))))
4212 (build-system pyproject-build-system)
4213 (arguments
4214 (list
4215 #:phases
4216 #~(modify-phases %standard-phases
4217 (add-after 'install 'fix-name
4218 (lambda* (#:key inputs outputs #:allow-other-keys)
4219 (let* ((sitedir (site-packages inputs outputs))
4220 (dist-info
4221 (string-append sitedir "/databind_core-" #$version ".dist-info")))
4222 (substitute* (string-append dist-info "/METADATA")
4223 (("Name: databind-core")
4224 "Name: databind.core"))
4225 (substitute* (string-append dist-info "/RECORD")
4226 (("databind_core") "databind.core"))
4227 (rename-file dist-info
4228 (string-append sitedir
4229 "/databind.core-"
4230 #$version ".dist-info"))))))))
4231 (propagated-inputs
4232 (list python-deprecated
4233 python-nr-date
4234 python-nr-stream
4235 python-typeapi
4236 python-typing-extensions))
4237 (native-inputs
4238 (list python-poetry-core python-pytest))
4239 (home-page "https://niklasrosenstein.github.io/python-databind/core/")
4240 (synopsis
4241 "Library for de-/serializing Python dataclasses")
4242 (description
4243 "Databind is a library inspired by jackson-databind to de-/serialize
4244Python dataclasses.")
4245 (license license:expat)))
4246
4247(define-public python-databind-json
4248 (package
4249 (name "python-databind-json")
4250 (version "4.4.2")
4251 (source
4252 (origin
4253 (method url-fetch)
4254 (uri (pypi-uri "databind.json" version))
4255 (sha256
4256 (base32 "1lm864d7arfq0pw64hyc83bwn1z94wjg7a22q1xf0qkjynqs70gg"))
4257 (snippet
4258 #~(begin (use-modules (guix build utils))
4259 ;; The problem with python-typing-extensions >= 4.7 is only
4260 ;; with python-3.7.
4261 (substitute* "pyproject.toml"
4262 ((",<4.7.*") "\"\n"))))))
4263 (build-system pyproject-build-system)
4264 (arguments
4265 (list
4266 #:phases
4267 #~(modify-phases %standard-phases
4268 (add-after 'install 'fix-name
4269 (lambda* (#:key inputs outputs #:allow-other-keys)
4270 (let* ((sitedir (site-packages inputs outputs))
4271 (dist-info
4272 (string-append sitedir "/databind_json-" #$version ".dist-info")))
4273 (substitute* (string-append dist-info "/METADATA")
4274 (("Name: databind-json")
4275 "Name: databind.json"))
4276 (substitute* (string-append dist-info "/RECORD")
4277 (("databind_json") "databind.json"))
4278 (rename-file dist-info
4279 (string-append sitedir
4280 "/databind.json-"
4281 #$version ".dist-info"))))))))
4282 (propagated-inputs
4283 (list python-databind-core python-nr-date
4284 python-typeapi python-typing-extensions))
4285 (native-inputs (list python-poetry-core python-pytest))
4286 (home-page "https://niklasrosenstein.github.io/python-databind/json/")
4287 (synopsis
4288 "De-/serialize Python dataclasses to or from JSON payloads")
4289 (description
4290 "The @code{databind.json} package implements the de-/serialization to or
4291from JSON payloads using the @code{databind.core} framework.")
4292 (license license:expat)))
4293
4294(define-public python-docspec
4295 (package
4296 (name "python-docspec")
4297 (version "2.2.1")
4298 (source
4299 (origin
4300 (method url-fetch)
4301 (uri (pypi-uri "docspec" version))
4302 (sha256
4303 (base32 "1zqmdrc6k8pprra8p3wpzq2ml2gph1cfjmsyg07f8b8fvizffm28"))))
4304 (build-system pyproject-build-system)
4305 (arguments (list #:tests? #false)) ;there are none
4306 (propagated-inputs
4307 (list python-databind-core
4308 python-databind-json
4309 python-deprecated))
4310 (native-inputs
4311 (list python-poetry-core))
4312 (home-page "https://github.com/NiklasRosenstein/python-docspec")
4313 (synopsis "Represent API documentation of programming languages")
4314 (description
4315 "Docspec is a JSON object specification for representing API
4316documentation of programming languages.")
4317 (license license:expat)))
4318
4319(define-public python-docspec-python
4320 (package
4321 (name "python-docspec-python")
4322 (version "2.2.1")
4323 (source
4324 (origin
4325 (method url-fetch)
4326 (uri (pypi-uri "docspec_python" version))
4327 (sha256
4328 (base32 "0n8m52vxmlvkj7p5jmd4rfdks65rrp4q4vzak44y6kbg9l5qa6y4"))))
4329 (build-system pyproject-build-system)
4330 (arguments
4331 (list #:tests? #false)) ;there are none
4332 (propagated-inputs (list python-docspec python-nr-util))
4333 (native-inputs (list python-poetry-core))
4334 (home-page "https://github.com/NiklasRosenstein/docspec/")
4335 (synopsis "Produce docspec data from Python source code")
4336 (description
4337 "This package provides a parser based on @code{lib2to3} producing
4338@code{docspec} data from Python source code.")
4339 (license license:expat)))
4340
4341(define-public python-fqdn
4342 (package
4343 (name "python-fqdn")
4344 (version "1.5.1")
4345 (source
4346 (origin
4347 (method git-fetch)
4348 (uri (git-reference
4349 (url "https://github.com/ypcrts/fqdn")
4350 (commit (string-append "v" version))))
4351 (file-name (git-file-name name version))
4352 (sha256
4353 (base32 "1cfxpvlvfi9s20v93m3rgw7jn6ybc5ga5rwxhrap59zwd9crsh2g"))))
4354 (build-system pyproject-build-system)
4355 (native-inputs
4356 (list python-pytest
4357 python-setuptools))
4358 (home-page "https://github.com/ypcrts/fqdn")
4359 (synopsis "Validate domain names against RFC 1123")
4360 (description
4361 "This package validates fully-qualified domain names against RFC 1123, so
4362that they are acceptable to modern bowsers")
4363 (license license:mpl2.0)))
4364
4365(define-public python-fire
4366 (package
4367 (name "python-fire")
4368 (version "0.7.0")
4369 (source
4370 (origin
4371 (method url-fetch)
4372 (uri (pypi-uri "fire" version))
4373 (sha256
4374 (base32 "1pswm79gi51p596zmfvaskx0i15znbr610yws5dgdsing7q505cn"))))
4375 (build-system pyproject-build-system)
4376 (propagated-inputs (list python-termcolor))
4377 (native-inputs (list python-pytest python-setuptools python-wheel))
4378 (synopsis "Library for automatically generating command line interfaces")
4379 (description
4380 "Fire is a library for automatically generating command line interfaces
4381from absolutely any Python object. The following are the advantages:
4382@itemize
4383@item A simple way to create a CLI in Python.
4384@item A helpful tool for developing and debugging Python code.
4385@item Helps with exploring existing code or turning other people's code into a
4386command line interface.
4387@item Makes transitioning between Bash and Python easier.
4388@item Makes using a Python REPL easier by setting up the REPL with the modules
4389and variables you'll need already imported and created.
4390@end itemize")
4391 (home-page "https://github.com/google/python-fire")
4392 (license license:asl2.0)))
4393
4394(define-public python-fit-nbinom
4395 (package
4396 (name "python-fit-nbinom")
4397 (version "1.1")
4398 (source (origin
4399 (method url-fetch)
4400 (uri (pypi-uri "fit_nbinom" version))
4401 (sha256
4402 (base32
4403 "12v8l5i35vjbpvh5i4lw29ys6vpr3z7pysyrx33hxaq09zr015mx"))))
4404 (build-system pyproject-build-system)
4405 (arguments
4406 (list
4407 #:tests? #false ;there are none
4408 #:phases
4409 '(modify-phases %standard-phases
4410 (add-after 'unpack 'remove-invalid-syntax
4411 (lambda _
4412 (substitute* "setup.py"
4413 ((".\\*\"") "\"")))))))
4414 (propagated-inputs (list python-numpy python-scipy))
4415 (native-inputs (list python-setuptools python-wheel))
4416 (home-page "https://github.com/joachimwolff/fit_nbinom")
4417 (synopsis "Negative binomial maximum likelihood estimator")
4418 (description "This package provides an implementation in Python using
4419scipy and numpy of negative binomial maximum likelihood estimation.")
4420 (license license:gpl3+)))
4421
4422(define-public python-docrep
4423 (package
4424 (name "python-docrep")
4425 (version "0.3.2")
4426 (source (origin
4427 (method url-fetch)
4428 (uri (pypi-uri "docrep" version))
4429 (sha256
4430 (base32
4431 "0523jrzjj29kxpdllmfhrfj9kysi9mphp2m7ippjkn5b07i1g2pd"))))
4432 (build-system pyproject-build-system)
4433 (propagated-inputs (list python-six))
4434 (native-inputs (list python-pytest python-setuptools python-wheel))
4435 (home-page "https://github.com/Chilipp/docrep")
4436 (synopsis "Python package for docstring repetition")
4437 (description "Docrep is the documentation repetition module. This module
4438targets developers that develop complex and nested Python APIs and helps them
4439to create a well-documented piece of software.")
4440 (license license:asl2.0)))
4441
4442(define-public python-dotmap
4443 (package
4444 (name "python-dotmap")
4445 (version "1.3.30")
4446 (source
4447 (origin
4448 (method url-fetch)
4449 (uri (pypi-uri "dotmap" version))
4450 (sha256
4451 (base32 "0s5kb2v7jd0narz6m6jcicak3h5pw290wz21cdsv8pq77y9sf8aq"))))
4452 (build-system pyproject-build-system)
4453 (arguments (list #:test-backend #~'unittest))
4454 (native-inputs (list python-setuptools))
4455 (home-page "https://github.com/drgrib/dotmap")
4456 (synopsis "Ordered, dynamically-expandable dot-access dictionary")
4457 (description
4458 "DotMap is a dot-access dictionary subclass that has dynamic
4459hierarchy creation, can be initialized with keys, can be initialized from a
4460dictionary, can be convert to a dictionary, and is ordered by insertion.")
4461 (license license:expat)))
4462
4463(define-public python-dotty-dict
4464 (package
4465 (name "python-dotty-dict")
4466 (version "1.3.1")
4467 (source
4468 (origin
4469 (method git-fetch)
4470 (uri (git-reference
4471 (url "https://github.com/pawelzny/dotty_dict")
4472 (commit (string-append "v" version))))
4473 (sha256
4474 (base32 "0rs83pglkgb4sfnk09rskg8c53hvl7mkjw4vfgl5xc8z13vyi3li"))))
4475 (build-system pyproject-build-system)
4476 (native-inputs
4477 (list python-poetry-core
4478 python-pytest
4479 python-setuptools))
4480 (home-page "https://github.com/pawelzny/dotty_dict")
4481 (synopsis "Python library for accessing dictionaries using a dot syntax")
4482 (description "This package provides a library that wraps the traditional
4483Python dictionaries and provides a syntax to access nested dictionaries values
4484using a dot syntax, for example: @code{dictionary['deeply.nested.key']}.")
4485 (license license:expat)))
4486
4487(define-public python-affine
4488 (package
4489 (name "python-affine")
4490 (version "2.4.0")
4491 (source (origin
4492 (method url-fetch)
4493 (uri (pypi-uri "affine" version))
4494 (sha256
4495 (base32
4496 "1shyvajayyzbkp9dihb4mz835jnkp0kqqbyjfqci6v43da6q2kd2"))))
4497 (build-system pyproject-build-system)
4498 (propagated-inputs (list python-flake8
4499 python-pytest python-pytest-cov))
4500 (native-inputs (list python-flit-core))
4501 (home-page "https://github.com/rasterio/affine")
4502 (synopsis "Matrices describing affine transformation of the plane")
4503 (description "This is a package for matrices describing the affine
4504transformation of the plane.")
4505 (license license:bsd-3)))
4506
4507(define-public python-argopt
4508 (package
4509 (name "python-argopt")
4510 (version "0.9.1")
4511 (source
4512 (origin
4513 (method url-fetch)
4514 (uri (pypi-uri "argopt" version))
4515 (sha256
4516 (base32 "03kpzdz8ib3szq8dpbr63jv0za4rpwal9iwpr3xhyqpzyiwhcy19"))))
4517 (build-system pyproject-build-system)
4518 (native-inputs
4519 (list python-pytest
4520 python-pytest-timeout
4521 python-setuptools
4522 python-setuptools-scm
4523 python-wheel))
4524 (home-page "https://github.com/casperdcl/argopt")
4525 (synopsis "Generate a command-line interface from a docstring")
4526 (description
4527 "This package provides tools to define a command line interface
4528from a docstring rather than the other way around.")
4529 (license license:mpl2.0)))
4530
4531(define-public python-array-api-compat
4532 (package
4533 (name "python-array-api-compat")
4534 (version "1.12.0")
4535 (source
4536 (origin
4537 (method url-fetch)
4538 (uri (pypi-uri "array_api_compat" version))
4539 (sha256
4540 (base32 "0x7r1ni9zpg68yz76dfza07q3pgwxjx15h5p4jn57pjhyqawcnsq"))))
4541 (build-system pyproject-build-system)
4542 ;; Tests would require all supported array libraries, including pytorch
4543 (arguments (list #:tests? #false))
4544 (native-inputs
4545 (list python-setuptools))
4546 (home-page "https://data-apis.org/array-api-compat/")
4547 (synopsis "Array API compatibility wrapper for NumPy et al")
4548 (description
4549 "This package provides a wrapper around @code{NumPy} and other array
4550libraries to make them compatible with the Array API standard")
4551 (license license:expat)))
4552
4553(define-public python-array-api-strict
4554 (package
4555 (name "python-array-api-strict")
4556 (version "2.5")
4557 (source
4558 (origin
4559 (method url-fetch)
4560 (uri (pypi-uri "array_api_strict" version))
4561 (sha256
4562 (base32 "1ig116ld5k8wx82ahld4l7qcb0d4s5s4f4a0nrflrh3hzabyarvp"))))
4563 (build-system pyproject-build-system)
4564 (arguments
4565 (list
4566 ;; tests: 585 passed, 2 deselected
4567 #:test-flags
4568 ;; hypothesis.errors.InvalidArgument:
4569 ;; xp.__array_api_version__='2025.12', but it must be a valid version
4570 ;; string ('2021.12', '2022.12', '2023.12', '2024.12'). If the standard
4571 ;; version you want is not available, please ensure you're using the
4572 ;; latest version of Hypothesis, then open an issue if one doesn't
4573 ;; already exist.
4574 #~(list "--ignore=array_api_strict/tests/test_set_functions.py"
4575 ;; ModuleNotFoundError: No module named 'numpy', not sure why?
4576 "-k" (string-append "not test_disabled_extensions"
4577 " and not test_environment_variables"))))
4578 (native-inputs
4579 (list python-hypothesis
4580 python-pytest
4581 python-setuptools
4582 python-setuptools-scm))
4583 (propagated-inputs
4584 (list python-numpy))
4585 (home-page "https://data-apis.org/array-api-strict/")
4586 (synopsis "Strict implementation of the Python array API")
4587 (description
4588 "@code{array_api_strict} is a strict, minimal implementation of the
4589@url{https://data-apis.org/array-api/latest/, Python array API}.
4590
4591The purpose of array-api-strict is to provide an implementation of the array
4592API for consuming libraries to test against so they can be completely sure
4593their usage of the array API is portable.")
4594 (license license:bsd-3)))
4595
4596(define-public python-cachedir-tag
4597 (package
4598 (name "python-cachedir-tag")
4599 (version "0.0.4")
4600 (source
4601 (origin
4602 (method git-fetch)
4603 (uri (git-reference
4604 (url "https://github.com/moreati/python-cachedir-tag")
4605 (commit (string-append "v" version))))
4606 (file-name (git-file-name name version))
4607 (sha256
4608 (base32 "1s78j7ppangzglcc1pwkg0i4bvv47iyx3k4dpxn209sdy2554xqj"))))
4609 (build-system pyproject-build-system)
4610 (arguments '(#:tests? #f)) ;no test
4611 (native-inputs (list python-setuptools))
4612 (home-page "https://github.com/moreati/python-cachedir-tag")
4613 (synopsis
4614 "Handle @file{CACHEDIR.TAG} in cache directories")
4615 (description
4616 "This library handles @url{https://bford.info/cachedir, CACHEDIR.TAG},
4617a file llowing any arbitrary directory to be marked as a cache directory.")
4618 (license license:expat)))
4619
4620(define-public python-cachetools
4621 (package
4622 (name "python-cachetools")
4623 (version "6.1.0")
4624 (source
4625 (origin
4626 (method url-fetch)
4627 (uri (pypi-uri "cachetools" version))
4628 (sha256
4629 (base32 "11s5ajy31r08228nd2sbv9jdir3vs584khxawwydnj18742g9i5l"))))
4630 (build-system pyproject-build-system)
4631 (native-inputs
4632 (list python-pytest
4633 python-setuptools
4634 python-wheel))
4635 (home-page "https://github.com/tkem/cachetools/")
4636 (synopsis "Extensible memoizing collections and decorators")
4637 (description "This module provides various memoizing collections and
4638decorators, including variants of the Python standard library's
4639@code{lru_cache} function decorator.")
4640 (license license:expat)))
4641
4642(define-public python-cachetools-5
4643 (package
4644 (inherit python-cachetools)
4645 (version "5.5.2")
4646 (source
4647 (origin
4648 (method url-fetch)
4649 (uri (pypi-uri "cachetools" version))
4650 (sha256
4651 (base32 "1m20wqipm50zvcgs3z2xksb96qwx1xc1jbhvaxcnglkmj6m1qrhs"))))))
4652
4653(define-public python-colorclass
4654 (package
4655 (name "python-colorclass")
4656 (version "2.2.2")
4657 (source
4658 (origin
4659 (method git-fetch)
4660 (uri (git-reference
4661 (url "https://github.com/matthewdeanmartin/colorclass")
4662 (commit (string-append "v" version))))
4663 (file-name (git-file-name name version))
4664 (sha256
4665 (base32 "1ylj167lfh8yzms30qrkiznv6737hdxra5lk8mhijcjm3hi1cl9l"))))
4666 (build-system pyproject-build-system)
4667 (arguments
4668 (list
4669 #:test-flags
4670 #~(list "-k" "not test_piped") ; Unclear why this test fails.
4671 #:phases
4672 #~(modify-phases %standard-phases
4673 (add-after 'unpack 'use-poetry-core
4674 (lambda _
4675 ;; Patch to use the core poetry API.
4676 (substitute* "pyproject.toml"
4677 (("poetry.masonry.api") "poetry.core.masonry.api")))))))
4678 (native-inputs (list python-poetry-core python-pytest))
4679 (home-page "https://github.com/matthewdeanmartin/colorclass")
4680 (synopsis "Colorful console applications with Python")
4681 (description
4682 "This package provides an ANSI color text library for Python. It
4683provides automatic coloring for dark or light terminals.")
4684 (license license:expat)))
4685
4686(define-public python-colorcet
4687 (package
4688 (name "python-colorcet")
4689 (version "3.1.1a1")
4690 (source
4691 (origin
4692 (method url-fetch)
4693 (uri (pypi-uri "colorcet" version))
4694 (sha256
4695 (base32 "1h15wdgha1cpj5a9p2dy9d8qdqnl5j1a0ylc7wilcfhvnfzcgp08"))))
4696 (build-system pyproject-build-system)
4697 (native-inputs (list python-nbval
4698 python-packaging
4699 python-pytest
4700 python-pytest-mpl
4701 python-setuptools
4702 python-setuptools-scm))
4703 (home-page "https://colorcet.holoviz.org/")
4704 (synopsis "Collection of perceptually uniform colormaps")
4705 (description "Colorcet is a collection of perceptually accurate 256-color
4706colormaps for use with Python plotting programs like Bokeh, Matplotlib,
4707HoloViews, and Datashader.")
4708 (license license:cc-by4.0)))
4709
4710(define-public python-colored
4711 (package
4712 (name "python-colored")
4713 (version "2.3.0")
4714 (source (origin
4715 (method git-fetch)
4716 (uri (git-reference
4717 (url "https://gitlab.com/dslackw/colored")
4718 (commit version)))
4719 (file-name (git-file-name name version))
4720 (sha256
4721 (base32
4722 "00332xdjw5fcj5wx848693355nvlgcf8qmpwkvz3rngfg1q5bxa6"))))
4723 (build-system pyproject-build-system)
4724 (arguments
4725 (list
4726 #:phases
4727 #~(modify-phases %standard-phases
4728 (add-before 'check 'pre-check
4729 (lambda _
4730 ;; Tests expect ANSI escape codes for colors.
4731 (setenv "FORCE_COLOR" "1"))))))
4732 (native-inputs (list python-flit-core python-pytest))
4733 (home-page "https://gitlab.com/dslackw/colored")
4734 (synopsis "Simple library for color and formatting to terminal")
4735 (description "This is a very simple Python library for color and
4736formatting in the terminal. It comes with a collection of color codes and
4737names for 256 color terminal setups.")
4738 (license license:expat)))
4739
4740(define-public python-colored-traceback
4741 ;; No tags in upstream repository.
4742 (let ((commit "98e6dea7111f7681db823c518f18026374a832b9")
4743 (revision "0"))
4744 (package
4745 (name "python-colored-traceback")
4746 (version (git-version "0.4.2" revision commit))
4747 (source
4748 (origin
4749 (method git-fetch)
4750 (uri (git-reference
4751 (url "https://github.com/staticshock/colored-traceback.py")
4752 (commit commit)))
4753 (file-name (git-file-name name version))
4754 (sha256
4755 (base32 "19d5mpwk7398b8fjh6abnr96wz70vf5vb4p207r8sny748rwx451"))))
4756 (build-system pyproject-build-system)
4757 (arguments
4758 ;; Tests are incompatible with current python version.
4759 (list #:tests? #f))
4760 (propagated-inputs (list python-colorama python-pygments))
4761 (native-inputs (list python-setuptools python-wheel))
4762 (home-page "https://github.com/staticshock/colored-traceback.py")
4763 (synopsis "Automatically color uncaught exception tracebacks")
4764 (description "This package provides python utilities to automatically
4765color uncaught exception tracebacks.")
4766 (license license:isc))))
4767
4768(define-public python-colorful
4769 (package
4770 (name "python-colorful")
4771 (version "0.5.8")
4772 (source
4773 (origin
4774 (method git-fetch)
4775 (uri (git-reference
4776 (url "https://github.com/timofurrer/colorful")
4777 (commit (string-append "v" version))))
4778 (file-name (git-file-name name version))
4779 (sha256
4780 (base32 "00ag7h9g4v06japcva70sqibb9k49jrxq97nq3bi16b2y16mafwz"))))
4781 (build-system pyproject-build-system)
4782 (native-inputs
4783 (list python-pytest
4784 python-setuptools))
4785 (propagated-inputs
4786 (list python-colorama))
4787 (home-page "http://github.com/timofurrer/colorful")
4788 (synopsis "Terminal string styling")
4789 (description "Colorful provides an array of text styles, that can be used
4790as functions or string constants to form colored terminal output.")
4791 (license license:expat)))
4792
4793(define-public python-colorthief
4794 (package
4795 (name "python-colorthief")
4796 (version "0.2.1")
4797 (source
4798 (origin
4799 (method url-fetch)
4800 (uri (pypi-uri "colorthief" version))
4801 (sha256
4802 (base32 "08bjsmmkihyksms2vgndslln02rvw56lkxz28d39qrnxbg4v1707"))))
4803 (build-system pyproject-build-system)
4804 (arguments
4805 (list #:tests? #f)) ;no tests in PyPI or Git
4806 (native-inputs (list python-setuptools))
4807 (propagated-inputs (list python-pillow))
4808 (home-page "https://github.com/fengsp/color-thief-py")
4809 (synopsis "Grab the color palette of an image")
4810 (description
4811 "This package provides methods to determine the dominant color
4812of an image, as well as constructing a representative color palette.")
4813 (license license:bsd-3)))
4814
4815(define-public python-construct-classes
4816 (package
4817 (name "python-construct-classes")
4818 (version "0.1.2")
4819 (source
4820 (origin
4821 (method git-fetch)
4822 (uri (git-reference
4823 (url "https://github.com/matejcik/construct-classes")
4824 (commit (string-append "v" version))))
4825 (file-name (git-file-name name version))
4826 (sha256
4827 (base32 "0fmr8nfg543lyqk4164a52jb6lwpq98radicbkhhdfckq9lib2wp"))))
4828 (build-system pyproject-build-system)
4829 (propagated-inputs
4830 (list python-construct))
4831 (native-inputs
4832 (list python-poetry-core
4833 python-pytest))
4834 (home-page "https://github.com/matejcik/construct-classes")
4835 (synopsis "Parse binary structs into dataclasses")
4836 (description "This package provides a parser to parse binary structs
4837into dataclasses.")
4838 (license license:expat)))
4839
4840(define-public python-contourpy
4841 (package
4842 (name "python-contourpy")
4843 (version "1.3.3")
4844 (source
4845 (origin
4846 (method url-fetch)
4847 (uri (pypi-uri "contourpy" version))
4848 (sha256
4849 (base32 "1078vg1lha4z8adrfnpr68sdqmjdn0ml74d4pk804191bcai4gh8"))))
4850 (build-system pyproject-build-system)
4851 (arguments
4852 (list
4853 ;; tests: 1746 passed, 17 skipped, 750 deselected, 1 warning
4854 #:test-flags
4855 ;; To prevent adding Matplotlib reducing closure size, and break cycle.
4856 #~(list "-m" "not image"
4857 ;; Tests that pass but avoided for load reasons.
4858 "-k" "not test_filled_random_big and not test_lines_random_big")))
4859 (native-inputs
4860 (list pybind11-2
4861 python-meson
4862 python-pytest
4863 python-wurlitzer))
4864 (propagated-inputs
4865 (list python-numpy))
4866 (home-page "https://contourpy.readthedocs.io/")
4867 (synopsis
4868 "Python library for calculating contours of 2D quadrilateral grids")
4869 (description
4870 "ContourPy is a Python library for calculating contours of 2D
4871quadrilateral grids. It is written in C++11 and wrapped using pybind11.")
4872 (license license:bsd-3)))
4873
4874(define-public python-lunr
4875 (package
4876 (name "python-lunr")
4877 (version "0.8.0")
4878 (source
4879 (origin
4880 (method url-fetch)
4881 (uri
4882 (pypi-uri "lunr" version))
4883 (sha256
4884 (base32 "0a426nngs8h2mhqm60rwywxh2vb6snrip47w9fhpglkqjl2zav5l"))))
4885 (build-system pyproject-build-system)
4886 (arguments
4887 (list
4888 #:test-flags
4889 '(list "-k" "not TestLanguageSupport"
4890 "--ignore-glob=tests/acceptance_tests/*")))
4891 (native-inputs
4892 (list python-hatch-fancy-pypi-readme
4893 python-hatchling
4894 python-pytest
4895 python-pytest-timeout))
4896 (propagated-inputs
4897 (list python-nltk))
4898 (home-page "https://github.com/yeraydiazdiaz/lunr.py")
4899 (synopsis "Full-text search library")
4900 (description "This package provides python library for full-text search.
4901It indexes documents and provides a search interface for retrieving documents
4902that best match text queries.")
4903 (license license:expat)))
4904
4905(define-public python-mdit-py-plugins
4906 (package
4907 (name "python-mdit-py-plugins")
4908 (version "0.5.0")
4909 (source (origin
4910 (method git-fetch) ;for tests
4911 (uri (git-reference
4912 (url "https://github.com/executablebooks/mdit-py-plugins")
4913 (commit (string-append "v" version))))
4914 (file-name (git-file-name name version))
4915 (sha256
4916 (base32
4917 "1l3g3686lh2w1bmfd8n2qxsn4ipa7byyd57556d63caaiyxkl19i"))))
4918 (build-system pyproject-build-system)
4919 (propagated-inputs
4920 (list python-markdown-it-py
4921 python-attrs))
4922 (native-inputs
4923 (list python-flit-core
4924 python-pytest
4925 python-pytest-regressions))
4926 (home-page "https://github.com/executablebooks/mdit-py-plugins")
4927 (synopsis "Collection of plugins for markdown-it-py")
4928 (description "This package contains a collection of plugins for
4929@code{markdown-it-py} like:
4930@enumerate
4931@item amsmath,
4932@item attrs,
4933@item container,
4934@item definition list,
4935@item dollarmath,
4936@item field list,
4937@item footnote,
4938@item textmath, and
4939@item wordcount.
4940@end enumerate")
4941 (license license:expat)))
4942
4943(define-public python-mdurl
4944 (package
4945 (name "python-mdurl")
4946 (version "0.1.2")
4947 (source
4948 (origin
4949 (method git-fetch)
4950 (uri (git-reference
4951 (url "https://github.com/executablebooks/mdurl")
4952 (commit version)))
4953 (file-name (git-file-name name version))
4954 (sha256
4955 (base32 "0csc777q42jzv4zgdzxmwp8xqlb92ws1jvj09m2smh4klw67q5f3"))))
4956 (build-system pyproject-build-system)
4957 (native-inputs (list python-flit-core python-pytest))
4958 (home-page "https://github.com/executablebooks/mdurl")
4959 (synopsis "Markdown URL utilities")
4960 (description
4961 "This package implements a Python port of the JavaScript @code{mdurl}.")
4962 (license license:expat)))
4963
4964(define-public python-mkdocs
4965 (package
4966 (name "python-mkdocs")
4967 (version "1.6.1")
4968 (source
4969 (origin
4970 (method git-fetch)
4971 (uri (git-reference
4972 (url "https://github.com/mkdocs/mkdocs")
4973 (commit version)))
4974 (file-name (git-file-name name version))
4975 (sha256
4976 (base32 "02gllyq6myvgmqqsmj3il4f48bsvd617dwg62qx832bnbn0qw115"))))
4977 (build-system pyproject-build-system)
4978 (arguments
4979 (list
4980 ;; tests: 687 passed
4981 #:test-backend #~'unittest
4982 #:test-flags
4983 #~(list "discover" "-s" "mkdocs" "-p" "*tests.py")
4984 #:phases
4985 #~(modify-phases %standard-phases
4986 ;; XXX: Not ideal, but a few tests fail and it's not straightforward
4987 ;; to run tests with pytest (and thus ignore them selectively).
4988 (add-before 'check 'delete-failing-tests
4989 (lambda _
4990 (delete-file "mkdocs/tests/cli_tests.py"))))))
4991 (native-inputs
4992 (list python-hatchling
4993 python-setuptools))
4994 (propagated-inputs
4995 (list python-click
4996 python-ghp-import
4997 python-jinja2
4998 python-markdown
4999 python-markupsafe
5000 python-mergedeep
5001 python-mkdocs-get-deps
5002 python-packaging
5003 python-pathspec
5004 python-pyyaml
5005 python-pyyaml-env-tag
5006 python-watchdog
5007 ;; [optional]
5008 python-babel))
5009 (home-page "https://www.mkdocs.org")
5010 (synopsis "Project documentation with Markdown")
5011 (description
5012 "MkDocs is a static site generator geared towards building project
5013documentation. Documentation source files are written in Markdown, and
5014configured with a single YAML configuration file.")
5015 (license license:bsd-3)))
5016
5017(define-public python-mkdocs-get-deps
5018 (package
5019 (name "python-mkdocs-get-deps")
5020 (version "0.2.0")
5021 (source
5022 (origin
5023 (method git-fetch)
5024 (uri (git-reference
5025 (url "https://github.com/mkdocs/get-deps")
5026 (commit (string-append "v" version))))
5027 (file-name (git-file-name name version))
5028 (sha256
5029 (base32 "0f5ibliw1ccqgydsin27bb7sl7haca09s24xywhmg1cqhm4nda0d"))))
5030 (build-system pyproject-build-system)
5031 (native-inputs
5032 (list python-pytest
5033 python-hatchling))
5034 (propagated-inputs
5035 (list python-mergedeep
5036 python-platformdirs
5037 python-pyyaml))
5038 (home-page "https://github.com/mkdocs/get-deps")
5039 (synopsis "MkDocs extension to list dependencies according to a mkdocs.yml")
5040 (description
5041 "This package provides an @code{MkDocs} extension that lists all dependencies
5042according to a mkdocs.yml file. This command guesses the Python dependencies
5043that a MkDocs site requires in order to build. It simply prints the PyPI
5044packages that need to be installed.")
5045 (license license:expat)))
5046
5047(define-public python-mkdocs-markdownextradata-plugin
5048 (package
5049 (name "python-mkdocs-markdownextradata-plugin")
5050 (version "0.2.5")
5051 (source
5052 (origin
5053 (method git-fetch)
5054 (uri (git-reference
5055 (url "https://github.com/rosscdh/mkdocs-markdownextradata-plugin")
5056 (commit version)))
5057 (file-name (git-file-name name version))
5058 (sha256
5059 (base32 "1a3868s9m7pzyfncpjbjsa9vw5nihssl2v47pxj7h6qa67kvlk3g"))))
5060 (build-system pyproject-build-system)
5061 (native-inputs (list python-pytest python-setuptools))
5062 (propagated-inputs (list python-mkdocs python-pyyaml))
5063 (home-page "https://github.com/rosscdh/mkdocs-markdownextradata-plugin/")
5064 (synopsis "Inject extra variables into the MkDocs markdown template")
5065 (description
5066 "This package provides a MkDocs plugin that injects the mkdocs.yml extra
5067variables into the markdown template.")
5068 (license license:expat)))
5069
5070(define-public python-docstring-to-markdown
5071 (package
5072 (name "python-docstring-to-markdown")
5073 (version "0.15")
5074 (source
5075 (origin
5076 (method url-fetch)
5077 (uri (pypi-uri "docstring-to-markdown" version))
5078 (sha256
5079 (base32 "0gdpabnyl1kyy0cjrnph6xl4fyhgim50a1amsaqq3hahki6i2ip1"))))
5080 (build-system pyproject-build-system)
5081 (native-inputs
5082 (list python-pytest
5083 python-setuptools))
5084 (home-page "https://github.com/python-lsp/docstring-to-markdown")
5085 (synopsis "On the fly conversion of Python docstrings to markdown")
5086 (description
5087 "This module can convert Python docstrings to Markdown. It can recognise
5088reStructuredText inside docstrings and convert multiple of its features to
5089Markdown. It also includes initial support for Google-formatted docstrings.")
5090 (license license:lgpl2.1+)))
5091
5092(define-public python-pdoc
5093 (package
5094 (name "python-pdoc")
5095 (version "13.0.1")
5096 (source (origin
5097 (method git-fetch)
5098 (uri (git-reference
5099 (url "https://github.com/mitmproxy/pdoc")
5100 (commit (string-append "v" version))))
5101 (file-name (git-file-name name version))
5102 (sha256
5103 (base32
5104 "0gxkw607nrd67ck4w8jri9vfrm5g60qvp8b134m8zkiphbxjnx0l"))))
5105 (build-system pyproject-build-system)
5106 (native-inputs (list python-pytest python-jinja2 python-pygments
5107 python-setuptools python-wheel))
5108 (arguments
5109 (list
5110 ;; Some tests fail, presumably because of slight version mismatches of
5111 ;; the dependencies.
5112 #:test-flags
5113 '(list "-k" (string-append "not test_var_with_raising_repr and "
5114 "not test_smoke[mock] and "
5115 "not test_snapshots[html"))))
5116 (home-page "https://pdoc.dev/")
5117 (synopsis "API documentation for Python projects")
5118 (description "pdoc auto-generates API documentation that follows your
5119project's Python module hierarchy. It requires no configuration, has
5120first-class support for type annotations, cross-links between identifiers,
5121comes with an integrated live-reloading web server, uses customizable HTML
5122templates, understands numpydoc and Google-style docstrings.")
5123 (license license:unlicense)))
5124
5125(define-public python-py4j
5126 (package
5127 (name "python-py4j")
5128 (version "0.10.9.7")
5129 (source (origin
5130 (method url-fetch)
5131 (uri (pypi-uri "py4j" version))
5132 (sha256
5133 (base32
5134 "1fwdx92cdaiviradksfyygg05g1fpc3x2lf65bv5rnispcam6vhb"))))
5135 (build-system pyproject-build-system)
5136 (arguments (list #:tests? #f)) ; Requires a running JVM?
5137 (native-inputs (list python-setuptools))
5138 (home-page "https://www.py4j.org/")
5139 (synopsis "Dynamically access arbitrary Java objects from Python")
5140 (description
5141 "This package enables Python programs to dynamically access arbitrary
5142Java objects.")
5143 (license license:bsd-3)))
5144
5145(define-public python-pymdown-extensions
5146 (package
5147 (name "python-pymdown-extensions")
5148 (version "10.16.1")
5149 (source
5150 (origin
5151 (method git-fetch)
5152 (uri (git-reference
5153 (url "https://github.com/facelessuser/pymdown-extensions")
5154 (commit version)))
5155 (file-name (git-file-name name version))
5156 (sha256
5157 (base32 "0r36nk1ppq1wrgb1lcy9asp9872xr0gbhxrjw7dpa8lp6m7nqb9k"))))
5158 (build-system pyproject-build-system)
5159 ;; XXX: A lot of HTML tests fail with negligible discrepancies.
5160 (arguments
5161 (list #:tests? #f))
5162 (native-inputs (list python-hatchling python-pytest python-pyyaml))
5163 (propagated-inputs (list python-markdown))
5164 (home-page "https://github.com/facelessuser/pymdown-extensions")
5165 (synopsis "Extension pack for Python Markdown")
5166 (description
5167 "PyMdown Extensions is a collection of extensions for Python Markdown.
5168All extensions are found under the module namespace of pymdownx.")
5169 (license license:expat)))
5170
5171(define-public python-plotext
5172 (package
5173 (name "python-plotext")
5174 (version "5.2.8")
5175 (source (origin
5176 (method url-fetch)
5177 (uri (pypi-uri "plotext" version))
5178 (sha256
5179 (base32
5180 "1gpy1z2i4vq1mcrhysxahz4339pbl9rzk58rf5m5gf5ym9xji6ii"))))
5181 (build-system pyproject-build-system)
5182 (arguments (list #:tests? #false)) ;there are none
5183 (native-inputs (list python-setuptools python-wheel))
5184 (home-page "https://github.com/piccolomo/plotext")
5185 (synopsis "Plots in the terminal")
5186 (description "Plotext lets you plot directly to the terminal.")
5187 (license license:expat)))
5188
5189(define-public python-plotille
5190 (package
5191 (name "python-plotille")
5192 (version "5.0.0")
5193 (source
5194 (origin
5195 (method git-fetch)
5196 (uri (git-reference
5197 (url "https://github.com/tammoippen/plotille")
5198 (commit (string-append "v" version))))
5199 (file-name (git-file-name name version))
5200 (sha256
5201 (base32 "0ys8ivsbiv58c8rsrk2m2n3sh2rq6qqaa2mhq0hacsgrvmvv0siz"))
5202 (modules '((guix build utils)))
5203 (snippet
5204 #~(begin
5205 ;; Without deleting ./imgs setuptools complains as follows: error:
5206 ;; Multiple top-level packages discovered in a flat-layout:
5207 ;; ['imgs', 'plotille'].
5208 (delete-file-recursively "./imgs")))))
5209 (build-system pyproject-build-system)
5210 (native-inputs
5211 (list python-pytest
5212 python-mock
5213 python-pendulum
5214 python-pytest-mock
5215 python-setuptools
5216 python-wheel))
5217 (home-page "https://github.com/tammoippen/plotille")
5218 (synopsis "Plot in the terminal using braille dots")
5219 (description
5220 "Plotille provides a figure class and graphing functions to create plots,
5221scatter plots, histograms and heatmaps in the terminal using braille dots.")
5222 (license license:expat)))
5223
5224(define-public python-poetry-dynamic-versioning
5225 (package
5226 (name "python-poetry-dynamic-versioning")
5227 (version "1.9.1")
5228 (source
5229 (origin
5230 (method url-fetch)
5231 (uri (pypi-uri "poetry_dynamic_versioning" version))
5232 (sha256
5233 (base32 "0j6sm60x0w31kf5003v4dhp9sdz1i5n5qsfd8r4wm8ksh7gvkryn"))))
5234 (build-system pyproject-build-system)
5235 (arguments
5236 (list
5237 #:test-flags
5238 #~(list "--ignore=tests/test_integration.py"
5239 "-k" (string-join
5240 ;; Tests searching for VCS back end.
5241 (list "not test__get_version__defaults"
5242 "test__enable_in_doc__project_with_dynamic"
5243 "test__enable_in_doc__project_with_version"
5244 "test__get_version__format_jinja"
5245 "test__get_version__format_jinja_imports_with_module_and_item"
5246 "test__get_version__format_jinja_imports_with_module_only"
5247 "test__get_version__format_jinja_with_enforced_style")
5248 " and not "))))
5249 (native-inputs
5250 (list python-poetry-core
5251 python-pytest))
5252 (propagated-inputs
5253 (list python-dunamai
5254 python-jinja2
5255 python-tomlkit))
5256 (home-page "https://github.com/mtkennerly/poetry-dynamic-versioning")
5257 (synopsis "Poetry plugin enabling VCS tags dynamic versioning")
5258 (description
5259 "This package provides a build backend that patches Poetry Core to enable
5260the versioning system in PEP 517 build frontends.")
5261 (license license:expat)))
5262
5263(define-public python-poetry-plugin-export
5264 (package
5265 (name "python-poetry-plugin-export")
5266 (version "1.10.0")
5267 (source
5268 (origin
5269 (method url-fetch)
5270 (uri (pypi-uri "poetry_plugin_export" version))
5271 (sha256
5272 (base32 "1w100731jnrv3nkbnbiginia8sd8ll0vrmljbn14m1yd4kwrvvr6"))))
5273 (build-system pyproject-build-system)
5274 (arguments
5275 (list
5276 #:tests? #f)) ;tests cycle with poetry
5277 (native-inputs
5278 (list python-poetry-core))
5279 (propagated-inputs
5280 (list python-cachy
5281 python-pendulum
5282 python-poetry-core
5283 python-tomlkit))
5284 (home-page "https://python-poetry.org/")
5285 (synopsis "Poetry plugin to export the dependencies to various formats")
5286 (description
5287 "Poetry plugin to export the dependencies to various formats.")
5288 (license license:expat)))
5289
5290(define-public python-portpicker
5291 (package
5292 (name "python-portpicker")
5293 (version "1.6.0")
5294 (source
5295 (origin
5296 (method url-fetch)
5297 (uri (pypi-uri "portpicker" version))
5298 (sha256
5299 (base32 "1yiisk4h8qliwf99khz3lszrpjf6km76fbhzg01fwrbgz7b7yl5x"))))
5300 (build-system pyproject-build-system)
5301 (arguments
5302 (list
5303 #:test-flags
5304 ;; This fails because portserver ends up in bin, not site-packages
5305 '(list "--ignore=src/tests/portserver_test.py")))
5306 (propagated-inputs (list python-psutil))
5307 (native-inputs (list python-pytest python-setuptools python-wheel
5308 net-tools))
5309 (home-page "https://github.com/google/python_portpicker")
5310 (synopsis "Choose unique available network ports")
5311 (description
5312 "This package provides a library to choose unique available network
5313ports.")
5314 (license license:asl2.0)))
5315
5316(define-public python-md-ulb-pwrap
5317 (package
5318 (name "python-md-ulb-pwrap")
5319 (version "0.1.3")
5320 (source
5321 (origin
5322 (method git-fetch)
5323 (uri (git-reference
5324 (url "https://github.com/mondeja/md-ulb-pwrap")
5325 (commit (string-append "v" version))))
5326 (file-name (git-file-name name version))
5327 (sha256
5328 (base32 "08zqms8mz3m4kfsnjqapc8sjyjcaz82pq45lix6rjag67s0dhcn6"))))
5329 (build-system pyproject-build-system)
5330 (arguments
5331 (list
5332 #:imported-modules `(,@%cargo-build-system-modules
5333 ,@%pyproject-build-system-modules)
5334 #:modules '(((guix build cargo-build-system) #:prefix cargo:)
5335 (guix build pyproject-build-system)
5336 (guix build utils))
5337 #:test-backend #~'custom
5338 #:test-flags #~(list "test.py")
5339 #:phases
5340 #~(modify-phases %standard-phases
5341 (add-after 'unpack 'prepare-cargo-build-system
5342 (lambda args
5343 (for-each
5344 (lambda (phase)
5345 (format #t "Running cargo phase: ~a~%" phase)
5346 (apply (assoc-ref cargo:%standard-phases phase)
5347 #:cargo-target #$(cargo-triplet)
5348 args))
5349 '(unpack-rust-crates
5350 configure
5351 check-for-pregenerated-files
5352 patch-cargo-checksums))))
5353 (add-after 'prepare-cargo-build-system 'chdir
5354 (lambda _
5355 (chdir "python"))))))
5356 (native-inputs
5357 (append
5358 (list maturin
5359 python-pytest
5360 python-unicode-linebreak
5361 rust
5362 `(,rust "cargo"))
5363 (or (and=> (%current-target-system)
5364 (compose list make-rust-sysroot))
5365 '())))
5366 (inputs (cargo-inputs 'md_ulb_pwrap))
5367 (home-page "https://github.com/mondeja/md-ulb-pwrap")
5368 (synopsis "Markdown paragraph wrapper")
5369 (description
5370 "This package provides a Markdown paragraph wrapper using Unicode Line
5371Breaking Algorithm written in Rust with Python bindings.")
5372 (license license:expat)))
5373
5374(define-public python-mdx-gh-links
5375 (package
5376 (name "python-mdx-gh-links")
5377 (version "0.4")
5378 (source
5379 (origin
5380 (method url-fetch)
5381 (uri (pypi-uri "mdx_gh_links" version))
5382 (sha256
5383 (base32 "11inr9azx6c174yfikysbw0mx7mpjm03qdqr1am2a510mg1amma1"))))
5384 (build-system pyproject-build-system)
5385 (arguments (list #:tests? #f)) ;tests connect github
5386 (native-inputs (list python-setuptools))
5387 (propagated-inputs (list python-markdown))
5388 (home-page "https://github.com/Python-Markdown/github-links/")
5389 (synopsis "Python-Markdown extension adding support for shorthand links")
5390 (description "This package is an extension to Python-Markdown which adds
5391support for shorthand links to GitHub users, repositories, issues and
5392commits.")
5393 (license license:bsd-3)))
5394
5395(define-public python-mkdocs-material
5396 (package
5397 (name "python-mkdocs-material")
5398 (version "7.3.6")
5399 (source
5400 (origin
5401 (method git-fetch)
5402 (uri (git-reference
5403 (url "https://github.com/squidfunk/mkdocs-material")
5404 (commit version)))
5405 (file-name (git-file-name name version))
5406 (sha256
5407 (base32 "06ghwidcdqimx6jc6yz1zdbyc8rqklkwj5h5cxsihazh0f52fivk"))
5408 (modules '((guix build utils)))
5409 (snippet
5410 ;; TODO There are still bundled assets and minified JS.
5411 #~(delete-file-recursively "material/assets/javascripts/lunr/min"))))
5412 (build-system pyproject-build-system)
5413 (arguments
5414 (list
5415 #:tests? #f ; No tests.
5416 #:phases
5417 #~(let ((symlink-js
5418 (lambda (inputs)
5419 (for-each
5420 (lambda (lang)
5421 (let* ((filename (string-append "lunr." lang ".min.js"))
5422 (file (string-append "share/javascript/" filename)))
5423 (symlink (search-input-file inputs file) filename)))
5424 (list "ar" "da" "de" "es" "fi" "fr" "hu" "it" "ja" "multi"
5425 "nl" "no" "pt" "ro" "ru" "stemmer.support" "sv" "tr"
5426 "vi")))))
5427 (modify-phases %standard-phases
5428 ;; Requirement mkdocs-material-extensions
5429 ;; in-turn requires mkdocs-material. This causes
5430 ;; circular dependency, so we remove this requirement.
5431 (add-after 'unpack 'patch-requirements
5432 (lambda _
5433 (substitute* "requirements.txt"
5434 (("mkdocs-material-extensions.*$")
5435 ""))))
5436 (add-after 'ensure-no-mtimes-pre-1980 'inject-javascript-assets
5437 (lambda* (#:key inputs #:allow-other-keys)
5438 (mkdir-p "material/assets/javascripts/lunr/min")
5439 (with-directory-excursion "material/assets/javascripts/lunr/min"
5440 (symlink-js inputs))))
5441 (add-after 'wrap 'replace-javascript-assets
5442 (lambda* (#:key inputs outputs #:allow-other-keys)
5443 (let* ((site (site-packages inputs outputs))
5444 (js-assets (string-append site "/material/"
5445 "assets/javascripts")))
5446 (with-directory-excursion js-assets
5447 (delete-file-recursively "lunr/min")
5448 (mkdir-p "lunr/min")
5449 (with-directory-excursion "lunr/min"
5450 (symlink-js inputs))))))))))
5451 (native-inputs (list python-setuptools))
5452 (inputs (list js-lunr-ar
5453 js-lunr-da
5454 js-lunr-de
5455 js-lunr-es
5456 js-lunr-fi
5457 js-lunr-fr
5458 js-lunr-hu
5459 js-lunr-it
5460 js-lunr-ja
5461 js-lunr-nl
5462 js-lunr-no
5463 js-lunr-pt
5464 js-lunr-ro
5465 js-lunr-ru
5466 js-lunr-sv
5467 js-lunr-tr
5468 js-lunr-vi
5469 js-lunr-multi
5470 js-lunr-stemmer-support))
5471 (propagated-inputs
5472 (list python-markdown python-mkdocs python-pygments
5473 python-pymdown-extensions))
5474 (home-page "https://squidfunk.github.io/mkdocs-material/")
5475 (synopsis "Material Design theme for MkDocs")
5476 (description "This package provides a theme plugin for the static site
5477generator MkDocs.")
5478 (license license:expat)))
5479
5480(define-public python-nanobind
5481 (package
5482 (name "python-nanobind")
5483 (version "2.10.2")
5484 (source
5485 (origin
5486 (method url-fetch)
5487 (uri (pypi-uri "nanobind" version))
5488 (sha256
5489 (base32 "0sscrair34s1nj7vvybakirpgjsg9l6qic4wsvpas7vdrq89jl08"))))
5490 (build-system pyproject-build-system)
5491 (arguments
5492 (list
5493 ;; tests: 466 passed, 27 skipped
5494 #:phases
5495 #~(modify-phases %standard-phases
5496 (add-before 'build 'configure-cmake
5497 (lambda _
5498 (invoke "cmake" "-S" "." "-B" "build" "-DNB_TEST_STABLE_ABI=ON")))
5499 (add-after 'configure-cmake 'build-c++
5500 (lambda _
5501 (invoke "cmake" "--build" "build" "-j" "2")))
5502 (add-before 'check 'pre-check
5503 (lambda _ (chdir "build"))))))
5504 (native-inputs
5505 (list cmake-minimal
5506 python-numpy
5507 python-pathspec
5508 python-pytest
5509 python-scikit-build-core
5510 python-scipy))
5511 (inputs
5512 (list eigen))
5513 (home-page "https://github.com/wjakob/nanobind/")
5514 (synopsis "Tiny and efficient C++/Python bindings")
5515 (description "Nanobind is a small binding library that exposes C++ types
5516in Python and vice versa. It is reminiscent of @code{Boost.Python} and
5517@code{pybind11} and uses near-identical syntax. In contrast to these existing
5518tools, @code{nanobind} is more efficient: bindings compile in a shorter amount
5519of time, produce smaller binaries, and have better runtime performance.")
5520 (license license:bsd-3)))
5521
5522(define-public python-nr-date
5523 (package
5524 (name "python-nr-date")
5525 (version "2.1.0")
5526 (source
5527 (origin
5528 (method url-fetch)
5529 (uri (pypi-uri "nr_date" version))
5530 (sha256
5531 (base32 "1rnjyykjp41mqz6h1vx18jblq97gi5m5x7dgasyaihnd7fhswhq6"))))
5532 (build-system pyproject-build-system)
5533 (arguments (list #:tests? #false)) ;there are none
5534 (native-inputs (list python-poetry-core))
5535 (home-page "https://github.com/NiklasRosenstein/python-nr.date")
5536 (synopsis "Fast, regex-based date parsing library in plain Python")
5537 (description "This package provides a fast, regex-based date parsing
5538library in pure Python.")
5539 (license license:expat)))
5540
5541(define-public python-nr-stream
5542 (package
5543 (name "python-nr-stream")
5544 (version "1.1.5")
5545 (source
5546 (origin
5547 (method url-fetch)
5548 (uri (pypi-uri "nr_stream" version))
5549 (sha256
5550 (base32 "0rag4vbjnalkyfcarx6yipn11ih2hmc3pfldava4c6n6pz31c0pb"))))
5551 (build-system pyproject-build-system)
5552 (arguments (list #:tests? #false)) ;there are none
5553 (native-inputs (list python-poetry-core))
5554 (home-page "https://github.com/NiklasRosenstein/python-nr.stream")
5555 (synopsis "Stream and Optional classes for Python")
5556 (description "This package provides a @code{Stream} and @code{Optional}
5557class.")
5558 (license license:expat)))
5559
5560(define-public python-nr-util
5561 (package
5562 (name "python-nr-util")
5563 (version "0.8.12")
5564 (source
5565 (origin
5566 (method url-fetch)
5567 (uri (pypi-uri "nr.util" version))
5568 (sha256
5569 (base32 "1x0l4811dskwrk83l2xzdcldx2iazlrx5wxkg41jz7fr6ch9qm54"))))
5570 (build-system pyproject-build-system)
5571 (arguments
5572 (list
5573 #:tests? #false ;there are none
5574 #:phases
5575 #~(modify-phases %standard-phases
5576 (add-after 'unpack 'patch-build-system
5577 (lambda _
5578 (substitute* "pyproject.toml"
5579 (("^config =.*") "config = []\n"))))
5580 (add-after 'install 'fix-name
5581 (lambda* (#:key inputs outputs #:allow-other-keys)
5582 (let* ((sitedir (site-packages inputs outputs))
5583 (dist-info
5584 (string-append sitedir "/nr_util-" #$version ".dist-info")))
5585 (substitute* (string-append dist-info "/METADATA")
5586 (("Name: nr-util")
5587 "Name: nr.util"))
5588 (substitute* (string-append dist-info "/RECORD")
5589 (("nr_util") "nr.util"))
5590 (rename-file dist-info
5591 (string-append sitedir
5592 "/nr.util-"
5593 #$version ".dist-info"))))))))
5594 (propagated-inputs (list python-deprecated python-typing-extensions))
5595 (native-inputs (list python-poetry-core))
5596 (home-page "https://github.com/NiklasRosenstein/python-nr.util")
5597 (synopsis "General purpose Python utility library")
5598 (description "This package provides a general purpose Python utility
5599library.")
5600 (license license:expat)))
5601
5602(define-public python-slicerator
5603 (package
5604 (name "python-slicerator")
5605 (version "1.1.0")
5606 (source
5607 (origin
5608 (method url-fetch)
5609 (uri (pypi-uri "slicerator" version))
5610 (sha256
5611 (base32 "0ik0bmh18zgffd9kx53254jp3yyih6zcmd8kfb080xnqbizhl0a4"))))
5612 (build-system pyproject-build-system)
5613 (native-inputs
5614 (list python-numpy
5615 python-pytest
5616 python-setuptools))
5617 (home-page "https://github.com/soft-matter/slicerator")
5618 (synopsis "Lazy-loading, fancy-sliceable iterable")
5619 (description
5620 "This package provides a lazy-loading, fancy-sliceable iterable. Think
5621of it like a generator that is \"reusable\" and has a length.")
5622 (license license:bsd-3)))
5623
5624(define-public python-pytelegrambotapi
5625 (package
5626 (name "python-pytelegrambotapi")
5627 (version "4.22.0")
5628 (source
5629 (origin
5630 (method git-fetch)
5631 (uri (git-reference
5632 (url "https://github.com/eternnoir/pyTelegramBotAPI")
5633 (commit version)))
5634 (file-name (git-file-name name version))
5635 (sha256
5636 (base32 "0mic9wk6xg7p2ca7b03fc19l86yc9bkciq7kp8l9xvzzzmg4rzw4"))))
5637 (build-system pyproject-build-system)
5638 (arguments
5639 (list
5640 #:phases
5641 #~(modify-phases %standard-phases
5642 (replace 'check
5643 (lambda* (#:key tests? #:allow-other-keys)
5644 (when tests?
5645 (with-directory-excursion "tests"
5646 (invoke "py.test"))))))))
5647 (propagated-inputs
5648 (list python-requests))
5649 (native-inputs
5650 (list python-hatchling python-pytest))
5651 (home-page "https://github.com/eternnoir/pyTelegramBotAPI")
5652 (synopsis "Python Telegram bot api")
5653 (description "This package provides a simple, but extensible Python
5654implementation for the Telegram Bot API.")
5655 (license license:gpl2)))
5656
5657(define-public python-pytoolconfig
5658 (package
5659 (name "python-pytoolconfig")
5660 (version "1.3.1")
5661 (source
5662 (origin
5663 (method url-fetch)
5664 (uri (pypi-uri "pytoolconfig" version))
5665 (sha256
5666 (base32 "1bnvg9yiwp2fn0lvzhp1dd2mvrymxvjnasmbdap3i0hhdwdbvrji"))))
5667 (build-system pyproject-build-system)
5668 (arguments
5669 (list
5670 #:test-flags
5671 ;; Requires Sphinx.
5672 #~(list "--ignore=tests/test_documentation.py")))
5673 (native-inputs
5674 (list python-pdm-backend
5675 python-pytest))
5676 (propagated-inputs
5677 (list python-tomli
5678 python-packaging
5679 python-platformdirs))
5680 (home-page "https://pypi.org/project/pytoolconfig/")
5681 (synopsis "Python tool configuration")
5682 (description "The goal of this project is to manage configuration for
5683Python tools, such as rope and add support for a @file{pyproject.toml}
5684configuration file.")
5685 (license license:lgpl3+)))
5686
5687(define-public python-pytooling
5688 (package
5689 (name "python-pytooling")
5690 (version "9.0.0")
5691 (source
5692 (origin
5693 (method git-fetch)
5694 (uri (git-reference
5695 (url "https://github.com/pyTooling/pyTooling/")
5696 (commit (string-append "v" version))))
5697 (file-name (git-file-name name version))
5698 (sha256
5699 (base32 "19zbpy35bfcq3m49xd80qsy7f4b4r98dhv4vx76199a425n61932"))))
5700 (build-system pyproject-build-system)
5701 (arguments
5702 (list
5703 ;; Tests do not support linux-i686 system: Exception: Unknown
5704 ;; architecture 'linux-i686' for a native Linux.
5705 #:tests? (not (or (%current-target-system)
5706 (target-x86-32?)))
5707 #:test-flags
5708 #~(list
5709 "tests/unit"
5710 ;; These tests try to access the network.
5711 "--deselect=tests/unit/Dependency/Python.py::PyPI::test_SphinxReports"
5712 "--deselect=tests/unit/Dependency/Python.py::PyPI::test_pyTooling"
5713 "--deselect=tests/unit/Dependency/Python.py::PyPI::test_pyVersioning")
5714 #:phases
5715 #~(modify-phases %standard-phases
5716 (add-after 'unpack 'patch-git-bin-for-tests
5717 (lambda* (#:key inputs #:allow-other-keys)
5718 (substitute* (list "tests/unit/CLIAbstraction/Executable.py"
5719 "tests/unit/CLIAbstraction/Program.py")
5720 (("/usr/bin")
5721 (dirname (search-input-file inputs "/bin/git")))))))))
5722 (native-inputs
5723 (list git-minimal/pinned
5724 python-aiohttp
5725 python-colorama
5726 python-pytest
5727 python-requests
5728 python-ruamel.yaml
5729 python-setuptools))
5730 (home-page "https://pytooling.github.io/pyTooling/")
5731 (synopsis "Miscellaneous Python tools")
5732 (description
5733 "pyTooling is a collection of (abstract) data models, lacking classes,
5734decorators, a new performance boosting meta-class, and enhanced exceptions.
5735It also provides lots of helper functions---e.g., to ease the handling of
5736package descriptions or to unify multiple existing APIs into a single API.")
5737 (license license:asl2.0)))
5738
5739(define-public python-colorlog
5740 (package
5741 (name "python-colorlog")
5742 (version "6.9.0")
5743 (source
5744 (origin
5745 (method url-fetch)
5746 (uri (pypi-uri "colorlog" version))
5747 (sha256
5748 (base32 "1hka1kf6p53hppv05xsa5byr4gasfaaq7r2g3x7gb51vp6hm9fmz"))))
5749 (build-system pyproject-build-system)
5750 (native-inputs
5751 (list python-pytest
5752 python-setuptools))
5753 (home-page "https://github.com/borntyping/python-colorlog")
5754 (synopsis "Log formatting with colors for python")
5755 (description "The @code{colorlog.ColoredFormatter} is a formatter for use
5756with Python's logging module that outputs records using terminal colors.")
5757 (license license:expat)))
5758
5759(define-public python-pyprind
5760 (package
5761 (name "python-pyprind")
5762 (version "2.11.3")
5763 (source
5764 (origin
5765 (method url-fetch)
5766 (uri (pypi-uri "PyPrind" version))
5767 (sha256
5768 (base32 "1gscnlvj37m421ch3akm3kddxqkrgbg5zrpwy2ky1j59w6vclzg3"))))
5769 (build-system pyproject-build-system)
5770 (native-inputs (list python-pytest python-setuptools))
5771 (propagated-inputs (list python-psutil))
5772 (home-page "https://github.com/rasbt/pyprind")
5773 (synopsis "Python Progress Bar and Percent Indicator Utility")
5774 (description
5775 "The PyPrind (Python Progress Indicator) module provides a progress bar
5776and a percentage indicator object that let you track the progress of a loop
5777structure or other iterative computation.")
5778 (license license:bsd-3)))
5779
5780(define-public python-gh-md-to-html
5781 (package
5782 (name "python-gh-md-to-html")
5783 (version "1.21.2")
5784 (source
5785 (origin
5786 (method url-fetch)
5787 (uri (pypi-uri "gh_md_to_html" version))
5788 (sha256
5789 (base32 "1cnaqnckpcrpc4b8ba18s5ds05w1yfiszcp7ql7pmx0jnrj25qax"))))
5790 (build-system pyproject-build-system)
5791 (arguments
5792 (list
5793 #:tests? #false ;there are none
5794 #:phases
5795 #~(modify-phases %standard-phases
5796 (add-after 'unpack 'relax-shellescape-requirement
5797 (lambda _
5798 (substitute* "src/__init__.py"
5799 (("import shellescape")
5800 "import shlex")
5801 (("shellescape\\.quote")
5802 "shlex.quote"))
5803 (substitute* "setup.py"
5804 (("\"shellescape\",")
5805 "")))))))
5806 (propagated-inputs
5807 (list python-beautifulsoup4
5808 python-emoji-for-gh-md-to-html
5809 python-pillow
5810 python-requests
5811 python-webcolors))
5812 (native-inputs (list python-setuptools))
5813 (home-page "https://github.com/phseiff/github-flavored-markdown-to-html/")
5814 (synopsis "Github-flavored Markdown")
5815 (description
5816 "This package provides a feature-rich Github-flavored Markdown to HTML
5817Python library and command line interface.")
5818 (license license:expat)))
5819
5820(define-public python-gfloat
5821 (package
5822 (name "python-gfloat")
5823 (version "0.5.2")
5824 (source
5825 (origin
5826 (method url-fetch)
5827 (uri (pypi-uri "gfloat" version))
5828 (sha256
5829 (base32 "143424fqap9bxxybj8l48a00kqqh7vih67ycy7cmkd38kb31zcai"))))
5830 (build-system pyproject-build-system)
5831 (arguments
5832 (list
5833 #:test-flags
5834 #~(list
5835 "--ignore=test/test_array_api.py" ;requires array_api_strict
5836 "--ignore=test/test_jax.py" ;requires python-jax
5837 "--ignore=test/test_microxcaling.py" ;requires torchao
5838 ;; Jupyter.
5839 "--ignore-glob=docs/source/*.ipynb")))
5840 (propagated-inputs
5841 (list python-array-api-compat python-more-itertools python-numpy))
5842 (native-inputs (list python-nbval
5843 python-ml-dtypes
5844 python-pytest
5845 python-pytorch
5846 python-setuptools
5847 openssl))
5848 (home-page "https://github.com/graphcore-research/gfloat")
5849 (synopsis "Generic floating point handling in Python")
5850 (description
5851 "This package provides an implementation of generic floating point encode
5852and decode logic in Python. It handles various current and proposed floating
5853point types:
5854
5855@itemize
5856@item IEEE 754: Binary16, Binary32
5857@item OCP Float8: E5M2, E4M3
5858@item IEEE WG P3109
5859@item OCP MX Formats: E2M1, M2M3, E3M2, E8M0, INT8, and the MX block formats.
5860@end itemize")
5861 (license license:expat)))
5862
5863(define-public python-glymur
5864 (package
5865 (name "python-glymur")
5866 (version "0.14.8")
5867 (source
5868 (origin
5869 (method git-fetch)
5870 (uri (git-reference
5871 (url "https://github.com/quintusdias/glymur")
5872 (commit (string-append "v" version))))
5873 (file-name (git-file-name name version))
5874 (sha256
5875 (base32 "0jhnr5p8lrycf9bn9p429rkc82aayc0bjf0pivk870a954br268h"))))
5876 (build-system pyproject-build-system)
5877 (arguments
5878 (list
5879 #:test-flags
5880 #~(list "--numprocesses" (number->string (parallel-job-count))
5881 ;; Failing test due to inability of ctypes.util.find_library()
5882 ;; to determine library path, which is patched above.
5883 "--ignore=tests/test_config.py")
5884 #:phases
5885 #~(modify-phases %standard-phases
5886 (add-after 'unpack 'patch-library-locations
5887 (lambda* (#:key inputs #:allow-other-keys)
5888 ;; XXX: It's a workaround for Python inability to find the
5889 ;; .so libraries with ctypes.util.find_library()
5890 (substitute* '("glymur/config.py")
5891 (("path = find_library\\(libname\\)")
5892 (string-append
5893 "if libname == \"openjp2\":\n"
5894 " path = \""
5895 (search-input-file inputs "/lib/libopenjp2.so") "\"\n"
5896 " elif libname == \"tiff\":\n"
5897 " path = \""
5898 (search-input-file inputs "/lib/libtiff.so") "\"\n"
5899 " elif libname == \"c\":\n"
5900 " path = \""
5901 (search-input-file inputs "/lib/libc.so.6") "\"\n"))))))))
5902 (native-inputs
5903 (list python-pytest
5904 python-pytest-xdist
5905 python-scikit-image
5906 python-setuptools))
5907 (inputs
5908 (list openjpeg ; glymur/lib/openjp2.py
5909 libtiff)) ; glymur/lib/tiff.py
5910 (propagated-inputs
5911 (list python-lxml
5912 python-numpy
5913 python-pillow ))
5914 (home-page "https://github.com/quintusdias/glymur")
5915 (synopsis "Python interface to OpenJPEG and LibTIFF")
5916 (description
5917 "This package provides Python interface to the OpenJPEG library which
5918allows one to read and write JPEG 2000 files")
5919 (license license:expat)))
5920
5921(define-public python-gphoto2
5922 (package
5923 (name "python-gphoto2")
5924 (version "2.6.1")
5925 (source
5926 (origin
5927 (method git-fetch) ; no tests in PyPI
5928 (uri (git-reference
5929 (url "https://github.com/jim-easterbrook/python-gphoto2")
5930 (commit (string-append "v" version))))
5931 (file-name (git-file-name name version))
5932 (sha256
5933 (base32 "08zwznl3f8j329db747jl2zrpqj58ml39in5gl2gqghw82ssi3gk"))))
5934 (build-system pyproject-build-system)
5935 (native-inputs
5936 (list pkg-config python-pytest python-setuptools python-wheel))
5937 (inputs
5938 (list libgphoto2))
5939 (home-page "https://github.com/jim-easterbrook/python-gphoto2")
5940 (synopsis "Python interface to libgphoto2")
5941 (description "@code{python-gphoto2} is a comprehensive Python interface
5942(or binding) to @code{libgphoto2}. It is built using @code{SWIG} to
5943automatically generate the interface code.")
5944 (license license:lgpl3+)))
5945
5946(define-public python-colour
5947 (package
5948 (name "python-colour")
5949 (version "0.1.5")
5950 (source
5951 (origin
5952 (method git-fetch)
5953 (uri (git-reference
5954 (url "https://github.com/vaab/colour")
5955 (commit version)))
5956 (file-name (git-file-name name version))
5957 (sha256
5958 (base32 "01k2n3zp6j0bws78vdy7i9d6m4lz3bm8z7d7lv1czks1d4aamnr2"))
5959 (patches (search-patches "python-colour-remove-d2to1.patch"))))
5960 (build-system pyproject-build-system)
5961 (arguments
5962 (list
5963 #:tests? #f ; No tests.
5964 #:phases
5965 #~(modify-phases %standard-phases
5966 (add-after 'unpack 'set-version
5967 (lambda _
5968 (substitute* "autogen.sh"
5969 (("if ! \"\\$git\".*")
5970 "if false ; then\n")
5971 (("depends git grep")
5972 "depends grep")
5973 (("version=\\$\\(\"\\$git\" describe --tags\\)")
5974 (format #f "version=~s" #$version))))))))
5975 (native-inputs (list python-setuptools))
5976 (home-page "https://github.com/vaab/colour")
5977 (synopsis "Convert and manipulate various color representations")
5978 (description
5979 "This package provides a pythonic way to manipulate color representations
5980(HSL, RVB,web, X11, ...).")
5981 (license license:expat)))
5982
5983(define-public python-rapidfuzz
5984 (package
5985 (name "python-rapidfuzz")
5986 (version "3.14.5")
5987 (source
5988 (origin
5989 (method git-fetch)
5990 (uri (git-reference
5991 (url "https://github.com/rapidfuzz/RapidFuzz")
5992 (commit (string-append "v" version))))
5993 (file-name (git-file-name name version))
5994 (sha256
5995 (base32 "0ic219rfw4nlj9jp3idhxpk8vjlcw3x0xc23s36hf6gs41wxwpn0"))))
5996 (build-system pyproject-build-system)
5997 (native-inputs
5998 (list python-cython
5999 python-pandas-minimal
6000 python-pytest
6001 python-scikit-build-core
6002 rapidfuzz-cpp
6003 taskflow))
6004 (home-page "https://github.com/rapidfuzz/RapidFuzz")
6005 (synopsis "Rapid fuzzy string matching")
6006 (description
6007 "RapidFuzz is a fast string matching library for Python and
6008C++, which is using the string similarity calculations from FuzzyWuzzy.")
6009 (license license:expat)))
6010
6011(define-public python-easygui
6012 (package
6013 (name "python-easygui")
6014 (version "0.98.1")
6015 (source
6016 (origin
6017 (method git-fetch)
6018 (uri (git-reference
6019 (url "https://github.com/robertlugg/easygui")
6020 (commit version)))
6021 (file-name (git-file-name name version))
6022 (sha256
6023 (base32 "1vwd0dvldl993sp7b24h5yn269vykq7mmp9khdssqryfchfbajx6"))))
6024 (build-system pyproject-build-system)
6025 (arguments
6026 ;; XXX: There seem to be no tests upstream, although the package itself
6027 ;; seems to provide a lot of demo elements.
6028 (list #:tests? #f))
6029 (native-inputs (list python-pytest python-setuptools))
6030 (propagated-inputs (list `(,python "tk")))
6031 (home-page "https://github.com/robertlugg/easygui")
6032 (synopsis "GUI programming module for Python")
6033 (description
6034 "EasyGUI is a module for easy GUI programming in Python. EasyGUI is
6035different from other GUI generators in that EasyGUI is NOT event-driven.
6036Instead, all GUI interactions are invoked by simple function calls.")
6037 (license license:bsd-3)))
6038
6039(define-public python-echo
6040 (package
6041 (name "python-echo")
6042 (version "0.12.1")
6043 (source
6044 (origin
6045 (method url-fetch)
6046 (uri (pypi-uri "echo" version))
6047 (sha256
6048 (base32 "038jfhgnakccn4gz7w07yf0cspyz0h81nmgp3cmiavlacac1kvqp"))))
6049 (build-system pyproject-build-system)
6050 (arguments
6051 (list
6052 #:phases
6053 #~(modify-phases %standard-phases
6054 (add-before 'check 'start-xorg-server
6055 (lambda _
6056 ;; The test suite requires a running X server.
6057 (system "Xvfb :99 -screen 0 1024x768x24 &")
6058 (setenv "DISPLAY" ":99.0"))))))
6059 (propagated-inputs
6060 (list python-numpy
6061 python-qtpy
6062 python-pyqt-6))
6063 (native-inputs
6064 (list python-pytest
6065 python-setuptools
6066 python-setuptools-scm
6067 xorg-server-for-tests))
6068 (home-page "https://github.com/glue-viz/echo")
6069 (synopsis "Callback Properties in Python")
6070 (description
6071 "Echo is a small library for attaching callback functions to property
6072state changes.")
6073 (license license:expat)))
6074
6075(define-public python-pymd4c
6076 (package
6077 (name "python-pymd4c")
6078 (version "1.3.0")
6079 (source
6080 (origin
6081 (method git-fetch)
6082 (uri (git-reference
6083 (url "https://github.com/dominickpastore/pymd4c")
6084 (commit (string-append "v" version))))
6085 (file-name (git-file-name name version))
6086 (sha256
6087 (base32 "1pv8k2nfxnlwgmx13rl5vq9v64s564skpk0qnw41c2rhn13rxl4f"))))
6088 (build-system pyproject-build-system)
6089 (arguments (list #:test-flags #~(list "test")))
6090 (inputs (list md4c))
6091 (native-inputs
6092 (list pkg-config python-pkgconfig python-pytest python-setuptools))
6093 (home-page "https://github.com/dominickpastore/pymd4c")
6094 (synopsis "Python bindings for MD4C")
6095 (description
6096 "PyMD4C provides Python bindings for MD4c, a C Markdown parser, compliant
6097to CommonMark.")
6098 (license license:expat)))
6099
6100(define-public python-pymediainfo
6101 (package
6102 (name "python-pymediainfo")
6103 (version "4.1")
6104 (source
6105 (origin
6106 (method url-fetch)
6107 (uri (pypi-uri "pymediainfo" version))
6108 (sha256
6109 (base32 "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
6110 (build-system pyproject-build-system)
6111 (arguments
6112 (list
6113 ;; The only failing test requires internet access.
6114 #:test-flags
6115 #~(list "-k" "not test_parse_url")
6116 #:phases
6117 #~(modify-phases %standard-phases
6118 (add-after 'unpack 'patch-libmediainfo
6119 (lambda* (#:key inputs #:allow-other-keys)
6120 (substitute* "pymediainfo/__init__.py"
6121 (("libmediainfo.so.0")
6122 (search-input-file inputs "/lib/libmediainfo.so.0"))))))))
6123 (native-inputs (list python-pytest python-setuptools))
6124 (inputs (list libmediainfo))
6125 (home-page "https://github.com/sbraz/pymediainfo")
6126 (synopsis "Python wrapper for the mediainfo library")
6127 (description
6128 "This package provides a Python wrapper for the mediainfo library to
6129access the technical and tag data for video and audio files.")
6130 (license license:expat)))
6131
6132(define-public python-psutil
6133 (package
6134 (name "python-psutil")
6135 (version "7.2.2")
6136 (source
6137 (origin
6138 (method git-fetch)
6139 (uri (git-reference
6140 (url "https://github.com/giampaolo/psutil")
6141 (commit (string-append "release-" version))))
6142 (file-name (git-file-name name version))
6143 (sha256
6144 (base32 "1p5j3v78x795dd4xilmnvsswl09pkc81g9ax66akjdr0hkdnyl56"))))
6145 (build-system pyproject-build-system)
6146 (arguments
6147 (list
6148 ;; tests: X86_64-linux 414 passed, 278 skipped
6149 ;; i686-linux 410 passed, 278 skipped
6150 #:test-flags
6151 #~(list "--numprocesses" (number->string (min 8 (parallel-job-count)))
6152 "--dist" "loadgroup"
6153 #$@(map (lambda (ls) (string-append "--deselect=tests/"
6154 (string-join ls "::")))
6155 ;; assert None is not None
6156 '(("test_linux.py" "TestRootFsDeviceFinder"
6157 "test_comparisons")
6158 ;; FileNotFoundError: [Errno 2] No such file or
6159 ;; directory: '/sys/class/net/lo/mtu'
6160 ("test_linux.py" "TestSystemNetIfStats" "test_mtu")
6161 ;; AssertionError: assert '/dev/root' != '/dev/root'
6162 ("test_linux.py" "TestRootFsDeviceFinder"
6163 "test_disk_partitions_mocked")
6164 ;; psutil.AccessDenied: (pid=426)
6165 ("test_process.py" "TestProcess" "test_weird_environ")
6166 ;; assert []
6167 ("test_system.py" "TestMiscAPIs" "test_users")
6168 ;; ModuleNotFoundError: No module named '_common'
6169 ("test_scripts.py" "TestSetupScript"
6170 "test_invocation")
6171 ;; AssertionError: assert ''
6172 ("test_scripts.py" "TestExampleScripts" "test_who")
6173 ;; AssertionError: no disks on this system? assert
6174 ;; None is not None
6175 ("test_system.py" "TestDiskAPIs"
6176 "test_disk_io_counters")
6177 ;; psutil.NoSuchProcess: process no longer exists
6178 ;; (pid=247))
6179 ("test_process_all.py" "TestFetchAllProcesses"
6180 "test_all")
6181 ;; ModuleNotFoundError: No module named 'pypinfo'
6182 ("test_scripts.py" "TestInternalScripts"
6183 "test_import_all")
6184 ;; FileNotFoundError: [Errno 2] No such file or
6185 ;; directory: '/sys/class/power_supply'
6186 ("test_misc.py" "TestMisc" "test_serialization")))
6187 #$@(if (target-32bit?)
6188 (map (lambda (ls) (string-append "--deselect=tests/"
6189 (string-join ls "::")))
6190 ;; assert 12884901915 < 500 where 12884901915 =
6191 ;; abs((2596570605 - 15481472520))
6192 '(("test_linux.py" "TestSystemCPUStats"
6193 "test_interrupts")
6194 ;; OSError: [Errno 22] Invalid argument
6195 ("test_process.py" "TestProcess"
6196 "test_zombie_process")))
6197 '()))
6198 #:phases
6199 #~(modify-phases %standard-phases
6200 (add-before 'check 'pre-check
6201 (lambda _
6202 (delete-file-recursively "psutil")
6203 (substitute* "tests/test_linux.py"
6204 (("\"(free|vmstat)\"" _ cmd)
6205 (format #f "~s" (which cmd))))
6206 (setenv "PYTHONWARNINGS" "always")
6207 (setenv "PYTHONUNBUFFERED" "1")
6208 (setenv "PSUTIL_DEBUG" "1")
6209 (setenv "PSUTIL_TESTING" "1"))))))
6210 (native-inputs
6211 (list procps
6212 python-packaging
6213 python-psleak
6214 python-pyperf
6215 python-pytest
6216 python-pytest-instafail
6217 python-pytest-xdist
6218 python-setuptools))
6219 (home-page "https://github.com/giampaolo/psutil")
6220 (synopsis "Library for retrieving information on running processes")
6221 (description
6222 "@code{psutil} (Python system and process utilities) is a library for
6223retrieving information on running processes and system utilization (CPU,
6224memory, disks, network) in Python. It is useful mainly for system monitoring,
6225profiling and limiting process resources and management of running processes.
6226It implements many functionalities offered by command line tools such as: ps,
6227top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat,
6228iotop, uptime, pidof, tty, taskset, pmap.")
6229 (license license:bsd-3)))
6230
6231(define-public python-psutil-bootstrap
6232 (hidden-package
6233 (package/inherit python-psutil
6234 (name "python-psutil-bootstrap")
6235 (arguments
6236 (list #:tests? #f))
6237 (propagated-inputs '())
6238 (native-inputs
6239 (list python-setuptools)))))
6240
6241(define-public python-scapy
6242 (package
6243 (name "python-scapy")
6244 (version "2.6.1")
6245 (source (origin
6246 (method url-fetch)
6247 (uri (pypi-uri "scapy" version))
6248 (sha256
6249 (base32
6250 "1ig6qv1kpk7z9n8xf41y5fzywfv42xzd61bf79f3x19w73idf03n"))))
6251 (arguments
6252 '(#:tests? #f)) ; There is a test directory, but apparently no
6253 ; automatic testing framework.
6254 ;; The package has more optional dependencies such as ipython and
6255 ;; matplotlib. If functionality is missing, these should be added.
6256 ;; See
6257 ;; https://scapy.readthedocs.io/en/latest/installation.html#optional-dependencies
6258 (build-system pyproject-build-system)
6259 (native-inputs (list python-setuptools python-wheel))
6260 (home-page "https://scapy.net")
6261 (synopsis "Python network packet crafting library")
6262 (description
6263 "Scapy is a Python library and executable for interactively
6264manipulating network packets. It can forge or decode packets of a number
6265of protocols, send them on the wire, capture them, store or read them
6266using pcap files, match requests and replies, and so on.
6267It can handle tasks such as scanning, tracerouting, probing, unit tests,
6268attacks or network discovery.")
6269 (license license:gpl2)))
6270
6271(define-public python-icmplib
6272 (package
6273 (name "python-icmplib")
6274 (version "3.0.4")
6275 (source
6276 (origin
6277 (method git-fetch)
6278 (uri (git-reference
6279 (url "https://github.com/ValentinBELYN/icmplib")
6280 (commit (string-append "v" version))))
6281 (file-name (git-file-name name version))
6282 (sha256
6283 (base32 "04h877ryg22vsgvq35dqwpf0b1v8hvfl2gc857zxqzig4ld5qw1y"))))
6284 (build-system pyproject-build-system)
6285 (arguments (list #:tests? #f)) ; No tests.
6286 (native-inputs (list python-setuptools))
6287 (home-page "https://github.com/ValentinBELYN/icmplib")
6288 (synopsis
6289 "Python implementation of the Internet Control Message Protocol (ICMP)")
6290 (description
6291 "@code{icmplib} is a supporting library for both IPv4 and IPv6 networks.
6292ICMP is typically used for diagnostic or control purposes - well known from
6293utilities such as ping(1).")
6294 (license license:lgpl3)))
6295
6296(define-public python-iron-core
6297 (let ((commit "5a5f3011da09769a812c6a1c44781ef852abc19b")
6298 (revision "0"))
6299 (package
6300 (name "python-iron-core")
6301 (version (git-version "1.2.1" revision commit))
6302 (source
6303 (origin
6304 (method git-fetch)
6305 (uri (git-reference
6306 (url "https://www.github.com/iron-io/iron_core_python")
6307 (commit commit)))
6308 (file-name (git-file-name name version))
6309 (sha256
6310 (base32 "030ibimgqvc6hywh7g3k7qn147ckagi0wbdiqcpdf1c85xqrj5zq"))))
6311 (build-system pyproject-build-system)
6312 (arguments
6313 (list
6314 ;; XXX: Tests are run, but they seem too old/not updated.
6315 #:tests? #f
6316 #:test-backend #~'unittest))
6317 (propagated-inputs (list python-dateutil python-requests))
6318 (native-inputs (list python-setuptools))
6319 (home-page "https://www.github.com/iron-io/iron_core_python")
6320 (synopsis "Universal classes and methods for Iron.io API wrappers")
6321 (description
6322 "This package provides universal classes and methods for the Iron.io
6323API wrappers to build on.")
6324 (license license:bsd-2))))
6325
6326(define-public python-iron-mq
6327 (let ((commit "e6ff76ac0068c3184d9003e3163b94ffc839dbe8")
6328 (revision "0"))
6329 (package
6330 (name "python-iron-mq")
6331 (version (git-version "0.9" revision commit))
6332 (source
6333 (origin
6334 (method git-fetch)
6335 (uri (git-reference
6336 (url "https://github.com/iron-io/iron_mq_python")
6337 (commit commit)))
6338 (file-name (git-file-name name version))
6339 (sha256
6340 (base32 "0bb8gpzb3jr2r6i367jspwcxrz5ygdf40a67nl9aj5n79hg1aq8x"))))
6341 (build-system pyproject-build-system)
6342 (arguments
6343 (list
6344 ;; XXX: Tests are broken and require network access.
6345 #:tests? #f
6346 #:test-backend #~'unittest))
6347 (propagated-inputs (list python-iron-core))
6348 (native-inputs (list python-setuptools))
6349 (home-page "https://github.com/iron-io/iron_mq_python")
6350 (synopsis "Client library for IronMQ, a message queue in the cloud")
6351 (description
6352 "This package provides Python language bindings for IronMQ. IronMQ is an
6353elastic message queue for managing data and event flow within cloud
6354applications and between systems.")
6355 (license license:bsd-2))))
6356
6357(define-public python-rasterio
6358 (package
6359 (name "python-rasterio")
6360 (version "1.3.7")
6361 (source (origin
6362 (method url-fetch)
6363 (uri (pypi-uri "rasterio" version))
6364 (sha256
6365 (base32
6366 "012341c1rlcdr9rkg97lbhxrwzn4sr2xah4zjfnqy2r1227wpzdb"))))
6367 (properties
6368 '((updater-ignored-native-inputs . ("gdal" "python-cython"))))
6369 (build-system pyproject-build-system)
6370 (arguments
6371 (list
6372 #:tests? #false ;test data not present
6373 #:phases
6374 '(modify-phases %standard-phases
6375 (add-before 'check 'build-extensions
6376 (lambda _
6377 ;; Cython extensions have to be built before running the tests.
6378 (invoke "python" "setup.py" "build_ext" "--inplace"))))))
6379 (propagated-inputs (list python-affine
6380 python-attrs
6381 python-certifi
6382 python-click
6383 python-click-plugins
6384 python-cligj
6385 python-numpy
6386 python-setuptools ; For pkg_resources.
6387 python-snuggs))
6388 (native-inputs (list gdal
6389 python-boto3
6390 python-cython
6391 python-hypothesis
6392 python-packaging
6393 python-pytest
6394 python-shapely
6395 python-wheel))
6396 (home-page "https://github.com/rasterio/rasterio")
6397 (synopsis "Fast and direct raster I/O for use with Numpy and SciPy")
6398 (description "This package implements fast and direct raster I/O for use
6399with Numpy and SciPy.")
6400 (license license:bsd-3)))
6401
6402(define-public python-rich-tables
6403 (package
6404 (name "python-rich-tables")
6405 (version "0.8.0")
6406 (source
6407 (origin
6408 (method git-fetch) ; no tests data in PyPi package
6409 (uri (git-reference
6410 (url "https://github.com/snejus/rich-tables")
6411 (commit version)))
6412 (file-name (git-file-name name version))
6413 (sha256
6414 (base32 "1gkwgxcjnghn0alqw53kgb4ixf047dnb49kc0af3blvcwnmfmb5f"))))
6415 (build-system pyproject-build-system)
6416 (arguments
6417 (list
6418 #:test-flags
6419 ;; TypeError: can't subtract offset-naive and offset-aware datetimes
6420 #~(list "--deselect=tests/test_outputs.py::test_outputs[tests/json/album.json]")))
6421 (native-inputs
6422 (list python-freezegun
6423 python-poetry-core
6424 python-pytest))
6425 (propagated-inputs
6426 (list python-funcy
6427 python-humanize
6428 python-multimethod
6429 python-platformdirs
6430 python-rgbxy
6431 python-rich
6432 python-sqlparse))
6433 (home-page "https://github.com/snejus/rich-tables")
6434 (synopsis "Ready-made rich tables for various purposes")
6435 (description
6436 "This package implements rich tables for various purposes, it's JSON
6437human-prettifier based on the @code{rich} Python library.")
6438 (license license:expat)))
6439
6440(define-public python-rich-toolkit
6441 (package
6442 (name "python-rich-toolkit")
6443 (version "0.12.0")
6444 (source
6445 (origin
6446 (method url-fetch)
6447 (uri (pypi-uri "rich_toolkit" version))
6448 (sha256
6449 (base32 "0h3cda068xc0v8jqcp7fyrb6d4xlhcjlxm5bfygk04408500pjzs"))))
6450 (build-system pyproject-build-system)
6451 (propagated-inputs (list python-click python-rich python-typing-extensions))
6452 (native-inputs (list python-hatchling python-inline-snapshot python-pytest))
6453 (home-page "https://pypi.org/project/rich-toolkit/")
6454 (synopsis "Rich toolkit for building command-line applications")
6455 (description "This package provides the Rich toolkit for building
6456command-line applications.")
6457 (license license:expat)))
6458
6459(define-public python-shapely
6460 (package
6461 (name "python-shapely")
6462 (version "2.1.1")
6463 (source
6464 (origin
6465 (method url-fetch)
6466 (uri (pypi-uri "shapely" version))
6467 (sha256
6468 (base32 "0wi71vyjyb04lbw6kkl9vcsmn7n28j8002288m19dziggyb221jh"))))
6469 (build-system pyproject-build-system)
6470 (arguments
6471 (list
6472 #:phases
6473 '(modify-phases %standard-phases
6474 (add-before 'check 'build-extensions
6475 (lambda _
6476 ;; Cython extensions have to be built before running the tests.
6477 (invoke "python" "setup.py" "build_ext" "--inplace"))))))
6478 (native-inputs
6479 (list python-cython python-matplotlib python-pytest python-setuptools python-wheel))
6480 (inputs
6481 (list geos))
6482 (propagated-inputs
6483 (list python-numpy))
6484 (home-page "https://github.com/shapely/shapely")
6485 (synopsis "Library for the manipulation and analysis of geometric objects")
6486 (description "Shapely is a Python package for manipulation and analysis of
6487planar geometric objects. It is based on the @code{GEOS} library.")
6488 (license license:bsd-3)))
6489
6490(define-public python-shortuuid
6491 (package
6492 (name "python-shortuuid")
6493 (version "1.0.13")
6494 (source
6495 (origin
6496 (method url-fetch)
6497 (uri (pypi-uri "shortuuid" version))
6498 (sha256
6499 (base32
6500 "0wjygiwk07irgqmr29bv7rvq9pc71ff3jinzn620a9h6yq3wzf9v"))))
6501 (build-system pyproject-build-system)
6502 (native-inputs
6503 (list python-poetry-core python-pytest))
6504 (home-page "https://github.com/skorokithakis/shortuuid")
6505 (synopsis "Generator library for concise, unambiguous and URL-safe UUIDs")
6506 (description
6507 "@code{shortuuid} is a Python library for generating concise, unambiguous
6508and URL-safe UUIDs. UUIDs are generated using the built-in Python @code{uuid}
6509module and then similar looking characters are removed.")
6510 (license license:bsd-3)))
6511
6512(define-public python-logwrap
6513 (package
6514 (name "python-logwrap")
6515 (version "11.1.1")
6516 (source
6517 (origin
6518 (method git-fetch) ; no tests in PyPI release
6519 (uri (git-reference
6520 (url "https://github.com/python-useful-helpers/logwrap")
6521 (commit version)))
6522 (file-name (git-file-name name version))
6523 (sha256
6524 (base32 "07m4c87pavpdak1lx4bvdz43y2wwzm6fc54x947cssgwqz8mw3zp"))))
6525 (build-system pyproject-build-system)
6526 (native-inputs (list python-pytest
6527 python-setuptools
6528 python-setuptools-scm
6529 python-wheel))
6530 (home-page "https://github.com/python-useful-helpers/logwrap")
6531 (synopsis "Decorator for logging function arguments")
6532 (description "This package provides a decorator to log function arguments
6533and function call return values in a human-readable way.")
6534 (license license:asl2.0)))
6535
6536(define-public python-babel
6537 (package
6538 (name "python-babel")
6539 (version "2.16.0")
6540 (source
6541 (origin
6542 (method url-fetch)
6543 (uri (pypi-uri "babel" version))
6544 (sha256
6545 (base32 "05p3k0i5h8v4vqsg36s94kwl4nhgfmgwdq1x7wbzw1b6l965bwyi"))))
6546 (build-system pyproject-build-system)
6547 (native-inputs
6548 (list python-freezegun
6549 python-pytest
6550 python-setuptools
6551 tzdata-for-tests))
6552 (propagated-inputs
6553 (list python-pytz))
6554 (home-page "https://babel.pocoo.org/")
6555 (synopsis
6556 "Tools for internationalizing Python applications")
6557 (description
6558 "Babel is composed of two major parts:
6559- tools to build and work with gettext message catalogs
6560- a Python interface to the CLDR (Common Locale Data Repository), providing
6561access to various locale display names, localized number and date formatting,
6562etc.")
6563 (license license:bsd-3)))
6564
6565(define-public python-bidict
6566 (package
6567 (name "python-bidict")
6568 (version "0.23.1")
6569 (source
6570 (origin
6571 (method git-fetch) ; no tests in PyPI.
6572 (uri (git-reference
6573 (url "https://github.com/jab/bidict")
6574 (commit (string-append "v" version))))
6575 (file-name (git-file-name name version))
6576 (sha256
6577 (base32 "1qsbxjjsrks3icyq19afr5y47zdrfb0cvaadpprgcszq2ilihkaq"))))
6578 (build-system pyproject-build-system)
6579 (native-inputs
6580 (list python-pytest
6581 python-pytest-benchmark
6582 python-pytest-xdist
6583 python-setuptools
6584 python-sortedcollections
6585 python-wheel))
6586 (home-page "https://bidict.readthedocs.io")
6587 (synopsis "Bidirectional mapping library")
6588 (description "The @code{bidict} library provides several data structures
6589for working with bidirectional mappings in Python.")
6590 (license license:mpl2.0)))
6591
6592(define-public python-bip39
6593 (package
6594 (name "python-bip39")
6595 (version "0.0.2")
6596 (source
6597 (origin
6598 (method url-fetch)
6599 (uri (pypi-uri "bip39" version))
6600 (sha256
6601 (base32 "18m7d3gi7vj2zi0bl1z7m0nhcj6i8j9vj4vil276siagnpkv64ry"))))
6602 (build-system pyproject-build-system)
6603 (native-inputs (list python-pytest python-setuptools))
6604 (home-page "https://github.com/de-centralized-systems/python-bip39/")
6605 (synopsis "Self-contained and simple BIP39 implementation in Python")
6606 (description
6607 "This package provides a self-contained and simple BIP39
6608implementation written in Python. It includes a @code{bip39.py} executable.
6609
6610BIP39 is a standardized mapping between binary data (the @emph{entropy}),
6611and a list of words that are easier to remember for humans (the
6612@emph{mnemonic}).")
6613 (license license:expat)))
6614
6615(define-public python-bitarray
6616 (package
6617 (name "python-bitarray")
6618 (version "3.4.3")
6619 (source (origin
6620 (method url-fetch)
6621 (uri (pypi-uri "bitarray" version))
6622 (sha256
6623 (base32
6624 "1w32bybj7qx99pkwyhb4g9c1y5mp89kc838iq30swrkb12zv5pyx"))))
6625 (build-system pyproject-build-system)
6626 (arguments
6627 (list #:phases
6628 #~(modify-phases %standard-phases
6629 (replace 'check
6630 (lambda* (#:key tests? #:allow-other-keys)
6631 (when tests?
6632 ;; Step out of the source directory to avoid interference.
6633 (with-directory-excursion "/tmp"
6634 (invoke "python" "-c"
6635 "import bitarray; bitarray.test()"))))))))
6636 (native-inputs (list python-setuptools python-wheel))
6637 (home-page "https://github.com/ilanschnell/bitarray")
6638 (synopsis "Efficient arrays of booleans")
6639 (description "This package provides an object type which efficiently
6640represents an array of booleans. Bitarrays are sequence types and behave very
6641much like usual lists. Eight bits are represented by one byte in a contiguous
6642block of memory. The user can select between two representations:
6643little-endian and big-endian. All of the functionality is implemented in C.
6644Methods for accessing the machine representation are provided. This can be
6645useful when bit level access to binary files is required, such as portable
6646bitmap image files. Also, when dealing with compressed data which uses
6647variable bit length encoding, you may find this module useful.")
6648 (license license:psfl)))
6649
6650(define-public python-bitarray-2
6651 (package
6652 (inherit python-bitarray)
6653 (version "2.8.1")
6654 (source (origin
6655 (method url-fetch)
6656 (uri (pypi-uri "bitarray" version))
6657 (sha256
6658 (base32
6659 "1wy80bmhg33bpzn28g1n7s8r8f4drj7pcl4m2qb5sql8bbryx376"))))))
6660
6661(define-public python-boolean.py
6662 (package
6663 (name "python-boolean.py")
6664 (version "5.0")
6665 (source
6666 (origin
6667 (method url-fetch)
6668 (uri (pypi-uri "boolean_py" version))
6669 (sha256
6670 (base32 "15cd64x2m1cbcnjasw0m2977ab1n0mam8j96schkfxbrs2xc9jv0"))))
6671 (build-system pyproject-build-system)
6672 (native-inputs (list python-pytest python-setuptools python-wheel))
6673 (home-page "https://github.com/bastikr/boolean.py")
6674 (synopsis "Boolean algebra in one Python module")
6675 (description
6676 "This is a small Python library that implements boolean algebra.
6677It defines two base elements, @code{TRUE} and @code{FALSE}, and a
6678@code{Symbol} class that can take on one of these two values. Calculations
6679are done only in terms of @code{AND}, @code{OR}, and @code{NOT}---other
6680compositions like @code{XOR} and @code{NAND} are emulated on top of them.
6681Expressions are constructed from parsed strings or directly in Python.")
6682 (license license:bsd-2)))
6683
6684(define-public python-h5netcdf
6685 (package
6686 (name "python-h5netcdf")
6687 (version "1.3.0")
6688 (source
6689 (origin
6690 (method url-fetch)
6691 (uri (pypi-uri "h5netcdf" version))
6692 (sha256
6693 (base32 "1kw3cf01kziwxmb84x0cy6vbpsmqjm0k1dm34i6b4d7bv8kw0wd1"))))
6694 (build-system pyproject-build-system)
6695 (native-inputs
6696 (list python-netcdf4
6697 python-pytest
6698 python-setuptools
6699 python-setuptools-scm
6700 python-wheel))
6701 (propagated-inputs
6702 (list python-h5py python-packaging))
6703 (home-page "https://h5netcdf.org")
6704 (synopsis "Python interface for the netCDF4 file-format based on h5py")
6705 (description "This package provides a Python interface for the netCDF4
6706file-format that reads and writes local or remote HDF5 files directly via
6707@url{h5py, https://www.h5py.org/} or @url{h5pyd,
6708https://github.com/HDFGroup/h5pyd}, without relying on the Unidata netCDF
6709library.")
6710 (license license:bsd-3)))
6711
6712(define-public python-h5py
6713 ;; TODO: Move to (gnu packages python-science) or maths, prevent import mpi
6714 ;; module here.
6715 (package
6716 (name "python-h5py")
6717 (version "3.16.0")
6718 (source
6719 (origin
6720 (method git-fetch)
6721 (uri (git-reference
6722 (url "https://github.com/h5py/h5py")
6723 (commit version)))
6724 (file-name (git-file-name name version))
6725 (sha256
6726 (base32 "1s5nqhylp7daizljnwr8bwwsxd92kqgz2106vi9q1c1q920ihsyy"))))
6727 (build-system pyproject-build-system)
6728 (arguments
6729 (list
6730 ;; tests: 849 passed, 50 skipped
6731 #:test-flags
6732 #~(list "--pyargs" "h5py")
6733 #:phases
6734 #~(modify-phases %standard-phases
6735 (add-after 'unpack 'set-hdf5-options
6736 ;; For custom installation with Parallel HDF5 see:
6737 ;; <https://docs.h5py.org/en/latest/build.html#custom-installation>.
6738 (lambda _
6739 ;; XXX: Check if we need this:
6740 ;; <https://github.com/h5py/h5py/issues/2560>.
6741 ;; (setenv "H5PY_SETUP_REQUIRES" "0")
6742 ;;
6743 ;; Project is part of h5py, but availalbe at
6744 ;; <https://oldhome.schmorp.de/marc/liblzf.html>, version 3.6
6745 ;; was released on 2019.
6746 ;; (setenv "H5PY_SYSTEM_LZF" "1")
6747 (setenv "HDF5_DIR" #$(this-package-input "hdf5-parallel-openmpi"))
6748 (setenv "HDF5_MPI" "ON")))
6749 (add-before 'check 'pre-check
6750 (lambda _
6751 (setenv "H5PY_TEST_CHECK_FILTERS" "1")
6752 (delete-file-recursively "h5py"))))))
6753 (native-inputs
6754 (list pkg-config
6755 python-cython
6756 python-pkgconfig
6757 python-pytest
6758 python-pytest-mpi
6759 python-setuptools))
6760 (inputs
6761 (list hdf5-parallel-openmpi))
6762 (propagated-inputs
6763 (list python-mpi4py
6764 python-numpy))
6765 (home-page "https://www.h5py.org/")
6766 (synopsis "Read and write HDF5 files from Python")
6767 (description
6768 "The h5py package provides both a high- and low-level interface to the
6769HDF5 library from Python. The low-level interface is intended to be a
6770complete wrapping of the HDF5 API, while the high-level component supports
6771access to HDF5 files, datasets and groups using established Python and NumPy
6772concepts.")
6773 (license license:bsd-3)))
6774
6775(define-public python-hdf5storage
6776 ;; XXX: Use the latest commit containing compatibility with Pytest and Python
6777 ;; 3.11, see: <https://github.com/frejanordsiek/hdf5storage/issues/135>.
6778 ;;
6779 ;; This package probably is sun setting, consider to remove when stops
6780 ;; building, see: <https://github.com/frejanordsiek/hdf5storage/issues/136>.
6781 (let ((commit "7ee2a96de134b44beaa79c3a11c559f9ac87c5a6")
6782 (revision "0"))
6783 (package
6784 (name "python-hdf5storage")
6785 (version (git-version "0.1.19" revision commit))
6786 (source
6787 (origin
6788 (method git-fetch)
6789 (uri (git-reference
6790 (url "https://github.com/frejanordsiek/hdf5storage")
6791 (commit commit)))
6792 (file-name (git-file-name name version))
6793 (sha256
6794 (base32 "0xq0rg8vwk35yc3jvv2fyf7bl189viq0fywch53g57hxrahv5k02"))))
6795 (build-system pyproject-build-system)
6796 (arguments
6797 ;; Started failing with the move to [email protected], due to modules changes.
6798 (list
6799 #:test-flags
6800 #~(list "--ignore=tests/test_marshallers_requiring_modules.py")))
6801 (native-inputs
6802 (list python-pytest
6803 python-setuptools))
6804 (propagated-inputs
6805 (list python-h5py
6806 python-numpy-1))
6807 (home-page "https://github.com/frejanordsiek/hdf5storage")
6808 (synopsis "Read and write Python data types from and to HDF5 files")
6809 (description
6810 "This Python package provides high-level utilities to read and write a
6811variety of Python types from and to @acronym{HDF5, Hierarchical Data Format}
6812formatted files. This package also provides support for MATLAB MAT v7.3
6813formatted files, which are HDF5 files with a different extension and some
6814extra metadata. Because HDF5 and MAT files might need to be read from
6815untrusted sources, pickling is avoided in this package.")
6816 (license license:bsd-2))))
6817
6818(define-public python-prctl
6819 (package
6820 (name "python-prctl")
6821 (version "1.8.1")
6822 (source (origin
6823 (method url-fetch)
6824 (uri (pypi-uri "python-prctl" version))
6825 (sha256
6826 (base32
6827 "1kk7gv582w72spnz6agr0pz0hlpgchp3l7zxzzjarwfllwjrmjml"))))
6828 (build-system pyproject-build-system)
6829 (arguments
6830 (list #:test-backend ''custom
6831 #:test-flags ''("test_prctl.py")
6832 #:phases
6833 #~(modify-phases %standard-phases
6834 (add-after 'unpack 'patch-tests
6835 (lambda _
6836 (substitute* "test_prctl.py"
6837 ;; actual suffix used in cpython build output dir name
6838 (("sys.version\\[0:3\\]") "sys.implementation.cache_tag")
6839 ;; test_no_new_privs assumes existence of /bin/ping, but
6840 ;; can never run anyway due to it requiring setuid ping.
6841 ;; just short circuit it instead.
6842 (("os.stat\\('/bin/ping'\\)\\.st_mode") "0")))))))
6843 (inputs (list libcap))
6844 (native-inputs (list python-setuptools))
6845 (supported-systems (filter target-linux? %supported-systems))
6846 (home-page "https://pythonhosted.org/python-prctl")
6847 (synopsis "Linux capabilities library")
6848 (description "This package provides a Python library for controlling Linux
6849capabilities and attributes, similar to the prctl syscall.")
6850 (license license:gpl3+)))
6851
6852(define-public python-pyhimitsu
6853 (package
6854 (name "python-pyhimitsu")
6855 (version "0.0.9")
6856 (source (origin
6857 (method url-fetch)
6858 (uri (pypi-uri "py_himitsu" version))
6859 (sha256
6860 (base32
6861 "1kljxhjvfy945zij8fif3s6xzgcyslxz99mv460iy0anzj433pj5"))))
6862 (build-system pyproject-build-system)
6863 (arguments
6864 (list
6865 #:phases
6866 #~(modify-phases %standard-phases
6867 (replace 'check
6868 (lambda _
6869 ;; (setenv "PYTHONPATH" (getenv "GUIX_PYTHONPATH"))
6870 (invoke "make" "check"))))))
6871 (native-inputs (list python-hatchling))
6872 (propagated-inputs (list python-pyxdg))
6873 (home-page "https://git.sr.ht/~apreiml/py-himitsu")
6874 (synopsis "Himitsu client protocol implementation in Python")
6875 (description "This package provides a library for writing Himitsu client
6876programs in Python.")
6877 (license license:expat)))
6878
6879(define-public python-hjson
6880 ;; Using commit from master branch as the PyPI version does not contain
6881 ;; the hjson/tests/ directory.
6882 (let ((revision "0")
6883 (commit "1687b811fcbbc54b5ac71cfbaa99f805e406fbcb"))
6884 (package
6885 (name "python-hjson")
6886 (version (git-version "3.1.0" revision commit))
6887 (source (origin
6888 (method git-fetch)
6889 (uri (git-reference
6890 (url "https://github.com/hjson/hjson-py")
6891 (commit commit)))
6892 (file-name (git-file-name name version))
6893 (sha256
6894 (base32
6895 "1qfqnhvfx5mm7bdajjnnagmvns1zxyksjzh3k5la2ag6a8bp5gki"))
6896 (modules '((guix build utils)))
6897 ;; collections.OrderedDict.__repr__ changed in Python 3.12,
6898 ;; see also <https://github.com/hjson/hjson-py/issues/40>.
6899 (snippet #~(substitute* "hjson/__init__.py"
6900 (("\\[\\('foo', 'a'\\), \\('bar', 1\\)\\]")
6901 "{'foo': 'a', 'bar': 1}")))))
6902 (build-system pyproject-build-system)
6903 (native-inputs (list python-setuptools python-wheel))
6904 (home-page "https://github.com/hjson/hjson-py")
6905 (synopsis "Python package to parse HJSON documents")
6906 (description "This package provides a Python library and a command-line
6907interface utility to parse @url{https://hjson.github.io/, HJSON}) documents.")
6908 (license license:expat))))
6909
6910(define-public python-hnswlib
6911 (package
6912 (name "python-hnswlib")
6913 (version "0.8.0")
6914 (source
6915 (origin
6916 (method git-fetch)
6917 (uri (git-reference
6918 (url "https://github.com/nmslib/hnswlib")
6919 (commit (string-append "v" version))))
6920 (file-name (git-file-name name version))
6921 (sha256
6922 (base32 "0l5ry8c1qkck8w5acdl4k3acs9qfxiq0lc7f50x8vz53imgh1afl"))))
6923 (build-system pyproject-build-system)
6924 (arguments
6925 (list
6926 #:phases
6927 #~(modify-phases %standard-phases
6928 (add-after 'unpack 'disable-native-optimization
6929 (lambda _
6930 (substitute* "setup.py"
6931 ((", '-march=native'")
6932 "")))))))
6933 (native-inputs
6934 (list pybind11-2
6935 python-pytest
6936 python-setuptools))
6937 (propagated-inputs
6938 (list python-numpy))
6939 (home-page "https://github.com/nmslib/hnswlib")
6940 (synopsis "Fast approximate nearest neighbor search")
6941 (description "Hnswlib is a header-only C++ implementation of fast
6942approximate nearest neighbor search with Python bindings.")
6943 (license license:asl2.0)))
6944
6945(define-public python-pylatex
6946 (package
6947 (name "python-pylatex")
6948 (version "1.4.2")
6949 (source
6950 (origin
6951 (method git-fetch)
6952 (uri (git-reference
6953 (url "https://github.com/JelteF/PyLaTeX")
6954 (commit (string-append "v" version))))
6955 (file-name (git-file-name name version))
6956 (sha256
6957 (base32 "1daciv5dx9nhiai8bz75bwfvnfv40dq118lfnhjw8kpvr0m7hrm6"))))
6958 (build-system pyproject-build-system)
6959 (arguments
6960 (list #:phases
6961 #~(modify-phases %standard-phases
6962 ;; some tests attempt to create directories
6963 (add-before 'check 'set-home-directory
6964 (lambda _
6965 (setenv "HOME" "/tmp"))))))
6966 (propagated-inputs (list python-ordered-set))
6967 (native-inputs (list python-matplotlib
6968 python-pytest
6969 python-quantities
6970 python-setuptools
6971 (texlive-local-tree
6972 (list texlive-lastpage
6973 texlive-latexmk
6974 texlive-parskip))))
6975 (home-page "https://github.com/JelteF/PyLaTeX")
6976 (synopsis "Library for creating LaTeX files and snippets")
6977 (description
6978 "This package provides a Python library for creating LaTeX files and
6979snippets.")
6980 (license license:expat)))
6981
6982(define-public python-pylatexenc
6983 (package
6984 (name "python-pylatexenc")
6985 (version "2.10")
6986 (source
6987 (origin
6988 (method url-fetch)
6989 (uri (pypi-uri "pylatexenc" version))
6990 (sha256
6991 (base32 "1ls09z47b5md71gkxcj7fd87ynpvv2walgp2w6z31p26xf2gvn1x"))))
6992 (build-system pyproject-build-system)
6993 (native-inputs (list python-pytest python-setuptools python-wheel))
6994 (home-page "https://github.com/phfaist/pylatexenc")
6995 (synopsis "LaTeX parser for Unicode/LaTeX conversion")
6996 (description
6997 "@code{python-pylatexenc} is a LaTeX parser providing LaTeX-to-Unicode and
6998Unicode-to-LaTeX conversion.")
6999 (license license:expat)))
7000
7001(define-public python-lsp-black
7002 (package
7003 (name "python-lsp-black")
7004 (version "2.0.0")
7005 (source
7006 (origin
7007 (method git-fetch)
7008 (uri (git-reference
7009 (url "https://github.com/python-lsp/python-lsp-black")
7010 (commit (string-append "v" version))))
7011 (file-name (git-file-name name version))
7012 (sha256
7013 (base32 "0ilh6nx15kzrp29nkrpx03vx6dw3n7wq65qwv7bg7kcnyiwacplx"))))
7014 (build-system pyproject-build-system)
7015 (arguments
7016 ;; The python version is too old for these tests to pass properly.
7017 (list #:test-flags
7018 `'("-k" ,(string-append
7019 "not test_pylsp_format_document_syntax_error"
7020 " and not test_pylsp_format_range_syntax_error"
7021 " and not test_load_config_defaults"
7022 " and not test_load_config_with_skip_options"))))
7023 (propagated-inputs
7024 (list python-black python-lsp-server python-tomli))
7025 (native-inputs
7026 (list python-pytest python-setuptools python-wheel))
7027 (home-page "https://github.com/python-lsp/python-lsp-black")
7028 (synopsis "Black plugin for the Python LSP Server")
7029 (description "This package provides a plugin with support for the
7030@code{python-black} formatter for the Python LSP Server.")
7031 (license license:expat)))
7032
7033(define-public python-pylsp-mypy
7034 (package
7035 (name "python-pylsp-mypy")
7036 (version "0.7.1")
7037 (source
7038 (origin
7039 ;; "The newest version on PyPI is indeed not published on GitHub."
7040 ;; See <https://github.com/python-lsp/pylsp-mypy/issues/113>.
7041 (method url-fetch)
7042 (uri (pypi-uri "pylsp_mypy" version))
7043 (sha256
7044 (base32 "0rmp8bi599g76nmrraiagln9alz9r9ly760kkxbh4vw1yyssjra4"))))
7045 (build-system pyproject-build-system)
7046 (native-inputs (list python-pytest python-setuptools))
7047 (propagated-inputs (list python-mypy python-lsp-server))
7048 (home-page "https://github.com/python-lsp/pylsp-mypy")
7049 (synopsis "Mypy linter for the Python LSP Server")
7050 (description
7051 "Mypy linter integration for use with @code{python-lsp-server}.")
7052 (license license:expat)))
7053
7054(define-public python-sh
7055 (package
7056 (name "python-sh")
7057 (version "2.4.0")
7058 (source
7059 (origin
7060 (method url-fetch)
7061 (uri (pypi-uri "sh" version))
7062 (sha256
7063 (base32
7064 "1ngzjpavdxbyf79r9fh7c7icpmbwcjq907cski0r7v89hpvawl52"))))
7065 (build-system pyproject-build-system)
7066 (arguments
7067 (list
7068 #:test-flags
7069 #~(list "-k" (string-join
7070 ;; These tests are shaky.
7071 (list "not test_bad_sig_raise_exception"
7072 "test_doesnt_execute_directories"
7073 "test_environment"
7074 "test_ok_code_ignores_bad_sig_exception"
7075 "test_unicode_path")
7076 " and not ")
7077 "tests")
7078 #:phases
7079 #~(modify-phases %standard-phases
7080 (add-before 'check 'pre-check
7081 (lambda _
7082 (setenv "HOME" "/tmp"))))))
7083 (native-inputs
7084 (list python-hatchling python-pytest))
7085 (home-page "https://github.com/amoffat/sh")
7086 (synopsis "Python subprocess replacement")
7087 (description "This package provides a replacement for Python's
7088@code{subprocess} feature.")
7089 (license license:expat)))
7090
7091;; Old version just for python-dotenv-0.13.0 for docker-compose; remove once
7092;; that is updated.
7093(define-public python-sh-1
7094 (package
7095 (inherit python-sh)
7096 (version "1.14.2")
7097 (source
7098 (origin
7099 (method url-fetch)
7100 (uri (pypi-uri "sh" version))
7101 (sha256
7102 (base32
7103 "03gyss1rhj4in7pgysg4q0hxp3230whinlpy1532ljs99lrx0ywx"))))
7104 (arguments
7105 '(#:phases
7106 (modify-phases %standard-phases
7107 (replace 'check
7108 (lambda _
7109 ;; XXX: A Python 2 test fails when HOME=/homeless-shelter.
7110 (setenv "HOME" "/tmp")
7111 (invoke "python" "sh.py" "test"))))))
7112 (native-inputs
7113 (list python-setuptools))))
7114
7115(define-public python-cftime
7116 (package
7117 (name "python-cftime")
7118 (version "1.6.5")
7119 (source
7120 (origin
7121 (method url-fetch)
7122 (uri (pypi-uri "cftime" version))
7123 (sha256
7124 (base32 "07p8s5a0xacn404x6l0i04q1gz2h0h9m5azbhdvbhgxlp7bgw9c2"))))
7125 (build-system pyproject-build-system)
7126 (propagated-inputs
7127 (list python-numpy))
7128 (native-inputs
7129 (list python-cython
7130 python-pytest
7131 python-setuptools
7132 python-wheel))
7133 (home-page "https://unidata.github.io/cftime/")
7134 (synopsis "Library for time handling")
7135 (description
7136 "This package provides time-handling functionality that used to be part
7137of the netcdf4 package before.")
7138 (license license:expat)))
7139
7140(define-public python-netcdf4
7141 ;; TODO: Move to (gnu packages python-science).
7142 (package
7143 (name "python-netcdf4")
7144 (version "1.7.4")
7145 (source
7146 (origin
7147 (method git-fetch)
7148 (uri (git-reference
7149 (url "https://github.com/Unidata/netcdf4-python")
7150 (commit (string-append "v" version "rel"))))
7151 (file-name (git-file-name name version))
7152 (sha256
7153 (base32 "0lmapnqc4rivv0nggm8865xpni1gbcg6dc7khf5r0p16jk8gv41c"))))
7154 (build-system pyproject-build-system)
7155 (arguments
7156 (list
7157 ;; tests: Ran 115 tests
7158 #:phases
7159 #~(modify-phases %standard-phases
7160 (add-before 'build 'set-configure-flags
7161 (lambda _
7162 (setenv "HDF5_DIR" #$(this-package-input "hdf5-parallel-openmpi"))
7163 (setenv "JPEG_DIR" #$(this-package-input "libjpeg-turbo"))
7164 (setenv "NETCDF4_DIR" #$(this-package-input "netcdf"))
7165 (setenv "USE_NCCONFIG" "0")))
7166 (replace 'check
7167 (lambda* (#:key tests? #:allow-other-keys)
7168 (when tests?
7169 (with-directory-excursion "test"
7170 (setenv "NO_NET" "1")
7171 (setenv "NO_CDL" "1")
7172 (invoke "python" "run_all.py"))))))))
7173 (native-inputs
7174 (list python-cython
7175 python-packaging
7176 python-pytest
7177 python-setuptools
7178 python-setuptools-scm
7179 python-typing-extensions))
7180 (inputs
7181 ;; After python-h5py was built with MPI support it can't be used together
7182 ;; with hdf5 and netcdf built without MPI support tests and load may
7183 ;; brake when python-netcdf4 and python-h5py are used together.
7184 (list netcdf-parallel-openmpi
7185 hdf5-parallel-openmpi
7186 zlib))
7187 (propagated-inputs
7188 (list python-certifi
7189 python-cftime
7190 python-mpi4py
7191 python-numpy))
7192 (home-page "https://github.com/Unidata/netcdf4-python")
7193 (synopsis "Python/numpy interface to the netCDF library")
7194 (description "Netcdf4-python is a Python interface to the netCDF C
7195library. netCDF version 4 has many features not found in earlier
7196versions of the library and is implemented on top of HDF5. This module
7197can read and write files in both the new netCDF 4 and the old netCDF 3
7198format, and can create files that are readable by HDF5 clients. The
7199API is modelled after @code{Scientific.IO.NetCDF}, and should be familiar
7200to users of that module.")
7201 ;; The software is mainly ISC, but includes some files covered
7202 ;; by the Expat license.
7203 (license (list license:isc license:expat))))
7204
7205(define-public python-ncclient
7206 (package
7207 (name "python-ncclient")
7208 (version "0.6.19")
7209 (source
7210 (origin
7211 (method git-fetch) ;no tests in PyPI release
7212 (uri (git-reference
7213 (url "https://github.com/ncclient/ncclient")
7214 (commit (string-append "v" version))))
7215 (file-name (git-file-name name version))
7216 (sha256
7217 (base32
7218 "0nmyj59k9zbdfhm7qhrq9gd4x6vhjdf18q1kwfgb2gwcb3b8nd2h"))))
7219 (build-system pyproject-build-system)
7220 (native-inputs
7221 (list python-pytest
7222 python-setuptools
7223 python-wheel))
7224 (propagated-inputs
7225 (list python-lxml
7226 python-paramiko))
7227 (home-page "https://github.com/ncclient/ncclient")
7228 (synopsis "Python library for NETCONF clients")
7229 (description "@code{ncclient} is a Python library that facilitates
7230client-side scripting and application development around the NETCONF
7231protocol.")
7232 (license license:asl2.0)))
7233
7234(define-public python-ncls
7235 (package
7236 (name "python-ncls")
7237 (version "0.0.68")
7238 (source (origin
7239 (method url-fetch)
7240 (uri (pypi-uri "ncls" version))
7241 (sha256
7242 (base32
7243 "14xsnzr34xa4rwfcdjry9aqjs8i03s9fzy6jgrwj3fr3n6msbal1"))))
7244 (build-system pyproject-build-system)
7245 (arguments
7246 ;; Those tests fail with warnings (not errors) for the Numpy update.
7247 ;; Remove it at next python-team iteration.
7248 (list #:test-flags ''("--ignore=examples/test_all_overlaps_both.py"
7249 "--ignore=examples/test_find_overlap_list.py")))
7250 (native-inputs (list python-cython
7251 python-pandas
7252 python-pytest
7253 python-setuptools
7254 python-wheel))
7255 (propagated-inputs (list python-numpy))
7256 (home-page "https://github.com/endrebak/ncls")
7257 (synopsis "Nested containment list data structure")
7258 (description
7259 "This package provides a wrapper for the nested containment list data
7260structure. It is a static interval-tree that is fast for both construction
7261and lookups.")
7262 (license license:bsd-3)))
7263
7264(define-public python-license-expression
7265 (package
7266 (name "python-license-expression")
7267 (version "30.1.0")
7268 (source
7269 (origin
7270 (method url-fetch)
7271 (uri (pypi-uri "license-expression" version))
7272 (sha256
7273 (base32 "0lvshl2fhwa568d3y3vmx45hdp8gk5w9yl3b2q5d66r5vqn1sfwl"))))
7274 (build-system pyproject-build-system)
7275 (native-inputs
7276 (list python-setuptools-scm python-pytest python-setuptools python-wheel))
7277 (propagated-inputs
7278 (list python-boolean.py))
7279 (home-page "https://github.com/nexB/license-expression")
7280 (synopsis "Apply boolean logic to license expressions")
7281 (description
7282 "This Python module defines a tiny language to evaluate and compare
7283license expressions using boolean logic. Logical combinations of licenses can
7284be tested for equality, containment, and equivalence. They can be normalised
7285and simplified. It supports SPDX license expressions as well as other naming
7286conventions and aliases in the same expression.")
7287 (license license:gpl2+)))
7288
7289(define-public python-limits
7290 (package
7291 (name "python-limits")
7292 (version "5.8.0")
7293 (source
7294 (origin
7295 (method git-fetch)
7296 (uri (git-reference
7297 (url "https://github.com/alisaifee/limits")
7298 (commit version)))
7299 (file-name (git-file-name name version))
7300 (sha256
7301 (base32 "1b1p6vpdwkzf89jl03xm56f3jp4dhkz89r63gx51b89ph1lcpi85"))))
7302 (build-system pyproject-build-system)
7303 (arguments
7304 (list
7305 ;; tests: 155 passed, 620 deselected
7306 #:test-flags
7307 #~(list
7308 ;; The test suite spawns storages in Docker.
7309 "-k" (simple-format #f "not (~a)"
7310 (string-join
7311 '("lazy_dependency" ;importing redis
7312 "memcache"
7313 "mongo"
7314 "redis"
7315 "valkey")
7316 " or "))
7317 "--ignore=tests/benchmarks")
7318 #:phases
7319 #~(modify-phases %standard-phases
7320 (add-before 'check 'adjust-tests
7321 (lambda _
7322 (substitute* "pytest.ini"
7323 ((".*--cov=.*") "")
7324 ((".*-K.*") ""))
7325 (substitute* (find-files "tests" "\\.py$")
7326 (("import pymemcache.*") "")
7327 (("import pymongo.*") "")
7328 (("import redis.*") "")
7329 (("import valkey.*") "")
7330 ;; Lazy fixtures are only used for storages.
7331 (("from pytest_lazy_fixtures import lf.*") "")
7332 (("lf\\((.+)\\)" all fixture) fixture))
7333 (substitute* "tests/test_storage.py"
7334 (("\\<redis\\>\\..*\\(.*\\)") "")))))))
7335 (propagated-inputs (list python-deprecated python-packaging))
7336 (native-inputs
7337 (list python-flaky
7338 python-hatch-vcs
7339 python-hatchling
7340 python-pytest
7341 python-pytest-asyncio))
7342 (home-page "https://limits.readthedocs.io/")
7343 (synopsis "Rate limiting utilities")
7344 (description
7345 "This package provides a Python library to perform rate limiting with
7346commonly used storage backends.")
7347 (license license:expat)))
7348
7349(define-public python-fb-re2
7350 (package
7351 (name "python-fb-re2")
7352 (version "1.0.7")
7353 (source
7354 (origin
7355 (method git-fetch)
7356 (uri (git-reference
7357 (url "https://github.com/facebook/pyre2")
7358 (commit (string-append "v" version))))
7359 (file-name (git-file-name name version))
7360 (sha256
7361 (base32
7362 "0snprxdnh3m45r3b0az4v0l28h90ycmfbybzla6xg1qviwv9w1ak"))))
7363 (build-system pyproject-build-system)
7364 (arguments
7365 (list
7366 #:phases
7367 #~(modify-phases %standard-phases
7368 (add-after 'unpack 'fix-tests
7369 (lambda _
7370 (substitute* "tests/test_match.py"
7371 (("assertRaisesRegexp")
7372 "assertRaisesRegex")))))))
7373 (native-inputs
7374 (list python-pytest python-setuptools))
7375 (inputs
7376 (list re2))
7377 (home-page "https://github.com/facebook/pyre2")
7378 (synopsis "Python wrapper for RE2")
7379 (description "This package provides a Python extension that wraps Google's
7380RE2 regular expression library. It implements many of the features of
7381Python's built-in @code{re} module with compatible interfaces.")
7382 (license license:bsd-3)))
7383
7384(define-public python-filelock
7385 ;; Try to update simultaneously with the bootstrap version in
7386 ;; (gnu packages python-build).
7387 (package
7388 (name "python-filelock")
7389 (version "3.16.1")
7390 (source
7391 (origin
7392 (method url-fetch)
7393 (uri (pypi-uri "filelock" version))
7394 (sha256
7395 (base32
7396 "0d8ljvmsfgriiqf5dqii91gfcpj7cpjrh8fnsvifaiyvspygnjf2"))))
7397 (build-system pyproject-build-system)
7398 (arguments
7399 (list
7400 ;; Break cycle with virtualenv.
7401 #:test-flags #~(list "--ignore=tests/test_virtualenv.py")))
7402 (native-inputs
7403 (list python-hatch-vcs
7404 python-hatchling
7405 python-pytest
7406 python-pytest-asyncio
7407 python-pytest-mock
7408 python-setuptools-scm))
7409 (home-page "https://github.com/tox-dev/py-filelock")
7410 (synopsis "Platform independent file lock")
7411 (description "@code{filelock} contains a single module implementing
7412a platform independent file lock in Python, which provides a simple way of
7413inter-process communication.")
7414 (license license:unlicense)))
7415
7416(define-public python-filelock-next
7417 (package
7418 (inherit python-filelock)
7419 (name "python-filelock")
7420 (version "3.20.0")
7421 (source
7422 (origin
7423 (method url-fetch)
7424 (uri (pypi-uri "filelock" version))
7425 (sha256
7426 (base32 "1x0k9hrk8gr91hfb6ss6cwlq4p0pvi40nsg6skhl5gn69qxr87ki"))))
7427 (native-inputs
7428 (list python-hatch-vcs
7429 python-hatchling
7430 python-pytest
7431 python-pytest-asyncio
7432 python-pytest-mock
7433 python-pytest-timeout))))
7434
7435(define-public python-seedir
7436 (package
7437 (name "python-seedir")
7438 (version "0.5.0")
7439 (source
7440 (origin
7441 (method url-fetch)
7442 (uri (pypi-uri "seedir" version))
7443 (sha256
7444 (base32 "1ibgzji9ijm37vgwmg37s2hsqmpqd793z4q41w816x5m6nahzy76"))))
7445 (build-system pyproject-build-system)
7446 (propagated-inputs (list python-natsort))
7447 (native-inputs (list python-pytest python-setuptools python-wheel))
7448 (home-page "https://github.com/earnestt1234/seedir")
7449 (synopsis
7450 "Package for creating, editing, and reading folder tree diagrams.")
7451 (description
7452 "This is a package for creating, editing, and reading folder tree
7453diagrams.")
7454 (license license:expat)))
7455
7456(define-public python-semantic-version
7457 (package
7458 (name "python-semantic-version")
7459 (version "2.10.0")
7460 (source
7461 (origin
7462 (method url-fetch)
7463 (uri (pypi-uri "semantic_version" version))
7464 (sha256
7465 (base32 "0704smz9k6hdd6i5xh0xf0sk47kannjb77abilvvp34r6v9vdaxx"))))
7466 (build-system pyproject-build-system)
7467 (arguments (list #:test-backend #~'nose2))
7468 (native-inputs
7469 (list python-nose2
7470 python-setuptools))
7471 (home-page "https://github.com/rbarrois/python-semanticversion")
7472 (synopsis "Semantic versioning module for Python")
7473 (description
7474 "The @code{semantic_version} class is a small library for handling
7475@uref{https://semver.org/, semantic versioning} (@dfn{SemVer}) in Python.
7476
7477It can compare versions, generate a new version that represents a bump in one
7478of the version levels, and check whether any given string is a proper semantic
7479version identifier.")
7480 (license license:bsd-3)))
7481
7482(define-public python-serpent
7483 (package
7484 (name "python-serpent")
7485 (version "1.41")
7486 (source
7487 (origin
7488 (method git-fetch)
7489 (uri (git-reference
7490 (url "https://github.com/irmen/Serpent")
7491 (commit (string-append "serpent-" version))))
7492 (file-name (git-file-name name version))
7493 (sha256
7494 (base32 "081bm13pdxp3rxis24j2mjka06fzi4kap51wmnf21q69fsikbza8"))))
7495 (build-system pyproject-build-system)
7496 (arguments (list #:test-backend #~'unittest
7497 #:test-flags #~(list "discover" "-s" "tests")))
7498 (native-inputs
7499 (list python-attrs python-pytz python-setuptools))
7500 (home-page "https://github.com/irmen/Serpent")
7501 (synopsis "Serializer for literal Python expressions")
7502 (description
7503 "Serpent provides @code{ast.literal_eval()}-compatible object tree
7504serialization. It serializes an object tree into bytes (an utf-8 encoded
7505string) that can be decoded and then passed as-is to @code{ast.literal_eval()}
7506to rebuild the original object tree.
7507
7508Because only safe literals are encoded, it is safe to send serpent data to
7509other machines, such as over the network.")
7510 (license license:expat)))
7511
7512(define-public python-setuptools-declarative-requirements
7513 (package
7514 (name "python-setuptools-declarative-requirements")
7515 (version "1.3.0")
7516 (source
7517 (origin
7518 (method url-fetch)
7519 (uri (pypi-uri "setuptools-declarative-requirements" version))
7520 (sha256
7521 (base32 "1xwqp37ii9kql49agmkipawjbndwxg6y8sxax1wc4l6kkaxvk9ap"))))
7522 (build-system pyproject-build-system)
7523 (arguments
7524 (list #:tests? #f)) ;require dated inputs
7525 (native-inputs
7526 (list python-setuptools-scm))
7527 (propagated-inputs
7528 (list python-setuptools))
7529 (home-page "https://github.com/s0undt3ch/setuptools-declarative-requirements")
7530 (synopsis "File support for setuptools declarative setup.cfg")
7531 (description
7532 "This package provides file support for setuptools declarative
7533@code{setup.cfg}.")
7534 (license license:asl2.0)))
7535
7536(define-public python-humanfriendly
7537 (package
7538 (name "python-humanfriendly")
7539 (version "10.0")
7540 (source
7541 (origin
7542 (method git-fetch)
7543 (uri (git-reference
7544 (url "https://github.com/xolox/python-humanfriendly")
7545 (commit version)))
7546 (file-name (git-file-name name version))
7547 (sha256
7548 (base32 "07di334y2xbyl9bd2c9q55sm0llmvz80a4p7frlkvq2w6l2d47bv"))))
7549 (build-system pyproject-build-system)
7550 (arguments
7551 (list
7552 ;XXX: Tests depend on coloredlogs, which in turn depends on humanfriendly.
7553 #:tests? #f))
7554 (native-inputs (list python-setuptools))
7555 (home-page "https://humanfriendly.readthedocs.io")
7556 (synopsis "Human-friendly input and output in Python")
7557 (description
7558 "The functions and classes in @code{humanfriendly} can be used to make
7559text interfaces more user-friendly. It includes tools to parse and format
7560numbers, file sizes, and timespans, timers for long-running operations, menus
7561to allow the user to choose from a list of options, and terminal interaction
7562helpers.")
7563 (license license:expat)))
7564
7565(define-public python-calver
7566 (package
7567 (name "python-calver")
7568 (version "2022.06.26")
7569 (source
7570 (origin
7571 (method git-fetch)
7572 (uri (git-reference
7573 (url "https://github.com/di/calver")
7574 (commit version)))
7575 (file-name (git-file-name name version))
7576 (sha256
7577 (base32 "14l9kv9igcmp5k6d2ahnx6z4dn6zy5kykz95hkh0rkqswn8x79b1"))))
7578 (build-system pyproject-build-system)
7579 (native-inputs
7580 (list python-pretend
7581 python-pytest
7582 python-setuptools
7583 python-wheel))
7584 (home-page "https://github.com/di/calver")
7585 (synopsis "Setuptools extension for CalVer package versions")
7586 (description
7587 "The calver package is a setuptools extension for automatically defining
7588your Python package version as a calendar version.")
7589 (license license:asl2.0)))
7590
7591(define-public python-can
7592 (package
7593 (name "python-can")
7594 (version "4.6.1")
7595 (source
7596 (origin
7597 (method git-fetch)
7598 (uri (git-reference
7599 (url "https://github.com/hardbyte/python-can")
7600 (commit (string-append "v" version))))
7601 (file-name (git-file-name name version))
7602 (sha256
7603 (base32 "0i89hzc9n1h8i63wa333ahh5j1xqxq9v4ymcx7mcsg6ygji5wllr"))))
7604 (build-system pyproject-build-system)
7605 (arguments
7606 (list
7607 #:test-flags
7608 #~(list
7609 ;; TODO: Check if it could be packed:
7610 ;; https://github.com/projectgus/python-canalystii
7611 ;;
7612 ;; Disable tests which require specific CAN drivers we have no
7613 ;; package for in Guix.
7614 "--ignore=test/test_interface_canalystii.py"
7615 ;; These tests fail with "OSError: [Errno 19] No such device".
7616 "-k" "not BasicTestUdpMulticastBusIPv")
7617 #:phases
7618 #~(modify-phases %standard-phases
7619 (add-after 'unpack 'relax-requirements
7620 (lambda _
7621 (substitute* "pyproject.toml"
7622 (("\"wrapt~=.*\"")
7623 "\"wrapt\"")))))))
7624 (propagated-inputs (list python-packaging python-wrapt))
7625 (native-inputs
7626 (list ;; python-canalystii ; Not packed yet
7627 python-hypothesis
7628 python-mock
7629 python-parameterized
7630 python-pyserial
7631 python-pytest
7632 python-pytest-timeout
7633 python-setuptools
7634 python-setuptools-scm))
7635 (home-page "https://github.com/hardbyte/python-can")
7636 (synopsis "Controller Area Network (CAN) interface module for Python")
7637 (description
7638 "This package defines the @code{can} module, which provides controller
7639area network (CAN) support for Python developers; providing common
7640abstractions to different hardware devices, and a suite of utilities for
7641sending and receiving messages on a CAN bus.")
7642 (license license:lgpl3+)))
7643
7644(define-public python-canmatrix
7645 (package
7646 (name "python-canmatrix")
7647 (version "1.2")
7648 (source
7649 (origin
7650 (method git-fetch) ; no tests data in PyPi package
7651 (uri (git-reference
7652 (url "https://github.com/ebroecker/canmatrix")
7653 (commit version)))
7654 (file-name (git-file-name name version))
7655 (sha256
7656 (base32 "05l0hi279y1dc8ifm2223lpn7z9dx2h7kk599bkymvasb2qa1xrx"))))
7657 (build-system pyproject-build-system)
7658 (native-inputs
7659 (list python-pytest
7660 python-pytest-timeout
7661 python-setuptools
7662 python-wheel))
7663 (propagated-inputs
7664 (list python-attrs
7665 python-canopen
7666 python-click
7667 ;; python-ldfparser
7668 python-lxml
7669 python-openpyxl
7670 python-pyyaml
7671 python-xlrd
7672 python-xlwt))
7673 (home-page "https://github.com/ebroecker/canmatrix")
7674 (synopsis "@acronym{CAN, Controller Area Network} matrices in Python")
7675 (description
7676 "This package implements a @acronym{CAN, Controller Area Network} matrix
7677object in Python which describes the CAN-communication and its needed objects
7678such as board units, frames, signals, and values. It also includes two
7679command-line tools (@command{canconvert} and @command{cancompare}) for
7680converting and comparing CAN databases.")
7681 (license license:bsd-2)))
7682
7683(define-public python-canopen
7684 (package
7685 (name "python-canopen")
7686 (version "2.4.1")
7687 (source
7688 (origin
7689 (method git-fetch)
7690 (uri (git-reference
7691 (url "https://github.com/canopen-python/canopen")
7692 (commit (string-append "v" version))))
7693 (file-name (git-file-name name version))
7694 (sha256
7695 (base32 "0vw6si83m4329p0k0q4b54gn1pindfzkmx6wxqy03bixd94bxw5y"))))
7696 (build-system pyproject-build-system)
7697 (native-inputs (list python-pytest python-setuptools))
7698 (propagated-inputs (list python-can))
7699 (home-page "https://github.com/canopen-python/canopen")
7700 (synopsis "CANopen stack implementation")
7701 (description
7702 "This package provides a Python implementation of the
7703@uref{https://www.can-cia.org/canopen/,CANopen standard} for
7704@acronym{CANs, controller-area networks}. The aim of the project is to
7705support the most common parts of the CiA 301 standard in a simple
7706Pythonic interface. It is mainly targeted for testing and automation
7707tasks rather than a standard compliant master implementation.")
7708 (license license:expat)))
7709
7710(define-public python-diskcache
7711 (package
7712 (name "python-diskcache")
7713 ;; 5.6.3 (2023-08-31), the latest commit has some comparability with
7714 ;; Django fixing failing tests.
7715 (properties '((commit . "ebfa37cd99d7ef716ec452ad8af4b4276a8e2233")
7716 (revision . "0")))
7717 (version (git-version "5.6.3"
7718 (assoc-ref properties 'revision)
7719 (assoc-ref properties 'commit)))
7720 (source
7721 (origin
7722 (method git-fetch)
7723 (uri (git-reference
7724 (url "https://github.com/grantjenks/python-diskcache")
7725 (commit (assoc-ref properties 'commit))))
7726 (file-name (git-file-name name version))
7727 (sha256
7728 (base32 "0i669n76hi8c4p6fl9hkm40gpi817bn27kxnfhcrsd60ynfgbrbc"))))
7729 (build-system pyproject-build-system)
7730 (arguments
7731 (list
7732 #:phases
7733 #~(modify-phases %standard-phases
7734 (add-after 'unpack 'fix-pytest-config
7735 (lambda _
7736 ;; Prevent full threads utilization.
7737 (substitute* "tox.ini"
7738 (("-n auto") "")))))))
7739 (native-inputs
7740 (list python-django
7741 python-pytest
7742 python-setuptools))
7743 (home-page "https://www.grantjenks.com/docs/diskcache/")
7744 (synopsis "Disk and file backed cache library")
7745 (description "DiskCache is a disk and file backed persistent cache.")
7746 (license license:asl2.0)))
7747
7748(define-public python-optparse-pretty
7749 (package
7750 (name "python-optparse-pretty")
7751 (version "0.1.1")
7752 (source
7753 (origin
7754 (method url-fetch)
7755 (uri (pypi-uri "optparse-pretty" version))
7756 (sha256
7757 (base32 "1920wbh2b7a8qn7zx2iiqbcdaax335l81a73x9pp8h11yzs2jdmh"))))
7758 (build-system pyproject-build-system)
7759 (arguments (list #:tests? #false)) ;There are none
7760 (native-inputs (list python-setuptools python-wheel))
7761 (home-page "https://github.com/gvalkov/optparse-pretty")
7762 (synopsis "Compact help formatter for optparse")
7763 (description
7764 "This module provides two help formatters for optparse. They provide
7765terser and more customizable option formatting in comparison to the default
7766help formatter.")
7767 (license license:bsd-3)))
7768
7769(define-public python-orjson
7770 (package
7771 (name "python-orjson")
7772 (version "3.9.7")
7773 (source (origin
7774 (method url-fetch)
7775 (uri (pypi-uri "orjson" version))
7776 (sha256
7777 (base32
7778 "0hh1j7akxgx1nvsnwx1p4f4h4pkgr7v9aqr99l2pwbwfyyc93qw5"))))
7779 (build-system cargo-build-system)
7780 (arguments
7781 (list
7782 #:imported-modules `(,@%cargo-build-system-modules
7783 ,@%pyproject-build-system-modules)
7784 #:modules '((guix build cargo-build-system)
7785 ((guix build pyproject-build-system) #:prefix py:)
7786 (guix build utils))
7787 #:phases
7788 #~(modify-phases %standard-phases
7789 (add-after 'build 'build-python-module
7790 (assoc-ref py:%standard-phases 'build))
7791 (add-after 'build-python-module 'install-python-module
7792 (assoc-ref py:%standard-phases 'install)))
7793 #:install-source? #false))
7794 (inputs
7795 (cons maturin (cargo-inputs 'python-orjson)))
7796 (native-inputs
7797 (list python-wrapper))
7798 (home-page "https://github.com/ijl/orjson")
7799 (synopsis "Python JSON library supporting dataclasses, datetimes, and numpy")
7800 (description "Orjson is a fast, correct JSON library for Python. It
7801benchmarks as the fastest Python library for JSON and is more correct than the
7802standard @code{json} library or other third-party libraries. It serializes
7803dataclass, datetime, numpy, and UUID instances natively.")
7804 ;; Either of these licenses
7805 (license (list license:asl2.0 license:expat))))
7806
7807(define-public python-overrides
7808 (package
7809 (name "python-overrides")
7810 (version "7.7.0")
7811 (source
7812 (origin
7813 (method url-fetch)
7814 (uri (pypi-uri "overrides" version))
7815 (sha256
7816 (base32 "02l2j5pnsxn0q5i63is5g6i3q06ri83nf7lv55swr61vv6iqy5am"))))
7817 (build-system pyproject-build-system)
7818 (native-inputs (list python-pytest python-setuptools python-wheel))
7819 (home-page "https://github.com/mkorpela/overrides")
7820 (synopsis "Decorator to detect mismatch when overriding a method")
7821 (description
7822 "This package provides a decorator to automatically detect mismatch when
7823overriding a method.")
7824 (license license:asl2.0)))
7825
7826(define-public python-argparse-addons
7827 (package
7828 (name "python-argparse-addons")
7829 (version "0.12.0")
7830 (source
7831 (origin
7832 (method url-fetch)
7833 (uri (pypi-uri "argparse_addons" version))
7834 (sha256
7835 (base32 "1bv0nh8147bhjrjdr0m2fnmhxnl6bdni68wd61v7x206szfa08k3"))))
7836 (build-system pyproject-build-system)
7837 (native-inputs
7838 (list python-pytest python-setuptools))
7839 (home-page "https://github.com/eerimoq/argparse_addons")
7840 (synopsis "Extensions for Python's @code{argparse} library")
7841 (description "This Python library provides additional types and actions
7842for the standard @code{argparse} library.")
7843 (license license:expat)))
7844
7845(define-public python-bitstruct
7846 (package
7847 (name "python-bitstruct")
7848 (version "8.21.0")
7849 (source
7850 (origin
7851 (method url-fetch)
7852 (uri (pypi-uri "bitstruct" version))
7853 (sha256
7854 (base32 "1b2836hjc2bvnbjngfk9n0995zm3lz65apq7irlgijj5iabf82zz"))))
7855 (build-system pyproject-build-system)
7856 (native-inputs
7857 (list python-pytest
7858 python-setuptools
7859 python-wheel))
7860 (home-page "https://github.com/eerimoq/bitstruct")
7861 (synopsis "Python values to and C bit field structs converter")
7862 (description
7863 "This module performs conversions between Python values and C bit field
7864structs represented as Python byte strings. It is intended to have a similar
7865interface as the @code{struct} module from Python, but working on bits instead
7866of primitive data types like @code{char}, @code{int}, etc.")
7867 (license license:expat)))
7868
7869(define-public python-cantools
7870 (package
7871 (name "python-cantools")
7872 (version "40.5.0")
7873 (source
7874 (origin
7875 (method git-fetch)
7876 (uri (git-reference
7877 (url "https://github.com/eerimoq/cantools")
7878 (commit version)))
7879 (file-name (git-file-name name version))
7880 (sha256
7881 (base32 "0ldqdsvkvy7vmplyiqcfqqwbh8v88ha98hgdrnlm09g4qbylh5d4"))))
7882 (build-system pyproject-build-system)
7883 (native-inputs
7884 (list python-freezegun
7885 python-parameterized
7886 python-pytest
7887 python-setuptools
7888 python-setuptools-scm))
7889 (propagated-inputs
7890 (list python-argparse-addons
7891 python-bitstruct
7892 python-can
7893 python-crccheck
7894 python-diskcache
7895 python-matplotlib
7896 python-textparser))
7897 (home-page "https://github.com/eerimoq/cantools")
7898 (synopsis "Tools for the Controller Area Network (CAN) bus protocol")
7899 (description
7900 "This package includes Controller Area Network (CAN) related tools that
7901can be used to:
7902@itemize
7903@item parse DBC, KCD, SYM, ARXML 4 and CDD files
7904@item encode and decode CAN messages
7905@item multiplex simple and extended signals
7906@item diagnose DID encoding and decoding
7907@item dump the CAN decoder output
7908@item test CAN nodes
7909@item generate C source code
7910@item monitor the CAN bus
7911@end itemize")
7912 (license license:expat)))
7913
7914(define-public python-capturer
7915 (package
7916 (name "python-capturer")
7917 (version "3.0")
7918 (source
7919 (origin
7920 (method git-fetch)
7921 (uri (git-reference
7922 (url "https://github.com/xolox/python-capturer")
7923 (commit version)))
7924 (file-name (git-file-name name version))
7925 (sha256
7926 (base32 "0fwrxa049gzin5dck7fvwhdp1856jrn0d7mcjcjsd7ndqvhgvjj1"))))
7927 (build-system pyproject-build-system)
7928 (native-inputs (list python-pytest python-setuptools))
7929 (propagated-inputs (list python-humanfriendly))
7930 (home-page "https://capturer.readthedocs.io")
7931 (synopsis "Capture stdout and stderr streams of the current process")
7932 (description
7933 "The capturer package makes it easy to capture the stdout and stderr
7934streams of the current process and subprocesses. Output can be relayed
7935to the terminal in real time but is also available to the Python program
7936for additional processing.")
7937 (license license:expat)))
7938
7939(define-public python-fastprogress
7940 (package
7941 (name "python-fastprogress")
7942 (version "1.0.3")
7943 (source (origin
7944 (method git-fetch)
7945 (uri (git-reference
7946 (url "https://github.com/fastai/fastprogress")
7947 (commit version)))
7948 (file-name (git-file-name name version))
7949 (sha256
7950 (base32
7951 "01h8f786wgmmd3fj98wk1n5id67nsp19gs8bbgims04aciwhvj21"))))
7952 (build-system pyproject-build-system)
7953 (arguments
7954 (list #:tests? #f ;there are no tests
7955 #:phases #~(modify-phases %standard-phases
7956 ;; XXX: Fails with: "In procedure utime: No such file
7957 ;; or directory".
7958 (delete 'ensure-no-mtimes-pre-1980))))
7959 (native-inputs (list python-setuptools python-wheel))
7960 (home-page "https://github.com/fastai/fastprogress")
7961 (synopsis "Progress bar for Jupyter Notebook and console")
7962 (description
7963 "Fastprogress is a progress bar for Jupyter Notebook and console.")
7964 (license license:asl2.0)))
7965
7966(define-public python-coloredlogs
7967 (package
7968 (name "python-coloredlogs")
7969 (version "15.0.1")
7970 (source
7971 (origin
7972 (method git-fetch)
7973 (uri (git-reference
7974 (url "https://github.com/xolox/python-coloredlogs")
7975 (commit version)))
7976 (file-name (git-file-name name version))
7977 (sha256
7978 (base32 "1c83h3cvd2qww2m9myxrnqh0lr9fllx8zfb26f64lcvwd3cli1sf"))))
7979 (build-system pyproject-build-system)
7980 (arguments
7981 (list
7982 #:test-flags
7983 #~(list "-k"
7984 (string-join
7985 (list "not test_auto_install" ; Unclear why this fails.
7986 ;; XXX: Require a "script" executable.
7987 "test_cli_conversion"
7988 "test_empty_conversion"
7989 "test_output_interception")
7990 " and not "))))
7991 (native-inputs (list python-pytest python-setuptools python-verboselogs))
7992 (propagated-inputs (list python-capturer))
7993 (home-page "https://coloredlogs.readthedocs.io")
7994 (synopsis "Colored stream handler for Python's logging module")
7995 (description
7996 "The @code{coloredlogs} package enables colored terminal output for
7997Python's logging module. The @code{ColoredFormatter} class inherits from
7998@code{logging.Formatter} and uses ANSI escape sequences to render your logging
7999messages in color.")
8000 (license license:expat)))
8001
8002(define-public python-editorconfig
8003 (package
8004 (name "python-editorconfig")
8005 (version "0.17.1")
8006 (source
8007 (origin
8008 (method git-fetch)
8009 (uri (git-reference
8010 (url "https://github.com/editorconfig/editorconfig-core-py")
8011 (commit (string-append "v" version))
8012 (recursive? #t)))
8013 (file-name (git-file-name name version))
8014 (sha256
8015 (base32 "107lh5pds1iwgb2q1da2k7g5vs6w0rk84679k6yi8a01agc1c0fz"))))
8016 (build-system pyproject-build-system)
8017 (arguments
8018 (list
8019 #:phases
8020 #~(modify-phases %standard-phases
8021 (replace 'check
8022 (lambda _
8023 (setenv "PYTHONPATH" (getenv "GUIX_PYTHONPATH"))
8024 (invoke "cmake" ".")
8025 (invoke "ctest" "."))))))
8026 (native-inputs (list cmake python-setuptools python-wheel))
8027 (home-page "https://editorconfig.org/")
8028 (synopsis "EditorConfig bindings for python")
8029 (description "The EditorConfig project consists of a file format for
8030defining coding styles and a collection of text editor plugins that enable
8031editors to read the file format and adhere to defined styles. EditorConfig
8032files are easily readable and they work nicely with version control systems.")
8033 ;; "fnmatch.py" and "ini.py" are licensed under psfl, the rest is bsd-2.
8034 (license (list license:bsd-2 license:psfl))))
8035
8036(define-public dosage
8037 (package
8038 (name "dosage")
8039 (version "3.3")
8040 (source
8041 (origin
8042 (method git-fetch)
8043 (uri (git-reference
8044 (url "https://github.com/webcomics/dosage")
8045 (commit version)))
8046 (file-name (git-file-name name version))
8047 (sha256
8048 (base32 "1111hs9f9k0w303vgidlxdngbfp71x6fnc5lfb62jc5kw2sgfn6z"))))
8049 (build-system pyproject-build-system)
8050 (arguments
8051 ;; It requires additional modules for integration tests.
8052 (list #:test-flags #~(list "--ignore=tests/modules/")))
8053 (native-inputs
8054 (list python-pytest
8055 python-responses
8056 python-setuptools
8057 python-setuptools-scm))
8058 (inputs
8059 (list python-imagesize
8060 python-importlib-resources
8061 python-lxml
8062 python-platformdirs
8063 python-requests
8064 python-rich))
8065 (home-page "https://github.com/webcomics/dosage")
8066 (synopsis "Comic strip downloader and archiver")
8067 (description
8068 "Dosage is designed to keep a local copy of specific webcomics and other
8069picture-based content such as Picture of the Day sites. With the
8070@command{dosage} command-line script you can get the latest strip of a
8071webcomic, catch-up to the last strip downloaded, or download a strip for a
8072particular date or index, if possible.")
8073 (license license:expat)))
8074
8075(define-public python-etcd3
8076 (package
8077 (name "python-etcd3")
8078 (version "0.12.0")
8079 (source
8080 (origin
8081 (method git-fetch)
8082 (uri (git-reference
8083 (url "https://github.com/kragniz/python-etcd3")
8084 (commit (string-append "v" version))))
8085 (file-name (git-file-name name version))
8086 (sha256
8087 (base32 "06hw0kcl77v8px5w2hfnf2l9gjnjrspjb49kx3jqa382z7wzdkk0"))))
8088 (build-system pyproject-build-system)
8089 (arguments
8090 (list
8091 ;; XXX: Tests require the etcd package.
8092 #:tests? #f
8093 #:test-backend #~'custom
8094 #:test-flags ; Taken from tox.ini.
8095 #~(list "pifpaf" "-e" "python" "run" "etcd" "--cluster" "--" "pytest")))
8096 (propagated-inputs
8097 (list python-grpcio python-protobuf python-six python-tenacity))
8098 (native-inputs
8099 (list python-mock python-pifpaf python-pytest python-setuptools))
8100 (home-page "https://github.com/kragniz/python-etcd3")
8101 (synopsis "Python client for the etcd3 API")
8102 (description
8103 "This package provide a Python client for the @code{etcd3} API.")
8104 (license license:asl2.0)))
8105
8106(define-public python-et-xmlfile
8107 (package
8108 (name "python-et-xmlfile")
8109 (version "2.0.0")
8110 (source
8111 (origin
8112 ;; Use a checkout because the PyPI archive does not contain tests.
8113 (method hg-fetch)
8114 (uri (hg-reference
8115 (url "https://foss.heptapod.net/openpyxl/et_xmlfile")
8116 (changeset version)))
8117 (file-name (string-append name "-" version "-checkout"))
8118 (sha256
8119 (base32 "03pmmg6k2ajd83zhki8f0c1ndi7pq23bj9hm6f8hhd07maqksf5w"))))
8120 (build-system pyproject-build-system)
8121 (native-inputs
8122 (list python-pytest
8123 python-lxml
8124 python-setuptools))
8125 (home-page "https://bitbucket.org/openpyxl/et_xmlfile")
8126 (synopsis "Low memory implementation of @code{lxml.xmlfile}")
8127 (description "This Python library is based upon the @code{xmlfile} module
8128from @code{lxml}. It aims to provide a low memory, compatible implementation
8129of @code{xmlfile}.")
8130 (license license:expat)))
8131
8132(define-public python-omero-py
8133 (let ((omero-blitz-version "5.8.2"))
8134 (package
8135 (name "python-omero-py")
8136 (version "5.20.0")
8137 (source
8138 (origin
8139 (method git-fetch)
8140 (uri (git-reference
8141 (url "https://github.com/ome/omero-py")
8142 (commit (string-append "v" version))))
8143 (file-name (git-file-name name version))
8144 (sha256
8145 (base32 "02zsw1p35n6lkqh410qpgw7c4467dkbg0hxly3gjqrwdh349j47g"))))
8146 (build-system pyproject-build-system)
8147 (arguments
8148 (list
8149 #:test-flags
8150 #~(list
8151 "-m" "not broken" "-rf" "test" "-s"
8152 ;; TestImport tries to download Java things; TestSessions
8153 ;; and TestBuildQuery require networking.
8154 "-k" "not TestImport and not TestSessions and not TestBuildQuery")
8155 #:modules '((guix build pyproject-build-system)
8156 (guix build utils)
8157 (ice-9 match)
8158 (srfi srfi-1)
8159 (srfi srfi-26))
8160 #:phases
8161 #~(modify-phases %standard-phases
8162 (add-after 'unpack 'find-artifacts
8163 (lambda* (#:key inputs #:allow-other-keys)
8164 (let ((zip-file
8165 (match inputs
8166 (((labels . files) ...)
8167 (find (cut string-suffix?
8168 (string-append "omero-blitz-"
8169 #$omero-blitz-version
8170 "-python.zip")
8171 <>)
8172 files)))))
8173 (setenv "ZIP_FILE"
8174 (or zip-file (error "failed to find artifact file"))))))
8175 ;; Some tests need this, such as TestTempFileManager
8176 (add-after 'build 'set-HOME
8177 (lambda _ (setenv "HOME" "/tmp")))
8178 ;; The sanity check mistakes omero_model_TypeAnnotationI.py for a
8179 ;; module to load.
8180 (delete 'sanity-check)
8181 ;; The argument parser is picky and interprets the "-real" part as
8182 ;; the first argument.
8183 (add-after 'wrap 'rename-executable
8184 (lambda _
8185 (with-directory-excursion (string-append #$output "/bin")
8186 (rename-file ".omero-real" ".omero")
8187 (substitute* "omero"
8188 (("bin/.omero-real") "bin/.omero"))))))))
8189 (propagated-inputs
8190 (list python-appdirs
8191 python-future
8192 python-numpy
8193 python-pillow
8194 python-pyyaml
8195 python-requests
8196 python-tables
8197 python-zeroc-ice-3.6))
8198 (native-inputs
8199 (list python-portalocker
8200 python-pytest
8201 python-pytest-mock
8202 python-pytest-rerunfailures
8203 python-pytest-xdist
8204 python-setuptools
8205 python-wheel
8206 unzip
8207 (origin
8208 (method url-fetch)
8209 (uri (format #f "\
8210https://artifacts.openmicroscopy.org/artifactory/ome.releases/org/\
8211openmicroscopy/omero-blitz/~a/omero-blitz-~a-python.zip"
8212 omero-blitz-version
8213 omero-blitz-version))
8214 (sha256
8215 (base32 "1nb17xmx6n7i5vkcw661iq42yfgc3i0gmhz3x8iwcrhp8pajzm3l")))))
8216 (home-page "https://github.com/ome/omero-py")
8217 (synopsis "Python bindings to the OMERO.blitz server")
8218 (description "This package provides Python bindings to the OMERO.blitz
8219server.")
8220 (license license:gpl2))))
8221
8222(define-public python-openpyxl
8223 (package
8224 (name "python-openpyxl")
8225 (version "3.1.5")
8226 (source
8227 (origin
8228 (method hg-fetch)
8229 (uri (hg-reference
8230 (url "https://foss.heptapod.net/openpyxl/openpyxl")
8231 (changeset version)))
8232 (file-name (string-append name "-" version "-checkout"))
8233 (sha256
8234 (base32 "17z6rrvv3q1axy9r13c2hln2pazfn9n5bhkzrbjcjakgbfjl6mss"))))
8235 (build-system pyproject-build-system)
8236 (arguments
8237 (list
8238 ;; tests: 2577 passed, 17 skipped, 4 deselected, 7 xfailed
8239 #:test-flags
8240 #~(list (string-append "--deselect=openpyxl/xml/tests/"
8241 "test_functions.py::test_iterparse"))))
8242 (native-inputs
8243 (list python-lxml
8244 python-pillow
8245 python-pytest
8246 python-setuptools))
8247 (propagated-inputs
8248 (list python-et-xmlfile))
8249 (home-page "https://openpyxl.readthedocs.io")
8250 (synopsis "Python library to read/write Excel 2010 XLSX/XLSM files")
8251 (description
8252 "This Python library allows reading and writing to the Excel XLSX, XLSM,
8253XLTX and XLTM file formats that are defined by the Office Open XML (OOXML)
8254standard.")
8255 (license license:expat)))
8256
8257(define-public python-sinfo
8258 (package
8259 (name "python-sinfo")
8260 (version "1.0.1")
8261 (source
8262 (origin
8263 (method git-fetch)
8264 (uri (git-reference
8265 (url "https://gitlab.com/joelostblom/session_info")
8266 (commit (string-append "v" version))))
8267 (file-name (git-file-name name version))
8268 (sha256
8269 (base32 "14rdr235gn1f9lcp1wnvxhjkbqy6jxs0k8qfkh074gfzhp6kh4w5"))))
8270 (build-system pyproject-build-system)
8271 (arguments
8272 (list #:tests? #f)) ; no tests in PyPI or Git
8273 (native-inputs
8274 (list python-setuptools))
8275 (propagated-inputs
8276 (list python-stdlib-list))
8277 (home-page "https://gitlab.com/joelostblom/session_info")
8278 (synopsis "Output module version information loaded in a Python session")
8279 (description "This package outputs version information for modules loaded
8280in the current session, Python, and the OS.")
8281 (license license:bsd-3)))
8282
8283(define-public python-schedule
8284 (package
8285 (name "python-schedule")
8286 (version "1.2.2")
8287 (source
8288 (origin
8289 (method url-fetch)
8290 (uri (pypi-uri "schedule" version))
8291 (sha256
8292 (base32
8293 "1dzhwpnpbvv90z6lavx4z7whh1a2y47cq69zgxibknazzrsrrzhm"))))
8294 (build-system pyproject-build-system)
8295 (native-inputs
8296 (list python-pytest python-setuptools python-wheel))
8297 (home-page "https://github.com/dbader/schedule")
8298 (synopsis "Schedule periodic function calls in Python")
8299 (description
8300 "Schedule is an in-process scheduler for periodic jobs that uses the
8301builder pattern for configuration. Schedule lets you run Python functions (or
8302any other callable) periodically at pre-determined intervals using a simple,
8303human-friendly syntax.")
8304 (license license:expat)))
8305
8306;; XXX: This project is unmaintained since 2020, see:
8307;; <https://github.com/scour-project/scour/issues/321>.
8308;;
8309;; The only user is Inkscape, see:
8310;; <https://gitlab.com/inkscape/inkscape-docs/documentation/-/issues/43>.
8311(define-public python-scour
8312 (package
8313 (name "python-scour")
8314 (version "0.38.2")
8315 (source
8316 (origin
8317 (method git-fetch)
8318 (uri
8319 (git-reference
8320 (url "https://gitlab.com/inkscape/extras/scour")
8321 (commit
8322 (string-append "v" version))))
8323 (file-name (git-file-name name version))
8324 (sha256
8325 (base32 "0mmfvx4wqp8gkpv0kbih89zfs9njvmd3v4dxfqii62xddpxq0f1k"))))
8326 (build-system pyproject-build-system)
8327 (arguments
8328 (list #:test-backend #~'custom
8329 #:test-flags #~(list "test_scour.py")))
8330 (native-inputs
8331 (list python-setuptools))
8332 (propagated-inputs
8333 (list python-six))
8334 (home-page "https://gitlab.com/inkscape/extras/scour")
8335 (synopsis "Scour is an SVG optimizer/cleaner written in Python")
8336 (description
8337 "The goal of Scour is to output a file that renders identically at a
8338fraction of the size by removing a lot of redundant information created by
8339most SVG editors. Optimization options are typically lossless but can be
8340tweaked for more aggressive cleaning.")
8341 (license license:asl2.0)))
8342
8343(define-public python-mechanize
8344 (package
8345 (name "python-mechanize")
8346 (version "0.4.10")
8347 (source
8348 (origin
8349 (method url-fetch)
8350 (uri (pypi-uri "mechanize" version))
8351 (sha256
8352 (base32 "1pvxjnhqi6iq7nnjksnfvyzxcibbwfjc9fzp22v0msp7kdzr9shx"))))
8353 (build-system pyproject-build-system)
8354 (arguments
8355 ;; XXX: Unclear why tests are failing.
8356 (list #:tests? #f
8357 #:phases
8358 #~(modify-phases %standard-phases
8359 (add-before 'check 'configure-tests
8360 (lambda _
8361 (setenv "GUIX_PYTHONPATH"
8362 (string-append (getcwd) "/test-tools:"
8363 (getenv "GUIX_PYTHONPATH"))))))))
8364 (native-inputs
8365 (list python-html5-parser
8366 python-html5lib
8367 python-lxml
8368 python-service-identity
8369 python-setuptools
8370 python-six
8371 python-twisted
8372 python-wheel))
8373 (propagated-inputs
8374 (list python-html5lib))
8375 (home-page "https://github.com/python-mechanize/mechanize")
8376 (synopsis
8377 "Stateful programmatic web browsing in Python")
8378 (description
8379 "Mechanize implements stateful programmatic web browsing in Python,
8380after Andy Lester’s Perl module WWW::Mechanize.")
8381 (license license:bsd-3)))
8382
8383(define-public python-mediapy
8384 (package
8385 (name "python-mediapy")
8386 (version "1.2.6")
8387 (source
8388 (origin
8389 (method git-fetch)
8390 (uri (git-reference
8391 (url "https://github.com/google/mediapy")
8392 (commit (string-append "v" version))))
8393 (file-name (git-file-name name version))
8394 (sha256
8395 (base32 "0gpbn1bqm6sp692fg7acs3l46xjr70frh3jv4cp3lbixfqmfb3lc"))))
8396 (build-system pyproject-build-system)
8397 (arguments
8398 (list
8399 #:phases
8400 '(modify-phases %standard-phases
8401 (add-after 'unpack 'fix-references
8402 (lambda _
8403 (substitute* "mediapy_test.py"
8404 (("'/bin/bash")
8405 (string-append "'" (which "bash")))))))))
8406 (inputs (list ffmpeg-6))
8407 (propagated-inputs (list python-absl-py
8408 python-ipython
8409 python-matplotlib
8410 python-numpy
8411 python-pillow))
8412 (native-inputs
8413 (list python-flit-core
8414 python-pytest
8415 python-pytest-xdist))
8416 (home-page "https://github.com/google/mediapy")
8417 (synopsis "Read/write/show images and videos in an IPython notebook")
8418 (description "This Python library makes it easy to display images and
8419videos in a notebook.")
8420 (license license:asl2.0)))
8421
8422(define-public python-simpleaudio
8423 (package
8424 (name "python-simpleaudio")
8425 (version "1.0.4")
8426 (source
8427 (origin
8428 (method git-fetch)
8429 (uri (git-reference
8430 (url "https://github.com/hamiltron/py-simple-audio")
8431 (commit version)))
8432 (file-name (git-file-name name version))
8433 (sha256
8434 (base32 "12nypzb1m14yip4zrbzin5jc5awyp1d5md5y40g5anj4phb4hx1i"))))
8435 (build-system pyproject-build-system)
8436 (arguments
8437 (list
8438 #:test-backend #~'unittest
8439 #:phases
8440 #~(modify-phases %standard-phases
8441 (add-before 'check 'fix-test-run
8442 (lambda _
8443 (delete-file-recursively "simpleaudio"))))))
8444 (native-inputs (list python-setuptools))
8445 (inputs (list alsa-lib))
8446 (home-page "https://github.com/hamiltron/py-simple-audio")
8447 (synopsis "Simple, asynchronous audio playback for Python 3")
8448 (description
8449 "The @code{simplaudio} package provides cross-platform, dependency-free
8450audio playback capability for Python 3 on OSX, Windows, and Linux.")
8451 (license license:expat))) ; MIT license
8452
8453(define-public python-jsonalias
8454 (package
8455 (name "python-jsonalias")
8456 (version "0.1.2")
8457 (source (origin
8458 (method url-fetch)
8459 (uri (pypi-uri "jsonalias" version))
8460 (sha256
8461 (base32
8462 "0k5c2132hbd9wxnj8w05vvpi286l3g3ksw350m85rd0k9958g5z3"))))
8463 (build-system pyproject-build-system)
8464 (arguments
8465 (list #:tests? #f)) ; no tests in PyPI or Git
8466 (native-inputs
8467 (list python-poetry-core))
8468 (home-page "https://github.com/kevinheavey/jsonalias/")
8469 (synopsis "JSON type alias for Python")
8470 (description
8471 "This package provides a microlibrary that defines a JSON type alias for
8472Python.")
8473 (license license:expat)))
8474
8475(define-public python-jsonargparse
8476 (package
8477 (name "python-jsonargparse")
8478 (version "4.49.0")
8479 (source
8480 (origin
8481 (method git-fetch)
8482 (uri (git-reference
8483 (url "https://github.com/omni-us/jsonargparse/")
8484 (commit (string-append "v" version))))
8485 (file-name (git-file-name name version))
8486 (sha256
8487 (base32 "15s7bdgjk3dpmr9202v4nr9826z8zq7vp77nvg4iwwq9nrm8brnn"))))
8488 (build-system pyproject-build-system)
8489 (propagated-inputs
8490 (list python-pyyaml))
8491 (native-inputs
8492 (list python-attrs
8493 python-pydantic
8494 python-pytest
8495 python-requests
8496 python-responses
8497 python-setuptools
8498 python-types-pyyaml
8499 python-types-requests))
8500 (home-page "https://github.com/omni-us/jsonargparse/")
8501 (synopsis "Implement minimal boilerplate CLIs derived from type hints")
8502 (description
8503 "This package lets you implement minimal boilerplate CLIs derived from
8504type hints and parse from command line, config files and environment
8505variables.")
8506 (license license:expat)))
8507
8508(define-public python-pymarshal
8509 (package
8510 (name "python-pymarshal")
8511 (version "2.2.3")
8512 (source (origin
8513 (method url-fetch)
8514 (uri (pypi-uri "pymarshal" version))
8515 (sha256
8516 (base32
8517 "1lhb7yim60pvclbd440zd4n50xs1d2rvmnrhhvib3hyv0dxil5j3"))))
8518 (build-system pyproject-build-system)
8519 (arguments
8520 ;; Test fails with this error:
8521 ;; "CovReportWarning: Failed to generate report: No data to report."
8522 (list #:tests? #f))
8523 (native-inputs
8524 (list python-pytest python-setuptools python-wheel))
8525 (propagated-inputs (list python-bson python-pyyaml))
8526 (home-page "https://gitlab.com/d3v-t00lz/pymarshal")
8527 (synopsis "Pythonic implementation of Golang struct (un)marshalling")
8528 (description "PyMarshal replicates the feature of (un)marshalling structs
8529in Golang.")
8530 (license license:bsd-2)))
8531
8532(define-public python-simplejson
8533 (package
8534 (name "python-simplejson")
8535 (version "3.20.1")
8536 (source
8537 (origin
8538 (method url-fetch)
8539 (uri (pypi-uri "simplejson" version))
8540 (sha256
8541 (base32
8542 "0z838dqnh5c81ib6cvfqfhd82ax2apzclzgz8b0j87sgxjs3jhg6"))))
8543 (build-system pyproject-build-system)
8544 (native-inputs
8545 (list python-pytest python-setuptools))
8546 (home-page "https://simplejson.readthedocs.io/en/latest")
8547 (synopsis
8548 "Json library for Python")
8549 (description
8550 "JSON (JavaScript Object Notation) is a subset of JavaScript
8551syntax (ECMA-262 3rd edition) used as a lightweight data interchange
8552format.
8553
8554Simplejson exposes an API familiar to users of the standard library marshal
8555and pickle modules. It is the externally maintained version of the json
8556library contained in Python 2.6, but maintains compatibility with Python 2.5
8557and (currently) has significant performance advantages, even without using
8558the optional C extension for speedups. Simplejson is also supported on
8559Python 3.3+.")
8560 (license license:x11)))
8561
8562(define-public python-simple-rlp
8563 (package
8564 (name "python-simple-rlp")
8565 (version "0.1.3")
8566 (source
8567 (origin
8568 (method git-fetch)
8569 (uri (git-reference
8570 (url "https://github.com/SamuelHaidu/simple-rlp")
8571 ;; Upstream doesn't tag the git repo.
8572 (commit "342ea269d84da1ddc4a7630cdebc90159261391c")))
8573 (file-name (git-file-name name version))
8574 (sha256
8575 (base32
8576 "1nv92sphpkyrncak4qgj50qmgkmj4ycl2szbnv9c7ihgl5df4div"))))
8577 (build-system pyproject-build-system)
8578 (native-inputs
8579 (list
8580 python-pytest
8581 python-setuptools))
8582 (home-page "https://github.com/SamuelHaidu/simple-rlp")
8583 (synopsis
8584 "Python implementation of RLP (Recursive Length Prefix) encoding")
8585 (description
8586 "@code{simple-rlp} is a python implementation of RLP (Recursive Length \
8587Prefix) - Encode and decode data structures.")
8588 (license license:expat)))
8589
8590(define-public python-pyicu
8591 (package
8592 (name "python-pyicu")
8593 (version "2.15.2")
8594 (source
8595 (origin
8596 (method url-fetch)
8597 (uri (pypi-uri "pyicu" version))
8598 (sha256
8599 (base32 "13srrv5lczr0s74hx2kffwdhfg6flpvi2qpj75lfqz7ivzp7f7jn"))))
8600 (build-system pyproject-build-system)
8601 (native-inputs
8602 (list pkg-config
8603 python-pytest
8604 python-setuptools
8605 python-six))
8606 (inputs
8607 (list icu4c))
8608 (home-page "https://gitlab.pyicu.org/main/pyicu")
8609 (synopsis "Python extension wrapping the ICU C++ API")
8610 (description
8611 "PyICU is a python extension wrapping the ICU C++ API.")
8612 (license license:x11)))
8613
8614(define-public python-dogtail
8615 (package
8616 (name "python-dogtail")
8617 (version "0.9.11")
8618 (source
8619 (origin
8620 (method url-fetch)
8621 (uri (string-append
8622 "https://gitlab.com/dogtail/dogtail/-/raw/released/" "dogtail-"
8623 version ".tar.gz"))
8624 (sha256
8625 (base32 "0sr38z7b2n12bvfd4xw4b5dnnhkn5zl3h0ymmnnzavcihfqia6l0"))))
8626 (build-system pyproject-build-system)
8627 (arguments
8628 (list
8629 #:tests? #f ;TODO Launching dbus for the tests fails
8630 #:phases
8631 #~(modify-phases %standard-phases
8632 (replace 'check
8633 (lambda* (#:key tests? #:allow-other-keys)
8634 (when tests?
8635 (system "Xvfb :1 &")
8636 (setenv "DISPLAY" ":1")
8637 (invoke "dbus-run-session" "--"
8638 "nosetests" "-v" "tests/")))))))
8639 (propagated-inputs (list python-pygobject python-pycairo python-pyatspi))
8640 (native-inputs
8641 (list python-pynose
8642 gtk+
8643 xorg-server-for-tests
8644 dbus
8645 gsettings-desktop-schemas
8646 gobject-introspection
8647 python-setuptools))
8648 (home-page "https://gitlab.com/dogtail/dogtail/")
8649 (synopsis "GUI test tool and automation framework written in Python")
8650 (description
8651 "Dogtail is a GUI test tool and automation framework written in Python.
8652It uses Accessibility (a11y) technologies to communicate with desktop
8653applications. dogtail scripts are written in Python and executed like any
8654other Python program.")
8655 (license license:gpl2+)))
8656
8657(define-public python-doxyqml
8658 (package
8659 (name "python-doxyqml")
8660 (version "0.5.3")
8661 (source (origin
8662 (method url-fetch)
8663 (uri (pypi-uri "doxyqml" version))
8664 (sha256
8665 (base32
8666 "0skrs5i5pvpzvihgxw766zi1c9bbp33aisdldxgj470mlchvdgyy"))))
8667 (build-system pyproject-build-system)
8668 (arguments
8669 (list #:test-backend #~'custom
8670 #:test-flags #~(list "tests/functional/tests.py")))
8671 (native-inputs
8672 (list python-setuptools))
8673 (home-page "https://agateau.com/projects/doxyqml")
8674 (synopsis "Doxygen input filter for QML files")
8675 (description
8676 "This package provides a Doxygen input filter for QML files.")
8677 (license license:bsd-3)))
8678
8679(define-public python-doxypypy
8680 (package
8681 (name "python-doxypypy")
8682 (version "0.8.8.7")
8683 (source (origin
8684 (method url-fetch)
8685 (uri (pypi-uri "doxypypy" version))
8686 (sha256
8687 (base32
8688 "17nh5jjbxrg6ag0gymh8jsp75qnxwgv8fqbj4jlphywj0sxwh6k7"))))
8689 (build-system pyproject-build-system)
8690 (arguments
8691 (list
8692 #:test-flags
8693 #~(list "-k" (string-join
8694 ;; Test files are not in UTF-8 format and attmet to
8695 ;; substitute shebang fails, while tests fail with error:
8696 ;; AssertionError: "#!/bin/env python\n# UTF-32-LE Python
8697 ;; File w[387 chars]g.')" !=
8698 ;; "#!/gnu/store/y5vz9h983i8cg01cxz0zdywz715fxxs[449
8699 ;; chars]g.')"
8700 (list "not test_utf16be_bom"
8701 "test_utf16le_bom"
8702 "test_utf32be_bom"
8703 "test_utf32le_bom"
8704 "test_utf8_bom")
8705 " and not "))
8706 #:phases
8707 #~(modify-phases %standard-phases
8708 ;; compile-bytecode phases fails with error: SyntaxError: source
8709 ;; code string cannot contain null bytes.
8710 (add-after 'unpack 'fix-setup.py
8711 (lambda _
8712 (substitute* "setup.py"
8713 (("packages=.*") "packages=['doxypypy'],\n")))))))
8714 (native-inputs
8715 (list python-pytest
8716 python-setuptools
8717 python-wheel))
8718 (propagated-inputs
8719 (list python-chardet))
8720 (home-page "https://github.com/Feneric/doxypypy")
8721 (synopsis "Doxygen filter for Python")
8722 (description
8723 "This package provides a Doxygen filter for Python.")
8724 (license license:gpl2+)))
8725
8726(define-public python-empy
8727 (package
8728 (name "python-empy")
8729 (version "3.3.4")
8730 (source
8731 (origin
8732 (method url-fetch)
8733 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
8734 version ".tar.gz"))
8735 (sha256
8736 (base32 "1cgikljjcqxgz168prpvb0bnirbdxf9wmgj0vlzzhzzwf4a229li"))))
8737 (build-system pyproject-build-system)
8738 (arguments
8739 (list
8740 #:phases
8741 #~(modify-phases %standard-phases
8742 (replace 'check
8743 (lambda* (#:key tests? #:allow-other-keys)
8744 (when tests?
8745 (invoke "./test.sh")))))))
8746 (native-inputs (list python-setuptools))
8747 (home-page "http://www.alcyone.com/software/empy/")
8748 (synopsis "Templating system for Python")
8749 (description
8750 "EmPy is a system for embedding Python expressions and statements in
8751template text; it takes an EmPy source file, processes it, and produces
8752output. This is accomplished via expansions, which are special signals to the
8753EmPy system and are set off by a special prefix (by default the at sign, @@).
8754EmPy can expand arbitrary Python expressions and statements in this way, as
8755well as a variety of special forms. Textual data not explicitly delimited in
8756this way is sent unaffected to the output, allowing Python to be used in
8757effect as a markup language. Also supported are callbacks via hooks,
8758recording and playback via diversions, and dynamic, chainable filters. The
8759system is highly configurable via command line options and embedded
8760commands.")
8761 (license license:lgpl2.1+)))
8762
8763(define-public python-palettable
8764 (package
8765 (name "python-palettable")
8766 (version "3.3.3")
8767 (source (origin
8768 (method url-fetch)
8769 (uri (pypi-uri "palettable" version))
8770 (sha256
8771 (base32
8772 "1a4h0jpsr3wjciqg9a5kslxv65d3qqgmqgkpai4cl77wlpcxfk89"))))
8773 (build-system pyproject-build-system)
8774 (native-inputs (list python-pytest python-setuptools python-wheel))
8775 (home-page "https://jiffyclub.github.io/palettable/")
8776 (synopsis "Color palettes for Python")
8777 (description "Palettable (formerly brewer2mpl) is a library of color
8778palettes for Python. It’s written in pure Python with no dependencies, but it
8779can supply color maps for matplotlib. You can use Palettable to customize
8780matplotlib plots or supply colors for a web application.")
8781 (license license:expat)))
8782
8783(define-public python-parse-type
8784 (package
8785 (name "python-parse-type")
8786 ;; 0.6.6 (2025-08-11), the latest changes provide support for Python
8787 ;; 3.12+; move back to git tag when released.
8788 (properties '((commit . "5c4126ae3973b5c0a4107cd8b29f2b74993be330")
8789 (revision . "0")))
8790 (version (git-version "0.6.6"
8791 (assoc-ref properties 'revision)
8792 (assoc-ref properties 'commit)))
8793 (source
8794 (origin
8795 (method git-fetch)
8796 (uri (git-reference
8797 (url "https://github.com/jenisys/parse_type")
8798 (commit (assoc-ref properties 'commit))))
8799 (file-name (git-file-name name version))
8800 (sha256
8801 (base32 "0gcpyzd3lj7bp9k6m515gwkjwabnhkb15vrx6bf8ba8nyv30v571"))))
8802 (build-system pyproject-build-system)
8803 (arguments
8804 (list
8805 ;; tests: 332 passed, 2 skipped
8806 #:phases
8807 #~(modify-phases %standard-phases
8808 (add-after 'unpack 'fix-pytest-config
8809 ;; To bypass options: --metadata, --html and --junit-xml.
8810 (lambda _
8811 (delete-file "pytest.ini"))))))
8812 (native-inputs
8813 (list python-pytest
8814 python-setuptools
8815 python-setuptools-scm))
8816 (propagated-inputs
8817 (list python-six ;hard dependency
8818 python-parse))
8819 (home-page "https://github.com/jenisys/parse_type")
8820 (synopsis "Extended parse module")
8821 (description "Parse_type extends the python parse module.")
8822 (license license:expat)))
8823
8824(define-public python-parse
8825 (package
8826 (name "python-parse")
8827 (version "1.20.2")
8828 (source
8829 (origin
8830 (method git-fetch)
8831 (uri (git-reference
8832 (url "https://github.com/r1chardj0n3s/parse")
8833 (commit version)))
8834 (file-name (git-file-name name version))
8835 (sha256
8836 (base32 "0s3dgafh1mz8g32gwk5vp0azdq168yjhbg5liivapgkwyq9zgwcb"))))
8837 (build-system pyproject-build-system)
8838 (native-inputs (list python-pytest python-setuptools))
8839 (home-page "https://github.com/r1chardj0n3s/parse")
8840 (synopsis "Parse strings")
8841 (description
8842 "Parse strings using a specification based on the Python @code{format()}
8843syntax.")
8844 (license license:x11)))
8845
8846(define-public python-parsley
8847 (package
8848 (name "python-parsley")
8849 (version "1.3")
8850 (source
8851 (origin
8852 (method git-fetch)
8853 (uri (git-reference
8854 (url "https://github.com/pyga/parsley")
8855 (commit version)))
8856 (file-name (git-file-name name version))
8857 (sha256
8858 (base32 "0550rw65ygqzbjc8a66hs355pzbx727kbn20dssdb6ls846gw2qs"))
8859 (patches
8860 (list
8861 (origin
8862 (method url-fetch)
8863 (uri
8864 (string-append "https://github.com/pyga/parsley/commit/"
8865 "f0ad2f6c0c7ce15336f6a3adc3708f4a5a9757c6.patch"))
8866 (sha256
8867 (base32
8868 "0q90vg9pi4vs4kqxa1dzck16iqrszcw36c3im8p514p7zj439fca")))))))
8869 (build-system pyproject-build-system)
8870 (arguments
8871 (list
8872 #:test-flags #~(list "ometa/test" "terml/test")))
8873 (native-inputs
8874 (list python-pytest
8875 python-setuptools
8876 python-twisted))
8877 (home-page "https://launchpad.net/parsley")
8878 (synopsis "Parsing and pattern matching Python library")
8879 (description
8880 "Parsley is a parsing library using PEG algorithm, so each expression in
8881the grammar rules works like a Python expression. In particular, alternatives
8882are evaluated in order, unlike table-driven parsers such as yacc, bison or PLY.
8883Parsley is an implementation of OMeta, an object-oriented pattern-matching
8884language.")
8885 (license license:expat)))
8886
8887(define-public python-petl
8888 (package
8889 (name "python-petl")
8890 (version "1.7.16")
8891 (source
8892 (origin
8893 (method url-fetch)
8894 (uri (pypi-uri "petl" version))
8895 (sha256
8896 (base32 "0ll7xcc9yrvrz9p9im6m8p69cwrqwmqx91px43hlbnjrv1jflbww"))))
8897 (build-system pyproject-build-system)
8898 (native-inputs (list python-setuptools python-setuptools-scm python-wheel
8899 python-pytest))
8900 (home-page "https://github.com/petl-developers/petl")
8901 (synopsis "Framework for writing @acronym{ETL, Extract Transform Load} data
8902processing pipelines.")
8903 (description
8904 "This package provides a library for extracting, transforming and loading
8905tables of data. It can read from and write to databases or files in multiple
8906formats, including:
8907@itemize @bullet
8908@item python objects
8909@item delimited files
8910@item pickle files
8911@item text/XML/JSON/HTML files
8912@item python I/O streams
8913@item Excel XLS/XLSX files
8914@item HDF5 files
8915@end itemize")
8916 (license license:expat)))
8917
8918(define-public python-polib
8919 (package
8920 (name "python-polib")
8921 (version "1.2.0")
8922 (source
8923 (origin
8924 (method git-fetch)
8925 (uri (git-reference
8926 (url "https://github.com/izimobil/polib/")
8927 (commit version)))
8928 (file-name (git-file-name name version))
8929 (sha256
8930 (base32 "12n2skqj2qydcjp1r2ppzjcfc0fx4l23061x8bfqxx5pdvhnfpyb"))))
8931 (build-system pyproject-build-system)
8932 (arguments
8933 (list #:test-backend #~'custom
8934 #:test-flags #~(list "tests/tests.py")))
8935 (native-inputs (list python-setuptools))
8936 (home-page "https://github.com/izimobil/polib/")
8937 (synopsis "Manipulate, create and modify gettext files")
8938 (description
8939 "Polib can manipulate any gettext format (po, pot and mo) files. It can
8940be used to create po files from scratch or to modify existing ones.")
8941 (license license:expat)))
8942
8943(define-public python-polling2
8944 (package
8945 (name "python-polling2")
8946 (version "0.5.0")
8947 (source
8948 (origin
8949 (method git-fetch)
8950 (uri (git-reference
8951 (url "https://github.com/ddmee/polling2")
8952 (commit (string-append "v" version))))
8953 (file-name (git-file-name name version))
8954 (sha256
8955 (base32 "17q5nw9wab9p092r2bvmnk5nrzlwg5by6wf5wkbxnsz100nww7la"))))
8956 (build-system pyproject-build-system)
8957 (arguments
8958 ;; XXX: Additional , in string comparison.
8959 (list #:test-flags #~(list "-k" "not test_log_error_set_at_debug_level")))
8960 (native-inputs (list python-mock python-pytest python-setuptools))
8961 (home-page "https://github.com/ddmee/polling2")
8962 (synopsis "Polling utility with many configurable options")
8963 (description "Polling2 is a utility used to wait for a function to return
8964a certain expected condition.")
8965 (license license:expat)))
8966
8967(define-public python-daft
8968 (package
8969 (name "python-daft")
8970 (version "0.1.2")
8971 (source (origin
8972 (method url-fetch)
8973 (uri (pypi-uri "daft" version))
8974 (sha256
8975 (base32
8976 "1r8jsfavd624q2q61f863lk6has6mv5csswh39saafd5khwf0xry"))))
8977 (build-system pyproject-build-system)
8978 (arguments
8979 (list
8980 #:test-flags
8981 '(list "-k"
8982 (string-append
8983 ;; The following tests compare matplotlib output with
8984 ;; previously generated images. They fail due to minor
8985 ;; differences in where matplotlib places labels.
8986 "not test_bca[png]"
8987 " and not test_classic[png]"
8988 " and not test_deconvolution[png]"
8989 " and not test_exoplanets[png]"
8990 " and not test_fixed[png]"
8991 " and not test_gaia[png]"
8992 " and not test_galex[png]"
8993 " and not test_huey_p_newton[png]"
8994 " and not test_logo[png]"
8995 " and not test_no_circles[png]"
8996 " and not test_no_gray[png]"
8997 " and not test_recursive[png]"
8998 " and not test_thick_lines[png]"
8999 " and not test_weaklensing[png]"
9000 " and not test_wordy[png]"))))
9001 (native-inputs
9002 (list python-pytest
9003 python-setuptools
9004 python-wheel))
9005 (propagated-inputs (list python-matplotlib python-numpy))
9006 (home-page "https://docs.daft-pgm.org/")
9007 (synopsis "PGM rendering library")
9008 (description "Daft is a Python package that uses matplotlib to
9009render pixel-perfect probabilistic graphical models for publication in
9010a journal or on the internet. With a short Python script and an
9011intuitive model-building syntax you can design directed (Bayesian
9012Networks, directed acyclic graphs) and undirected (Markov random fields)
9013models and save them in any formats that matplotlib supports (including
9014PDF, PNG, EPS and SVG).")
9015 (license license:expat)))
9016
9017(define-public python-portalocker
9018 (package
9019 (name "python-portalocker")
9020 (version "2.7.0")
9021 (source (origin
9022 (method url-fetch)
9023 (uri (pypi-uri "portalocker" version))
9024 (sha256
9025 (base32
9026 "0lawjm736vs86wlnxc3qqh37l11z0yx81xq3dmrw33m86kaq2bh3"))))
9027 (build-system pyproject-build-system)
9028 (native-inputs (list python-pytest
9029 python-pytest-timeout
9030 python-redis
9031 python-setuptools
9032 python-wheel))
9033 (home-page "https://github.com/WoLpH/portalocker")
9034 (synopsis "Python library for file locking")
9035 (description "Portalocker is a library to provide an easy API to file
9036locking..")
9037 (license license:bsd-3)))
9038
9039(define-public python-poyo
9040 (package
9041 (name "python-poyo")
9042 (version "0.5.0")
9043 (source
9044 (origin
9045 (method url-fetch)
9046 (uri (pypi-uri "poyo" version))
9047 (sha256
9048 (base32
9049 "1pflivs6j22frz0v3dqxnvc8yb8fb52g11lqr88z0i8cg2m5csg2"))))
9050 (build-system pyproject-build-system)
9051 (native-inputs
9052 (list python-pytest python-setuptools))
9053 (home-page "https://github.com/hackebrot/poyo")
9054 (synopsis "Lightweight YAML Parser for Python")
9055 (description
9056 "This package provides a lightweight YAML Parser for Python. It supports
9057only a chosen subset of the YAML format that is required to parse cookiecutter
9058user configuration files. It does not have support for serializing into YAML
9059and is not compatible with JSON.")
9060 (license license:expat)))
9061
9062(define-public python-expandvars
9063 (package
9064 (name "python-expandvars")
9065 (version "1.1.2")
9066 (source
9067 (origin
9068 (method url-fetch)
9069 (uri (pypi-uri "expandvars" version))
9070 (sha256
9071 (base32 "1mviiwv5vgglswxrcdd1z978masjgwkd2pcidcsrmaannyvj4n3c"))))
9072 (build-system pyproject-build-system)
9073 (arguments (list #:test-flags #~(list "-o" "addopts=''")))
9074 (native-inputs
9075 (list python-hatchling python-pytest))
9076 (home-page "https://pypi.org/project/expandvars/")
9077 (synopsis "Expand system variables Unix style")
9078 (description "This module is inspired by GNU bash's variable expansion
9079features. It can be used as an alternative to Python's
9080@code{os.path.expandvars} function. A good use case is reading config files
9081with the flexibility of reading values from environment variables using
9082advanced features like returning a default value if some variable is not
9083defined.")
9084 (license license:expat)))
9085
9086(define-public python-expiringdict
9087 (package
9088 (name "python-expiringdict")
9089 (version "1.2.2")
9090 (source
9091 (origin
9092 (method git-fetch)
9093 (uri (git-reference
9094 (url "https://github.com/mailgun/expiringdict")
9095 (commit (string-append "v" version))))
9096 (file-name (git-file-name name version))
9097 (sha256
9098 (base32 "0hkzh62cmsm8i6sh9pcn4bh3ilq0bzdrvw6gz949swraf944j65x"))))
9099 (build-system pyproject-build-system)
9100 (arguments
9101 ;; Started failing with [email protected], but it's only repr not functionality
9102 ;; so we should be fine.
9103 (list #:test-flags #~'("-v" "-e" "test_repr")))
9104 (native-inputs
9105 (list python-dill python-mock python-pynose python-setuptools))
9106 (home-page "https://github.com/mailgun/expiringdict")
9107 (synopsis "Dictionary with auto-expiring values for caching purposes")
9108 (description
9109 "This Python library provides an ordered dictionary
9110with a maximum capacity and auto-expiring values for caching purposes.
9111Expiration happens on any access, object is locked during cleanup
9112from expired values.")
9113 (license license:asl2.0)))
9114
9115(define-public python-extension-helpers
9116 (package
9117 (name "python-extension-helpers")
9118 (version "1.4.0")
9119 (source
9120 (origin
9121 (method git-fetch) ; no tests in the PyPI tarball
9122 (uri (git-reference
9123 (url "https://github.com/astropy/extension-helpers")
9124 (commit (string-append "v" version))))
9125 (file-name (git-file-name name version))
9126 (sha256
9127 (base32 "0ljvfv9p7jay4j31awx1h714xhyn5hbfgyhn4nm71xrkz9la113j"))))
9128 (build-system pyproject-build-system)
9129 (arguments
9130 (list
9131 #:test-flags
9132 #~(list "--pyargs" "extension_helpers"
9133 "-k" (string-join
9134 ;; XXX: Tests try to check various compilation options and
9135 ;; fail with some incomparability or trying to download
9136 ;; missing modules.
9137 (list "not test_only_pyproject"
9138 "test_no_setup_py"
9139 "test_limited_api")
9140 " and not "))))
9141 (native-inputs
9142 (list python-pytest
9143 python-setuptools-scm))
9144 (propagated-inputs
9145 (list python-setuptools))
9146 (home-page "https://extension-helpers.readthedocs.io")
9147 (synopsis "Astropy ecosystem utilities for building and installing packages")
9148 (description
9149 "The extension-helpers package includes convenience helpers to assist
9150with building Python packages with compiled C/Cython extensions. It is
9151developed by the Astropy project but is intended to be general and usable by
9152any Python package.")
9153 (license license:bsd-3)))
9154
9155(define-public python-milc
9156 (package
9157 (name "python-milc")
9158 (version "1.9.1")
9159 (source
9160 (origin
9161 (method git-fetch) ;no tests in PyPI archive
9162 (uri (git-reference
9163 (url "https://github.com/clueboard/milc")
9164 (commit version)))
9165 (file-name (git-file-name name version))
9166 (sha256
9167 (base32 "0ms9ks0xn1ikd48352bifnbfahfnw3gh4qs1ckmmwbpiq2czca3g"))))
9168 (build-system pyproject-build-system)
9169 (native-inputs
9170 (list python-pytest
9171 python-semver
9172 python-setuptools))
9173 (propagated-inputs
9174 (list python-argcomplete
9175 python-colorama
9176 python-halo
9177 python-platformdirs
9178 python-spinners
9179 python-types-colorama))
9180 (home-page "https://github.com/clueboard/milc")
9181 (synopsis "Python library for command line interface programs")
9182 (description "MILC is a Python library for developing command line
9183interface programs. This library provides features to parse arguments,
9184automatic tab-completion, color support, logging to @code{std}, etc.")
9185 (license license:expat)))
9186
9187(define-public python-extract-dtb
9188 (package
9189 (name "python-extract-dtb")
9190 (version "1.2.3")
9191 (source
9192 (origin
9193 (method git-fetch)
9194 (uri (git-reference
9195 (url "https://github.com/PabloCastellano/extract-dtb/")
9196 (commit version)))
9197 (file-name (git-file-name name version))
9198 (sha256
9199 (base32
9200 "1kkfy8sh6bhh1w5lczaw1nym278q5xp5pxjaahwrl3zfddhdm655"))))
9201 (build-system pyproject-build-system)
9202 (arguments
9203 (list #:tests? #f)) ;no tests
9204 (native-inputs
9205 (list python-setuptools))
9206 (home-page "https://github.com/PabloCastellano/extract-dtb/")
9207 (synopsis "Extract device tree blobs (DTB) from kernel images")
9208 (description
9209 "This package provides a tool to split a kernel image with appended
9210@acronym{DTB, Device Tree Blobs} into separated kernel and DTB files.")
9211 (license license:gpl3+)))
9212
9213(define-public python-mimeparse
9214 (package
9215 (name "python-mimeparse")
9216 (version "2.0.0")
9217 (source
9218 (origin
9219 (method url-fetch)
9220 (uri (pypi-uri "python_mimeparse" version))
9221 (sha256
9222 (base32 "00xk5jir6dm4r3qm8dg8vh8lhq00f35zaryn3gina958gb7rv6jv"))))
9223 (build-system pyproject-build-system)
9224 (native-inputs
9225 (list python-pytest
9226 python-setuptools))
9227 (home-page "https://github.com/falconry/python-mimeparse")
9228 (synopsis "Python library for parsing MIME types")
9229 (description
9230 "Mimeparse provides basic functions for parsing MIME type names and
9231matching them against a list of media-ranges.")
9232 (license license:expat)))
9233
9234(define-public python-miniboa
9235 (package
9236 (name "python-miniboa")
9237 (version "1.0.9")
9238 (source
9239 (origin
9240 (method git-fetch) ;no tests in PyPI archive
9241 (uri (git-reference
9242 (url "https://github.com/shmup/miniboa")
9243 (commit (string-append "v" version))))
9244 (file-name (git-file-name name version))
9245 (sha256
9246 (base32 "05xa44x61bia2pxjdncz6rj10js8hgp2a9hf56avbfk7g58n3v5y"))))
9247 (build-system pyproject-build-system)
9248 (native-inputs
9249 (list python-pytest
9250 python-setuptools
9251 python-wheel))
9252 (home-page "https://github.com/shmup/miniboa")
9253 (synopsis "Simple, single-threaded Telnet server")
9254 (description
9255 "Miniboa is a simple, asynchronous, single-threaded, poll-based Telnet
9256server.")
9257 (license license:asl2.0)))
9258
9259(define-public python-mir-eval
9260 (package
9261 (name "python-mir-eval")
9262 (version "0.8.2")
9263 (source (origin
9264 (method git-fetch)
9265 (uri (git-reference
9266 (url "https://github.com/mir-evaluation/mir_eval")
9267 (commit version)))
9268 (file-name (git-file-name name version))
9269 (sha256
9270 (base32
9271 "0mna57q2r0cjsvgz67v6bay1c6a33wl33yna9s083wfqhjmf9bqf"))))
9272 (build-system pyproject-build-system)
9273 (arguments
9274 (list
9275 #:phases
9276 #~(modify-phases %standard-phases
9277 (add-before 'check 'cd-tests
9278 (lambda _
9279 ;; Move to 'tests' directory because tests read data files from
9280 ;; a relative path.
9281 (chdir "tests"))))))
9282 (propagated-inputs (list python-decorator python-numpy python-scipy))
9283 (native-inputs (list python-matplotlib
9284 python-pytest
9285 python-pytest-mpl
9286 python-setuptools
9287 python-wheel))
9288 (home-page "https://github.com/mir-evaluation/mir_eval")
9289 (synopsis "Common metrics for common audio/music processing tasks")
9290 (description "This is a Python library for computing common heuristic
9291accuracy scores for various music/audio information retrieval/signal
9292processing tasks.")
9293 (license license:expat)))
9294
9295(define-public python-mizani
9296 (package
9297 (name "python-mizani")
9298 (version "0.14.4")
9299 (source
9300 (origin
9301 (method git-fetch)
9302 (uri (git-reference
9303 (url "https://github.com/has2k1/mizani")
9304 (commit (string-append "v" version))))
9305 (file-name (git-file-name name version))
9306 (sha256
9307 (base32 "00n8jbsk35ywa3saypc83p8624kr65xz6m2sbf5js5n17b9m6438"))))
9308 (build-system pyproject-build-system)
9309 (propagated-inputs
9310 (list python-matplotlib
9311 python-numpy
9312 python-pandas
9313 python-scipy))
9314 (native-inputs
9315 (list python-pytest
9316 python-setuptools
9317 python-setuptools-scm
9318 tzdata-for-tests))
9319 (home-page "https://github.com/has2k1/mizani")
9320 (synopsis "Create data visualizations in Python")
9321 (description
9322 "Mizani is a Python package for creating data visualizations. It
9323provides functions and tools to help with the creation of visually appealing
9324and informative visualizations, including scales, transformations and color
9325palettes.")
9326 (license license:bsd-3)))
9327
9328(define-public python-miniupnpc
9329 (package
9330 (name "python-miniupnpc")
9331 (version "2.3.3")
9332 (source
9333 (origin
9334 (method git-fetch)
9335 (uri
9336 (git-reference
9337 ;; The project tags miniupnpd_ as well but with a different version,
9338 ;; where updater may select a wrong version.
9339 (url "https://github.com/miniupnp/miniupnp")
9340 (commit
9341 (string-append
9342 "miniupnpc_" (string-replace-substring version "." "_")))))
9343 (file-name
9344 (git-file-name name version))
9345 (sha256
9346 (base32 "0ysvx21iaq7f505fpnk3280rwnckr0aih0j5j3v82nv99a2rqigh"))))
9347 (build-system pyproject-build-system)
9348 (arguments
9349 (list
9350 #:phases
9351 #~(modify-phases %standard-phases
9352 (add-after 'unpack 'subdir
9353 (lambda* (#:key inputs #:allow-other-keys)
9354 (chdir "miniupnpc")
9355 (setenv "CC" #$(cc-for-target))
9356 (substitute* "Makefile"
9357 (("/bin/sh") (search-input-file inputs "/bin/sh")))))
9358 (add-before 'subdir 'remove-kernel-version
9359 ;; Avoid embedding the running kernel version for reproducible builds
9360 (lambda _
9361 (substitute*
9362 "miniupnpc/updateminiupnpcstrings.sh"
9363 (("^OS_VERSION=`uname -r`") "OS_VERSION=Guix"))))
9364 (replace 'check
9365 (lambda* (#:key tests? #:allow-other-keys)
9366 (when tests?
9367 (invoke "make" "check")))))))
9368 (native-inputs
9369 (list python-setuptools
9370 python-wheel))
9371 (inputs (list python)) ;we are building a Python extension
9372 (synopsis "UPnP client for Python")
9373 (description "Miniupnpc is a client library for Python programs to set up
9374port forwards using @acronym{UPnP, Universal Plug and Play}.")
9375 (home-page "http://miniupnp.free.fr")
9376 (license license:bsd-3)))
9377
9378(define-public python-pyrsistent
9379 (package
9380 (name "python-pyrsistent")
9381 (version "0.20.0")
9382 (home-page "https://github.com/tobgu/pyrsistent")
9383 (source (origin
9384 (method url-fetch)
9385 (uri (pypi-uri "pyrsistent" version))
9386 (sha256
9387 (base32
9388 "1935ybwdxszmzlzshwkc7m7swm1js46ls246j1knqndbca7zfj2c"))))
9389 (build-system pyproject-build-system)
9390 (native-inputs
9391 (list python-pytest python-setuptools python-wheel))
9392 (synopsis "Persistent data structures for Python")
9393 (description
9394 "Pyrsistent is a number of persistent collections (by some referred to as
9395functional data structures). Persistent in the sense that they are immutable.
9396
9397All methods on a data structure that would normally mutate it instead return a
9398new copy of the structure containing the requested updates. The original
9399structure is left untouched.")
9400 (license license:expat)))
9401
9402(define-public python-exif-read
9403 (package
9404 (name "python-exif-read")
9405 (version "3.3.2")
9406 (source
9407 (origin
9408 (method git-fetch) ;PyPI doesn't contain the test images
9409 (uri (git-reference
9410 (url "https://github.com/ianare/exif-py")
9411 (commit version)))
9412 (file-name (git-file-name name version))
9413 (sha256
9414 (base32 "0igvqhalrllidyccy7rlqbhx277rv7mf6bf0w6xjr0dj2dk3jw76"))))
9415 (build-system pyproject-build-system)
9416 (native-inputs (list python-pytest python-setuptools python-wheel))
9417 (home-page "https://github.com/ianare/exif-py")
9418 (synopsis "Python library to extract EXIF data from image files")
9419 (description
9420 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
9421files.")
9422 (license license:bsd-3)))
9423
9424(define-public python-pyld
9425 (package
9426 (name "python-pyld")
9427 (version "2.0.4")
9428 (source
9429 (origin
9430 (method git-fetch)
9431 (uri (git-reference
9432 (url "https://github.com/digitalbazaar/pyld")
9433 ;; Not all tags have the 'v' prefix.
9434 (commit (string-append "v" version))))
9435 (file-name (git-file-name name version))
9436 (sha256
9437 (base32 "12lb4vk7m5y5943fm4r8hixdvlxh6qm21pbv7aalsbpfw8cc18sw"))))
9438 (build-system pyproject-build-system)
9439 (arguments
9440 ;; TODO: Commit history shows next version (>2.0.4) will have pytest tests.
9441 (list #:tests? #f))
9442 (native-inputs
9443 (list python-lxml
9444 python-setuptools))
9445 (propagated-inputs
9446 (list python-aiohttp
9447 python-cachetools
9448 python-frozendict
9449 python-requests))
9450 (home-page "https://github.com/digitalbazaar/pyld")
9451 (synopsis "Python implementation of the JSON-LD specification")
9452 (description "PyLD is an implementation of the JSON-LD specification.")
9453 (license license:bsd-3)))
9454
9455(define-public python-cli-helpers
9456 (package
9457 (name "python-cli-helpers")
9458 (version "2.7.0")
9459 (source
9460 (origin
9461 (method url-fetch)
9462 (uri (pypi-uri "cli_helpers" version))
9463 (sha256
9464 (base32 "1h4b0ka9nh9qidl6s1ard1ixh9c3d0ai5ph3013grhpbvc81glb2"))))
9465 (build-system pyproject-build-system)
9466 (native-inputs
9467 (list python-pytest
9468 python-setuptools))
9469 (propagated-inputs
9470 (list python-configobj
9471 python-tabulate))
9472 (home-page "https://github.com/dbcli/cli_helpers")
9473 (synopsis "Helpers for building command-line apps")
9474 (description
9475 "CLI Helpers is a Python package that makes it easy to perform common
9476tasks when building command-line apps. It's a helper library for command-line
9477interfaces.")
9478 (license license:bsd-3)))
9479
9480(define-public python-click
9481 (package
9482 (name "python-click")
9483 (version "8.4.1")
9484 (source
9485 (origin
9486 (method git-fetch)
9487 (uri (git-reference
9488 (url "https://github.com/pallets/click")
9489 (commit version)))
9490 (file-name (git-file-name name version))
9491 (sha256
9492 (base32 "18fhb6j3fz90088j5xw9vbd9k8xpq0cbk9i7izik4n3q3pm6vq3k"))))
9493 (build-system pyproject-build-system)
9494 (native-inputs
9495 (list less
9496 python-flit-core
9497 python-pytest))
9498 (home-page "https://palletsprojects.com/p/click/")
9499 (synopsis "Command line library for Python")
9500 (description
9501 "Click is a Python package for creating command line interfaces in a
9502composable way with as little code as necessary. Its name stands for
9503\"Command Line Interface Creation Kit\". It's highly configurable but comes
9504with sensible defaults out of the box.")
9505 (license license:bsd-3)))
9506
9507(define-public python-click-7
9508 (package (inherit python-click)
9509 (name "python-click")
9510 (version "7.1.2")
9511 (source
9512 (origin
9513 (method url-fetch)
9514 (uri (pypi-uri "click" version))
9515 (sha256
9516 (base32 "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"))))
9517 (arguments (list #:tests? #f)) ;no tests in PyPI
9518 (native-inputs
9519 (list python-setuptools))))
9520
9521(define-public python-click-8.1
9522 (package
9523 (inherit python-click)
9524 (name "python-click")
9525 (version "8.1.7")
9526 (source
9527 (origin
9528 (method git-fetch)
9529 (uri (git-reference
9530 (url "https://github.com/pallets/click")
9531 (commit version)))
9532 (file-name (git-file-name name version))
9533 (sha256
9534 (base32 "132frw2g4i3s7kv325ah85wav5h92fv3n00wknhcgr5h3hlqi2pi"))))
9535 (native-inputs
9536 (list less
9537 python-pytest
9538 python-setuptools))))
9539
9540(define-public python-click-aliases
9541 (package
9542 (name "python-click-aliases")
9543 (version "1.0.6")
9544 (source
9545 (origin
9546 (method git-fetch)
9547 (uri (git-reference
9548 (url "https://github.com/click-contrib/click-aliases")
9549 (commit (string-append "v" version))))
9550 (file-name (git-file-name name version))
9551 (sha256
9552 (base32 "0jl45vl73x6hrqgj9n3jhga19v0c923v5kv3vdmb2wwn936jyxcw"))))
9553 (build-system pyproject-build-system)
9554 (native-inputs
9555 (list python-pytest
9556 python-poetry-core))
9557 (propagated-inputs
9558 (list python-click))
9559 (home-page "https://github.com/click-contrib/click-aliases")
9560 (synopsis "Enable aliases for Click")
9561 (description
9562 "This package helps to add (mutiple) aliases to a click group or command.")
9563 (license license:expat)))
9564
9565(define-public python-click-option-group
9566 (package
9567 (name "python-click-option-group")
9568 (version "0.5.9")
9569 (source
9570 (origin
9571 (method git-fetch)
9572 (uri (git-reference
9573 (url "https://github.com/click-contrib/click-option-group")
9574 (commit (string-append "v" version))))
9575 (file-name (git-file-name name version))
9576 (sha256
9577 (base32 "1y9sprpgdmi4ww7hv04ciy0n6kacr4s8001zmf8781wr8vrxfb01"))))
9578 (build-system pyproject-build-system)
9579 (native-inputs
9580 (list python-hatch-vcs
9581 python-hatchling
9582 python-pytest))
9583 (propagated-inputs
9584 (list python-click))
9585 (home-page "https://click-option-group.readthedocs.io/")
9586 (synopsis "Option groups missing in Click")
9587 (description
9588 "Click is a package for creating powerful and beautiful command line
9589interfaces (CLI) in Python, but it has no the functionality for creating option
9590groups. The aim of this package is to provide group options with extensible
9591functionality using canonical and clean API (Click-like API as far as
9592possible).")
9593 (license license:bsd-3)))
9594
9595(define-public python-clickgen
9596 (package
9597 (name "python-clickgen")
9598 (version "2.2.5")
9599 (source (origin
9600 (method git-fetch)
9601 (uri (git-reference
9602 (url "https://github.com/ful1e5/clickgen")
9603 (commit (string-append "v" version))))
9604 (file-name (git-file-name name version))
9605 (sha256
9606 (base32
9607 "0gdbkdw9b52wbb0bbhs09bdfyfq979kvlv5sg5p70y3jal9j8lf8"))))
9608 (build-system pyproject-build-system)
9609 (arguments
9610 (list
9611 #:test-flags
9612 ;; XXX: See: <https://github.com/ful1e5/clickgen/issues/65>.
9613 '(list "-k" "not test_clickgen_raises")))
9614 (native-inputs
9615 (list python-pytest
9616 python-setuptools))
9617 (propagated-inputs
9618 (list python-attrs
9619 python-numpy
9620 python-pillow
9621 python-pyyaml
9622 python-toml))
9623 (home-page "https://github.com/ful1e5/clickgen")
9624 (synopsis "The hassle-free cursor building toolbox")
9625 (description
9626 "Clickgen is an API for building X11 and Windows cursors from .png files.
9627clickgen is using @code{anicursorgen} and @code{xcursorgen} under the hood.")
9628 (license license:expat)))
9629
9630(define-public python-clickhouse-connect
9631 (package
9632 (name "python-clickhouse-connect")
9633 (version "0.6.1")
9634 (source (origin
9635 (method git-fetch)
9636 (uri (git-reference
9637 (url "https://github.com/ClickHouse/clickhouse-connect")
9638 (commit (string-append "v" version))))
9639 (file-name (git-file-name name version))
9640 (sha256
9641 (base32
9642 "1s0lk7xdq8f351cmpbp6jidqi5zdazrdba7w7fxph0w8sd74amry"))))
9643 (build-system pyproject-build-system)
9644 (arguments
9645 (list
9646 #:test-flags
9647 ;; All these tests require docker-compose
9648 '(list "--ignore-glob=tests/integration_tests/*")
9649 #:phases
9650 '(modify-phases %standard-phases
9651 (add-after 'unpack 'patch-pyproject
9652 (lambda _
9653 ;; Our version of pytest is confused by this field.
9654 (substitute* "pyproject.toml"
9655 (("^env_files.*") ""))))
9656 (add-before 'check 'build-extensions
9657 (lambda _
9658 ;; Cython extensions have to be built before running the tests.
9659 (invoke "python" "setup.py" "build_ext" "--inplace"))))))
9660 (propagated-inputs
9661 (list python-arrow
9662 python-certifi
9663 python-lz4
9664 python-numpy
9665 python-orjson
9666 python-pandas
9667 python-pytz
9668 python-setuptools ; For pkg_resources.
9669 python-sqlalchemy
9670 python-urllib3
9671 python-zstandard))
9672 (native-inputs
9673 (list python-cython
9674 python-pytest
9675 python-wheel))
9676 (home-page "https://github.com/ClickHouse/clickhouse-connect")
9677 (synopsis
9678 "ClickHouse database core driver for Python, Pandas, and Superset")
9679 (description
9680 "This package provides a high performance core database driver for
9681connecting ClickHouse to Python, Pandas, and Superset.")
9682 (license license:asl2.0)))
9683
9684(define-public python-cligj
9685 (package
9686 (name "python-cligj")
9687 (version "0.7.2")
9688 (source
9689 (origin
9690 (method url-fetch)
9691 (uri (pypi-uri "cligj" version))
9692 (sha256
9693 (base32
9694 "09vbkik6kyn6yrqzl2r74vaybjk8kjykvi975hy3fsrm4gb17g54"))))
9695 (build-system pyproject-build-system)
9696 (native-inputs
9697 (list python-pytest
9698 python-setuptools))
9699 (propagated-inputs
9700 (list python-click))
9701 (home-page "https://github.com/mapbox/cligj")
9702 (synopsis "Click params for command line interfaces to GeoJSON")
9703 (description
9704 "cligj is for Python developers who create command line interfaces
9705for geospatial data. cligj allows you to quickly build consistent,
9706well-tested and interoperable CLIs for handling GeoJSON.")
9707 (license license:bsd-3)))
9708
9709(define-public python-cloup
9710 (package
9711 (name "python-cloup")
9712 (version "3.0.8")
9713 (source (origin
9714 (method url-fetch)
9715 (uri (pypi-uri "cloup" version))
9716 (sha256
9717 (base32
9718 "1jryxdmvrxicfqdf5pqnzjbnwikg4r865gga9zvxv5jif850h77r"))))
9719 (build-system pyproject-build-system)
9720 (propagated-inputs (list python-click))
9721 (native-inputs (list python-pytest python-setuptools python-setuptools-scm))
9722 (home-page "https://github.com/janLuke/cloup")
9723 (synopsis "Extension library for python-click")
9724 (description
9725 "Cloup enriches Click with several features that make it more expressive
9726and configurable such as option groups, constraints, subcommand aliases,
9727subcommands sections and a themeable HelpFormatter.")
9728 (license license:bsd-3)))
9729
9730(define-public python-jsondiff
9731 (package
9732 (name "python-jsondiff")
9733 (version "2.2.1")
9734 (source
9735 (origin
9736 (method url-fetch)
9737 (uri (pypi-uri "jsondiff" version))
9738 (sha256
9739 (base32
9740 "1zpp8l2ii9ic1sk6kdcqxk0v5q9pgdmdhg1h4vg8dfl6i8n1d3b5"))))
9741 (build-system pyproject-build-system)
9742 (arguments
9743 (list
9744 #:phases
9745 #~(modify-phases %standard-phases
9746 (add-before 'build 'set-version
9747 (lambda _
9748 (substitute* "pyproject.toml"
9749 (("^version_file.*") "")
9750 (("dynamic = \\[\"version\"\\]")
9751 (string-append "version = \"" #$version "\""))))))))
9752 (propagated-inputs (list python-pyyaml))
9753 (native-inputs
9754 (list python-hypothesis
9755 python-pytest
9756 python-setuptools
9757 python-setuptools-scm
9758 python-wheel))
9759 (home-page "https://github.com/fzumstein/jsondiff")
9760 (synopsis "Compare JSON and JSON-like structures in Python")
9761 (description "@code{jsondiff} is a Python library which lets you compare,
9762diff, and patch JSON and JSON-like structures in Python.")
9763 (license license:expat)))
9764
9765(define-public python-ddlparse
9766 (package
9767 (name "python-ddlparse")
9768 (version "1.10.0")
9769 (source
9770 (origin
9771 (method url-fetch)
9772 (uri (pypi-uri "ddlparse" version))
9773 (sha256
9774 (base32 "1nh8m6rxslwk05daxshxmgk41qfp18yynydba49b13l4m8dnh634"))))
9775 (build-system pyproject-build-system)
9776 (native-inputs
9777 (list python-pytest python-setuptools))
9778 (propagated-inputs (list python-pyparsing))
9779 (home-page "https://github.com/shinichi-takii/ddlparse")
9780 (synopsis "Parses and converts DDL to BigQuery JSON schema")
9781 (description "This package provides @code{ddlparse}, a Python library to parse
9782and convert DDL to BigQuery JSON schema.")
9783 (license license:bsd-3)))
9784
9785(define-public python-jsonschema
9786 (package
9787 (name "python-jsonschema")
9788 (version "4.26.0")
9789 (source
9790 (origin
9791 (method git-fetch)
9792 (uri (git-reference
9793 (url "https://github.com/Julian/jsonschema")
9794 (commit (string-append "v" version))))
9795 (file-name (git-file-name name version))
9796 (sha256
9797 (base32 "0p89jy7s1agi2zqrsdm56p843k847n9cixjsc12hnzscll37kysk"))))
9798 (build-system pyproject-build-system)
9799 (arguments
9800 (list
9801 ;; tests: 7762 passed, 53 skipped
9802 #:phases
9803 #~(modify-phases %standard-phases
9804 (add-before 'check 'pre-check
9805 (lambda _
9806 (setenv "JSON_SCHEMA_TEST_SUITE" "json"))))))
9807 (native-inputs
9808 (list python-hatchling
9809 python-hatch-fancy-pypi-readme
9810 python-hatch-vcs
9811 python-jsonpath-ng
9812 python-pytest))
9813 (propagated-inputs
9814 (list python-attrs
9815 python-jsonschema-specifications
9816 python-referencing
9817 python-rpds-py
9818 ;; [optional]
9819 python-fqdn
9820 python-idna
9821 python-isoduration
9822 python-jsonpointer
9823 python-rfc3339-validator
9824 python-rfc3986-validator
9825 python-rfc3987-syntax ;sanity-check fails without this
9826 python-uri-template
9827 python-webcolors))
9828 (home-page "https://github.com/Julian/jsonschema")
9829 (synopsis "Implementation of JSON Schema for Python")
9830 (description
9831 "Jsonschema is an implementation of JSON Schema for Python.")
9832 (license license:expat)))
9833
9834;; For docker-compose 1.29.2, remove when its updated to the latest 2.x
9835;; version.
9836(define-public python-jsonschema-3
9837 (package
9838 (inherit python-jsonschema)
9839 (version "3.2.0")
9840 (source (origin
9841 (method url-fetch)
9842 (uri (pypi-uri "jsonschema" version))
9843 (sha256
9844 (base32
9845 "0ykr61yiiizgvm3bzipa3l73rvj49wmrybbfwhvpgk3pscl5pa68"))))
9846 (arguments
9847 (substitute-keyword-arguments arguments
9848 ((#:tests? _ #t) #f)))
9849 (propagated-inputs
9850 (list python-attrs
9851 python-pyrsistent
9852 python-typing-extensions))
9853 (native-inputs
9854 (list python-setuptools-scm python-twisted
9855 python-setuptools python-wheel))))
9856
9857;; A bare minimal package, mainly to use in tests and reduce closure size.
9858;; Tests are left out in the main package to slim down native-inputs and
9859;; propagated-inputs.
9860(define-public python-jsonschema-minimal
9861 (package/inherit python-jsonschema
9862 (name "python-jsonschema-minimal")
9863 (arguments
9864 (substitute-keyword-arguments arguments
9865 ((#:tests? _ #t) #f)))
9866 (native-inputs
9867 (list python-hatchling
9868 python-hatch-fancy-pypi-readme
9869 python-hatch-vcs))
9870 (propagated-inputs
9871 (list python-attrs
9872 python-jsonschema-specifications
9873 python-referencing
9874 python-rpds-py))))
9875
9876(define-public python-jsonschema-path
9877 (package
9878 (name "python-jsonschema-path")
9879 (version "0.3.2")
9880 (source
9881 (origin
9882 (method url-fetch)
9883 (uri (pypi-uri "jsonschema_path" version))
9884 (sha256
9885 (base32 "129rb8y2bj2wwps8vs3z1qav006k7wz2myx5j6dnxqs1yfmsn3ad"))))
9886 (build-system pyproject-build-system)
9887 (arguments
9888 (list
9889 #:tests? #false ;there are none
9890 #:phases
9891 '(modify-phases %standard-phases
9892 (add-after 'unpack 'relax-requirements
9893 (lambda _
9894 (substitute* "pyproject.toml"
9895 (("referencing = \">=0.28.0,<0.32.0\"")
9896 "referencing = \">=0.28.0\"")))))))
9897 (propagated-inputs (list python-pathable python-pyyaml python-referencing
9898 python-requests))
9899 (native-inputs (list python-poetry-core))
9900 (home-page "https://github.com/p1c2u/jsonschema-path")
9901 (synopsis "JSONSchema Spec with object-oriented paths")
9902 (description "This package implements object-oriented JSONSchema. It lets
9903you traverse a schema like paths and access a schema on demand with separate
9904dereferencing accessor layer.")
9905 (license license:asl2.0)))
9906
9907(define-public python-jsonschema-objects
9908 (package
9909 (name "python-jsonschema-objects")
9910 (version "0.5.7")
9911 (source
9912 (origin
9913 (method git-fetch)
9914 (uri (git-reference
9915 (url "https://github.com/cwacek/python-jsonschema-objects/")
9916 (commit version)))
9917 (file-name (git-file-name name version))
9918 (sha256
9919 (base32 "0p3m0fbj25brhfma4bl47xjq6x4ay14yx284qwrki96dwd6v46xd"))))
9920 (build-system pyproject-build-system)
9921 (native-inputs
9922 (list python-pytest
9923 python-pytest-mock
9924 python-setuptools))
9925 (propagated-inputs
9926 (list python-inflection
9927 python-jsonschema
9928 python-markdown))
9929 (home-page "http://python-jsonschema-objects.readthedocs.org/")
9930 (synopsis "Automatic Python binding generation from JSON schemas")
9931 (description
9932 "This package provides an automatic class-based binding to JSON
9933Schemas for use in python.")
9934 (license license:expat)))
9935
9936(define-public python-jsonschema-specifications
9937 (package
9938 (name "python-jsonschema-specifications")
9939 (version "2025.9.1")
9940 (source
9941 (origin
9942 (method git-fetch)
9943 (uri (git-reference
9944 (url "https://github.com/python-jsonschema/jsonschema-specifications")
9945 (commit (string-append "v" version))))
9946 (file-name (git-file-name name version))
9947 (sha256
9948 (base32 "0fxjcq2qqzahfi9jinns2gmrnjq1zf216dr3i480aphabdx1c67z"))))
9949 (build-system pyproject-build-system)
9950 (native-inputs
9951 (list python-hatch-vcs
9952 python-hatchling
9953 python-pytest))
9954 (propagated-inputs
9955 (list python-referencing))
9956 (home-page "https://github.com/python-jsonschema/jsonschema-specifications")
9957 (synopsis
9958 "JSON Schema meta-schemas and vocabularies, exposed as a Registry")
9959 (description
9960 "This package provides JSON support files from the JSON Schema
9961Specifications (metaschemas, vocabularies, etc.), packaged for runtime access
9962from Python as a referencing-based Schema Registry.")
9963 (license license:expat)))
9964
9965(define-public python-schema
9966 (package
9967 (name "python-schema")
9968 (version "0.7.8")
9969 (source
9970 (origin
9971 (method git-fetch)
9972 (uri (git-reference
9973 (url "https://github.com/keleshev/schema")
9974 (commit (string-append "v" version))))
9975 (file-name (git-file-name name version))
9976 (sha256
9977 (base32 "149smlvj0jlvpsw39lw84c29prg76k1gr6iazl9fqydaqiaw52c5"))))
9978 (build-system pyproject-build-system)
9979 (native-inputs
9980 (list python-pytest python-setuptools))
9981 (home-page "https://github.com/keleshev/schema")
9982 (synopsis "Simple data validation library")
9983 (description
9984 "@code{python-schema} is a library for validating Python data
9985structures, such as those obtained from config-files, forms, external
9986services or command-line parsing, converted from JSON/YAML (or
9987something else) to Python data-types.")
9988 (license license:psfl)))
9989
9990(define-public python-kitchen
9991 (package
9992 (name "python-kitchen")
9993 (version "1.2.6")
9994 (source
9995 (origin
9996 (method git-fetch)
9997 (uri (git-reference
9998 (url "https://github.com/fedora-infra/kitchen")
9999 (commit version)))
10000 (file-name (git-file-name name version))
10001 (sha256
10002 (base32 "1wf2m4yx5467vxg4scgzihb0q9q3k7fasgxanhrnxpp1a5l8l93n"))))
10003 (build-system pyproject-build-system)
10004 (arguments
10005 (list
10006 #:test-flags
10007 #~(list "kitchen3"
10008 ;; XXX: Unclear why these tests fail.
10009 "-e" "test_invalid_fallback_no_raise"
10010 "-e" "test_internal_generate_combining_table"
10011 "-e" "test_lgettext"
10012 "-e" "test_lngettext"
10013 "-e" "test_easy_gettext_setup_non_unicode")
10014 #:phases
10015 #~(modify-phases %standard-phases
10016 (add-before 'check 'delete-broken-test-files
10017 (lambda _
10018 (delete-file "kitchen3/tests/test__all__.py")
10019 (delete-file "kitchen3/tests/test_deprecation_py3.py"))))))
10020 (native-inputs (list python-pynose python-setuptools))
10021 (home-page "https://github.com/fedora-infra/kitchen")
10022 (synopsis "Python API for snippets")
10023 (description
10024 "@code{kitchen} module provides a python API for all sorts of little
10025useful snippets of code that everybody ends up writing for their projects but
10026never seem big enough to build an independent release. Use kitchen and stop
10027cutting and pasting that code over and over.")
10028 (license (list license:lgpl2.1+
10029 ;; subprocess.py, test_subprocess.py,
10030 ;; kitchen/pycompat25/defaultdict.py:
10031 license:psfl))))
10032
10033(define-public python-roman
10034 (package
10035 (name "python-roman")
10036 (version "5.2")
10037 (source
10038 (origin
10039 (method git-fetch)
10040 (uri (git-reference
10041 (url "https://github.com/zopefoundation/roman")
10042 (commit version)))
10043 (file-name (git-file-name name version))
10044 (sha256
10045 (base32
10046 "0zvg6pmv0yxm0b96dx104jzlxnsi3wy4swbj1lmc3mym5nahgp36"))))
10047 (build-system pyproject-build-system)
10048 (arguments
10049 (list
10050 #:test-backend #~'unittest
10051 #:test-flags #~(list "discover" "-s" "src")))
10052 (native-inputs (list python-setuptools))
10053 (home-page "https://github.com/zopefoundation/roman")
10054 (synopsis "Integer to Roman numerals converter")
10055 (description
10056 "This package provides a small helper library to convert Arabic Numbers
10057to Roman Numerals.")
10058 (license license:zpl2.1)))
10059
10060(define-public python-rollbar
10061 (package
10062 (name "python-rollbar")
10063 (version "1.3.0")
10064 (source (origin
10065 (method url-fetch)
10066 (uri (pypi-uri "rollbar" version))
10067 (sha256
10068 (base32
10069 "0ydksca7glb7g026f4f8nsvpyj8qpgv74642hjj4zk4vqgm0552i"))))
10070 (build-system pyproject-build-system)
10071 (native-inputs (list python-httpx
10072 python-pytest
10073 python-setuptools
10074 python-webob
10075 python-wheel))
10076 (inputs (list python-requests))
10077 (home-page "https://github.com/rollbar/pyrollbar")
10078 (synopsis "Notifier for exceptions, errors, and log messages to Rollbar")
10079 (description
10080 "Python SDK for reporting exceptions, errors, and log messages
10081to @url{https://rollbar.com/, Rollbar}.
10082
10083Capabilities include:
10084
10085@itemize @bullet
10086@item Sending messages and exceptions with arbitrary context
10087@item Getting back aggregates
10088@item Debugging production issues
10089@end itemize")
10090 (license license:expat)))
10091
10092(define-public python-pyjwt
10093 (package
10094 (name "python-pyjwt")
10095 (version "2.10.1")
10096 (source
10097 (origin
10098 (method url-fetch)
10099 (uri (pypi-uri "pyjwt" version))
10100 (sha256
10101 (base32 "0lqr73wnrnxflbh8wr768hxp493qayhdis86mwy26280n8p7gi9w"))))
10102 (build-system pyproject-build-system)
10103 (arguments
10104 (list
10105 ;; tests: 286 passed, 4 skipped, 1 deselected
10106 ;;
10107 ;; jwt.exceptions.PyJWKClientConnectionError: Fail to fetch data from
10108 ;; the url, err: "<urlopen error [Errno -3] Temporary failure in name
10109 ;; resolution>"
10110 #:test-flags #~(list "-k" "not test_get_jwt_set_sslcontext_default")))
10111 (native-inputs
10112 (list python-pytest
10113 python-setuptools))
10114 (propagated-inputs
10115 (if (supported-package? python-cryptography)
10116 (list python-cryptography)
10117 '()))
10118 (home-page "https://github.com/progrium/pyjwt")
10119 (synopsis "JSON Web Token implementation in Python")
10120 (description
10121 "PyJWT is a JSON Web Token implementation written in Python.")
10122 (license license:expat)))
10123
10124(define-public python-pymsgbox
10125 (let ((commit "944b7cdc67058d005ce5fd011c66f2d87d25aba0")
10126 (revision "1"))
10127 (package
10128 (name "python-pymsgbox")
10129 (version (git-version "1.0.6" revision commit))
10130 (source
10131 (origin
10132 (method git-fetch)
10133 (uri (git-reference
10134 (url "https://github.com/asweigart/PyMsgBox")
10135 (commit commit)))
10136 (file-name (git-file-name name version))
10137 (sha256
10138 (base32 "1bhipfvnc06l8hiadk302v74yin38nwz1r47njliwk8kz103yl3g"))))
10139 (build-system pyproject-build-system)
10140 (arguments
10141 ;; Circular dependency to run tests:
10142 ;; Tests need pyautogui, which depends on pymsgbox.
10143 '(#:tests? #f))
10144 (native-inputs (list python-setuptools python-wheel))
10145 (home-page "https://github.com/asweigart/PyMsgBox")
10146 (synopsis "Python module for JavaScript-like message boxes")
10147 (description
10148 "PyMsgBox is a simple, cross-platform, pure Python module for
10149JavaScript-like message boxes. Types of dialog boxes include:
10150@enumerate
10151@item alert
10152@item confirm
10153@item prompt
10154@item password
10155@end enumerate
10156")
10157 (license license:bsd-3))))
10158
10159(define-public python-pympler
10160 (let ((commit "6d595e0ac72d0a6ed2fb4aa77ae5f89189667721")
10161 (revision "0"))
10162 (package
10163 (name "python-pympler")
10164 (version (git-version "1.1" revision commit))
10165 (source
10166 (origin
10167 (method git-fetch)
10168 (uri (git-reference
10169 (url "https://github.com/pympler/pympler")
10170 (commit commit)))
10171 (file-name (git-file-name name version))
10172 (sha256
10173 (base32 "0clr767p1ky6ckvisq8iv6alcaya2hhvyk3z57wbs765brag4pdh"))))
10174 (build-system pyproject-build-system)
10175 (arguments
10176 (list
10177 #:tests? #f ;FIXME: tests timeout.
10178 #:test-flags
10179 #~(list
10180 ;; This test fails with error: 'function (test.muppy.test_summary.func)'
10181 ;; != 'function (muppy.test_summary.func)'.
10182 ;; See <https://github.com/pympler/pympler/issues/134>.
10183 "--deselect=test/muppy/test_summary.py::SummaryTest::test_repr_function"
10184 ;; This test times out.
10185 "--deselect=test/gui/test_web.py::WebGuiTest::test_traceback"
10186 "--deselect=test/muppy/test_tracker.py::TrackerTest::test_otracker_diff")))
10187 (native-inputs
10188 (list python-pytest python-setuptools))
10189 (home-page "https://pythonhosted.org/Pympler/")
10190 (synopsis "Measure, monitor and analyze memory behavior")
10191 (description
10192 "Pympler is a development tool to measure, monitor and analyze
10193the memory behavior of Python objects in a running Python application.
10194
10195By pympling a Python application, detailed insight in the size and the
10196lifetime of Python objects can be obtained. Undesirable or unexpected
10197runtime behavior like memory bloat and other @samp{pymples} can easily
10198be identified.
10199
10200A web profiling frontend exposes process statistics, garbage
10201visualisation and class tracker statistics.")
10202 (license license:asl2.0))))
10203
10204(define-public python-itsdangerous
10205 (package
10206 (name "python-itsdangerous")
10207 (version "2.2.0")
10208 (source
10209 (origin
10210 (method url-fetch)
10211 (uri (pypi-uri "itsdangerous" version))
10212 (sha256
10213 (base32 "0wv1bwzbfvpsh4ng5gn4d4mjwvjwpg7w0jgiz8zsbvm1gl5hq1g0"))))
10214 (build-system pyproject-build-system)
10215 (native-inputs
10216 (list python-flit-core
10217 python-freezegun
10218 python-pytest))
10219 (home-page "https://palletsprojects.com/p/itsdangerous/")
10220 (synopsis "Python library for passing data to/from untrusted environments")
10221 (description
10222 "Itsdangerous provides various helpers to pass trusted data to untrusted
10223environments and back.")
10224 (license license:bsd-3)))
10225
10226;; WARNING: This package is a dependency of mesa.
10227(define-public python-pyyaml
10228 (package
10229 (name "python-pyyaml")
10230 (version "6.0.3")
10231 (source
10232 (origin
10233 (method git-fetch)
10234 (uri (git-reference
10235 (url "https://github.com/yaml/pyyaml")
10236 (commit version)))
10237 (file-name (git-file-name name version))
10238 (sha256
10239 (base32 "0w00gkjqx1g8c5gdm9qqznnj7ijzfjqwqgymppqw5lbw38h2hjld"))))
10240 (build-system pyproject-build-system)
10241 (native-inputs
10242 (list python-cython
10243 python-pytest
10244 python-setuptools))
10245 (inputs
10246 (list libyaml))
10247 (home-page "https://pyyaml.org")
10248 (synopsis "YAML parser and emitter for Python")
10249 (description
10250 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
10251complete YAML 1.1 parser, Unicode support, pickle support, capable extension
10252API, and sensible error messages. PyYAML supports standard YAML tags and
10253provides Python-specific tags that represent an arbitrary Python object.")
10254 (license license:expat)))
10255
10256(define-public python-crossenv
10257 (package
10258 (name "python-crossenv")
10259 (version "1.6.1")
10260 (source
10261 (origin
10262 (method git-fetch)
10263 (uri (git-reference
10264 (url "https://github.com/benfogle/crossenv")
10265 (commit (string-append "v" version))))
10266 (file-name (git-file-name name version))
10267 (sha256
10268 (base32 "15mj5kfb30jj0m1jj8qz19zdf53380j14hzj2rx13ilnr1d7j6rn"))))
10269 (build-system pyproject-build-system)
10270 (arguments
10271 (list
10272 ;; XXX: Running test require setting environment variables for
10273 ;; architectures.
10274 #:tests? #f))
10275 (native-inputs (list python-hatchling))
10276 (home-page "https://github.com/benfogle/crossenv")
10277 (synopsis "Cross-compiling virtualenv for Python")
10278 (description
10279 "This package is a tool for cross-compiling extension modules. It
10280creates a special virtual environment such that @command{pip} or
10281@file{setup.py} will cross compile packages for you, usually with no further
10282work on your part.")
10283 (license license:expat)))
10284
10285(define-public python-linkify-it-py
10286 (package
10287 (name "python-linkify-it-py")
10288 (version "2.1.0")
10289 (source (origin
10290 (method git-fetch)
10291 (uri (git-reference
10292 (url "https://github.com/tsutsu3/linkify-it-py")
10293 (commit (string-append "v" version))))
10294 (file-name (git-file-name name version))
10295 (sha256
10296 (base32
10297 "006yvm2pcilq60zb02ijhdma26csynhkffb8wscjmjzbwqq8fzqh"))))
10298 (build-system pyproject-build-system)
10299 (propagated-inputs (list python-uc-micro-py))
10300 (native-inputs (list python-pytest python-setuptools))
10301 (home-page "https://github.com/tsutsu3/linkify-it-py")
10302 (synopsis "Links recognition library with full Unicode support")
10303 (description "This is Python port of
10304@url{https://github.com/markdown-it/linkify-it, linkify-it}, which is a links
10305recognition library with full Unicode support. It has features like:
10306@itemize
10307@item Full unicode support, with @i{astral} characters
10308@item International domains support
10309@item Allows rules extension and custom normalizers.
10310@end itemize")
10311 (license license:expat)))
10312
10313(define-public python-makefun
10314 (package
10315 (name "python-makefun")
10316 ;; Released version fails tests in Python 3.12 due to asyncio
10317 (properties '((commit . "bacb3e1a6edc36e5f8dda3fbdad5dacdda1675eb")
10318 (revision . "0")))
10319 (version (git-version "1.16.0"
10320 (assoc-ref properties 'revision)
10321 (assoc-ref properties 'commit)))
10322 (source
10323 (origin
10324 (method git-fetch)
10325 (uri (git-reference
10326 (url "https://github.com/smarie/python-makefun")
10327 (commit (assoc-ref properties 'commit))))
10328 (file-name (git-file-name name version))
10329 (sha256
10330 (base32
10331 "10xw93r9lxqfgaapnf07pywmy58mw8z7fgcaw7ym66cn71gjxw4d"))))
10332 (build-system pyproject-build-system)
10333 (native-inputs
10334 (list python-pytest
10335 python-pytest-asyncio
10336 python-setuptools
10337 python-setuptools-scm))
10338 (home-page "https://github.com/smarie/python-makefun")
10339 (synopsis "Library to dynamically create python functions")
10340 (description "@code{makefun} helps create functions dynamically with a
10341given signature. It was largely inspired by @code{python-decorator} and
10342@code{functools}.")
10343 (license license:bsd-3)))
10344
10345(define-public python-markdown-it-py
10346 (package
10347 (name "python-markdown-it-py")
10348 (version "4.0.0")
10349 (source
10350 (origin
10351 (method git-fetch)
10352 (uri (git-reference
10353 (url "https://github.com/executablebooks/markdown-it-py")
10354 (commit (string-append "v" version))))
10355 (file-name (git-file-name name version))
10356 (sha256
10357 (base32 "1ayx5pjm1wa1g6v0b9c013xn6g6055b1ng41iqr3rnxdr1q7sqpp"))))
10358 (build-system pyproject-build-system)
10359 (arguments (list #:test-flags #~(list "--benchmark-disable")))
10360 (native-inputs
10361 (list python-flit-core
10362 python-pytest
10363 python-pytest-benchmark
10364 python-pytest-regressions
10365 python-requests))
10366 (propagated-inputs
10367 (list python-commonmark
10368 python-linkify-it-py
10369 python-markdown
10370 python-mdurl
10371 python-mistletoe
10372 python-mistune
10373 python-panflute
10374 python-pyyaml))
10375 (home-page "https://github.com/executablebooks/markdown-it-py")
10376 (synopsis "Python port of markdown-it")
10377 (description
10378 "This is a Python port of @code{markdown-it}, and some of its associated
10379plugins. The driving design philosophy of the port has been to change as
10380little of the fundamental code structure (file names, function name, etc) as
10381possible.")
10382 (license license:expat)))
10383
10384(define-public python-markupsafe
10385 (package
10386 (name "python-markupsafe")
10387 (version "3.0.3")
10388 (source
10389 (origin
10390 (method url-fetch)
10391 (uri (pypi-uri "markupsafe" version))
10392 (sha256
10393 (base32 "160npsg7jh6mbiwy23xm9aqcxgcn0wl33hgx42rmfr2biy09a9kj"))))
10394 (build-system pyproject-build-system)
10395 ;; tests: 79 passed, 1 skipped
10396 (native-inputs
10397 (list python-pytest
10398 python-setuptools))
10399 (home-page "https://markupsafe.palletsprojects.com")
10400 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
10401 (description
10402 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
10403for Python.")
10404 (license license:bsd-3)))
10405
10406(define-public python-jinja2
10407 (package
10408 (name "python-jinja2")
10409 (version "3.1.6")
10410 (source
10411 (origin
10412 (method git-fetch)
10413 (uri (git-reference
10414 (url "https://github.com/pallets/jinja")
10415 (commit version)))
10416 (file-name (git-file-name name version))
10417 (sha256
10418 (base32 "01ds59a1cync34xq7s0q6f50k9nvn2n80zh62qa2a8vnr7fz5nlv"))))
10419 (build-system pyproject-build-system)
10420 (native-inputs
10421 (list python-flit-core
10422 python-pytest
10423 python-trio))
10424 (propagated-inputs
10425 (list python-markupsafe))
10426 (home-page "https://jinja.palletsprojects.com/")
10427 (synopsis "Python template engine")
10428 (description
10429 "Jinja2 is a small but fast and easy to use stand-alone template engine
10430written in pure Python.")
10431 (license license:bsd-3)))
10432
10433(define-public python-jinja2-fragments
10434 (package
10435 (name "python-jinja2-fragments")
10436 (version "1.11.0")
10437 (source
10438 (origin
10439 (method git-fetch)
10440 (uri (git-reference
10441 (url "https://github.com/sponsfreixes/jinja2-fragments")
10442 (commit version)))
10443 (file-name (git-file-name name version))
10444 (sha256
10445 (base32 "14qr0ppllq296c1y2i5ly8l4y97q8msin5khlpli3akgrzsnvmkl"))
10446 (patches
10447 ;; Remove test setup code related to `litestar` and `sanic`
10448 (search-patches "python-jinja2-fragments-modify-conftest-py.patch"))))
10449 (build-system pyproject-build-system)
10450 (arguments
10451 (list
10452 #:test-flags
10453 #~(list "--ignore=tests/test_litestar.py"
10454 "--ignore=tests/test_sanic.py")))
10455 (native-inputs
10456 (list python-fastapi
10457 python-flask
10458 python-pytest
10459 python-pytest-asyncio
10460 python-quart
10461 python-setuptools))
10462 (propagated-inputs
10463 (list python-jinja2))
10464 (home-page "https://github.com/sponsfreixes/jinja2-fragments")
10465 (synopsis "Jinja2 extension for template fragments")
10466 (description
10467 "Render Jinja2 template block as HTML page fragments on Python web
10468frameworks.")
10469 (license license:expat)))
10470
10471(define-public python-pypugjs
10472 (package
10473 (name "python-pypugjs")
10474 (version "5.12.0")
10475 (source
10476 (origin
10477 (method git-fetch)
10478 (uri (git-reference
10479 (url "https://github.com/kakulukia/pypugjs")
10480 (commit (string-append "v" version))))
10481 (file-name (git-file-name name version))
10482 (sha256
10483 (base32 "008wxvh2p08i8mlgak8hz3z057m06m4ydrca2ickl2m593476xi4"))))
10484 (build-system pyproject-build-system)
10485 (native-inputs (list python-django
10486 python-jinja2
10487 python-flask
10488 python-mako
10489 python-poetry-core
10490 python-pytest
10491 python-tornado))
10492 (propagated-inputs (list python-charset-normalizer python-six))
10493 (home-page "https://github.com/kakulukia/pypugjs")
10494 (synopsis "Convert Pug source files into different template languages")
10495 (description
10496 "PyPugJS is a high-performance port of PugJS for Python, that converts
10497any @file{.pug} source into different template languages: Django, Jinja2,
10498Mako, and Tornado.")
10499 (license license:expat))) ;; MIT
10500
10501(define-public python-pysrt
10502 (package
10503 (name "python-pysrt")
10504 (version "1.1.2")
10505 (source
10506 (origin
10507 (method git-fetch)
10508 (uri (git-reference
10509 (url "https://github.com/byroot/pysrt")
10510 (commit (string-append "v" version))))
10511 (file-name (git-file-name name version))
10512 (sha256
10513 (base32 "1f5hxyzlh5mdvvi52qapys9qcinffr6ghgivb6k4jxa92cbs3mfg"))))
10514 (build-system pyproject-build-system)
10515 (arguments
10516 (list
10517 #:test-backend #~'unittest
10518 #:phases
10519 #~(modify-phases %standard-phases
10520 (add-after 'unpack 'fix-python-incompatibilities
10521 (lambda _
10522 (substitute* (find-files "tests" "\\.py$")
10523 (("assertEquals") "assertEqual")))))))
10524 (propagated-inputs (list python-chardet))
10525 (native-inputs (list python-setuptools))
10526 (home-page "https://github.com/byroot/pysrt")
10527 (synopsis "SubRip Text subtitle parser and writer")
10528 (description
10529 "This package provides a Python library to edit or create
10530SubRip Text files, and additionally a command-line program @command{srt}
10531to shift, split or rescale them.")
10532 (license license:gpl3+)))
10533
10534(define-public python-pystache
10535 (package
10536 (name "python-pystache")
10537 (version "0.6.8")
10538 (source (origin
10539 (method url-fetch)
10540 (uri (pypi-uri "pystache" version))
10541 (sha256
10542 (base32
10543 "0b67fmq0wmfkgcr7qqc44vvpvh8zkdk0rh87kccds9jdda7521rp"))))
10544 (build-system pyproject-build-system)
10545 (native-inputs (list python-pytest python-setuptools python-wheel))
10546 (home-page "http://defunkt.io/pystache/")
10547 (synopsis "Python logic-less template engine")
10548 (description
10549 "Pystache is a Python implementation of the framework agnostic,
10550logic-free templating system Mustache.")
10551 (license license:expat)))
10552
10553(define-public python-pystack
10554 (package
10555 (name "python-pystack")
10556 (version "1.5.1")
10557 (source
10558 (origin
10559 (method git-fetch)
10560 (uri (git-reference
10561 (url "https://github.com/bloomberg/pystack")
10562 (commit (string-append "v" version))))
10563 (file-name (git-file-name name version))
10564 (sha256
10565 (base32 "0b9fvk0k09d7h6jv4nix9z8b980pcpi1kxnr9hlfhhgv70n7jz88"))))
10566 (build-system pyproject-build-system)
10567 (arguments
10568 (list
10569 ;; Integration tests need ptrace and gcore (gdb).
10570 #:test-flags #~(list "tests/unit")))
10571 (native-inputs
10572 (list python-cython
10573 python-pkgconfig
10574 python-pytest
10575 python-setuptools))
10576 (inputs
10577 (list elfutils))
10578 (home-page "https://github.com/bloomberg/pystack")
10579 (synopsis "Python stack trace analyzer for core dumps and live processes")
10580 (description
10581 "PyStack analyzes stack frames of running Python processes or Python core
10582dumps. It can inspect what a process is doing or what it was doing when it
10583crashed, without modifying any memory or executing code in the target process.")
10584 (license license:asl2.0)))
10585
10586(define-public python-pystitcher
10587 (package
10588 (name "python-pystitcher")
10589 (properties '((commit . "d8150be85d53335f7077491ab4d73fad772ef1c9")
10590 (revision . "0")
10591 (upstream-version . "1.0.5")))
10592 (version (git-version (assoc-ref properties 'upstream-version)
10593 (assoc-ref properties 'revision)
10594 (assoc-ref properties 'commit)))
10595 (source
10596 (origin
10597 (method git-fetch)
10598 (uri (git-reference
10599 (url "https://github.com/captn3m0/pystitcher")
10600 (commit (assoc-ref properties 'commit))))
10601 (file-name (git-file-name name version))
10602 (sha256
10603 (base32 "02q03smvfz6x8v45s6qcgh1r2plpcam7ra24ikgqlmq005w7nhv3"))))
10604 (build-system pyproject-build-system)
10605 (native-inputs (list python-hatchling python-hatch-vcs python-pytest))
10606 (inputs (list python-html5lib
10607 python-markdown
10608 python-pypdf
10609 python-validators))
10610 (home-page "https://github.com/captn3m0/pystitcher")
10611 (synopsis "Declaratively stitch together a PDF file from multiple sources")
10612 (description
10613 "This package stitches your PDF files together, generating customizable
10614bookmarks using a declarative input in the form of a markdown file.")
10615 (license license:expat)))
10616
10617(define-public python-joblib
10618 (package
10619 (name "python-joblib")
10620 (version "1.5.3")
10621 (source
10622 (origin
10623 (method git-fetch)
10624 (uri (git-reference
10625 (url "https://github.com/joblib/joblib")
10626 (commit version)))
10627 (file-name (git-file-name name version))
10628 (sha256
10629 (base32 "0vblgi0mb1jcwgf8f3rslw82g28fjl6n52mwgsm7p7y2nrixdrjb"))))
10630 (build-system pyproject-build-system)
10631 (arguments
10632 (list
10633 ;; tests: 1319 passed, 103 skipped, 3 xpassed, 563 warnings
10634 #:test-flags
10635 #~(list "--numprocesses" (number->string (min 8 (parallel-job-count)))
10636 ;; Disabled to avoid having to depend on ipython/jupyter.
10637 "-k" "not test_parallel_call_cached_function_defined_in_jupyter")))
10638 (native-inputs
10639 (list python-pytest
10640 python-pytest-asyncio
10641 python-pytest-xdist
10642 python-setuptools))
10643 (home-page "https://joblib.readthedocs.io/")
10644 (synopsis "Using Python functions as pipeline jobs")
10645 (description
10646 "Joblib is a set of tools to provide lightweight pipelining in Python.
10647In particular, joblib offers: transparent disk-caching of the output values
10648and lazy re-evaluation (memoize pattern), easy simple parallel computing
10649logging and tracing of the execution.")
10650 (license license:bsd-3)))
10651
10652(define-public python-daemon
10653 (package
10654 (name "python-daemon")
10655 (version "3.1.2")
10656 (source
10657 (origin
10658 (method git-fetch)
10659 (uri (git-reference
10660 (url "https://pagure.io/python-daemon")
10661 (commit (string-append "release/" version))))
10662 (file-name (git-file-name name version))
10663 (sha256
10664 (base32 "0rfchh68pxg68s02idc0qcm2s9yn587hv0b83r4isy5ccb3g60y4"))
10665 (patches
10666 (search-patches "python-daemon-relax-lockfile.patch"))))
10667 (build-system pyproject-build-system)
10668 (arguments
10669 (list
10670 #:phases
10671 #~(modify-phases %standard-phases
10672 (add-after 'unpack 'discard-dynamic-metadata
10673 (lambda _
10674 (substitute* "pyproject.toml"
10675 (("^dynamic = " all)
10676 (format #f "version = ~s~%~a" #$version all))
10677 (("\"(description|readme|version|maintainers)\",")
10678 ""))
10679 (for-each delete-file
10680 '("setup.py"
10681 "test/test_util_metadata.py"
10682 "test/test_setup.py")))))))
10683 (propagated-inputs (list python-filelock))
10684 (native-inputs (list python-testscenarios python-setuptools))
10685 (home-page "https://pagure.io/python-daemon/")
10686 (synopsis "Python library for making a Unix daemon process")
10687 (description
10688 "Python-daemon is a library that assists a Python program to turn itself
10689into a well-behaved Unix daemon process, as specified in PEP 3143.
10690
10691This library provides a @code{DaemonContext} class that manages the following
10692important tasks for becoming a daemon process:
10693@enumerate
10694@item Detach the process into its own process group.
10695@item Set process environment appropriate for running inside a chroot.
10696@item Renounce suid and sgid privileges.
10697@item Close all open file descriptors.
10698@item Change the working directory, uid, gid, and umask.
10699@item Set appropriate signal handlers.
10700@item Open new file descriptors for stdin, stdout, and stderr.
10701@item Manage a specified PID lock file.
10702@item Register cleanup functions for at-exit processing.
10703@end enumerate")
10704 ;; Only setup.py is gpl3+, everything else is apache 2.0 licensed.
10705 (license (list license:asl2.0 license:gpl3+))))
10706
10707(define-public python-annotated-types
10708 (package
10709 (name "python-annotated-types")
10710 (version "0.7.0")
10711 (source
10712 (origin
10713 (method url-fetch)
10714 (uri (pypi-uri "annotated_types" version))
10715 (sha256
10716 (base32 "12ff8j1l0hrmfa8dfa1pyaka5a8sbyq8b76bzj6bq21sll4prw5g"))))
10717 (build-system pyproject-build-system)
10718 (native-inputs
10719 (list python-hatchling
10720 python-pytest))
10721 (propagated-inputs (list python-typing-extensions))
10722 (home-page "https://github.com/annotated-types/annotated-types")
10723 (synopsis "Reusable constraint types to use with typing.Annotated")
10724 (description "This package provides metadata objects which can be used to
10725represent common constraints such as upper and lower bounds on scalar values and
10726collection sizes, a Predicate marker for runtime checks, and descriptions of how
10727we intend these metadata to be interpreted. In some cases, we also note
10728alternative representations which do not require this package.")
10729 (license license:expat)))
10730
10731(define-public python-anytree
10732 (package
10733 (name "python-anytree")
10734 (version "2.13.0")
10735 (source
10736 (origin
10737 (method git-fetch) ; no tests data in PyPi package
10738 (uri (git-reference
10739 (url "https://github.com/c0fec0de/anytree")
10740 (commit version)))
10741 (file-name (git-file-name name version))
10742 (sha256
10743 (base32 "0xp13r0jrz1kdmi9h10bmgqzc7wjil3ghf6gqsi9m0lsqlj5hlwh"))))
10744 (build-system pyproject-build-system)
10745 (arguments
10746 (list
10747 #:phases
10748 #~(modify-phases %standard-phases
10749 (add-before 'check 'pre-check
10750 (lambda _
10751 ;; Tests need to write to that direcroty.
10752 (mkdir-p "tests/dotexport/"))))))
10753 (native-inputs
10754 (list graphviz ;for 'dot'
10755 python-pdm-backend
10756 python-pytest
10757 python-pyyaml
10758 python-test2ref))
10759 (home-page "https://github.com/c0fec0de/anytree")
10760 (synopsis "Lightweight tree data library")
10761 (description
10762 "@code{anytree} is a simple, lightweight, and extensible tree data
10763structure for Python.")
10764 (license license:asl2.0)))
10765
10766(define-public kalamine
10767 (package
10768 (name "kalamine")
10769 (version "0.38")
10770 (source
10771 (origin
10772 (method url-fetch)
10773 (uri (pypi-uri "kalamine" version))
10774 (sha256
10775 (base32 "0dj0v4in6jngh7f5ypvxyadjsilbiwxj3rx6yxxmh5zab6dxzyhz"))))
10776 (build-system pyproject-build-system)
10777 (arguments
10778 (list
10779 #:phases
10780 #~(modify-phases %standard-phases
10781 (add-before 'check 'make-test-layouts
10782 (lambda _
10783 (apply invoke
10784 (cons* "python" "-m" "kalamine.cli" "build"
10785 (find-files "layouts" "\\.toml")))
10786 (invoke "python" "-m" "kalamine.cli" "new" "test.toml"))))))
10787 (propagated-inputs
10788 (list python-click
10789 python-livereload
10790 python-lxml
10791 python-progress
10792 python-pyyaml
10793 python-tomli))
10794 ;; TODO: Add python-pytest-ruff to native-inputs once it has been
10795 ;; packaged.
10796 (native-inputs
10797 (list python-hatchling python-pytest))
10798 (home-page "https://github.com/OneDeadKey/kalamine")
10799 (synopsis "Keyboard layout maker")
10800 (description
10801 "Kalamine provides a CLI to create advanced keyboard layout from a
10802textual portable description. It also supports layout emulation via web
10803browser.")
10804 (license license:expat)))
10805
10806(define-public python-dm-tree
10807 (package
10808 (name "python-dm-tree")
10809 (version "0.1.9")
10810 (source
10811 (origin
10812 (method url-fetch)
10813 (uri (pypi-uri "dm_tree" version))
10814 (sha256
10815 (base32 "0arlspn0122igcz5sq6lqrw6zkdhqqkgr0xkwkas599m74yxpix4"))))
10816 (build-system pyproject-build-system)
10817 (arguments
10818 (list #:tests? #f
10819 #:phases
10820 ;; TODO: Build against shared libraries with USE_SYSTEM_ABSEIL=true
10821 ;; and USE_SYSTEM_PYBIND11=true.
10822 #~(modify-phases %standard-phases
10823 (add-before 'build 'build-shared-lib
10824 (lambda _
10825 (let* ((pybind11 #$(this-package-input "pybind11"))
10826 (python #$(this-package-input "python"))
10827 (version (python-version python))
10828 (abseil-cpp #$(this-package-input "abseil-cpp")))
10829 ;; Delete default cmake build.
10830 (substitute* "setup.py"
10831 (("ext_modules.*") "")
10832 (("cmdclass.*") ""))
10833 ;; Actual build phase.
10834 (mkdir-p "build/temp/tree/")
10835 (invoke
10836 "gcc" "-pthread" "-Wno-unused-result" "-Wsign-compare"
10837 "-DNDEBUG" "-g" "-fwrapv" "-O3" "-Wall"
10838 "-fno-semantic-interposition" "-fPIC"
10839 "-I" (string-append pybind11
10840 "/lib/python" version
10841 "/site-packages/pybind11/include")
10842 "-I" (string-append python "/include/python"
10843 version)
10844 "-I" (string-append abseil-cpp "/include")
10845 "-c" "tree/tree.cc"
10846 "-o" "build/temp/tree/tree.o"
10847 "-fvisibility=hidden" "-g0")
10848 (mkdir-p "build/lib/tree")
10849 (invoke
10850 "g++" "-pthread" "-shared"
10851 (string-append "-Wl," "-rpath=" python "/lib")
10852 "-fno-semantic-interposition"
10853 "build/temp/tree/tree.o"
10854 "-L" (string-append python "/lib")
10855 (string-append abseil-cpp "/lib/libabsl_int128.a")
10856 (string-append abseil-cpp "/lib/libabsl_raw_hash_set.a")
10857 (string-append abseil-cpp "/lib/libabsl_raw_logging_internal.a")
10858 (string-append abseil-cpp "/lib/libabsl_strings.a")
10859 (string-append abseil-cpp "/lib/libabsl_strings_internal.a")
10860 (string-append abseil-cpp "/lib/libabsl_throw_delegate.a")
10861 "-o" "build/lib/tree/_tree.so")))))))
10862 ;; We link the static abseil libraries here to avoid problems in
10863 ;; downstream libraries using potentially different variants of
10864 ;; abseil-cpp. This is also what's done in the upstream CMake build.
10865 (native-inputs
10866 (list python-setuptools))
10867 (inputs
10868 (list pybind11-2
10869 static-abseil-cpp
10870 python))
10871 (propagated-inputs
10872 (list python-absl-py
10873 python-attrs
10874 python-numpy
10875 python-wrapt))
10876 (home-page "https://github.com/deepmind/tree")
10877 (synopsis "Work with nested data structures in Python")
10878 (description "Tree is a python library for working with nested data
10879structures. In a way, @code{tree} generalizes the builtin @code{map} function
10880which only supports flat sequences, and allows you to apply a function to each
10881leaf preserving the overall structure.")
10882 (license license:asl2.0)))
10883
10884(define-public python-pyment
10885 (package
10886 (name "python-pyment")
10887 (version "0.3.4")
10888 (source
10889 (origin
10890 (method git-fetch)
10891 (uri
10892 (git-reference
10893 (url "https://github.com/dadadel/pyment")
10894 (commit (string-append "v" version))))
10895 (file-name (git-file-name name version))
10896 (sha256
10897 (base32 "0gbx9wmqsxdx85v5sg79lv2zxmy16j5dwi8bip07i1nyvzc5gvn0"))))
10898 (build-system pyproject-build-system)
10899 (native-inputs (list python-pytest python-setuptools))
10900 (home-page "https://github.com/dadadel/pyment/")
10901 (synopsis "Convert Python docstrings automatically")
10902 (description "Pyment is a command line tool and library that can be
10903used to convert between several docstring styles.")
10904 (license license:gpl3+)))
10905
10906(define-public python-docstring-parser
10907 (package
10908 (name "python-docstring-parser")
10909 (version "0.15")
10910 (source (origin
10911 (method url-fetch)
10912 (uri (pypi-uri "docstring_parser" version))
10913 (sha256
10914 (base32
10915 "10pnbg2q0ic1h6pwbyhhqd075fv67sq07k3gjncmi1mix29w1pa8"))))
10916 (build-system pyproject-build-system)
10917 (native-inputs (list python-poetry-core python-pytest))
10918 (home-page "https://github.com/rr-/docstring_parser")
10919 (synopsis "Parse Python docstrings in reST, Google and Numpydoc format")
10920 (description "This package lets you parse Python docstrings in reST,
10921Google and Numpydoc format.")
10922 (license license:expat)))
10923
10924(define-public python-docutils
10925 (package
10926 (name "python-docutils")
10927 (version "0.22.4")
10928 (source
10929 (origin
10930 (method url-fetch)
10931 (uri (pypi-uri "docutils" version))
10932 (sha256
10933 (base32 "0s4ryafs954ivgb7bifzpbv98vb2mcr0s8wi9nvwpglsvqgkpdad"))))
10934 (build-system pyproject-build-system)
10935 (arguments
10936 (list
10937 #:test-backend #~'custom
10938 #:test-flags #~(list "test/alltests.py")
10939 #:phases
10940 (if (target-hurd?)
10941 #~(modify-phases %standard-phases
10942 (add-before 'check 'fix-errno
10943 (lambda _
10944 ;; Some tests check for an exact error message
10945 ;; Expecting ENOENT == 2.
10946 (substitute* (find-files "test" "\\.py$")
10947 (("\\[Errno 2\\]") (format #f "[Errno ~a]" ENOENT))))))
10948 #~%standard-phases)))
10949 (native-inputs
10950 (list python-flit-core))
10951 (home-page "https://docutils.sourceforge.net/")
10952 (synopsis "Python Documentation Utilities")
10953 (description
10954 "Docutils is a modular system for processing documentation into useful
10955formats, such as HTML, XML, and LaTeX. It uses @dfn{reStructuredText}, an
10956easy to use markup language, for input.
10957
10958This package provides tools for converting @file{.rst} files to other formats
10959via commands such as @command{rst2man}, as well as supporting Python code.")
10960 ;; Most of the source code is public domain, but some source files are
10961 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
10962 (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
10963
10964(define-public python-docutils-0.19
10965 (hidden-package
10966 (package
10967 (inherit python-docutils)
10968 (version "0.19")
10969 (source (origin
10970 (method url-fetch)
10971 (uri (pypi-uri "docutils" version))
10972 (sha256
10973 (base32
10974 "1rprvir116g5rz2bgzkzgyn6mv0z8582rz7bgxbpy2y3adkmm69k"))))
10975 (native-inputs
10976 (list python-setuptools)))))
10977
10978(define-public python-docx
10979 (package
10980 (name "python-docx")
10981 (version "1.2.0")
10982 (source (origin
10983 (method url-fetch)
10984 (uri (pypi-uri "python_docx" version))
10985 (sha256
10986 (base32
10987 "1ki0cbw3hbiz51ww3fi3vi770lk5r0c62889r819r756v2vxgjbv"))))
10988 (build-system pyproject-build-system)
10989 (native-inputs
10990 (list behave
10991 python-pyparsing
10992 python-pytest
10993 python-setuptools
10994 python-wheel))
10995 (propagated-inputs
10996 (list python-lxml python-typing-extensions))
10997 (home-page "https://github.com/python-openxml/python-docx/")
10998 (synopsis "Python library to create and modify Microsoft Word documents")
10999 (description "This Python library can be used to create and update
11000Microsoft Word (.docx) documents.")
11001 (license license:expat)))
11002
11003(define-public python-repoze-lru
11004 (package
11005 (name "python-repoze-lru")
11006 (version "0.7")
11007 (source
11008 (origin
11009 (method url-fetch)
11010 (uri (pypi-uri "repoze.lru" version))
11011 (sha256
11012 (base32 "0xzz1aw2smy8hdszrq8yhnklx6w1r1mf55061kalw3iq35gafa84"))))
11013 (build-system pyproject-build-system)
11014 (arguments
11015 (list
11016 #:test-backend #~'unittest
11017 #:test-flags #~(list "discover" "repoze")))
11018 (native-inputs
11019 (list python-setuptools))
11020 (home-page "https://www.repoze.org")
11021 (synopsis "Tiny LRU cache implementation and decorator")
11022 (description
11023 "This package provides a tiny LRU cache implementation and decorator.")
11024 (license license:bsd-4)))
11025
11026(define-public python-reretry
11027 (package
11028 (name "python-reretry")
11029 (version "0.11.8")
11030 (source
11031 (origin
11032 (method git-fetch)
11033 (uri (git-reference
11034 (url "https://github.com/leshchenko1979/reretry")
11035 (commit version)))
11036 (file-name (git-file-name name version))
11037 (sha256
11038 (base32 "15c6275mcrkrq3zs0gyx06gr3xsg9ldrpyknfy4mbypgwjy6fp38"))))
11039 (build-system pyproject-build-system)
11040 (native-inputs
11041 (list python-pytest python-pytest-asyncio python-setuptools))
11042 (home-page "https://github.com/leshchenko1979/reretry")
11043 (synopsis "Functional decorator for retrying on exceptions")
11044 (description
11045 "This package is a fork from the retry package, but with some of added
11046community-sourced features. It provides an easy to use, but functional
11047decorator for retrying on exceptions.")
11048 (license license:asl2.0)))
11049
11050(define-public python-restructuredtext-lint
11051 (package
11052 (name "python-restructuredtext-lint")
11053 (version "2.0.2")
11054 (source
11055 (origin
11056 (method git-fetch)
11057 (uri (git-reference
11058 (url "https://github.com/twolfson/restructuredtext-lint")
11059 (commit version)))
11060 (file-name (git-file-name name version))
11061 (sha256
11062 (base32 "1q86a1qd9xwyl5h76b4yk2hpbnbyq6llla7rmnnp9ifrgax6vx6j"))))
11063 (build-system pyproject-build-system)
11064 (arguments (list #:test-backend #~'unittest))
11065 (propagated-inputs (list python-docutils))
11066 (native-inputs (list python-setuptools))
11067 (home-page "https://github.com/twolfson/restructuredtext-lint")
11068 (synopsis "Linter")
11069 (description
11070 "This package provides a linter for the reStructuredText format.")
11071 (license license:unlicense)))
11072
11073(define-public python-click-repl
11074 (package
11075 (name "python-click-repl")
11076 ;; To support Python 3.12, see:
11077 ;; <https://github.com/click-contrib/click-repl/issues/128>.
11078 (properties '((commit . "b84191aec21b407b3cb3374ff1ab000887d38f29")
11079 (revision . "1")))
11080 (version (git-version "0.3.0"
11081 (assoc-ref properties 'revision)
11082 (assoc-ref properties 'commit)))
11083 (source
11084 (origin
11085 (method git-fetch)
11086 (uri (git-reference
11087 (url "https://github.com/click-contrib/click-repl")
11088 (commit (assoc-ref properties 'commit))))
11089 (file-name (git-file-name name version))
11090 (sha256
11091 (base32 "0kg1qbg69gym4vf8cqhzixqww1f80fpndv5dvi289c3swnhzlyz5"))))
11092 (build-system pyproject-build-system)
11093 (native-inputs
11094 (list python-pytest
11095 python-setuptools))
11096 (propagated-inputs
11097 (list python-click
11098 python-prompt-toolkit))
11099 (home-page "https://github.com/click-contrib/click-repl")
11100 (synopsis "REPL plugin for Click")
11101 (description "This package provides a REPL plugin for Click.")
11102 (license license:expat)))
11103
11104(define-public python-pygdbmi
11105 (package
11106 (name "python-pygdbmi")
11107 (version "0.11.0.0")
11108 (source
11109 (origin
11110 (method url-fetch)
11111 (uri (pypi-uri "pygdbmi" version))
11112 (sha256
11113 (base32 "1c0z4snkjiyl1iq4m1k6liwg0b4pdv2as4bfyvcm0mpjzki6na3s"))))
11114 (build-system pyproject-build-system)
11115 (arguments (list #:tests? #f)) ;no tests in PyPI archive
11116 (native-inputs (list python-setuptools python-wheel))
11117 (home-page "https://github.com/cs01/pygdbmi")
11118 (synopsis "Parse gdb machine interface output with Python")
11119 (description "This package provides a parse gdb machine interface output
11120with Python.")
11121 (license license:expat)))
11122
11123(define-public python-pygtrie
11124 (package
11125 (name "python-pygtrie")
11126 (version "2.5.0")
11127 (source
11128 (origin
11129 (method git-fetch)
11130 (uri (git-reference
11131 (url "https://github.com/mina86/pygtrie")
11132 (commit (string-append "v" version))))
11133 (file-name (git-file-name name version))
11134 (sha256
11135 (base32 "00m4h2faslm242hsp98d21n6jmc8h616m69p2n6ga2rz37jqmh45"))))
11136 (build-system pyproject-build-system)
11137 (arguments
11138 (list
11139 #:test-backend #~'unittest
11140 #:phases
11141 #~(modify-phases %standard-phases
11142 (add-after 'unpack 'set-version
11143 (lambda _
11144 (delete-file "version.py")
11145 (substitute* "setup.py"
11146 (("import version")
11147 "")
11148 (("version\\.get_version\\(\\)")
11149 (format #f "~s" #$version))))))))
11150 (native-inputs (list python-setuptools))
11151 (home-page "https://github.com/mina86/pygtrie")
11152 (synopsis "Pure Python trie data structure implementation")
11153 (description
11154 "This package provides a pure Python trie data structure implementation.")
11155 (license license:asl2.0)))
11156
11157(define-public python-bump2version
11158 (package
11159 (name "python-bump2version")
11160 (properties '((commit . "1044c085ba7d32d73c9cd7ca4561a7ec624c6b19")
11161 (revision . "1")))
11162 (version (git-version "1.0.1"
11163 (assoc-ref properties 'revision)
11164 (assoc-ref properties 'commit)))
11165 (source
11166 (origin
11167 (method git-fetch)
11168 (uri (git-reference
11169 (url "https://github.com/c4urself/bump2version")
11170 (commit (assoc-ref properties 'commit))))
11171 (file-name (git-file-name name version))
11172 (sha256
11173 (base32 "1m5c5rdz9723irwdl46mg7si5syddlzna0ldkz2ps6dphkmqsv7j"))))
11174 (build-system pyproject-build-system)
11175 (arguments
11176 ;; XXX: Single flaky failing test.
11177 (list #:test-flags #~(list "-k" "not test_usage_string")))
11178 (native-inputs (list python-pytest python-setuptools python-testfixtures))
11179 (home-page "https://github.com/c4urself/bump2version")
11180 (synopsis "Version-bump your software with a single command!")
11181 (description
11182 "This package provides a small command line tool to simplify releasing
11183software by updating all version strings in your source code by the correct
11184increment. It also creates commits and tags.")
11185 (license license:expat)))
11186
11187(define-public python-deprecated
11188 (package
11189 (name "python-deprecated")
11190 (version "1.3.1")
11191 (source
11192 (origin
11193 (method git-fetch)
11194 (uri (git-reference
11195 (url "https://github.com/tantale/deprecated")
11196 (commit (string-append "v" version))))
11197 (file-name (git-file-name name version))
11198 (sha256
11199 (base32 "07rppvppxwnlf4pgaci5nd1sqfv1i0jxabm76axsbcaf2rlpsq6n"))))
11200 (build-system pyproject-build-system)
11201 (native-inputs
11202 (list python-pytest
11203 python-setuptools))
11204 (propagated-inputs
11205 (list python-wrapt))
11206 (home-page "https://github.com/tantale/deprecated")
11207 (synopsis "Python decorator to deprecate classes, functions or methods")
11208 (description
11209 "The @code{deprecated} decorator provides a convenient way to deprecate
11210to deprecate classes, functions or methods.")
11211 (license license:expat)))
11212
11213(define-public python-pygithub
11214 (package
11215 (name "python-pygithub")
11216 (version "2.8.1")
11217 (source
11218 (origin
11219 (method git-fetch)
11220 (uri (git-reference
11221 (url "https://github.com/PyGithub/PyGithub")
11222 (commit (string-append "v" version))))
11223 (file-name (git-file-name name version))
11224 (sha256
11225 (base32 "0c5qp69qfkfcp8lfmfh0a2rcb1azsrlrc525qd8blnkrmz2mmayz"))))
11226 (build-system pyproject-build-system)
11227 (propagated-inputs
11228 (list python-pyjwt
11229 python-pynacl
11230 python-requests
11231 python-typing-extensions
11232 python-urllib3))
11233 (native-inputs
11234 (list python-responses
11235 python-pytest
11236 python-setuptools
11237 python-setuptools-scm))
11238 (home-page "https://pygithub.readthedocs.io/en/latest/")
11239 (synopsis "Python library for the GitHub API")
11240 (description "This library allows managing GitHub resources such as
11241repositories, user profiles, and organizations in your Python applications,
11242using version 3 of the GitHub application programming interface (API).")
11243 (license license:lgpl3+)))
11244
11245(define-public python-rellu
11246 (package
11247 (name "python-rellu")
11248 (version "0.7")
11249 (source
11250 (origin
11251 (method git-fetch)
11252 (uri (git-reference
11253 (url "https://github.com/robotframework/rellu")
11254 (commit (string-append "v" version))))
11255 (file-name (git-file-name name version))
11256 (sha256
11257 (base32 "1vbzkn4yfmc3dypgkw47fyd6n26ib7na1azrgjrvwc0vdf0qjyrw"))))
11258 (build-system pyproject-build-system)
11259 (native-inputs (list python-pytest python-setuptools))
11260 (propagated-inputs (list python-invoke python-pygithub))
11261 (home-page "https://github.com/robotframework/rellu")
11262 (synopsis "Utilities to create PyPI releases")
11263 (description
11264 "This collection of utilities contains tooling and templates to assist in
11265creating releases on GitHub and publishing them on PyPI. It is designed to be
11266used by Robot Framework and tools and libraries in its ecosystem, but can
11267naturally be used also by other projects.")
11268 (license license:asl2.0)))
11269
11270(define-public python-robotframework
11271 (package
11272 (name "python-robotframework")
11273 (version "7.3.2")
11274 (source
11275 (origin
11276 (method git-fetch) ; no tests in the PyPI archive
11277 (uri (git-reference
11278 (url "https://github.com/robotframework/robotframework")
11279 (commit (string-append "v" version))))
11280 (file-name (git-file-name name version))
11281 (sha256
11282 (base32 "0azis3dj7lfiwrr5gr1gr78z5m05vvl8n20rw3bz93s05z94h5i7"))))
11283 (outputs '("out" "doc"))
11284 (build-system pyproject-build-system)
11285 (arguments
11286 (list
11287 #:modules '((guix build pyproject-build-system)
11288 (guix build utils)
11289 (ice-9 ftw)
11290 (ice-9 match)
11291 (srfi srfi-26))
11292 #:phases
11293 #~(modify-phases %standard-phases
11294 (add-before 'build 'build-and-install-doc
11295 (lambda* (#:key outputs #:allow-other-keys)
11296 (let ((doc (string-append #$output:doc
11297 "/share/doc/robotframework")))
11298 (invoke "invoke" "library-docs" "all")
11299 (invoke "doc/userguide/ug2html.py" "dist") ;user guide
11300 (mkdir-p doc)
11301 (with-directory-excursion "dist"
11302 (define user-guide-dir
11303 (match (scandir "." (cut string-prefix?
11304 "robotframework-userguide-" <>))
11305 ((dir) dir)
11306 (_ (error "could not find the user guide directory"))))
11307 (copy-recursively user-guide-dir doc)))))
11308 (replace 'check
11309 (lambda* (#:key tests? #:allow-other-keys)
11310 (when tests?
11311 ;; TODO: Some acceptance failed and took near 30min to
11312 ;; complete: 6765 tests, 6745 passed, 20 failed; find out how
11313 ;; to skip failing ones.
11314 (format #t "Running unit tests...~%")
11315 (invoke "utest/run.py")))))))
11316 (native-inputs
11317 (list python-docutils
11318 python-invoke
11319 python-jsonschema
11320 python-pygments
11321 python-rellu
11322 python-typing-extensions
11323 python-setuptools
11324 `(,python "tk") ;used when building the HTML doc
11325 python-wheel))
11326 (home-page "https://robotframework.org")
11327 (synopsis "Generic automation framework")
11328 (description "Robot Framework is a generic automation framework for
11329acceptance testing, acceptance test driven development (ATDD), and robotic
11330process automation (RPA).")
11331 (license license:asl2.0)))
11332
11333(define-public python-robotframework-datadriver
11334 (package
11335 (name "python-robotframework-datadriver")
11336 (version "1.11.2")
11337 (source
11338 (origin
11339 (method git-fetch) ; no tests in PyPI release
11340 (uri (git-reference
11341 (url "https://github.com/Snooz82/robotframework-datadriver")
11342 (commit version)))
11343 (file-name (git-file-name name version))
11344 (sha256
11345 (base32 "0fq6ykbnypirw1wrgigsfzg8lv8g7j9gs46v0n814ycw8906n43x"))))
11346 (build-system pyproject-build-system)
11347 (arguments
11348 (list
11349 #:phases
11350 #~(modify-phases %standard-phases
11351 (add-before 'check 'skip-problematic-tests
11352 (lambda _
11353 (for-each delete-file-recursively
11354 (list
11355 ;; The test file 'tab-csv-file-name.tsv' contains
11356 ;; special characters for which there is no locale
11357 ;; in the build environment, causing one test to
11358 ;; fail.
11359 "atest/TestCases/csv_reader_config"
11360 ;; Error in file on line 6: Non-existing setting
11361 ;; 'Test Tags'.
11362 "atest/TestCases/DataTypes/Types_in_dicts.robot"))))
11363 (replace 'check
11364 (lambda* (#:key tests? #:allow-other-keys)
11365 (when tests?
11366 (with-directory-excursion "atest"
11367 (invoke "sh" "run_atest.sh"))))))))
11368 (native-inputs
11369 (list python-docutils
11370 python-robotframework-stacktrace
11371 python-setuptools
11372 python-xlrd))
11373 (propagated-inputs
11374 (list python-openpyxl
11375 python-pandas
11376 python-pygments
11377 python-robotframework))
11378 (home-page "https://github.com/Snooz82/robotframework-datadriver")
11379 (synopsis "Data-driven test extension for Robot Framework")
11380 (description "DataDriver is a data-driven extension for Robot Framework.
11381DataDriver uses the Listener Interface of Robot Framework to create new test
11382cases based on a data file that contains the test data. DataDriver supports
11383data files in the CSV, XLS or XLSX formats.")
11384 (license license:asl2.0)))
11385
11386(define-public python-robotframework-pabot
11387 (package
11388 (name "python-robotframework-pabot")
11389 (version "4.2.0")
11390 (source
11391 (origin
11392 ;; There are no tests in the PyPI archive.
11393 (method git-fetch)
11394 (uri (git-reference
11395 (url "https://github.com/mkorpela/pabot")
11396 (commit version)))
11397 (file-name (git-file-name name version))
11398 (sha256
11399 (base32
11400 "1q4vxrmkximyxk735d7payypx4w3qqdlldmg34frlnbkxrf40pxc"))))
11401 (build-system pyproject-build-system)
11402 (arguments
11403 (list
11404 #:test-flags
11405 #~(list "-k" (string-join
11406 ;; XXX: Maybe it's a bad idea to skip these tests which
11407 ;; failing assertions highlight incomparability issues.
11408 ;;
11409 ;; 93 passed, 23 deselected, 11 warnings
11410 (list "not test_argumentfile_outputs"
11411 "test_dependency_ok"
11412 "test_longnames_in_tests"
11413 "test_multiple_dependencies_ok"
11414 "test_orders"
11415 "test_pabotprerunmodifier"
11416 "test_pabotprerunmodifier_with_prerunmodifier"
11417 "test_pabotprerunmodifier_with_testlevelsplit"
11418 "test_pabotprerunmodifier_with_testlevelsplit_and_"
11419 "test_parallel_execution"
11420 "test_parallel_execution_with_testlevelsplit"
11421 "test_pre_run_with_new_name"
11422 "test_pre_run_with_new_tag"
11423 "test_run_dir_2_then_dir_3"
11424 "test_run_dir_3_then_dir_2"
11425 "test_run_root_then_suite_4_then_dir_1_then_dir_4"
11426 "test_sleep_test_cases_and_group"
11427 "test_stdout_should_display_passed_test"
11428 "test_stdout_should_display_passed_test"
11429 "test_stdout_should_display_passed_test_and_not_"
11430 "test_testlevelsplit_output_task_order"
11431 "test_too_big_testname"
11432 "test_two_orders")
11433 " and not "))
11434 #:phases
11435 #~(modify-phases %standard-phases
11436 (add-after 'unpack 'relax-requirements
11437 (lambda _
11438 (substitute* "setup.cfg"
11439 ;; natsort>=8.2.0
11440 ((">=8.2.0") "")))))))
11441 (native-inputs
11442 (list python-pytest
11443 python-setuptools
11444 python-wheel))
11445 (propagated-inputs
11446 (list python-natsort
11447 python-robotframework
11448 python-robotframework-stacktrace))
11449 (home-page "https://pabot.org")
11450 (synopsis "Parallel test runner for Robot Framework")
11451 (description "Pabot is a parallel executor for Robot Framework tests.")
11452 (license license:asl2.0)))
11453
11454(define-public python-robotframework-stacktrace
11455 (package
11456 (name "python-robotframework-stacktrace")
11457 (version "0.4.1")
11458 (source
11459 (origin
11460 (method git-fetch)
11461 (uri (git-reference
11462 (url "https://github.com/MarketSquare/robotframework-stacktrace")
11463 (commit version)))
11464 (file-name (git-file-name name version))
11465 (sha256
11466 (base32 "1nkzcgc1xwbx8d5qq47aj23qa7dn1ml033bjwrgqh55x3miphlcq"))))
11467 (build-system pyproject-build-system)
11468 (arguments
11469 ;; XXX: The test suite fails (see:
11470 ;; https://github.com/MarketSquare/robotframework-stacktrace/issues/4).
11471 (list
11472 #:tests? #f
11473 #:phases
11474 #~(modify-phases %standard-phases
11475 (add-after 'unpack 'set-version
11476 (lambda _
11477 (substitute* "setup.py"
11478 (("VERSION =.*")
11479 (string-append "VERSION = '" #$version "'"))))))))
11480 (native-inputs (list python-setuptools))
11481 (propagated-inputs (list python-robotframework))
11482 (home-page "https://github.com/MarketSquare/robotframework-stacktrace")
11483 (synopsis "Robot Framework listener to print a stack trace on error")
11484 (description "StackTrace is a Robot Framework listener that prints a stack
11485trace directly to the terminal to ease debugging.")
11486 (license license:asl2.0)))
11487
11488(define-public python-robotframework-sshlibrary
11489 (package
11490 (name "python-robotframework-sshlibrary")
11491 (version "3.8.0")
11492 ;; There are no tests in the PyPI archive.
11493 (source
11494 (origin
11495 (method git-fetch)
11496 (uri (git-reference
11497 (url "https://github.com/robotframework/SSHLibrary")
11498 (commit (string-append "v" version))))
11499 (file-name (git-file-name name version))
11500 (sha256
11501 (base32 "1fn72hw7xacjjpl4dd6wynh2x63i9rk8iqhj3v640db21qpcnbkw"))
11502 (patches (search-patches
11503 "python-robotframework-sshlibrary-rf5-compat.patch"))))
11504 (build-system pyproject-build-system)
11505 (arguments
11506 (list
11507 #:phases
11508 #~(modify-phases %standard-phases
11509 (add-after 'unpack 'fix-python-incompatibilities
11510 (lambda _
11511 (substitute* (find-files "utest" "\\.py$")
11512 (("assertEquals") "assertEqual"))))
11513 (add-before 'build 'build-and-install-doc
11514 (lambda _
11515 (let ((doc (string-append #$output:doc
11516 "/share/doc/robotframework-sshlibrary")))
11517 (invoke "chmod" "-R" "+w" "docs")
11518 (invoke "invoke" "kw-docs" "project-docs")
11519 (mkdir-p doc)
11520 (for-each delete-file
11521 (find-files "docs" "\\.rst"))
11522 (copy-recursively "docs" doc))))
11523 (replace 'check
11524 (lambda* (#:key tests? #:allow-other-keys)
11525 (when tests?
11526 ;; Some tests require an SSH server; we remove them.
11527 (delete-file "utest/test_client_api.py")
11528 (delete-file "utest/test_scp.py")
11529 (invoke "python" "utest/run.py")))))))
11530 (propagated-inputs
11531 (list python-robotframework python-paramiko python-scp))
11532 (native-inputs
11533 (list openssh
11534 which
11535 ;; To generate the documentation
11536 python-docutils
11537 python-invoke
11538 python-pygments
11539 python-rellu
11540 python-setuptools))
11541 (outputs '("out" "doc"))
11542 (home-page "https://github.com/robotframework/SSHLibrary")
11543 (synopsis "Robot Framework library for SSH and SFTP")
11544 (description
11545 "SSHLibrary is a Robot Framework library providing support for SSH and
11546SFTP. It has the following main usages:
11547@itemize @bullet
11548@item Executing commands on the remote machine, either blocking or non-blocking.
11549@item Writing and reading in an interactive shell.
11550@item Transferring files and directories over SFTP.
11551@item Ensuring that files and directories exist on the remote machine.
11552@end itemize")
11553 (license license:asl2.0)))
11554
11555(define-public python-robotframework-pythonlibcore
11556 (package
11557 (name "python-robotframework-pythonlibcore")
11558 (version "4.4.1")
11559 (source
11560 (origin
11561 (method git-fetch) ;no tests in pypi archive
11562 (uri (git-reference
11563 (url "https://github.com/robotframework/PythonLibCore")
11564 (commit (string-append "v" version))))
11565 (file-name (git-file-name name version))
11566 (sha256
11567 (base32 "0hjayjq5wrgajs56nf85y5wqh76jbjfbsz40bam315l3kzmj45g5"))))
11568 (build-system pyproject-build-system)
11569 (arguments
11570 (list
11571 #:test-backend #~'custom
11572 #:test-flags #~(list "utest/run.py")))
11573 (native-inputs
11574 (list python-approvaltests
11575 python-pytest
11576 python-pytest-cov ; This package has a custom way to run tests.
11577 python-pytest-mockito
11578 python-robotframework
11579 python-setuptools))
11580 (home-page "https://github.com/robotframework/PythonLibCore")
11581 (synopsis "Robot Framework Python library tools")
11582 (description
11583 "PythonLibCore provides tools for creating larger test libraries for
11584Robot Framework using Python. The Robot Framework hybrid and dynamic library
11585APIs give more flexibility for library than the static library API, but they
11586also set requirements for libraries which need to be implemented in the
11587library side. PythonLibCore eases the problem by providing a simpler
11588interface and by handling all the requirements towards the Robot Framework
11589library APIs.")
11590 (license license:asl2.0)))
11591
11592(define-public python-robotframework-seleniumlibrary
11593 (package
11594 (name "python-robotframework-seleniumlibrary")
11595 (version "6.8.0")
11596 (source
11597 (origin
11598 (method git-fetch)
11599 (uri (git-reference
11600 (url "https://github.com/robotframework/SeleniumLibrary")
11601 (commit (string-append "v" version))))
11602 (file-name (git-file-name name version))
11603 (sha256
11604 (base32 "093kcmwvh72n22sj1psx4dyjj87xrzz2622ygpkavrhmd9r2a9jg"))))
11605 (build-system pyproject-build-system)
11606 (arguments
11607 (list
11608 #:test-flags
11609 #~(list "--ignore=utest/test/keywords/test_firefox_profile_parsing.py"
11610 "-k" (string-join
11611 (list "not test_create_firefox_with_options"
11612 "test_create_headless_firefox_with_options"
11613 "test_create_driver_firefox")
11614 " and not "))))
11615 (native-inputs
11616 (list python-approvaltests
11617 python-pytest
11618 python-pytest-mockito
11619 python-setuptools))
11620 (propagated-inputs
11621 (list python-click
11622 python-robotframework
11623 python-robotframework-pythonlibcore
11624 python-selenium))
11625 (home-page "https://github.com/robotframework/SeleniumLibrary")
11626 (synopsis "Web testing library for Robot Framework")
11627 (description "SeleniumLibrary is a web testing library for Robot Framework
11628that utilizes the Selenium tool internally.")
11629 (license license:asl2.0)))
11630
11631(define-public python-robotframework-seleniumscreenshots
11632 (package
11633 (name "python-robotframework-seleniumscreenshots")
11634 (version "0.9.5")
11635 (source
11636 (origin
11637 (method git-fetch)
11638 (uri (git-reference
11639 (url
11640 "https://github.com/MarketSquare/robotframework-seleniumscreenshots")
11641 (commit version)))
11642 (file-name (git-file-name name version))
11643 (sha256
11644 (base32 "1gal4ifibk2bj1qgppcs6vmjgjvz47nq4d4gqvyd70vpyf9iw342"))))
11645 (build-system pyproject-build-system)
11646 (arguments
11647 ;; XXX: The tests require a relatively complicated setup configured in
11648 ;; their CI with Nix (!).
11649 `(#:tests? #f))
11650 (native-inputs (list python-setuptools))
11651 (propagated-inputs
11652 (list python-robotframework python-robotframework-seleniumlibrary))
11653 (home-page
11654 "https://github.com/MarketSquare/robotframework-seleniumscreenshots")
11655 (synopsis
11656 "Robot Framework library for annotating and cropping screenshots")
11657 (description
11658 "The SeleniumScreenshots library for Robot Framework provides keywords
11659for annotating and cropping screenshots taken with SeleniumLibrary. It is
11660useful for scripting automatically updated screenshots for documentation or
11661for visual regression testing purposes.")
11662 (license license:bsd-3)))
11663
11664(define-public python-rstr
11665 (package
11666 (name "python-rstr")
11667 (version "3.2.2")
11668 (source
11669 (origin
11670 (method git-fetch)
11671 (uri (git-reference
11672 (url "https://github.com/leapfrogonline/rstr")
11673 (commit version)))
11674 (file-name (git-file-name name version))
11675 (sha256
11676 (base32 "1z9d660jnv72jn8qzpa9hddpv5f953js8i75hfhkcw68vmdfndnr"))))
11677 (build-system pyproject-build-system)
11678 (native-inputs (list python-pytest
11679 python-setuptools
11680 python-setuptools-scm
11681 python-wheel))
11682 (home-page "https://github.com/leapfrogonline/rstr")
11683 (synopsis "Generate random strings in Python")
11684 (description "This package provides a python module for generating
11685random strings of various types. It could be useful for fuzz testing,
11686generating dummy data, or other applications. It has no dependencies
11687outside the standard library.")
11688 (license license:bsd-3)))
11689
11690(define-public python-scp
11691 (package
11692 (name "python-scp")
11693 (version "0.15.0")
11694 (source
11695 (origin
11696 (method git-fetch)
11697 (uri (git-reference
11698 (url "https://github.com/jbardin/scp.py")
11699 (commit (string-append "v" version))))
11700 (file-name (git-file-name name version))
11701 (sha256
11702 (base32 "03mdkiwfxvi1xfsw9qjdjf0jgljs991jn29lia9fka68x1ngwnw9"))))
11703 (build-system pyproject-build-system)
11704 (arguments (list #:tests? #f)) ;tests require an SSH server
11705 (native-inputs (list python-setuptools))
11706 (propagated-inputs (list python-paramiko))
11707 (home-page "https://github.com/jbardin/scp.py")
11708 (synopsis "SCP protocol module for Python and Paramiko")
11709 (description
11710 "The scp module extends the Paramiko library to send and receive files
11711via the SCP1 protocol, as implemented by the OpenSSH @command{scp} program.")
11712 (license license:gpl2+)))
11713
11714(define-public python-rst-linker
11715 (package
11716 (name "python-rst-linker")
11717 (version "2.6.0")
11718 (source
11719 (origin
11720 (method git-fetch)
11721 (uri (git-reference
11722 (url "https://github.com/jaraco/rst.linker")
11723 (commit (string-append "v" version))))
11724 (file-name (git-file-name name version))
11725 (sha256
11726 (base32 "1pcnhib881p0vgm0s8jj6inzzs98raz70sc2z6m6wlgrj9ivv5jj"))))
11727 (build-system pyproject-build-system)
11728 (propagated-inputs (list python-jaraco-context))
11729 (native-inputs
11730 (list python-path
11731 python-jaraco-vcs
11732 python-pytest
11733 python-pytest-subprocess
11734 python-setuptools-scm
11735 python-setuptools))
11736 (home-page "https://github.com/jaraco/rst.linker")
11737 (synopsis "Sphinx plugin to add links and timestamps")
11738 (description
11739 "rst.linker automatically replaces text by a reStructuredText external
11740reference or timestamps. It's primary purpose is to augment the changelog,
11741but it can be used for other documents, too.")
11742 (license license:expat)))
11743
11744(define-public python-feedgenerator
11745 (package
11746 (name "python-feedgenerator")
11747 (version "2.1.0")
11748 (source
11749 (origin
11750 (method url-fetch)
11751 (uri (pypi-uri "feedgenerator" version))
11752 (sha256
11753 (base32
11754 "179bshnb0ssx7pspzbyaqvhi5w3c3hb15cingh4py8px50zz4xgh"))))
11755 (build-system pyproject-build-system)
11756 (native-inputs
11757 (list python-pytest python-setuptools python-wheel))
11758 (propagated-inputs
11759 (list python-pytz))
11760 (home-page "https://github.com/getpelican/feedgenerator")
11761 (synopsis
11762 "Standalone version of Django's Atom/RSS feed generator")
11763 (description
11764 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
11765which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
11766 (license license:bsd-3)))
11767
11768(define-public python-lsp-jsonrpc
11769 (package
11770 (name "python-lsp-jsonrpc")
11771 (version "1.1.2")
11772 (source
11773 (origin
11774 (method url-fetch)
11775 (uri (pypi-uri "python-lsp-jsonrpc" version))
11776 (sha256
11777 (base32
11778 "04n95h0cqnsrdyh1gv0abh2i5ynyrq2wfqpppx9djp7mxr9y9226"))))
11779 (build-system pyproject-build-system)
11780 (native-inputs
11781 (list python-pyflakes
11782 python-pytest
11783 python-setuptools
11784 python-setuptools-scm
11785 python-wheel))
11786 (propagated-inputs
11787 (list python-ujson))
11788 (home-page "https://github.com/python-lsp/python-lsp-jsonrpc")
11789 (synopsis "JSON RPC 2.0 server library")
11790 (description
11791 "This package provides a JSON RPC 2.0 server library for Python.")
11792 (license license:expat)))
11793
11794(define-public python-pydantic
11795 (package
11796 (name "python-pydantic")
11797 (version "2.12.5")
11798 (source
11799 (origin
11800 (method git-fetch)
11801 (uri (git-reference
11802 (url "https://github.com/samuelcolvin/pydantic")
11803 (commit (string-append "v" version))))
11804 (file-name (git-file-name name version))
11805 (sha256
11806 (base32 "0h1dwnd16smyknv7fzskv8akp96pw18mrd3l8a3nbhs1afslnd7m"))))
11807 (build-system pyproject-build-system)
11808 (arguments
11809 (list
11810 ;; tests: 5428 passed, 1091 skipped, 24 xfailed
11811 #:test-flags
11812 #~(list "--parallel-threads" (number->string (parallel-job-count)))))
11813 (native-inputs
11814 (list tzdata-for-tests
11815 python-dirty-equals-bootstrap
11816 python-faker
11817 python-hatch-fancy-pypi-readme
11818 python-hatchling
11819 python-jsonschema
11820 python-pytest
11821 python-pytest-benchmark
11822 python-pytest-examples
11823 python-pytest-mock
11824 python-pytest-run-parallel
11825 python-pytz))
11826 (propagated-inputs
11827 (list python-annotated-types
11828 python-pydantic-core ;it's hard == requirement, keep it in sync
11829 python-typing-extensions
11830 python-typing-inspection))
11831 (home-page "https://github.com/samuelcolvin/pydantic")
11832 (synopsis "Python data validation and settings management")
11833 (description
11834 "Pydantic enforces type hints at runtime, and provides user friendly
11835errors when data is invalid.")
11836 (license license:expat)))
11837
11838(define-public python-pydantic-core
11839 (package
11840 (name "python-pydantic-core")
11841 (version "2.41.5")
11842 (source
11843 (origin
11844 (method url-fetch)
11845 (uri (pypi-uri "pydantic_core" version))
11846 (sha256
11847 (base32 "0vj72r481py6r5mlna185g3ppw1jri964q77spzp7lval4gabnh8"))))
11848 (build-system pyproject-build-system)
11849 (arguments
11850 (list
11851 #:imported-modules `(,@%cargo-build-system-modules
11852 ,@%pyproject-build-system-modules)
11853 #:modules '(((guix build cargo-build-system) #:prefix cargo:)
11854 (guix build pyproject-build-system)
11855 (guix build utils))
11856 ;; tests: 5318 passed, 123 skipped, 10 xfailed
11857 #:test-flags
11858 #~(list "--ignore=tests/benchmarks"
11859 ;; XXX: It cycles, bootstrap variant needs to be introduced:
11860 ;; python-pydantic-core -> python-pydantic ->
11861 ;; python-inline-snapshot -> python-pydantic-core
11862 "--ignore=tests/test_docstrings.py"
11863 "--ignore=tests/test_hypothesis.py"
11864 "--ignore=tests/validators/test_allow_partial.py"
11865 "--ignore=tests/validators/test_frozenset.py"
11866 "--ignore=tests/validators/test_list.py"
11867 "--ignore=tests/validators/test_set.py")
11868 #:phases
11869 #~(modify-phases %standard-phases
11870 (add-after 'unpack 'prepare-cargo-build-system
11871 (lambda args
11872 (for-each (lambda (phase)
11873 (format #t "Running cargo phase: ~a~%" phase)
11874 (apply (assoc-ref cargo:%standard-phases phase)
11875 #:cargo-target #$(cargo-triplet)
11876 args))
11877 '(unpack-rust-crates
11878 configure
11879 check-for-pregenerated-files
11880 patch-cargo-checksums)))))))
11881 (native-inputs
11882 (append
11883 (list maturin
11884 python-dirty-equals-bootstrap
11885 python-pytest
11886 python-pytest-benchmark ;TODO: disable in pyproject.toml
11887 python-pytest-mock
11888 python-pytest-timeout
11889 python-typing-inspection
11890 python-tzdata
11891 rust
11892 `(,rust "cargo"))
11893 (or (and=> (%current-target-system)
11894 (compose list make-rust-sysroot))
11895 '())))
11896 (inputs
11897 (cargo-inputs 'python-pydantic-core))
11898 (propagated-inputs
11899 (list python-typing-extensions))
11900 (home-page "https://github.com/pydantic/pydantic-core")
11901 (synopsis "Core validation logic for pydantic")
11902 (description "This package provides the core functionality for pydantic
11903validation and serialization.")
11904 (license license:expat)))
11905
11906(define-public python-pydantic-cli
11907 (package
11908 (name "python-pydantic-cli")
11909 (version "9.1.0")
11910 (source
11911 (origin
11912 (method git-fetch) ;for tests
11913 (uri (git-reference
11914 (url "https://github.com/mpkocher/pydantic-cli")
11915 (commit (string-append "v" version))))
11916 (file-name (git-file-name name version))
11917 (sha256
11918 (base32
11919 "1rfffz4kasjihys8qgnvjb8cwm0dycsdj7qnggi9372b9q1ng4zg"))))
11920 (build-system pyproject-build-system)
11921 (propagated-inputs
11922 (list python-pydantic))
11923 (native-inputs
11924 (list python-hatchling python-pytest))
11925 (home-page "https://github.com/mpkocher/pydantic-cli")
11926 (synopsis "Turn Pydantic defined data models into CLI tools")
11927 (description
11928 "@code{python-pydantic} enables specifying @acronym{CLI, Command Line
11929Interfaces} via data models provided in the JSON format.")
11930 (license license:expat)))
11931
11932(define-public python-pydantic-extra-types
11933 (package
11934 (name "python-pydantic-extra-types")
11935 (version "2.10.6")
11936 (source
11937 (origin
11938 (method git-fetch)
11939 (uri (git-reference
11940 (url "https://github.com/pydantic/pydantic-extra-types")
11941 (commit (string-append "v" version))))
11942 (file-name (git-file-name name version))
11943 (sha256
11944 (base32 "0n3w6zm7wdj0xb2c4kjkysfxhcr5pzbgcpcw158pzdsxz6svnrl3"))))
11945 (build-system pyproject-build-system)
11946 (arguments
11947 (list
11948 ;; tests: 13079 passed, 1 deselected
11949 #:test-flags
11950 ;; See: <https://github.com/pydantic/pydantic-extra-types/issues/345>.
11951 #~(list "--ignore=tests/test_s3.py"
11952 "--deselect=tests/test_coordinate.py::test_json_schema"
11953 ;; XXX: The most of the tests fail, pendulum is optional package
11954 ;; and needs to be =>3 where we have 2.1.2, updating to 3+
11955 ;; requires Rust.
11956 "--ignore=tests/test_pendulum_dt.py"
11957 "--ignore=tests/test_json_schema.py")
11958 #:phases
11959 #~(modify-phases %standard-phases
11960 (add-before 'check 'pre-check
11961 (lambda* (#:key inputs #:allow-other-keys)
11962 (setenv "TZ" "UTC")
11963 (setenv "TZDIR" (search-input-directory inputs
11964 "share/zoneinfo")))))))
11965 (native-inputs
11966 (list python-pytest
11967 python-hatchling
11968 tzdata-for-tests))
11969 (propagated-inputs
11970 (list python-pydantic
11971 python-typing-extensions
11972 ;; [optional]
11973 python-cron-converter
11974 ;; python-pendulum
11975 python-phonenumbers
11976 python-pycountry
11977 python-pymongo
11978 python-pytz
11979 python-semver
11980 python-tzdata
11981 python-ulid))
11982 (home-page "https://github.com/pydantic/pydantic-extra-types")
11983 (synopsis "Extra Pydantic types")
11984 (description "This package provides sxtra types for Pydantic.")
11985 (license license:expat)))
11986
11987(define-public python-pydantic-settings
11988 (package
11989 (name "python-pydantic-settings")
11990 (version "2.12.0")
11991 (source
11992 (origin
11993 (method url-fetch)
11994 (uri (pypi-uri "pydantic_settings" version))
11995 (sha256
11996 (base32 "1l6gmw6v1nlm3cid92c5xw6ljw9fbwmjk2y0w5l2lg0yjppkhm80"))))
11997 (build-system pyproject-build-system)
11998 (arguments
11999 (list
12000 ;; tests: 399 passed, 27 skipped
12001 #:test-flags
12002 ;; XXX: Ignore tests requiring python-ruff.
12003 #~(list "--ignore=tests/test_docs.py")
12004 #:phases
12005 #~(modify-phases %standard-phases
12006 (add-before 'check 'set-home
12007 (lambda _
12008 ;; FileNotFoundError: [Errno 2] No such file or directory:
12009 ;; '/homeless-shelter/
12010 (setenv "HOME" "/tmp"))))))
12011 (native-inputs
12012 (list python-hatchling
12013 python-pytest
12014 python-pytest-examples
12015 python-pytest-mock))
12016 (propagated-inputs
12017 (list python-dotenv
12018 python-pydantic
12019 python-typing-inspection
12020 ;; [optional]
12021 python-pyyaml
12022 python-tomli))
12023 (home-page "https://docs.pydantic.dev/latest/usage/pydantic_settings/")
12024 (synopsis "Settings management using Pydantic")
12025 (description
12026 "Pydantic Settings provides optional Pydantic features for loading a
12027settings or config class from environment variables or secrets files.")
12028 (license license:expat)))
12029
12030(define-public python-pydoc-markdown
12031 (package
12032 (name "python-pydoc-markdown")
12033 (version "4.8.2")
12034 (source
12035 (origin
12036 (method url-fetch)
12037 (uri (pypi-uri "pydoc_markdown" version))
12038 (sha256
12039 (base32 "02vzlrd18r8wi0b64vq2gnbhaadysg9rnbylf9sf2v9q65z94v7v"))))
12040 (build-system pyproject-build-system)
12041 (arguments
12042 (list
12043 #:tests? #false ;there are none
12044 #:phases
12045 '(modify-phases %standard-phases
12046 ;; This is probably not a good idea, but it wants a rather old
12047 ;; version of docstring-parser.
12048 (add-after 'unpack 'relax-requirements
12049 (lambda _
12050 (substitute* "pyproject.toml"
12051 (("docstring-parser = .*")
12052 "docstring-parser = \"^0\"\n")))))))
12053 (propagated-inputs (list python-click
12054 python-databind-core
12055 python-databind-json
12056 python-docspec
12057 python-docspec-python
12058 python-docstring-parser
12059 python-jinja2
12060 python-nr-util
12061 python-pyyaml
12062 python-requests
12063 python-tomli
12064 python-tomli-w
12065 python-watchdog
12066 python-yapf))
12067 (native-inputs (list python-poetry-core))
12068 (home-page "https://pypi.org/project/pydoc-markdown/")
12069 (synopsis "Create Python API documentation in Markdown format")
12070 (description "Pydoc-Markdown is a tool to create Python API documentation
12071in Markdown format. Instead of executing your Python code like so many other
12072documentation tools, it parses it using docspec instead.")
12073 (license license:expat)))
12074
12075;; XXX: The project is deprecated upstream, still in use by some packages,
12076;; consider to remove when nothing depends on it.
12077(define-public python-pydocstyle
12078 (package
12079 (name "python-pydocstyle")
12080 (version "6.3.0")
12081 (source
12082 (origin
12083 (method git-fetch) ;no tests in PyPI archive
12084 (uri (git-reference
12085 (url "https://github.com/PyCQA/pydocstyle")
12086 (commit version)))
12087 (file-name (git-file-name name version))
12088 (sha256
12089 (base32 "1aabvnxmy939y5b7jpnygpnkgbi4id9j461v7bwzxwdmdffnnd1j"))
12090 (patches (search-patches
12091 "python-pydocstyle-add-support-for-pep701.patch"))))
12092 (build-system pyproject-build-system)
12093 (arguments
12094 (list
12095 ;; It tries to install with pip.
12096 #:test-flags #~(list "--ignore=src/tests/test_integration.py")
12097 #:phases
12098 #~(modify-phases %standard-phases
12099 (add-after 'unpack 'set-version
12100 (lambda _
12101 (substitute* "pyproject.toml"
12102 (("0.0.0-dev") #$version)))))))
12103 (native-inputs
12104 (list python-poetry-core
12105 python-pytest
12106 python-tomli))
12107 (propagated-inputs
12108 (list python-six
12109 python-snowballstemmer))
12110 (home-page "https://github.com/PyCQA/pydocstyle/")
12111 (synopsis "Python docstring style checker")
12112 (description
12113 "This package provides a style checker for the Python Language
12114Server (PLS).")
12115 (license license:expat)))
12116
12117(define-public python-lsp-server
12118 (package
12119 (name "python-lsp-server")
12120 (version "1.15.0")
12121 (source
12122 (origin
12123 (method git-fetch)
12124 (uri (git-reference
12125 (url "https://github.com/python-lsp/python-lsp-server")
12126 (commit (string-append "v" version))))
12127 (file-name (git-file-name name version))
12128 (sha256
12129 (base32 "0bmwshwdlnbj15ki2vld832lbp6j1slyhvgmwrr8kjbhgk3v8vic"))
12130 (patches
12131 (search-patches "python-lsp-server-python-3.13-compatibility.patch"))))
12132 (build-system pyproject-build-system)
12133 (arguments
12134 (list
12135 #:test-flags
12136 '(list "--ignore-glob" "**/test_autopep8_format.py" ;avoid autopep8 dep
12137 "-k"
12138 (string-append
12139 "not test_concurrent_ws_requests " ; flaky
12140 "and not test_pyqt_completion " ; avoid pyqt5
12141 "and not test_pandas_completion")) ; avoid pandas
12142 #:phases
12143 #~(modify-phases %standard-phases
12144 (add-after 'unpack 'relax-deps
12145 (lambda _
12146 (substitute* "pyproject.toml"
12147 (("autopep8>=2.0.4,<2.1.0") "autopep8")
12148 (("pycodestyle>=2.12.0,<2.13.0") "pycodestyle")
12149 (("pyflakes>=3.2.0,<3.3.0") "pyflakes"))))
12150 (add-before 'check 'set-HOME
12151 (lambda _ (setenv "HOME" "/tmp"))))))
12152 (propagated-inputs
12153 (list python-autopep8
12154 python-black
12155 python-docstring-to-markdown
12156 python-flake8
12157 python-jedi
12158 python-lsp-jsonrpc
12159 python-mccabe
12160 python-pluggy
12161 python-pycodestyle
12162 python-pydocstyle
12163 python-pyflakes
12164 python-pylint
12165 python-rope
12166 python-ujson
12167 python-whatthepatch
12168 python-yapf))
12169 (native-inputs
12170 (list python-flaky
12171 python-matplotlib
12172 python-pytest
12173 python-setuptools
12174 python-setuptools-scm
12175 python-websockets))
12176 (home-page "https://github.com/python-lsp/python-lsp-server")
12177 (synopsis "Python implementation of the Language Server Protocol")
12178 (description
12179 "The Python Language Server @command{pylsp} is an implementation of the
12180Python 3 language specification for the Language Server Protocol (LSP).
12181This tool is used in text editing environments to provide a complete
12182and integrated feature-set for programming Python effectively.")
12183 (license license:expat)))
12184
12185(define-public python-black
12186 (package
12187 (name "python-black")
12188 (version "26.5.1")
12189 (source
12190 (origin
12191 (method git-fetch)
12192 (uri (git-reference
12193 (url "https://github.com/psf/black")
12194 (commit version)))
12195 (file-name (git-file-name name version))
12196 (sha256
12197 (base32 "13fsaasnbgvlnxzsy81mlyp2pjni7fpp1v9gwh7xmq0pzxzai8h8"))))
12198 (build-system pyproject-build-system)
12199 (arguments
12200 (list
12201 ;; tests: 443 passed, 3 skipped, 4 subtests passed
12202 #:test-flags
12203 #~(list "--numprocesses" (number->string (min (parallel-job-count) 8))
12204 ;; Diffs are not equal.
12205 (string-append "--deselect=tests/test_format.py"
12206 "::test_simple_format"
12207 "[module_docstring_after_comment]"))
12208 #:phases
12209 #~(modify-phases %standard-phases
12210 (add-after 'patch-source-shebangs 'use-absolute-file-names
12211 (lambda* (#:key inputs #:allow-other-keys)
12212 (substitute* (find-files "tests" "\\.py$")
12213 (("#!/usr/bin/env python3")
12214 (string-append
12215 "#!" (search-input-file inputs "/bin/python3")))))))))
12216 (propagated-inputs
12217 (list python-click
12218 python-mypy-extensions
12219 python-packaging
12220 python-pathspec
12221 python-platformdirs
12222 python-pytokens
12223 ;; [optional]
12224 python-aiohttp))
12225 (native-inputs
12226 (list python-hatch-fancy-pypi-readme
12227 python-hatch-vcs
12228 python-hatchling
12229 python-pytest
12230 python-pytest-xdist))
12231 (home-page "https://github.com/psf/black")
12232 (synopsis "The uncompromising code formatter")
12233 (description "Black is the uncompromising Python code formatter.")
12234 (license license:expat)))
12235
12236(define-public python-black-macchiato
12237 (package
12238 (name "python-black-macchiato")
12239 (version "1.3.0")
12240 (source
12241 (origin
12242 (method git-fetch)
12243 (uri (git-reference
12244 (url "https://github.com/wbolster/black-macchiato")
12245 (commit version)))
12246 (file-name (git-file-name name version))
12247 (sha256
12248 (base32 "0lc9w50nlbmlzj44krk7kxcia202fhybbnwfh77xixlc7vb4rayl"))))
12249 (build-system pyproject-build-system)
12250 (arguments
12251 (list
12252 #:phases
12253 #~(modify-phases %standard-phases
12254 (add-after 'unpack 'ignore-failing-tests
12255 (lambda _
12256 (substitute* "test_macchiato.py"
12257 (("\\(.*\\n'\\)," all)
12258 (string-append "# " all))))))))
12259 (native-inputs (list python-pytest python-setuptools))
12260 (propagated-inputs (list python-black))
12261 (home-page "https://github.com/wbolster/black-macchiato")
12262 (synopsis "Partial @code{python-black} formatting")
12263 (description
12264 "This package is built on top the @code{python-black} code formatter to
12265enable formatting of partial files.")
12266 (license license:bsd-3)))
12267
12268(define-public python-blinker
12269 (package
12270 (name "python-blinker")
12271 (version "1.9.0")
12272 (source
12273 (origin
12274 (method url-fetch)
12275 (uri (pypi-uri "blinker" version))
12276 (sha256
12277 (base32
12278 "1gs5aigi8v8k4cymm06gdgaylv5yps6yk5n8gigf9v5blxjj5kml"))))
12279 (build-system pyproject-build-system)
12280 (native-inputs
12281 (list python-flit-core
12282 python-pytest
12283 python-pytest-asyncio))
12284 (home-page "https://pythonhosted.org/blinker/")
12285 (synopsis "Fast, simple object-to-object and broadcast signaling")
12286 (description
12287 "Blinker provides a fast dispatching system that allows any number of
12288interested parties to subscribe to events, or \"signals\".")
12289 (license license:expat)))
12290
12291(define-public pelican
12292 (package
12293 (name "pelican")
12294 (version "4.11.0")
12295 (source
12296 (origin
12297 (method url-fetch)
12298 (uri (pypi-uri "pelican" version))
12299 (sha256
12300 (base32 "1n4b8y4vvycxhwmi3z5i96bh0d2rg1mk1hdc6cbkk3c1gd4380mr"))))
12301 (build-system pyproject-build-system)
12302 (arguments
12303 (list
12304 #:test-flags #~(list "-k" (string-append
12305 ;; These tests failed with AssertionError.
12306 "not test_typogrify_ignore_filters"
12307 " and not test_typogrify_ignore_tags"
12308 " and not test_error_on_warning"))))
12309 (native-inputs
12310 (list python-anyio
12311 python-beautifulsoup4
12312 python-lxml
12313 python-pdm-backend
12314 python-pytest
12315 python-smartypants
12316 python-typogrify))
12317 (inputs
12318 (list python-blinker
12319 python-dateutil
12320 ;; Ignoring `guix lint` warning as python-docutils is used to support
12321 ;; reStructuredText processing at runtime.
12322 python-docutils
12323 python-feedgenerator
12324 python-jinja2
12325 python-ordered-set
12326 python-pygments
12327 python-rich
12328 python-tzdata
12329 python-unidecode
12330 python-watchfiles))
12331 (home-page "https://blog.getpelican.com/")
12332 (synopsis "Python-based static site publishing system")
12333 (description
12334 "Pelican is a tool to generate a static blog from reStructuredText,
12335Markdown input files, and more. Pelican uses Jinja2 for templating
12336and is very extensible.")
12337 (license license:agpl3+)))
12338
12339(define-public python-cykhash
12340 (package
12341 (name "python-cykhash")
12342 (version "2.0.1")
12343 (source
12344 (origin
12345 (method url-fetch)
12346 (uri (pypi-uri "cykhash" version))
12347 (sha256
12348 (base32 "1xwpxff4whfvkwvcyhzhdcj5zzq89vvdjmnqy664s4a9yp4lnydl"))))
12349 (build-system pyproject-build-system)
12350 (arguments
12351 (list #:tests? #f)) ;no tests in PyPI, 2.0.1 is not tagged in git
12352 (native-inputs
12353 (list python-cython
12354 python-setuptools))
12355 (home-page "https://github.com/realead/cykhash")
12356 (synopsis "Khash-sets and maps")
12357 (description
12358 "This package is a Cython wrapper for khash-sets/maps. It brings
12359functionality of
12360@url{https://github.com/attractivechaos/klib/blob/master/khash.h, khash} to
12361Python and Cython and can be used seamlessly in numpy or pandas. Numpy's
12362world is lacking the concept of a (hash-)set. This shortcoming is fixed and
12363efficient (memory- and speedwise compared to pandas) @code{unique} and
12364@code{isin} are implemented. Python-set/dict have a big memory-footprint.
12365For some datatypes the overhead can be reduced by using khash by factor 4-8.")
12366 (license license:expat)))
12367
12368(define-public python-cython
12369 ;; TODO: Move to python-build.
12370 (package
12371 (name "python-cython")
12372 (version "3.2.5")
12373 (source
12374 (origin
12375 (method git-fetch)
12376 (uri (git-reference
12377 (url "https://github.com/cython/cython")
12378 (commit version)))
12379 (file-name (git-file-name name version))
12380 (sha256
12381 (base32 "07n0x4z0ifkhl8hi47amqhqfjc6jlh5dra9r54nlsnwnai83psy1"))))
12382 (build-system pyproject-build-system)
12383 (arguments
12384 (list
12385 #:test-backend #~'custom
12386 #:test-flags
12387 #~(list "runtests.py"
12388 "-vv"
12389 ;; Some tests fail when number of cores are 24, keep on save
12390 ;; minimal count.
12391 "-j" (number->string (min 8 (parallel-job-count)))
12392 "-x" (string-join
12393 (list "annotate_html"
12394 "Debugger"
12395 ;; It fails with AssertionError: Failed doctest test
12396 ;; for complex_numbers_cpp.double_abs.
12397 ;; See: <https://github.com/cython/cython/issues/6528>.
12398 "complex_numbers_cpp"
12399 #$@(if (target-32bit?)
12400 ;; XXX: On 32-bit architectures, running the
12401 ;; parallel tests fails on many-core systems.
12402 ;; See: <https://github.com/cython/cython/issues/2807>.
12403 '("run.parallel"
12404 ;; Test cpp_stl_any.cast_test fails.
12405 ;; See: <https://github.com/cython/cython/issues/5928>.
12406 "cpp_stl_any")
12407 '())
12408 #$@(if (system-hurd?)
12409 '("test_class_ref"
12410 "test_compiler_directives"
12411 "test_lang_version")
12412 '()))
12413 "|"))
12414 #:phases
12415 #~(modify-phases %standard-phases
12416 (add-before 'check 'pre-check
12417 (lambda* (#:key tests? test-flags #:allow-other-keys)
12418 ;; Disable compiler optimizations to greatly reduce the running
12419 ;; time of the test suite.
12420 (setenv "CFLAGS" "-O0")
12421 ;; Some tests require access to "$HOME/.cython".
12422 (setenv "HOME" "/tmp"))))))
12423 (native-inputs
12424 (list libxcrypt
12425 python-setuptools))
12426 ;; we need the full python package and not just the python-wrapper
12427 ;; because we need libpython3.3m.so
12428 (inputs
12429 (list python))
12430 (home-page "https://cython.org/")
12431 (synopsis "C extensions for Python")
12432 (description "Cython is an optimising static compiler for both the Python
12433programming language and the extended Cython programming language. It makes
12434writing C extensions for Python as easy as Python itself.")
12435 (license license:asl2.0)))
12436
12437(define-public python-cython-0
12438 (package
12439 (inherit python-cython)
12440 ;; It's the latest version of 0.29. See
12441 ;; <https://github.com/cython/cython/blob/0.29.37/CHANGES.rst>.
12442 (version "0.29.37")
12443 (source
12444 (origin
12445 (method url-fetch)
12446 (uri (pypi-uri "Cython" version))
12447 (sha256
12448 (base32 "1ysca2r23h12ai9wrym4ci0nvgwm3lfijrpj9xfyxbclvnkd84zq"))))
12449 (arguments
12450 (list
12451 ;; XXX: Tests are broken with [email protected], but dependent packages
12452 ;; build, so keep it until unnecessary.
12453 #:tests? #f
12454 #:test-backend #~'custom
12455 #:test-flags
12456 #~(list "runtests.py"
12457 "-vv"
12458 "-j" (number->string (parallel-job-count))
12459 ;; XXX: On 32-bit architectures, running the parallel tests
12460 ;; fails on many-core systems, see
12461 ;; <https://github.com/cython/cython/issues/2807>.
12462 #$@(if (target-32bit?)
12463 #~("-x" "run.parallel")
12464 #~())
12465 #$@(if (system-hurd?)
12466 #~("-x" "test_class_ref"
12467 "-x" "test_compiler_directives"
12468 "-x" "test_lang_version")
12469 #~())
12470 ;; This test fails when running on 24 cores.
12471 "-x" "cpp_stl_conversion")
12472 #:phases
12473 #~(modify-phases %standard-phases
12474 (add-after 'unpack 'fix-pyximport-python-3.12
12475 (lambda _
12476 (let ((importlib-util-load-dynamic "\
12477import importlib.util
12478from importlib.machinery import ExtensionFileLoader
12479
12480def load_dynamic(name, path):
12481 loader = ExtensionFileLoader(name, path)
12482 spec = importlib.util.spec_from_file_location(name, loader=loader)
12483 module = importlib.util.module_from_spec(spec)
12484 spec.loader.exec_module(module)
12485 return module
12486"))
12487 (substitute* "pyximport/pyximport.py"
12488 (("^import imp")
12489 importlib-util-load-dynamic)
12490 (("imp\\.load_dynamic")
12491 "load_dynamic")))))
12492 (add-before 'check 'pre-check
12493 ;; some tests require access to "$HOME/.cython"
12494 (lambda _
12495 (setenv "HOME" "/tmp")
12496 ;; Disable compiler optimizations to greatly reduce the running
12497 ;; time of the test suite.
12498 (setenv "CFLAGS" "-O0"))))))))
12499
12500;; XXX: Deprecated on <2026-05-28>.
12501(define-public python-cython-next python-cython)
12502
12503;; NOTE: when upgrading numpy please make sure that python-numba,
12504;; python-pandas and python-scipy still build, as these three packages are
12505;; often used together.
12506(define-public python-numpy
12507 (package
12508 (name "python-numpy")
12509 (version "2.4.6")
12510 (source
12511 (origin
12512 ;; XXX: When switching to Git it fails to find Numpy's fork of Meson
12513 ;; git submodule -- <https://github.com/numpy/meson>.
12514 (method url-fetch)
12515 (uri (string-append
12516 "https://github.com/numpy/numpy/releases/download/v"
12517 version "/numpy-" version ".tar.gz"))
12518 (sha256
12519 (base32 "1nkx73blw298dzdk6blhrsann60cgdy7q6n3q9m785ia9865g8zk"))))
12520 (build-system pyproject-build-system)
12521 (arguments
12522 (list
12523 ;; tests: 47255 passed, 1079 skipped, 32 xfailed, 2 xpassed, 318 warnings
12524 #:modules '((guix build utils)
12525 (guix build pyproject-build-system)
12526 (ice-9 format))
12527 #:test-flags
12528 #~(list "-m" "not slow"
12529 "--numprocesses" (number->string (min 8 (parallel-job-count))))
12530 #:phases
12531 #~(modify-phases %standard-phases
12532 (add-after 'unpack 'fix-executable-paths
12533 (lambda* (#:key inputs #:allow-other-keys)
12534 (substitute* "numpy/distutils/exec_command.py"
12535 (("'/bin/sh'")
12536 (format #f "~s" (which "bash"))))
12537 (substitute* "numpy/meson.build"
12538 ;; Relay on python from the PATH instead of full reference
12539 ;; stored in built wheel.
12540 (("'py.full_path\\(\\)'") "'python'"))
12541 (substitute* "numpy/_core/tests/test_cpu_features.py"
12542 (("/bin/true")
12543 (search-input-file inputs "bin/true")))))
12544 (add-before 'build 'parallelize-build
12545 (lambda _
12546 (setenv "OMP_NUM_THREAD"
12547 (number->string (parallel-job-count)))
12548 (setenv "NPY_NUM_BUILD_JOBS"
12549 (number->string (parallel-job-count)))))
12550 ;; XXX: It fails with an issue "'fenv_t' has not been declared..."
12551 ;; when the gfortran header is used. Remove gfortran from
12552 ;; CPLUS_INCLUDE_PATH as a workaround. Taken from
12553 ;; <https://issues.guix.gnu.org/73439#45>.
12554 (add-after 'set-paths 'hide-gfortran
12555 (lambda* (#:key inputs #:allow-other-keys)
12556 (let ((gfortran (assoc-ref inputs "gfortran")))
12557 (setenv "CPLUS_INCLUDE_PATH"
12558 (string-join
12559 (delete (string-append gfortran "/include/c++")
12560 (string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
12561 ":")))))
12562 (add-before 'build 'configure-blas
12563 (lambda _
12564 (call-with-output-file "site.cfg"
12565 (lambda (port)
12566 (format port
12567 "[openblas]
12568libraries = openblas
12569library_dirs = ~a/lib
12570include_dirs = ~:*~a/include~%" #$(this-package-input "openblas"))))))
12571 (replace 'check
12572 (lambda* (#:key tests? test-flags #:allow-other-keys)
12573 (when tests?
12574 (with-directory-excursion #$output
12575 (apply invoke "pytest" test-flags)
12576 (let ((pytest-cache (string-append #$output
12577 "/.pytest_cache")))
12578 (when (access? pytest-cache X_OK)
12579 (delete-file-recursively pytest-cache)))))))
12580 ;; The executables provided by this package ('f2py' and 'numpy-config')
12581 ;; only depend on Python. By customizing the wrap phase we can ensure
12582 ;; that we don't add all Python packages listed in native-inputs to
12583 ;; the closure. This significantly reduces the overall closure size.
12584 ;;
12585 ;; See also <https://bugs.gnu.org/25235>.
12586 (replace 'wrap
12587 (lambda* (#:key inputs outputs #:allow-other-keys)
12588 (for-each
12589 (lambda (program)
12590 (wrap-program program
12591 `("GUIX_PYTHONPATH" ":" suffix
12592 ,(list (site-packages inputs outputs)))))
12593 (find-files (in-vicinity #$output "/bin"))))))))
12594 (native-inputs
12595 (list gfortran
12596 python-cython
12597 python-hypothesis
12598 python-meson
12599 python-pytest
12600 python-pytest-xdist))
12601 (inputs
12602 (list bash
12603 openblas))
12604 (home-page "https://numpy.org")
12605 (synopsis "Fundamental package for scientific computing with Python")
12606 (description "NumPy is the fundamental package for scientific computing
12607with Python. It contains among other things: a powerful N-dimensional array
12608object, sophisticated (broadcasting) functions, tools for integrating C/C++
12609and Fortran code, useful linear algebra, Fourier transform, and random number
12610capabilities.")
12611 (properties
12612 '((upstream-name . "numpy")))
12613 (license license:bsd-3)))
12614
12615(define-public python-numpy-1
12616 (package
12617 (inherit python-numpy)
12618 (name "python-numpy")
12619 ;; XXX: Starting from v1.26.0 the project includes a vendored-meson which
12620 ;; is needed for SIMD and BLAS/LAPACK features that are not yet available
12621 ;; in upstream Meson.
12622 ;;
12623 ;; See:
12624 ;; - URL <https://raw.githubusercontent.com/numpy/numpy>
12625 ;; - commit :: 2f3549c9d7c5048621568e431c86bc7530742723
12626 ;; - file <doc/source/building/understanding_meson.rst>
12627 (version "1.26.4") ;; This is the last planned release in the 1.26.x series.
12628 (source
12629 (origin
12630 (method url-fetch)
12631 (uri (string-append
12632 "https://github.com/numpy/numpy/releases/download/v"
12633 version "/numpy-" version ".tar.gz"))
12634 (sha256
12635 (base32
12636 "0410j6jfz1yzm5s0v0yrc1j0q6ih4322357and7arr0jxnlsn0ia"))
12637 (patches (search-patches "python-numpy-gcc-14.patch"))))
12638 (arguments
12639 (list
12640 ;; tests: 35652 passed, 2403 skipped, 32 xfailed, 2 xpassed
12641 #:modules '((guix build utils)
12642 (guix build pyproject-build-system)
12643 (ice-9 format))
12644 #:phases
12645 #~(modify-phases %standard-phases
12646 (add-after 'unpack 'delete-test-files
12647 (lambda _
12648 ;; These tests depend on older setuptools, see:
12649 ;; <https://github.com/numpy/numpy/issues/27531>.
12650 ;;
12651 ;; E ModuleNotFoundError: No module named
12652 ;; 'distutils.msvccompiler'
12653 (delete-file "numpy/distutils/tests/test_mingw32ccompiler.py")
12654 (delete-file "numpy/distutils/tests/test_system_info.py")))
12655 ;; XXX: It fails with an issue "'fenv_t' has not been declared..."
12656 ;; when the gfortran header is used. Remove gfortran from
12657 ;; CPLUS_INCLUDE_PATH as a workaround. Taken from
12658 ;; <https://issues.guix.gnu.org/73439#45>.
12659 (add-after 'set-paths 'hide-gfortran
12660 (lambda* (#:key inputs #:allow-other-keys)
12661 (let ((gfortran (assoc-ref inputs "gfortran")))
12662 (setenv "CPLUS_INCLUDE_PATH"
12663 (string-join
12664 (delete (string-append gfortran "/include/c++")
12665 (string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
12666 ":")))))
12667 (add-before 'build 'relax-gcc-14-strictness
12668 (lambda _
12669 (setenv "CFLAGS"
12670 "-g -O2 -Wno-error=implicit-function-declaration")))
12671 (add-before 'build 'parallelize-build
12672 (lambda _
12673 (setenv "NPY_NUM_BUILD_JOBS"
12674 (number->string (parallel-job-count)))))
12675 (add-before 'build 'configure-blas
12676 (lambda* (#:key inputs #:allow-other-keys)
12677 (call-with-output-file "site.cfg"
12678 (lambda (port)
12679 (format port
12680 "\
12681[openblas]
12682libraries = openblas
12683library_dirs = ~a/lib
12684include_dirs = ~:*~a/include~%"
12685 (dirname (dirname
12686 (search-input-file
12687 inputs "include/openblas_config.h"))))))))
12688 (add-before 'build 'fix-executable-paths
12689 (lambda* (#:key inputs #:allow-other-keys)
12690 ;; Make /gnu/store/...-bash-.../bin/sh the default shell,
12691 ;; instead of /bin/sh.
12692 (substitute* "numpy/distutils/exec_command.py"
12693 (("'/bin/sh'")
12694 (format #f "~s" (search-input-file inputs "bin/bash"))))
12695 ;; Don't try to call '/bin/true' specifically.
12696 (substitute* "numpy/core/tests/test_cpu_features.py"
12697 (("/bin/true") (search-input-file inputs "bin/true")))))
12698 (replace 'check
12699 (lambda* (#:key tests? outputs inputs #:allow-other-keys)
12700 (when tests?
12701 (invoke "./runtests.py" "-vv" "--no-build" "--mode=fast"
12702 "-j" (number->string (parallel-job-count))
12703 ;; Contrary to scipy, the runtests.py script of numpy
12704 ;; does *not* automatically provide -n when -j is used
12705 ;; (see: https://github.com/numpy/numpy/issues/21359).
12706 "--" "-n" (number->string (parallel-job-count))
12707 ;; Disable Pytest Warnings, they are resolved in the
12708 ;; latest 1.x.x: pytest.PytestRemovedIn9Warning: Marks
12709 ;; applied to fixtures have no effect,
12710 ;; DeprecationWarning.
12711 "-p" "no:warnings"
12712 "-k" (string-append
12713 ;; These tests may fail on 32-bit systems (see:
12714 ;; https://github.com/numpy/numpy/issues/18387).
12715 "not test_float_remainder_overflow "
12716 "and not test_pareto "
12717 ;; The 'test_rint_big_int' test fails on older
12718 ;; x86_64 CPUs such as the Core 2 Duo (see:
12719 ;; https://github.com/numpy/numpy/issues/22170).
12720 "and not test_rint_big_int "
12721 ;; They fail to detect compiler.
12722 "and not test_compile1 "
12723 "and not test_compile2 "
12724 ;; Due to disabled warnings
12725 "and not test_getattr_warning "
12726 "and not test_integer_signs "
12727 "and not test_implicit_cast_float_to_int_fails "
12728 "and not test_integer_signs "
12729 ;; The huge_array test is too large for 32-bit (see:
12730 ;; https://bugs.gentoo.org/843599 and
12731 ;; https://bugs.gentoo.org/846548).
12732 ;; TestKind.test_all is a Fortran type failure
12733 ;; that may be toolchain or environment related.
12734 #$@(if (or (target-x86?) (target-arm32?))
12735 `(" and not test_identityless_reduction_huge_array"
12736 " and not (TestKind and test_all)")
12737 '())
12738 ;; This test fails with a Fortran failure (16
12739 ;; expected but got -1), due to the fact that it
12740 ;; requires a 64-bit system.
12741 #$@(if (or (target-x86-32?) (target-arm32?))
12742 `(" and not test_int")
12743 '())
12744 ;; These tests fail when building from aarch64-linux.
12745 #$@(if (target-arm32?)
12746 `(" and not test_features"
12747 " and not test_unary_spurious_fpexception")
12748 '())
12749 ;; These tests seem to fail on machines without
12750 ;; an FPU is still under investigation upstream.
12751 ;; https://github.com/numpy/numpy/issues/20635
12752 #$@(if (target-riscv64?)
12753 `(" and not test_fp_noncontiguous")
12754 '())
12755 ;; They also fail with gcc-14
12756 " and not test_float"
12757 " and not test_fpclass"
12758
12759 ;; These tests fail with gcc-14
12760 " and not test_context_locality"
12761 " and not test_cosh"
12762 " and not test_default_policy_singleton"
12763 " and not test_exp_exceptions"
12764 " and not test_half_fpe"
12765 " and not test_owner_is_base"
12766 " and not test_policy_propagation"
12767 " and not test_set_policy"
12768 " and not test_sinh"
12769 " and not test_square_values"
12770 " and not test_sum"
12771 " and not test_switch_owner"
12772 " and not test_thread_locality"
12773
12774 ;; These tests depend on older setuptools, see:
12775 ;; <https://github.com/numpy/numpy/issues/27531>.
12776 " and not test_api_importable"
12777 " and not test_all_modules_are_expected_2")))))
12778 ;; See comment for custom python-numpy wrap phase above.
12779 (replace 'wrap
12780 (lambda* (#:key inputs outputs #:allow-other-keys)
12781 (for-each
12782 (lambda (program)
12783 (wrap-program program
12784 `("GUIX_PYTHONPATH" ":" suffix
12785 ,(list (site-packages inputs outputs)))))
12786 (find-files (in-vicinity #$output "/bin"))))))))
12787 (native-inputs
12788 (list python-hypothesis
12789 python-meson
12790 python-pytest
12791 python-pytest-xdist
12792 python-setuptools
12793 python-typing-extensions
12794 ;; XXX: Avoid to: 'fenv_t' has not been declared in '::' 58 | using ::fenv_t;
12795 ;; See <https://github.com/numpy/numpy/issues/21075#issuecomment-1047976197>,
12796 ;; <https://github.com/numpy/numpy/issues/24318>.
12797 gcc ;fevn.h c[++] include must precede fortran's
12798 gfortran))
12799 (inputs (list bash openblas))))
12800
12801(define-deprecated/public-alias python-numpy-2 python-numpy)
12802
12803(define-public python-numpysane
12804 (package
12805 (name "python-numpysane")
12806 (version "0.43")
12807 (source
12808 (origin
12809 (method git-fetch)
12810 (uri (git-reference
12811 (url "https://github.com/dkogan/numpysane.git")
12812 (commit (string-append "v" version))))
12813 (file-name (git-file-name name version))
12814 (sha256
12815 (base32 "1ls1nrdcizscdpv4712jr7wiaxkmryrai7w0ci06fiq5haq54hrn"))))
12816 (build-system pyproject-build-system)
12817 (arguments
12818 (list
12819 #:phases
12820 #~(modify-phases %standard-phases
12821 (add-after 'unpack 'patch
12822 (lambda* (#:key inputs outputs #:allow-other-keys)
12823 (let* ((numpy (assoc-ref inputs "python-numpy"))
12824 (site (site-packages inputs `(("out" . ,numpy)))))
12825 (substitute* "Makefile.common.header"
12826 ;; See: <https://github.com/dkogan/numpysane/issues/3>.
12827 (("pkg-config --cflags-only-I numpy")
12828 (format #f "echo -I~a/numpy/_core/include" site))))))
12829 (replace 'check
12830 (lambda _
12831 (setenv "CC"
12832 #$(cc-for-target))
12833 (invoke "make" "check"))))))
12834 (propagated-inputs (list python-numpy))
12835 (native-inputs (list perl pkg-config python-setuptools))
12836 (home-page "https://github.com/dkogan/numpysane")
12837 (synopsis "More-reasonable core functionality for numpy")
12838 (description
12839 "This package provides more-reasonable core functionality for numpy.
12840
12841A lot of numpysane functionality is inspired by PDL (Perl Data Language).
12842
12843numpysane has:
12844@itemize
12845@item easier broadcasting
12846@item nicer array manipulation
12847@item array concatenation
12848@item manipulation of dimensions
12849@item broadcast-aware inner product
12850@item broadcast-aware outer product
12851@item broadcast-aware 2-norm
12852@item broadcast-aware matrix multiplication
12853@end itemize
12854")
12855 (license license:lgpl2.0+)))
12856
12857(define-public python-numpy-documentation
12858 (package
12859 (inherit python-numpy)
12860 (name "python-numpy-documentation")
12861 (arguments
12862 (list
12863 #:tests? #f ;we're only generating the documentation
12864 #:phases
12865 #~(modify-phases %standard-phases
12866 (add-after 'unpack 'avoid-external-deps
12867 (lambda _
12868 ;; XXX: Avoid search-button to avoid sphinx error
12869 ;; TemplateNotFound('search-button.html')
12870 (substitute* "doc/source/conf.py"
12871 (("\"search-button\",") ""))
12872 ;; XXX: Avoid theme-switcher to avoid sphinx error
12873 ;; TemplateNotFound('theme-switcher.html')
12874 (substitute* "doc/source/conf.py"
12875 (("\"theme-switcher\",") ""))
12876 ;; XXX: Avoid version-switcher because it depends on the value
12877 ;; of external https://numpy.org/doc/_static/versions.json
12878 (substitute* "doc/source/conf.py"
12879 (("\"version-switcher\",") ""))))
12880 (add-before 'build 'add-gnu-freefont-to-texmf
12881 (lambda _
12882 ;; XXX: The Sphinx-generated tex output specifies the GNU
12883 ;; FreeFont font to be searched via its extension, which uses
12884 ;; kpathsea instead of fontconfig and fail (see:
12885 ;; https://github.com/sphinx-doc/sphinx/issues/10347). Create a
12886 ;; symlink to GNU FreeFont and add it to the TEXMF tree via
12887 ;; GUIX_TEXMF.
12888 (mkdir-p "texmf-dist/fonts/opentype/public")
12889 (symlink (string-append
12890 #$(this-package-native-input "font-gnu-freefont")
12891 "/share/fonts/opentype")
12892 (string-append
12893 (getcwd) "/"
12894 "texmf-dist/fonts/opentype/public/gnu-freefont"))
12895 (setenv "GUIX_TEXMF" (string-append (getenv "GUIX_TEXMF") ":"
12896 (getcwd) "/texmf-dist"))))
12897 (replace 'build
12898 (lambda _
12899 (chdir "doc")
12900 (let ((sphinxopts (string-append
12901 "SPHINXOPTS=-j"
12902 (number->string (parallel-job-count)))))
12903 ;; Do not treat warnings as errors.
12904 (substitute* "Makefile"
12905 ((" -WT ") " -T "))
12906 (setenv "HOME" "/tmp")
12907 ;; Build the PDF documentation.
12908 (invoke "make" "latex-build" sphinxopts)
12909 ;; FIXME: PDF build fails
12910 ;; (invoke "make" "-C" "build/latex" "all-pdf" sphinxopts)
12911 ;; Build the HTML documentation
12912 (invoke "make" "html" sphinxopts)
12913 ;; Build the Info documentation. The issues worked around
12914 ;; below can be tracked at
12915 ;; https://github.com/numpy/numpy/issues/12278.
12916 (substitute* "source/conf.py"
12917 ;; The root document should be "index", not "contents".
12918 (("\"contents\"") "'index'")
12919 ;; Disable Sphinx extensions that produce broken Texinfo.
12920 ((".*'numpydoc'.*") "")
12921 ((".*'sphinx.ext.autodoc'.*") "")
12922 ((".*'sphinx.ext.autosummary'.*") ""))
12923 (invoke "make" "info" sphinxopts))))
12924 (replace 'install
12925 (lambda _
12926 (let* ((data (string-append #$output "/share"))
12927 (doc (string-append data "/doc/numpy"))
12928 (html (string-append doc "/html"))
12929 (info (string-append data "/info")))
12930 ;; Install the HTML documentation.
12931 (mkdir-p html)
12932 (copy-recursively "build/html" html)
12933 ;; Install the PDF reference and user manuals.
12934 ;; FIXME:
12935 ;; (install-file "build/latex/numpy-ref.pdf" doc)
12936 ;; (install-file "build/latex/numpy-user.pdf" doc)
12937 ;; Install the info manual.
12938 (install-file "build/texinfo/numpy.info" info)
12939 (symlink (string-append html "/_images")
12940 (string-append info "/numpy-figures"))))))))
12941 (native-inputs
12942 (list font-gnu-freefont
12943 perl
12944 python-breathe
12945 python-ipython
12946 python-jupyterlite-sphinx
12947 python-matplotlib
12948 python-numpy
12949 python-numpydoc
12950 python-pandas
12951 python-pydata-sphinx-theme
12952 python-scipy ;used by matplotlib
12953 python-setuptools
12954 python-sphinx
12955 python-sphinx-copybutton
12956 python-sphinx-design
12957 texinfo
12958 (texlive-local-tree
12959 (list texlive-cbfonts
12960 texlive-cm-super
12961 texlive-cmap
12962 texlive-expdlist
12963 texlive-fandol
12964 texlive-greek-fontenc
12965 texlive-latexmk
12966 texlive-polyglossia
12967 texlive-xetex
12968 texlive-xindy))))
12969 (inputs '())
12970 (propagated-inputs '())
12971 (synopsis "Documentation for the @code{python-numpy} package")
12972 (description "This package provides the complete NumPy documentation in
12973the Texinfo, and HTML formats.")))
12974
12975(define-public python-numpy-stl
12976 (package
12977 (name "python-numpy-stl")
12978 (version "3.2.0")
12979 (source
12980 (origin
12981 (method url-fetch)
12982 (uri (pypi-uri "numpy_stl" version))
12983 (sha256
12984 (base32 "0kgxhghl9j5caydb2a9g2n44zvffd94gb6abday0manxkkvw682s"))))
12985 (build-system pyproject-build-system)
12986 (native-inputs
12987 (list python-cython
12988 python-pytest
12989 python-setuptools
12990 python-wheel))
12991 (propagated-inputs
12992 (list python-numpy
12993 python-utils))
12994 (home-page "https://github.com/WoLpH/numpy-stl/")
12995 (synopsis "Read, write and modify binary/ASCII STL files library")
12996 (description
12997 "Library to make reading, writing and modifying both binary and ascii STL
12998files, file format native to the stereolithography CAD software created by 3D
12999Systems, easy.")
13000 (license license:bsd-3)))
13001
13002(define-public python-npx
13003 (package
13004 (name "python-npx")
13005 (version "0.1.6")
13006 (source
13007 (origin
13008 (method git-fetch) ; no source archive in PyPI
13009 (uri (git-reference
13010 (url "https://github.com/sigma-py/npx")
13011 (commit (string-append "v" version))))
13012 (file-name (git-file-name name version))
13013 (sha256
13014 (base32 "0a3rb3ydl13m1r48kdvnbi31566jxm10p36argkz5kjr2ilkrx8v"))))
13015 (build-system pyproject-build-system)
13016 (native-inputs
13017 (list python-networkx
13018 python-pytest
13019 python-setuptools
13020 python-wheel))
13021 (propagated-inputs
13022 (list python-numpy))
13023 (home-page "https://github.com/nschloe/npx")
13024 (synopsis "Extensions for NumPy")
13025 (description "NumPy is a large library used everywhere in scientific
13026computing. That's why breaking backwards-compatibility comes at a
13027significant cost and is almost always avoided, even if the API of some
13028methods is arguably lacking. This package provides drop-in wrappers
13029\"fixing\" those.")
13030 (license license:bsd-3)))
13031
13032(define-public python-munch
13033 (package
13034 (name "python-munch")
13035 (version "4.0.0")
13036 (source
13037 (origin
13038 (method url-fetch)
13039 (uri (pypi-uri "munch" version))
13040 (sha256
13041 (base32
13042 "0d928bdzm0d9s9f058xa72pywps2zjdgvhrp9rm22qqj8r8v2b2l"))))
13043 (build-system pyproject-build-system)
13044 (native-inputs
13045 (list python-astroid
13046 python-pytest
13047 python-setuptools
13048 python-wheel))
13049 (home-page "https://github.com/Infinidat/munch")
13050 (synopsis "Dot-accessible dictionary")
13051 (description "Munch is a dot-accessible dictionary similar to JavaScript
13052objects.")
13053 (license license:expat)))
13054
13055(define-public python-colormath2
13056 (package
13057 (name "python-colormath2")
13058 (version "3.0.3")
13059 (source
13060 (origin
13061 (method git-fetch)
13062 (uri (git-reference
13063 (url "https://github.com/bkmgit/python-colormath2")
13064 (commit version)))
13065 (file-name (git-file-name name version))
13066 (sha256
13067 (base32 "0xxhmmx1mzjggapjmpz8v166lj86xrkq7kak83akcirnq0pz9ihv"))))
13068 (build-system pyproject-build-system)
13069 (propagated-inputs (list python-networkx python-numpy))
13070 (native-inputs (list python-nose2 python-setuptools))
13071 (home-page "https://github.com/bkmgit/python-colormath2")
13072 (synopsis "Color math and conversion library")
13073 (description
13074 "This is a Python library for color math and conversions.")
13075 (license license:bsd-3)))
13076
13077(define-public python-pam
13078 (package
13079 (name "python-pam")
13080 (version "2.0.2")
13081 (source
13082 (origin
13083 (method git-fetch)
13084 (uri (git-reference
13085 (url "https://github.com/FirefighterBlu3/python-pam")
13086 (commit (string-append "v" version))))
13087 (file-name (git-file-name name version))
13088 (sha256
13089 (base32 "05fvf9rg4h7sigzvipm1ghq34zk6i8na7wkyk905nvk4gdhln7ri"))))
13090 (build-system pyproject-build-system)
13091 (arguments
13092 (list
13093 #:test-flags
13094 #~(list "-k"
13095 (string-append " not __normal_"
13096 " and not __env_requires_"
13097 " and not __getenv"
13098 " and not __putenv"
13099 " and not __unset"
13100 " and not _setenv"
13101 " and not _env_set"
13102 " and not __pam_end"
13103 " and not _session_unauthenticated"))
13104 #:phases
13105 #~(modify-phases %standard-phases
13106 (add-after 'unpack 'bake-pam
13107 (lambda* (#:key inputs #:allow-other-keys)
13108 (substitute* "src/pam/__internals.py"
13109 (("find_library\\(\"(pam|pam_misc)\"\\)" all lib)
13110 (string-append
13111 "\""
13112 (search-input-file inputs
13113 (string-append "lib/lib" lib ".so"))
13114 "\"")))))
13115 (add-before 'check 'fix-test-config
13116 (lambda _
13117 (substitute* "pyproject.toml"
13118 (("\"test_\\*.py\"")
13119 (format
13120 #f "[~{~s~^,~}]"
13121 (map basename (find-files "tests" "test_.*\\.py$"))))
13122 (("norecursedirs = (\".*\")" all dirs)
13123 (string-append "norecursedirs = [" dirs "]"))))))))
13124 (inputs (list linux-pam))
13125 (propagated-inputs (list python-six))
13126 (native-inputs (list python-pytest
13127 python-setuptools))
13128 (home-page "https://github.com/FirefighterBlu3/python-pam")
13129 (synopsis "Python PAM module")
13130 (description "This package provides a Python module to interface with
13131@acronym{PAM, pluggable authentication modules}.")
13132 (license license:expat)))
13133
13134(define-public python-pyspnego
13135 (package
13136 (name "python-pyspnego")
13137 (version "0.8.0")
13138 (source (origin
13139 (method url-fetch)
13140 (uri (pypi-uri "pyspnego" version))
13141 (sha256
13142 (base32
13143 "1ps34laa0kvvp33az173hp5l0hnk8cr0bfqmlgw64ry5cv09qjg0"))))
13144 (build-system pyproject-build-system)
13145 (native-inputs
13146 (list python-pytest python-pytest-mock python-setuptools python-wheel))
13147 (propagated-inputs
13148 (list python-cryptography python-gssapi python-krb5 python-ruamel.yaml))
13149 (home-page "https://github.com/jborean93/pyspnego")
13150 (synopsis "Python SPNEGO library")
13151 (description "The @code{pyspnego} Python library handles Negotiate, NTLM,
13152Kerberos (SPNEGO) and CredSSP authentication. It also includes a packet
13153parser that can be used to decode raw NTLM/SPNEGO/Kerberos tokens into a human
13154readable format.")
13155 (license license:expat)))
13156
13157(define-public python-pygit2
13158 (package
13159 (name "python-pygit2")
13160 (version "1.18.2")
13161 (source
13162 (origin
13163 (method url-fetch)
13164 (uri (pypi-uri "pygit2" version))
13165 (sha256
13166 (base32 "0m8g8s72c0xwwayykpj1hf8c1wldhmg1sj8kgxdp2rf9c837xa7c"))))
13167 (build-system pyproject-build-system)
13168 (propagated-inputs (list python-cffi libgit2))
13169 (native-inputs (list python-pytest python-setuptools python-wheel))
13170 (home-page "https://github.com/libgit2/pygit2")
13171 (synopsis "Python bindings for libgit2")
13172 (description "Pygit2 is a set of Python bindings to the libgit2 shared library.")
13173 ;; GPL2.0 only, with linking exception.
13174 (license license:gpl2)))
13175
13176(define-public python-patiencediff
13177 (package
13178 (name "python-patiencediff")
13179 (version "0.2.15")
13180 (source
13181 (origin
13182 (method url-fetch)
13183 (uri (pypi-uri "patiencediff" version))
13184 (sha256
13185 (base32
13186 "012jjgkkpk563l1mgj2ax4z32h0l558adhr2qa3chfrfsgpi22fh"))))
13187 (build-system pyproject-build-system)
13188 (arguments
13189 (list
13190 #:phases #~(modify-phases %standard-phases
13191 ;; Fails because bin/patiencediff expects two files to diff
13192 (delete 'sanity-check))))
13193 (native-inputs (list python-pytest python-setuptools python-wheel))
13194 (home-page "https://www.breezy-vcs.org/")
13195 (synopsis "Python implementation of the patiencediff algorithm")
13196 (description
13197 "This package contains a Python implementation of the @code{patiencediff}
13198algorithm. Patiencediff provides a good balance of performance, nice output for
13199humans, and implementation simplicity.")
13200 (license license:gpl2+)))
13201
13202(define-public python-merge3
13203 (package
13204 (name "python-merge3")
13205 (version "0.0.16")
13206 (source
13207 (origin
13208 (method git-fetch)
13209 (uri (git-reference
13210 (url "https://github.com/breezy-team/merge3")
13211 (commit (string-append "v" version))))
13212 (file-name (git-file-name name version))
13213 (sha256
13214 (base32 "18z0ya92qlrm1imwi6lws4b0y9a66gknlcpylyb9h6m733bf5slb"))))
13215 (build-system pyproject-build-system)
13216 (arguments (list #:test-backend #~'unittest))
13217 (native-inputs (list python-setuptools))
13218 (home-page "https://github.com/breezy-team/merge3")
13219 (synopsis "Python implementation of 3-way merge")
13220 (description "This Python library implements 3-way merge for text.")
13221 (license license:gpl2+)))
13222
13223(define-public python-fancycompleter
13224 (package
13225 (name "python-fancycompleter")
13226 (version "0.9.1")
13227 (source
13228 (origin
13229 (method git-fetch)
13230 (uri (git-reference
13231 (url "https://github.com/pdbpp/fancycompleter")
13232 (commit version)))
13233 (file-name (git-file-name name version))
13234 (sha256
13235 (base32 "04gbnpm2m86wgigaqf03mphacawg203gdgpljx5xzax3vhm8qnxw"))))
13236 (build-system pyproject-build-system)
13237 (arguments
13238 (list
13239 #:phases
13240 #~(modify-phases %standard-phases
13241 (add-after 'unpack 'fix-setup.py
13242 (lambda _
13243 (substitute* "setup.py"
13244 ((".*setupmeta.*")
13245 "")
13246 (("versioning=.*")
13247 (string-append "version='" #$version "',"))
13248 ((".*pyrepl.*") ; broken on Python 3
13249 "")))))))
13250 (native-inputs (list python-pytest python-setuptools))
13251 (home-page "https://github.com/pdbpp/fancycompleter")
13252 (synopsis "TAB completion library for Python")
13253 (description
13254 "@code{fancycompleter} is a module that adds TAB completion to the
13255interactive prompt. It is an extension of the @code{rlcompleter} module from
13256the standard Python library.")
13257 (license license:bsd-3)))
13258
13259(define-public python-ipdb
13260 (package
13261 (name "python-ipdb")
13262 (version "0.13.13")
13263 (source
13264 (origin
13265 (method git-fetch)
13266 (uri (git-reference
13267 (url "https://github.com/gotcha/ipdb")
13268 (commit version)))
13269 (file-name (git-file-name name version))
13270 (sha256
13271 (base32 "151cw13kgfgv2is7kx10zzwp17kkvzz6658srdhgnzm6d5kjjrxk"))))
13272 (build-system pyproject-build-system)
13273 (arguments (list #:test-backend #~'unittest))
13274 (native-inputs (list python-setuptools))
13275 (propagated-inputs (list python-ipython python-toml python-decorator))
13276 (home-page "https://github.com/gotcha/ipdb")
13277 (synopsis "IPython-enhanced Python debugger (pdb)")
13278 (description
13279 "@code{ipdb} exports functions to access the IPython debugger, which
13280features tab completion, syntax highlighting, better tracebacks and better
13281introspection than Python's standard @command{pdb} debugger, with which it
13282shares the same interface.")
13283 (license license:bsd-3)))
13284
13285(define-public python-ipfsspec
13286 (package
13287 (name "python-ipfsspec")
13288 (version "0.4.0")
13289 (source
13290 (origin
13291 (method url-fetch)
13292 (uri (pypi-uri "ipfsspec" version))
13293 (sha256
13294 (base32 "1y4ad9schc76j2lynm7vpwi4q4jzi9vv843zfpisbp8zqgm0rr7l"))))
13295 (build-system pyproject-build-system)
13296 (arguments
13297 (list
13298 #:test-flags
13299 '(list "-m not local_gw"
13300 ;; Require local gateway
13301 "--ignore=test/test_gateway.py"
13302 ;; Require internet
13303 "--ignore=test/test_async.py"
13304 "--ignore=test/test_ipfs.py")))
13305 (propagated-inputs (list python-aiohttp python-fsspec python-requests))
13306 (native-inputs
13307 (list python-pytest
13308 python-pytest-asyncio
13309 python-setuptools
13310 python-wheel))
13311 (home-page "https://github.com/fsspec/ipfsspec")
13312 (synopsis "Read-only implementation of fsspec for IPFS")
13313 (description "This package provides a read-only implementation of
13314@code{fsspec} for IPFS.")
13315 (license license:expat)))
13316
13317(define-public python-pdftotext
13318 (package
13319 (name "python-pdftotext")
13320 (version "3.0.0")
13321 (source
13322 (origin
13323 (method url-fetch)
13324 (uri (pypi-uri "pdftotext" version))
13325 (sha256
13326 (base32 "1ahs7c0qh3gyafxwrg9p4gcqwcrnc7y57adzm0ama52f2lcjnrf3"))))
13327 (build-system pyproject-build-system)
13328 (native-inputs (list python-pytest python-setuptools python-wheel))
13329 (inputs (list poppler))
13330 (home-page "https://github.com/jalan/pdftotext")
13331 (synopsis "Simple PDF text extraction")
13332 (description "Pdftotext is a Python library of PDF text extraction.")
13333 (license license:expat)))
13334
13335(define-public python-pluginbase
13336 (package
13337 (name "python-pluginbase")
13338 (version "1.0.1")
13339 (source
13340 (origin
13341 (method git-fetch)
13342 (uri (git-reference
13343 (url "https://github.com/mitsuhiko/pluginbase")
13344 (commit (string-append "v" version))))
13345 (file-name (git-file-name name version))
13346 (sha256
13347 (base32 "16c089ka8z4wb4mnx6a3dbvibibgzvawm8zgkp7ppadsgb3lc357"))))
13348 (build-system pyproject-build-system)
13349 (arguments
13350 (list
13351 #:phases
13352 #~(modify-phases %standard-phases
13353 (replace 'check
13354 (lambda* (#:key tests? #:allow-other-keys)
13355 (when tests?
13356 (invoke "make" "test")))))))
13357 (native-inputs (list python-pytest python-setuptools))
13358 (home-page "https://github.com/mitsuhiko/pluginbase")
13359 (synopsis "Simple but flexible plugin system for Python")
13360 (description
13361 "PluginBase is a library useful in the development of flexible plugin
13362systems in Python.")
13363 (license license:bsd-3)))
13364
13365(define-public python-node-semver
13366 (package
13367 (name "python-node-semver")
13368 (version "0.8.1")
13369 (source
13370 (origin
13371 (method git-fetch)
13372 (uri (git-reference
13373 (url "https://github.com/podhmo/python-node-semver")
13374 (commit version)))
13375 (file-name (git-file-name name version))
13376 (sha256
13377 (base32 "0az6v4y8awl3dhgrfyikgz2vc8p1k15qwsq6yb8azp54m1fbh5hs"))))
13378 (build-system pyproject-build-system)
13379 (native-inputs (list python-pytest python-setuptools))
13380 (home-page "https://github.com/podhmo/python-node-semver")
13381 (synopsis "Python port of node-semver")
13382 (description
13383 "This module provides a Python version of node-semver, a semantic version
13384parser for Node.js.")
13385 (license license:expat)))
13386
13387(define-public python-norns
13388 (package
13389 (name "python-norns")
13390 (version "0.1.6")
13391 (source
13392 (origin
13393 (method git-fetch)
13394 (uri (git-reference
13395 (url "https://github.com/simonvh/norns")
13396 (commit version)))
13397 (file-name (git-file-name name version))
13398 (sha256
13399 (base32 "0x488xd2dp1clnzpb3gikx416g0fh1bjs25bwi0jmsvqmd80hmb0"))
13400 (patches
13401 (search-patches "python-norns-nose.patch"))))
13402 (build-system pyproject-build-system)
13403 (propagated-inputs (list python-appdirs python-pynose python-pyyaml))
13404 (native-inputs (list python-setuptools))
13405 (home-page "https://github.com/simonvh/norns")
13406 (synopsis "Simple YAML-based config module")
13407 (description "This package provides a simple YAML-based config module.")
13408 (license license:expat)))
13409
13410(define-public python-patch-ng
13411 (package
13412 (name "python-patch-ng")
13413 (version "1.18.1")
13414 (source
13415 (origin
13416 (method git-fetch)
13417 (uri (git-reference
13418 (url "https://github.com/conan-io/python-patch-ng")
13419 (commit version)))
13420 (file-name (git-file-name name version))
13421 (sha256
13422 (base32 "1kr3h0bkcr02zyfsmwmxfv5b4b9vf3bhsvrlwp6cwrfy3q3qnyq8"))))
13423 (build-system pyproject-build-system)
13424 (arguments
13425 (list
13426 #:test-backend #~'custom
13427 #:test-flags #~(list "tests/run_tests.py" "-v")))
13428 (native-inputs (list python-pytest python-setuptools))
13429 (home-page "https://github.com/conan-io/python-patch-ng")
13430 (synopsis "Python library to parse and apply unified diffs")
13431 (description
13432 "Patch NG (New Generation) is a command and Python library to parse and
13433apply unified diffs. It has features such as:
13434@itemize
13435@item automatic correction of common patch formatting corruption
13436@item patch format detection (SVN, Hg, Git)
13437@item nice diffstat histogram.
13438@end itemize")
13439 (license license:expat)))
13440
13441(define-public python-numpydoc
13442 (package
13443 (name "python-numpydoc")
13444 (version "1.10.0")
13445 (source
13446 (origin
13447 (method url-fetch)
13448 (uri (pypi-uri "numpydoc" version))
13449 (sha256
13450 (base32
13451 "00gsbzpx7s3yq6g5c8k7rlq2hhx2pdraqcbb18k142g3xvv70y9z"))))
13452 (build-system pyproject-build-system)
13453 (arguments
13454 (list
13455 #:test-flags
13456 '(list "numpydoc/tests"
13457 "-k" (string-append
13458 ;; TODO: unclear why these fail.
13459 "not test_MyClass and not test_my_function "
13460 ;; This test compares installed vs source absolute file
13461 ;; names.
13462 "and not test_source_file_name_with_properties"))))
13463 (propagated-inputs (list python-sphinx python-tomli))
13464 (native-inputs
13465 (list python-matplotlib python-pytest python-setuptools))
13466 (home-page "https://pypi.org/project/numpydoc/")
13467 (synopsis "Numpy's Sphinx extensions")
13468 (description "Sphinx extension to support docstrings in Numpy format.")
13469 (license license:bsd-2)))
13470
13471(define-public python-numexpr
13472 (package
13473 (name "python-numexpr")
13474 (version "2.14.1")
13475 (source
13476 (origin
13477 (method git-fetch)
13478 (uri (git-reference
13479 (url "https://github.com/pydata/numexpr")
13480 (commit (string-append "v" version))))
13481 (file-name (git-file-name name version))
13482 (sha256
13483 (base32 "1zbpi7whjh6sccn1fndii735gv14kjaaqm3c3w1g2ry0z9948v9v"))))
13484 (build-system pyproject-build-system)
13485 (arguments
13486 (list
13487 ;; tests: 6039 passed, 1 warning
13488 #:test-flags #~(list "--pyargs" "numexpr")
13489 #:phases
13490 #~(modify-phases %standard-phases
13491 (add-before 'check 'remove-local-source
13492 (lambda _
13493 (delete-file-recursively "numexpr"))))))
13494 (native-inputs
13495 (list python-pytest
13496 python-setuptools))
13497 (propagated-inputs
13498 (list python-numpy))
13499 (home-page "https://github.com/pydata/numexpr")
13500 (synopsis "Fast numerical expression evaluator for NumPy")
13501 (description
13502 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
13503expressions that operate on arrays are accelerated and use less memory than
13504doing the same calculation in Python. In addition, its multi-threaded
13505capabilities can make use of all your cores, which may accelerate
13506computations, most specially if they are not memory-bounded (e.g. those using
13507transcendental functions).")
13508 (license license:expat)))
13509
13510(define-public python-cycler
13511 (package
13512 (name "python-cycler")
13513 (version "0.12.1")
13514 (source
13515 (origin
13516 (method git-fetch) ;no tests in PyPI archive
13517 (uri (git-reference
13518 (url "https://github.com/matplotlib/cycler")
13519 (commit (string-append "v" version))))
13520 (file-name (git-file-name name version))
13521 (sha256
13522 (base32 "061b8vxd2kp016pnwik9jg6zqng8khzmg0p298wrz65z50yh1gg4"))))
13523 (build-system pyproject-build-system)
13524 (native-inputs
13525 (list python-pytest
13526 python-setuptools))
13527 (home-page "https://matplotlib.org/cycler/")
13528 (synopsis "Composable keyword argument iterator")
13529 (description
13530 "When using @code{matplotlib} and plotting more than one line, it is
13531common to want to be able to want to be able to cycle over one or more artist
13532styles; but the plotting logic can quickly become involved.
13533To address this and enable easy cycling over arbitrary @code{kwargs}, the
13534@code{Cycler} class was developed.")
13535 (license license:bsd-3)))
13536
13537(define-public python-colorspacious
13538 (package
13539 (name "python-colorspacious")
13540 (version "1.1.2")
13541 (source
13542 (origin
13543 (method git-fetch)
13544 (uri (git-reference
13545 (url "https://github.com/njsmith/colorspacious")
13546 (commit (string-append "v" version))))
13547 (file-name (git-file-name name version))
13548 (sha256
13549 (base32 "0x7nkphr6g5ql5fvgss8l56rgiyjgh6fm8zzs73i94ci9wzlm63w"))))
13550 (build-system pyproject-build-system)
13551 (arguments (list #:tests? #f)) ; No tests.
13552 (propagated-inputs (list python-numpy))
13553 (native-inputs (list python-pytest python-setuptools))
13554 (home-page "https://github.com/njsmith/colorspacious")
13555 (synopsis "Python library for colorspace conversions")
13556 (description
13557 "@code{colorspacious} is a Python library that lets you convert between
13558colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.")
13559 (license license:expat)))
13560
13561(define-public python-propcache
13562 (package
13563 (name "python-propcache")
13564 (version "0.2.1")
13565 (source
13566 (origin
13567 (method url-fetch)
13568 (uri (pypi-uri "propcache" version))
13569 (sha256
13570 (base32 "0r4sq2j6s63wziw8fhnrx0lxlg8ch3z2i6a92ivm7jqridrcwxrz"))))
13571 (build-system pyproject-build-system)
13572 (arguments
13573 (list
13574 #:test-flags
13575 #~(list "-o" "addopts=''" ; Avoid -p pytest_cov.
13576 "--ignore=tests/test_benchmarks.py")
13577 #:phases
13578 '(modify-phases %standard-phases
13579 (add-after 'unpack 'patch-build-system
13580 (lambda _
13581 ;; XXX: I don't know how to tell it to build the extensions in
13582 ;; place.
13583 (substitute* "packaging/pep517_backend/_backend.py"
13584 (("build_inplace=False") "build_inplace=True")))))))
13585 (native-inputs
13586 (list python-cython
13587 python-expandvars
13588 python-pytest
13589 python-pytest-xdist
13590 python-setuptools
13591 python-tomli))
13592 (home-page "https://github.com/aio-libs/propcache")
13593 (synopsis "Accelerated property cache")
13594 (description "The module provides a fast implementation of cached
13595properties for Python 3.9+.")
13596 (license license:asl2.0)))
13597
13598(define-public python-proto-matcher
13599 (package
13600 (name "python-proto-matcher")
13601 (version "0.0.3")
13602 (source
13603 (origin
13604 (method git-fetch)
13605 (uri (git-reference
13606 (url "https://github.com/dayfine/proto-matcher")
13607 (commit version)))
13608 (file-name (git-file-name name version))
13609 (sha256
13610 (base32 "1l0dqnicpk4gpfspdlng026sxnkgzy68x416aw7camwq0513mq5l"))))
13611 (build-system pyproject-build-system)
13612 (native-inputs (list python-pytest python-setuptools))
13613 (arguments (list #:tests? #f)) ; The test suite seems broken (missing data).
13614 (propagated-inputs (list python-protobuf python-pyhamcrest))
13615 (home-page "https://github.com/dayfine/proto-matcher")
13616 (synopsis "PyHamcrest test matchers for protocol buffers")
13617 (description
13618 "This package provides the following PyHamcrest test matchers, that
13619enable matching a protocol buffer message:
13620@table @code
13621@item equals_proto
13622Test the argument equals the given protobuf message.
13623@item approximately
13624Test the argument equals the given protobuf message, while comparing any float
13625field using approximation.
13626@item ignoring_field_paths
13627Test the argument equals the given protobuf message, while ignoring those
13628fields specified in the field paths.
13629@item ignoring_repeated_field_ordering
13630Test the argument equals the given protobuf message, ignoring the ordering of
13631any repeated field.
13632@item partially
13633Test the argument partially equals the given protobuf message, i.e. if a field
13634is in the argument but not in the expected message, it's ignored in the
13635comparison.
13636@end table")
13637 (license license:asl2.0)))
13638
13639(define-public python-matplotlib
13640 (package
13641 (name "python-matplotlib")
13642 (version "3.10.9")
13643 (source
13644 (origin
13645 (method git-fetch)
13646 (uri (git-reference
13647 (url "https://github.com/matplotlib/matplotlib")
13648 (commit (string-append "v" version))))
13649 (file-name (git-file-name name version))
13650 (sha256
13651 (base32 "1mff6s0nldfgdczjrfkkg68j2sx9l7jpslbcyq0d4slhnkx1lp2g"))))
13652 (build-system pyproject-build-system)
13653 (arguments
13654 (list
13655 ;; tests: 6584 passed, 1519 skipped, 29 xfailed
13656 #:configure-flags
13657 ''(("setup-args" . #("-DrcParams-backend=TkAgg"
13658 "-Dsystem-freetype=true"
13659 "-Dsystem-qhull=true"))
13660 ("install-args" . "--tags=data,python-runtime,runtime,tests"))
13661 #:test-flags
13662 #~(list "-m" "not network"
13663 "-n" (number->string (parallel-job-count))
13664 ;; Run the installed tests, which is what we want since not
13665 ;; everything gets built in the source directory.
13666 "--pyargs" "matplotlib"
13667 "-k"
13668 (string-join
13669 (list
13670 ;; XXX: Disable all image comparison tests because we're using
13671 ;; a newer version of FreeType than matplotlib expects. This
13672 ;; leads to minor differences throughout the tests.
13673 "not image_comparison"
13674 "check_figures_equal"
13675 "png" ;disables many problematic image tests
13676 "test_figure_legend_outside"
13677 "test_ft2font_get_kerning"
13678 "test_normal_axes"
13679 "test_get_tightbbox_polar"
13680 ;; The invisible line ordering test fails due to a too short
13681 ;; timeout (see:
13682 ;; <https://github.com/matplotlib/matplotlib/issues/30809>).
13683 "test_invisible_Line_rendering"
13684 ;; The determinism check test is not deterministic (see:
13685 ;; <https://github.com/matplotlib/matplotlib/issues/30360>)
13686 "test_determinism_check")
13687 " and not "))
13688 #:phases
13689 #~(modify-phases %standard-phases
13690 (add-after 'unpack 'patch-commands
13691 (lambda _
13692 (substitute* "lib/matplotlib/tests/test_animation.py"
13693 (("/bin/sh") (which "sh")))))
13694 (add-after 'unpack 'patch-dlopen
13695 (lambda* (#:key inputs #:allow-other-keys)
13696 (substitute* "src/_c_internal_utils.cpp"
13697 (("libX11.so.6")
13698 (search-input-file inputs "lib/libX11.so.6")))))
13699 (add-before 'build 'configure-environment
13700 (lambda* (#:key inputs #:allow-other-keys)
13701 ;; Fix rounding errors when using the x87 FPU.
13702 (when (string-prefix? "i686" #$(%current-system))
13703 (setenv "CFLAGS" "-ffloat-store"))))
13704 (add-before 'check 'chdir
13705 (lambda _
13706 ;; Step out of the source directory to avoid interference.
13707 (chdir "/tmp"))))))
13708 (propagated-inputs
13709 (list python-contourpy
13710 python-cycler
13711 python-dateutil
13712 python-fonttools-minimal
13713 python-importlib-resources
13714 python-kiwisolver
13715 python-numpy
13716 python-packaging
13717 python-pillow
13718 python-pyparsing
13719 `(,python "tk")))
13720 (inputs
13721 (list cairo
13722 freetype
13723 glib
13724 libpng
13725 qhull
13726 tcl
13727 tk))
13728 (native-inputs
13729 (list pkg-config
13730 python-meson
13731 pybind11
13732 python-pytest
13733 python-pytest-timeout
13734 python-pytest-xdist
13735 python-setuptools
13736 python-setuptools-scm))
13737 (home-page "https://matplotlib.org/")
13738 (synopsis "2D plotting library for Python")
13739 (description
13740 "Matplotlib is a Python 2D plotting library which produces publication
13741quality figures in a variety of hardcopy formats and interactive environments
13742across platforms. Matplotlib can be used in Python scripts, the python and
13743ipython shell, web application servers, and six graphical user interface
13744toolkits.")
13745 (license license:psfl)))
13746
13747(define-public python-matplotlib-documentation
13748 (package
13749 (inherit python-matplotlib)
13750 (name "python-matplotlib-documentation")
13751 (arguments
13752 (list
13753 #:tests? #f ;we're only generating documentation
13754 #:phases
13755 #~(modify-phases %standard-phases
13756 (add-after 'unpack 'avoid-external-deps
13757 (lambda _
13758 ;; XXX: Avoid theme-switcher to avoid sphinx error
13759 ;; TemplateNotFound('theme-switcher.html')
13760 ;; XXX: Avoid version-switcher because it depends on an
13761 ;; external file, and we pack only one version anyway.
13762 (substitute* "doc/conf.py"
13763 (("\
13764\"navbar_end\": \\[\"theme-switcher\", \"version-switcher\", ")
13765 "\"navbar_end\": ["))))
13766 (replace 'build
13767 (lambda _
13768 (setenv "HOME" "/tmp")
13769 (chdir "doc")
13770 (invoke "make" "html" "info"
13771 ;; Don't abort on warnings; build in parallel.
13772 (format #f "SPHINXOPTS=-j~a" (parallel-job-count)))))
13773 (replace 'install
13774 (lambda _
13775 (let* ((data (string-append #$output "/share"))
13776 (doc (string-append data "/doc/matplotlib"))
13777 (info (string-append data "/info"))
13778 (html (string-append doc "/html")))
13779 (mkdir-p html)
13780 (copy-recursively "build/html" html)
13781 (install-file "build/texinfo/matplotlib.info" info)
13782 ;; The "matplotlib-figures" directory contains are a subset of
13783 ;; the images produced for the html target; simply create a
13784 ;; symlink to it, saving about 11 MiB.
13785 (symlink (string-append html "/_images")
13786 (string-append info "/matplotlib-figures"))))))))
13787 ;; Move all propagated inputs to inputs. *-documentation packages are
13788 ;; expected to be installed as standalone leaf packages, and not as
13789 ;; libraries with propagated inputs.
13790 (propagated-inputs '())
13791 (inputs (append
13792 (package-inputs python-matplotlib)
13793 (package-propagated-inputs python-matplotlib)))
13794 (native-inputs
13795 (list ffmpeg ;for matplotlib animation support
13796 graphviz
13797 inkscape/pinned
13798 python-colorspacious
13799 python-ipython
13800 python-ipykernel
13801 python-ipywidgets
13802 python-matplotlib
13803 python-mpl-sphinx-theme
13804 python-numpydoc
13805 python-pyyaml
13806 python-scipy
13807 python-setuptools
13808 ;; XXX: investigate how to build using a newer version of sphinx.
13809 python-sphinx-6
13810 python-sphinx-copybutton
13811 python-sphinx-design
13812 python-sphinx-gallery
13813 python-sphinx-tags
13814 python-sphinxcontrib-svg2pdfconverter
13815 python-sphinxcontrib-video
13816 texinfo
13817 texlive-dvipng-bin
13818 (texlive-local-tree
13819 (list texlive-amsfonts
13820 texlive-amsmath
13821 texlive-babel
13822 texlive-cm-super
13823 texlive-etoolbox
13824 texlive-expdlist
13825 texlive-fontspec
13826 texlive-times
13827 texlive-type1cm
13828 texlive-underscore
13829 texlive-unicode-math))))
13830 (synopsis "Documentation for the @code{python-matplotlib} package")))
13831
13832(define-public python-matplotlib-inline
13833 (package
13834 (name "python-matplotlib-inline")
13835 (version "0.1.7")
13836 (source
13837 (origin
13838 (method url-fetch)
13839 (uri (pypi-uri "matplotlib_inline" version))
13840 (sha256
13841 (base32 "145bl0ppy4cz1fii3pfixd0fi1jfmkcbsq3bw4b3vgk6qqzb48w4"))))
13842 (build-system pyproject-build-system)
13843 (arguments
13844 (list
13845 ;; Tests disabled because of a circular dependency with IPython.
13846 #:tests? #f
13847 #:phases
13848 #~(modify-phases %standard-phases
13849 ;; Disabled because of a circular dependency with IPython.
13850 (delete 'sanity-check))))
13851 (native-inputs
13852 (list python-setuptools))
13853 (propagated-inputs
13854 (list python-matplotlib
13855 python-traitlets))
13856 (home-page "https://github.com/ipython/matplotlib-inline")
13857 (synopsis "Inline Matplotlib backend for Jupyter")
13858 (description
13859 "This package provides a Matplotlib inline back-end for IPython and
13860Jupyter.")
13861 (license license:bsd-3)))
13862
13863(define-public python-matplotlib-venn
13864 (package
13865 (name "python-matplotlib-venn")
13866 (version "1.1.2")
13867 (source
13868 (origin
13869 (method url-fetch)
13870 (uri (pypi-uri "matplotlib-venn" version))
13871 (sha256
13872 (base32 "1qrnxhi2rbz737fm9mprfr8ig7kk2r99cbzkw8nsddcv7sh0favg"))))
13873 (build-system pyproject-build-system)
13874 (native-inputs (list python-pytest
13875 python-setuptools
13876 python-shapely
13877 python-wheel))
13878 (propagated-inputs
13879 (list python-matplotlib python-numpy python-scipy))
13880 (home-page "https://github.com/konstantint/matplotlib-venn")
13881 (synopsis "Plot area-proportional Venn diagrams")
13882 (description
13883 "This package provides tools for plotting area-proportional two- and
13884three-way Venn diagrams in @code{matplotlib}.")
13885 (license license:expat)))
13886
13887(define-public python-matplotx
13888 (package
13889 (name "python-matplotx")
13890 (version "0.3.10")
13891 (source
13892 (origin
13893 (method git-fetch)
13894 (uri (git-reference
13895 (url "https://github.com/nschloe/matplotx")
13896 (commit (string-append "v" version))))
13897 (file-name (git-file-name name version))
13898 (sha256
13899 (base32 "1j301mr7ai2jmbm5mkva0jd99fzxhyq585pqzqfmrf5pil8j4q8i"))))
13900 (build-system pyproject-build-system)
13901 (arguments
13902 (list
13903 #:test-flags
13904 ;; This test fails with ValueError: not enough values to unpack.
13905 #~(list "--deselect" "tests/test_spy.py::test_cli"
13906 ;; XXX: unknown failure
13907 "--deselect" "tests/test_spy.py::test_png")))
13908 (native-inputs
13909 (list python-imageio
13910 python-meshzoo
13911 python-pytest
13912 python-scipy-minimal
13913 python-setuptools
13914 python-scikit-fem))
13915 (propagated-inputs
13916 (list python-matplotlib
13917 python-numpy
13918 ;; [optional]
13919 python-networkx
13920 python-pypng
13921 python-scipy))
13922 (home-page "https://github.com/nschloe/matplotx")
13923 (synopsis "Minimal matplotlib styles")
13924 (description
13925 "This package includes some extensions for Matplotlib to create clean
13926plots with a minimalistic style.")
13927 (license license:expat)))
13928
13929(define-public python-cplot
13930 (package
13931 (name "python-cplot")
13932 (version "0.9.3")
13933 (source
13934 (origin
13935 (method git-fetch)
13936 (uri (git-reference
13937 (url "https://github.com/nschloe/cplot")
13938 (commit (string-append "v" version))))
13939 (file-name (git-file-name name version))
13940 (sha256
13941 (base32 "0zk7hpq358sbympmkms7w2wjs7nw8mdfvkvdasblg2nhqayv42qz"))))
13942 (build-system pyproject-build-system)
13943 (native-inputs
13944 (list python-pytest
13945 python-setuptools))
13946 (propagated-inputs
13947 (list python-matplotlib
13948 python-matplotx
13949 python-npx
13950 python-numpy))
13951 (home-page "https://github.com/nschloe/cplot")
13952 (synopsis "Plot complex-valued functions")
13953 (description "@code{cplot} is a Python library for plotting
13954complex-valued functions.")
13955 (license license:gpl3+)))
13956
13957(define-public python-cppheaderparser
13958 (package
13959 (name "python-cppheaderparser")
13960 (version "2.7.4")
13961 (source
13962 (origin
13963 (method url-fetch)
13964 (uri (pypi-uri "CppHeaderParser" version))
13965 (sha256
13966 (base32 "0hncwd9y5ayk8wa6bqhp551mcamcvh84h89ba3labc4mdm0k0arq"))))
13967 (build-system pyproject-build-system)
13968 (arguments
13969 (list
13970 #:tests? #f)) ; no tests
13971 (propagated-inputs (list python-ply))
13972 (native-inputs (list python-setuptools python-wheel))
13973 (home-page "http://senexcanis.com/open-source/cppheaderparser/")
13974 (synopsis
13975 "Parse C++ header files and generate a data structure representing the class")
13976 (description
13977 "CppHeaderParser is a pure python module that will parse C++ header files
13978and generate a data structure representing the class.")
13979 (license license:bsd-3)))
13980
13981(define-public python-cppy
13982 (package
13983 (name "python-cppy")
13984 (version "1.3.1")
13985 (source
13986 (origin
13987 (method git-fetch)
13988 (uri (git-reference
13989 (url "https://github.com/nucleic/cppy")
13990 (commit version)))
13991 (file-name (git-file-name name version))
13992 (sha256
13993 (base32 "16g0f9kjyybmlxy9w5bbxm98g7wqhcvh4pw77r0jk3dgd11lkvzy"))))
13994 (build-system pyproject-build-system)
13995 (arguments
13996 (list #:tests? #f)) ;there is just one test coping include directory
13997 (native-inputs
13998 (list python-setuptools
13999 python-setuptools-scm))
14000 (home-page "https://github.com/nucleic/cppy")
14001 (synopsis "C++ header library for Python extension modules")
14002 (description "This package is a small C++ header library which makes it
14003easier to write Python extension modules. The primary feature is a
14004@code{PyObject} smart pointer which automatically handles reference counting
14005and provides convenience methods for performing common object operations.")
14006 (license license:bsd-3)))
14007
14008(define-public python-perfplot
14009 (package
14010 (name "python-perfplot")
14011 (version "0.10.2")
14012 (source
14013 (origin
14014 (method git-fetch)
14015 (uri (git-reference
14016 (url "https://github.com/nschloe/perfplot")
14017 (commit (string-append "v" version))))
14018 (file-name (git-file-name name version))
14019 (sha256
14020 (base32 "1j73m8v9l8bhf79qa9apj6lcw1afxbvdq4mrn0yb31541dhrxvkf"))))
14021 (build-system pyproject-build-system)
14022 (native-inputs
14023 (list python-flit-core
14024 python-pytest))
14025 (propagated-inputs
14026 (list python-matplotlib
14027 python-matplotx
14028 python-numpy
14029 python-rich))
14030 (home-page "https://github.com/nschloe/perfplot")
14031 (synopsis "Performance plots for Python code snippets")
14032 (description "@code{perfplot} extends Python's timeit by testing
14033snippets with input parameters (e.g., the size of an array) and plotting
14034the results.")
14035 (license license:gpl3+)))
14036
14037(define-public python-persist-queue
14038 (package
14039 (name "python-persist-queue")
14040 (version "1.1.0")
14041 (source
14042 (origin
14043 (method git-fetch)
14044 (uri (git-reference
14045 (url "https://github.com/peter-wangxu/persist-queue")
14046 (commit (string-append "v" version))))
14047 (file-name (git-file-name name version))
14048 (sha256
14049 (base32 "02agwksg0idyhbd4q2sn36igi0zv4kfbkn8vixnbv4q0ki75gfzh"))))
14050 (build-system pyproject-build-system)
14051 (native-inputs
14052 (list python-pytest
14053 python-pytest-asyncio
14054 python-setuptools))
14055 (propagated-inputs
14056 (list python-aiofiles
14057 python-aiosqlite
14058 python-cbor2
14059 python-dbutils
14060 python-msgpack))
14061 (home-page "https://github.com/peter-wangxu/persist-queue")
14062 (synopsis "Thread-safe disk based persistent queue in Python")
14063 (description
14064 "This package provides a thread-safe disk (file and sqlite) based
14065persistent queue in Python.")
14066 (license license:bsd-3)))
14067
14068(define-public python-pycodestyle
14069 (package
14070 (name "python-pycodestyle")
14071 (version "2.14.0")
14072 (source
14073 (origin
14074 (method url-fetch) ;git has no the same version tag as PyPI
14075 (uri (pypi-uri "pycodestyle" version))
14076 (sha256
14077 (base32 "10xpcy8m54cvnk4a37j4cwrjl9lprlcwkpmbs3wry23qs8bvbdf4"))))
14078 (build-system pyproject-build-system)
14079 (arguments
14080 (list
14081 #:test-backend #~'custom
14082 #:test-flags
14083 ;; Taken from Tox config
14084 ;; <https://github.com/PyCQA/pycodestyle/blob/2.11.0/tox.ini#L16>.
14085 #~(list "-m" "pycodestyle" "--statistics" "pycodestyle.py")))
14086 (native-inputs
14087 (list python-setuptools))
14088 (home-page "https://pycodestyle.readthedocs.io/")
14089 (synopsis "Python style guide checker")
14090 (description "@code{pycodestyle} (formerly pep8) is a tool to check
14091Python code against some of the style conventions in
14092@url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.")
14093 (license license:expat)))
14094
14095(define-public python-pycollada
14096 (package
14097 (name "python-pycollada")
14098 (version "0.9.2")
14099 (source
14100 (origin
14101 (method git-fetch)
14102 (uri (git-reference
14103 (url "https://github.com/pycollada/pycollada")
14104 (commit (string-append "v" version))))
14105 (file-name (git-file-name name version))
14106 (sha256
14107 (base32 "13pj179p9gdiza409n8mdl7cpfasc3mrmk40p1vqplfdshks75dy"))))
14108 (build-system pyproject-build-system)
14109 (native-inputs
14110 (list python-pytest
14111 python-setuptools))
14112 (propagated-inputs
14113 (list python-numpy
14114 python-dateutil))
14115 (home-page "https://pycollada.readthedocs.io")
14116 (synopsis "Reading and writing collada documents library")
14117 (description
14118 "This package implements a functionality for creating, editing and
14119loading @url{https://www.khronos.org/collada/,COLLADA},which is a
14120COLLAborative Design Activity for establishing an interchange file format for
14121interactive 3D applications.
14122
14123The library allows you to load a COLLADA file and interact with it as a python
14124object. In addition, it supports creating a collada python object from
14125scratch, as well as in-place editing.")
14126 (license license:bsd-3)))
14127
14128(define-public python-pyct
14129 (package
14130 (name "python-pyct")
14131 (version "0.5.0")
14132 (source
14133 (origin
14134 (method url-fetch)
14135 (uri (pypi-uri "pyct" version))
14136 (sha256
14137 (base32 "1856dbrcpc0nxxhlfh3dqzz7xxn5sdi600q45hsprqyqrg2lm7yx"))))
14138 (build-system pyproject-build-system)
14139 (arguments
14140 (list
14141 #:test-flags
14142 ;; These tests want to download example data from the internet.
14143 '(list "-k" (string-append
14144 "not test_examples_with_use_test_data"
14145 " and not test_examples_using_test_data_and_force_with_prexisting_content_in_target"
14146 " and not test_fetch_data_using_test_data_with_no_file_in_data_copies_from_stubs"
14147 " and not test_fetch_data_using_test_data_and_force_with_file_in_data_over_writes"))))
14148 (propagated-inputs (list python-param python-pyyaml))
14149 (native-inputs (list python-flake8 python-pytest python-setuptools python-wheel))
14150 (home-page "https://github.com/holoviz-dev/pyct")
14151 (synopsis "Common packaging tasks")
14152 (description
14153 "This Python package provides utilities to run common packaging tasks,
14154e.g. copy examples, fetch data, etc.")
14155 (license license:bsd-3)))
14156
14157(define-public python-multidict
14158 (package
14159 (name "python-multidict")
14160 (version "6.7.0")
14161 (source
14162 (origin
14163 (method git-fetch)
14164 (uri (git-reference
14165 (url "https://github.com/aio-libs/multidict/")
14166 (commit (string-append "v" version))))
14167 (file-name (git-file-name name version))
14168 (sha256
14169 (base32 "1rcd2vi4837ahb6nyi0vxhvvzaa7bpc7zpg0xynbdv8qgif98j1l"))))
14170 (build-system pyproject-build-system)
14171 (arguments
14172 (list
14173 ;; tests: 1395 passed
14174 #:test-flags
14175 #~(list "-o" "addopts=''" ; Avoid -p pytest_cov.
14176 "--ignore-glob=tests/test_*_benchmarks.py")))
14177 (native-inputs
14178 (list python-objgraph
14179 python-psutil
14180 python-pytest
14181 python-setuptools))
14182 (home-page "https://github.com/aio-libs/multidict/")
14183 (synopsis "Multidict implementation")
14184 (description
14185 "Multidict is dict-like collection of key-value pairs where key might be
14186occurred more than once in the container.")
14187 (license license:asl2.0)))
14188
14189(define-public python-orderedmultidict
14190 (package
14191 (name "python-orderedmultidict")
14192 (version "1.0.1")
14193 (source
14194 (origin
14195 (method url-fetch)
14196 (uri (pypi-uri "orderedmultidict" version))
14197 (sha256
14198 (base32 "1bc2v0yflsxjyyjx4q9wqx0j3bvzcw9z87d5pz4iqac7bsxhn1q4"))))
14199 (build-system pyproject-build-system)
14200 (propagated-inputs
14201 (list python-six))
14202 (native-inputs
14203 (list python-pytest
14204 python-setuptools))
14205 (home-page "https://github.com/gruns/orderedmultidict")
14206 (synopsis "Python Ordered Multivalue Dictionary - omdict")
14207 (description "This package contains a library for ordered multivalue
14208dictionaries. A multivalue dictionary is a dictionary that can store
14209multiple values for the same key. An ordered multivalue dictionary is a
14210multivalue dictionary that retains the order of insertions and deletions.")
14211 (license license:unlicense)))
14212
14213(define-public python-autopage
14214 (package
14215 (name "python-autopage")
14216 (version "0.5.1")
14217 (source (origin
14218 (method url-fetch)
14219 (uri (pypi-uri "autopage" version))
14220 (sha256
14221 (base32
14222 "169ixll1ncm2a2pcc86665ikjv2lrzs10p6c1w4yj55p3gk3xgh1"))))
14223 (build-system pyproject-build-system)
14224 (arguments
14225 (list
14226 #:phases
14227 #~(modify-phases %standard-phases
14228 (add-before 'check 'disable-e2e-tests
14229 (lambda _
14230 ;; These tests rely on KeyboardInterrupts which do not
14231 ;; work in the build container.
14232 (delete-file "autopage/tests/test_end_to_end.py"))))))
14233 (native-inputs
14234 (list python-pypa-build
14235 python-setuptools
14236 python-wheel
14237 ;; For tests.
14238 python-fixtures
14239 python-pytest
14240 python-testtools))
14241 (home-page "https://github.com/zaneb/autopage")
14242 (synopsis "Automatic paging for console output")
14243 (description
14244 "Autopage is a Python library to automatically display terminal output
14245from a program in a @dfn{pager} such as @command{less}.")
14246 (license license:asl2.0)))
14247
14248(define-public python-dirty-equals
14249 (package
14250 (name "python-dirty-equals")
14251 (version "0.11.0")
14252 (source
14253 (origin
14254 (method git-fetch)
14255 (uri (git-reference
14256 (url "https://github.com/samuelcolvin/dirty-equals")
14257 (commit (string-append "v" version))))
14258 (file-name (git-file-name name version))
14259 (sha256
14260 (base32 "11nrdzcrc5hg3sbrhrdrmw43nvrx8wpzkl5q0p91pihxnfnrcli4"))))
14261 (build-system pyproject-build-system)
14262 ;; tests: 551 passed, 60 skipped
14263 (native-inputs
14264 (list python-hatchling
14265 python-pydantic
14266 python-pytest
14267 python-pytest-examples
14268 tzdata-for-tests))
14269 (home-page "https://dirty-equals.helpmanual.io/")
14270 (synopsis "Do dirty (but useful) things with equals")
14271 (description
14272 "@code{dirty-equals} is a Python library that (mis)uses the
14273@code{__eq__} method to make code (generally unit tests) more declarative
14274and therefore easier to read and write.")
14275 (license license:expat)))
14276
14277(define-public python-dirty-equals-bootstrap
14278 (hidden-package
14279 (package
14280 (inherit python-dirty-equals)
14281 (name "python-dirty-equals-bootstrap")
14282 (arguments
14283 (list #:tests? #f))
14284 (native-inputs
14285 (list python-hatchling)))))
14286
14287(define-public python-distutils-extra
14288 (package
14289 (name "python-distutils-extra")
14290 (version "2.38")
14291 (source
14292 (origin
14293 (method url-fetch)
14294 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
14295 version "/+download/python-distutils-extra-"
14296 version ".tar.gz"))
14297 (sha256
14298 (base32
14299 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
14300 (build-system pyproject-build-system)
14301 (arguments
14302 (list #:tests? #f)) ;tests are outdated and broken
14303 (native-inputs (list python-setuptools python-wheel))
14304 (home-page "https://launchpad.net/python-distutils-extra/")
14305 (synopsis "Enhancements to Python's distutils")
14306 (description
14307 "The python-distutils-extra module enables you to easily integrate
14308gettext support, themed icons, and scrollkeeper-based documentation into
14309Python's distutils.")
14310 (license license:gpl2)))
14311
14312(define-public python-olefile
14313 (package
14314 (name "python-olefile")
14315 (version "0.47")
14316 (source
14317 (origin
14318 (method git-fetch)
14319 (uri (git-reference
14320 (url "https://github.com/decalage2/olefile")
14321 (commit (string-append "v" version))))
14322 (file-name (git-file-name name version))
14323 (sha256
14324 (base32 "1ardfp32jgijha6vk7znvnpwgi710c6gj02lk4drv45xj4mw71hv"))))
14325 (build-system pyproject-build-system)
14326 (native-inputs
14327 (list python-pytest
14328 python-setuptools))
14329 (home-page "https://www.decalage.info/python/olefileio")
14330 (synopsis "Read and write Microsoft OLE2 files")
14331 (description
14332 "@code{olefile} can parse, read and write Microsoft OLE2 files (Structured
14333Storage or Compound Document, Microsoft Office). It is an improved version of
14334the OleFileIO module from PIL, the Python Image Library.")
14335 (license license:bsd-3)))
14336
14337(define-public python-property-cached
14338 (package
14339 (name "python-property-cached")
14340 (version "1.6.4")
14341 (source
14342 (origin
14343 (method url-fetch)
14344 (uri (pypi-uri "property-cached" version ".zip"))
14345 (sha256
14346 (base32 "0wxv5sdx1p7ils36j6j6hfscz8v2vzbq212i8y8r0lrnxpqlx71y"))
14347 (patches
14348 (search-patches "python-property-cached-asyncio-3_11.patch"))))
14349 (build-system pyproject-build-system)
14350 (arguments
14351 (list
14352 ;; AssertionError.
14353 #:test-flags #~(list "-k" "not test_threads_ttl_expiry")))
14354 (native-inputs (list python-freezegun python-pytest unzip
14355 python-setuptools python-wheel))
14356 (home-page "https://github.com/althonos/property-cached/")
14357 (synopsis "Decorator for caching properties in classes")
14358 (description "This package provides a decorator for caching properties in
14359classes. It is forked from @code{cached-property}.")
14360 (license license:bsd-3)))
14361
14362(define-public python-pdf2image
14363 (package
14364 (name "python-pdf2image")
14365 (version "1.17.0")
14366 (source
14367 (origin
14368 (method git-fetch)
14369 (uri (git-reference
14370 (url "https://github.com/Belval/pdf2image")
14371 (commit (string-append "v" version))))
14372 (file-name (git-file-name name version))
14373 (sha256
14374 (base32 "0xd8q939zqa8flfcdhbgyadiwqb8sgnd42cbr6n1l2jl9fnix45v"))))
14375 (build-system pyproject-build-system)
14376 (arguments
14377 (list
14378 ;; The following excluded tests assume hardcoded binary paths to
14379 ;; /usr/bin/pdftoppm and /usr/bin/pdftocairo.
14380 #:test-flags
14381 #~(list "--exclude=^test_use_poppler_path$"
14382 "--exclude=^test_use_poppler_path_with_trailing_slash$")))
14383 (propagated-inputs (list python-pillow))
14384 (inputs (list poppler))
14385 (native-inputs (list python-pynose which python-setuptools))
14386 (home-page "https://github.com/Belval/pdf2image")
14387 (synopsis
14388 "Python wrapper around @command{pdftoppm} and @command{pdftocairo}")
14389 (description
14390 "This package provides a Python API wrapping the @command{pdftoppm} and
14391@command{pdftocairo} command line tools. It can convert @file{PDF} files to a
14392Python list with elements of type @code{PIL.Image} (from the
14393@code{python-pillow} library).")
14394 (license license:expat)))
14395
14396(define-public python-pikepdf
14397 (package
14398 (name "python-pikepdf")
14399 (version "8.15.1")
14400 (source
14401 (origin
14402 (method git-fetch)
14403 (uri (git-reference
14404 (url "https://github.com/pikepdf/pikepdf")
14405 (commit (string-append "v" version))))
14406 (file-name (git-file-name name version))
14407 (sha256
14408 (base32 "0hpnb63xp8yaflah3i1z5azh6mg36rz0liy27km47417w2q72v0c"))))
14409 (build-system pyproject-build-system)
14410 (native-inputs
14411 (list pybind11-2
14412 python-attrs
14413 python-hypothesis
14414 python-setuptools-scm
14415 python-psutil
14416 python-pytest
14417 python-pytest-timeout
14418 python-pytest-xdist
14419 python-dateutil
14420 python-xmp-toolkit
14421 python-tomli
14422 python-setuptools))
14423 (inputs
14424 (list qpdf))
14425 (propagated-inputs
14426 (list python-deprecated python-lxml python-packaging python-pillow))
14427 (home-page "https://github.com/pikepdf/pikepdf")
14428 (synopsis "Read and write PDFs with Python")
14429 (description
14430 "pikepdf is a Python library for reading and writing PDF files.")
14431 (license license:mpl2.0)))
14432
14433(define-public python-pillow
14434 (package
14435 (name "python-pillow")
14436 (version "12.2.0")
14437 (source
14438 (origin
14439 (method git-fetch)
14440 (uri (git-reference
14441 (url "https://github.com/python-pillow/Pillow")
14442 (commit version)))
14443 (file-name (git-file-name name version))
14444 (sha256
14445 (base32 "140ynzxpazq6gq041bhkzx314z4kkzv3wlmvph68a0nkj9nqa3pg"))))
14446 (build-system pyproject-build-system)
14447 (arguments
14448 (list
14449 #:phases
14450 #~(modify-phases %standard-phases
14451 (add-after 'unpack 'patch-ldconfig
14452 (lambda _
14453 (substitute* "setup.py"
14454 (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
14455 (replace 'check
14456 (lambda* (#:key tests? #:allow-other-keys)
14457 (when tests?
14458 (setenv "HOME" (getcwd))
14459 (invoke "python" "selftest.py" "--installed")
14460 (invoke "python" "-m" "pytest" "-vv")))))))
14461 (native-inputs (list pybind11
14462 python-defusedxml
14463 python-markdown2
14464 python-olefile
14465 python-pytest
14466 python-setuptools
14467 python-trove-classifiers))
14468 (inputs (list freetype
14469 lcms
14470 libjpeg-turbo
14471 libtiff
14472 libwebp
14473 openjpeg
14474 zlib))
14475 (home-page "https://python-pillow.github.io/")
14476 (synopsis "Fork of the Python Imaging Library")
14477 (description
14478 "The Python Imaging Library adds image processing capabilities to your
14479Python interpreter. This library provides extensive file format support, an
14480efficient internal representation, and fairly powerful image processing
14481capabilities. The core image library is designed for fast access to data
14482stored in a few basic pixel formats. It should provide a solid foundation for
14483a general image processing tool.")
14484 (properties `((cpe-name . "pillow")))
14485 (license (license:x11-style
14486 "https://github.com/python-pillow/Pillow/blob/12.2.0/LICENSE"
14487 "MIT-CMU License"))))
14488
14489(define-public python-pillow-avif-plugin
14490 (package
14491 (name "python-pillow-avif-plugin")
14492 (version "1.5.5")
14493 (source
14494 (origin
14495 (method git-fetch)
14496 (uri (git-reference
14497 (url "https://github.com/fdintino/pillow-avif-plugin/")
14498 (commit (string-append "v" version))))
14499 (file-name (git-file-name name version))
14500 (sha256
14501 (base32 "1812liaxcdhzqzrjl9cf2xrnki7zz6f3iq3dvh1w9sgnbbjhfkj6"))))
14502 (build-system pyproject-build-system)
14503 (propagated-inputs (list python-requests))
14504 (native-inputs (list python-packaging
14505 python-pillow
14506 python-pytest
14507 python-setuptools))
14508 (inputs (list libavif))
14509 (home-page "https://github.com/fdintino/pillow-avif-plugin/")
14510 (synopsis "Pillow plugin that adds avif support via libavif")
14511 (description
14512 "This package provides a pillow plugin that adds avif support via
14513libavif.")
14514 (license license:expat)))
14515
14516(define-public python-pillow-heif
14517 (package
14518 (name "python-pillow-heif")
14519 ;; The tagged version 1.3.0 fails tests with libheif version 1.22.2. This
14520 ;; commit is taken from the master branch.
14521 (properties '((commit . "4366788c5eff15cf3d3c66d262224dac27f8efc4")
14522 (revision . "0")))
14523 (version (git-version "1.3.0"
14524 (assoc-ref properties 'revision)
14525 (assoc-ref properties 'commit)))
14526 (source
14527 (origin
14528 (method git-fetch)
14529 (uri (git-reference
14530 (url "https://github.com/bigcat88/pillow_heif")
14531 (commit (assoc-ref properties 'commit))))
14532 (file-name (git-file-name name version))
14533 (sha256
14534 (base32 "1dj35h2q2ng7hhv9nyqs0dd0x66kq0a5sgn1f6mc5d191qb90dy3"))))
14535 (build-system pyproject-build-system)
14536 (inputs (list libheif))
14537 (propagated-inputs (list python-pillow))
14538 (native-inputs (list opencv ; for opencv-python
14539 python-defusedxml
14540 python-numpy
14541 python-packaging
14542 python-pympler
14543 python-pytest
14544 python-setuptools))
14545 (home-page "https://github.com/bigcat88/pillow_heif")
14546 (synopsis "Python interface for libheif library")
14547 (description "This package provides Python bindings for the libheif library
14548and a plugin for Pillow.")
14549 (license license:bsd-3)))
14550
14551(define-public python-pillow-jxl-plugin
14552 (package
14553 (name "python-pillow-jxl-plugin")
14554 (version "1.3.7")
14555 (source
14556 (origin
14557 (method git-fetch)
14558 (uri (git-reference
14559 (url "https://github.com/Isotr0py/pillow-jpegxl-plugin")
14560 (commit (string-append "v" version))))
14561 (file-name (git-file-name name version))
14562 (sha256
14563 (base32 "0bfcypr81c7rxvs2yw992f3dklfbniyysgfrplsa706raa3288pk"))))
14564 (build-system pyproject-build-system)
14565 (arguments
14566 (list
14567 ;; Test requires OpenEXR and pyexiv2 modules, which not are yet available
14568 ;; in Guix.
14569 #:tests? #f
14570 #:imported-modules `(,@%cargo-build-system-modules
14571 ,@%pyproject-build-system-modules)
14572 #:modules '(((guix build cargo-build-system) #:prefix cargo:)
14573 (guix build pyproject-build-system)
14574 (guix build utils))
14575 #:phases
14576 #~(modify-phases %standard-phases
14577 (add-after 'unpack 'prepare-cargo-build-system
14578 (lambda args
14579 (for-each (lambda (phase)
14580 (format #t "Running cargo phase: ~a~%" phase)
14581 (apply (assoc-ref cargo:%standard-phases phase)
14582 #:cargo-target #$(cargo-triplet)
14583 args))
14584 '(unpack-rust-crates
14585 configure
14586 check-for-pregenerated-files
14587 patch-cargo-checksums))))
14588 (add-after 'unpack 'patch-pyproject
14589 (lambda _
14590 ;; maturin failed to parse pyproject.toml.
14591 (substitute* "pyproject.toml"
14592 (("^license-files = .*") "")))))))
14593 (propagated-inputs (list python-brotli
14594 python-packaging
14595 python-pillow))
14596 ;; TODO: Add python-openexr and python-pyexiv2 for tests.
14597 (native-inputs (list maturin
14598 python-numpy
14599 python-pytest
14600 rust
14601 `(,rust "cargo")))
14602 (inputs (cons* libjxl (cargo-inputs 'python-pillow-jxl-plugin)))
14603 (home-page "https://github.com/Isotr0py/pillow-jpegxl-plugin")
14604 (synopsis "Pillow plugin for JPEG-XL using Rust for bindings")
14605 (description "This package provides pillow plugin for JPEG-XL, using Rust
14606for bindings.")
14607 (license license:gpl3+)))
14608
14609(define-public python-jxlpy
14610 (package
14611 (name "python-jxlpy")
14612 (version "0.9.5")
14613 (source
14614 (origin
14615 (method git-fetch)
14616 (uri (git-reference
14617 (url "https://github.com/olokelo/jxlpy")
14618 (commit version)))
14619 (file-name (git-file-name name version))
14620 (sha256
14621 (base32 "1d1jrvpyvp8rix8kfmi962hl73mj0f7mib0xzk04va4kzc9p726s"))))
14622 (build-system pyproject-build-system)
14623 (arguments (list #:tests? #f)) ; no tests, just examples
14624 (inputs (list libjxl))
14625 (propagated-inputs (list python-cython))
14626 (native-inputs (list python-cython python-setuptools))
14627 (home-page "https://github.com/olokelo/jxlpy")
14628 (synopsis "JPEG XL integration in Python")
14629 (description "This package provides Cython-based Python bindings for
14630libjxl, as well as a pillow plugin.")
14631 (license license:expat)))
14632
14633(define-public python-pixelmatch
14634 (package
14635 (name "python-pixelmatch")
14636 (version "0.3.0")
14637 (source
14638 (origin
14639 (method git-fetch)
14640 (uri (git-reference
14641 (url "https://github.com/whtsky/pixelmatch-py")
14642 (commit (string-append "v" version))))
14643 (file-name (git-file-name name version))
14644 (sha256
14645 (base32 "0d4579hh5rwdh9djq5j9lf448x68c1iz80wavxiq7sxpmwm1j23a"))))
14646 (build-system pyproject-build-system)
14647 (arguments
14648 ;; XXX: PIL.UnidentifiedImageError despite images being present.
14649 (list #:tests? #f))
14650 (native-inputs
14651 (list python-poetry-core
14652 python-pillow
14653 python-pytest
14654 python-pytest-benchmark))
14655 (home-page "https://github.com/whtsky/pixelmatch-py")
14656 (synopsis "Pixel-level image comparison library")
14657 (description
14658 "This package provides a pixel-level image comparison library for Python,
14659originally created to compare screenshots in tests. Its features include
14660accurate anti-aliased pixels detection and perceptual color difference
14661metrics.")
14662 (license license:isc)))
14663
14664(define-public python-imagecodecs
14665 (package
14666 (name "python-imagecodecs")
14667 (version "2025.8.2")
14668 (source
14669 (origin
14670 (method url-fetch)
14671 (uri (pypi-uri "imagecodecs" version))
14672 (sha256
14673 (base32 "0v7yglk100fnk0m9m5bnfph2vm1jpnxzrzz2lwk06dqcr6m75wia"))
14674 (modules '((guix build utils)))
14675 (snippet #~(for-each delete-file
14676 ;; Delete pre-generated Cython files.
14677 (find-files "imagecodecs" "_.*\\.c$")))))
14678 (build-system pyproject-build-system)
14679 (arguments
14680 (list
14681 ;; tests: 2023 passed, 7841 skipped, 200 deselected, 1626 xfailed, 4 warnings
14682 #:test-flags
14683 ;; Some of those tests are flaky.
14684 #~(list "-k" "not test_cms_identity_transforms")
14685 #:phases
14686 #~(modify-phases %standard-phases
14687 (add-after 'unpack 'create-configuration
14688 (lambda _
14689 ;; By default everything is enabled. We can selectively disable
14690 ;; extensions (and thus dependencies) by deleting them from the
14691 ;; EXTENSIONS dictionary. This is upstream’s preferred way.
14692 (call-with-output-file "imagecodecs_distributor_setup.py"
14693 (lambda (port)
14694 (format port "\
14695def customize_build(EXTENSIONS, OPTIONS):
14696~{ del EXTENSIONS[~s]~%~}~%"
14697 (list "apng" "lzo" "tiff" ; FIXME Wrong version?
14698 ;; Those rely on unpackaged inputs.
14699 "aec" "avif" "bitshuffle" "brunsli" "deflate"
14700 "jetraw" "jpeg2k" "jpegls" "jpegxl" "jpegxr"
14701 "jpegxs" "lerc" "ljpeg" "lzf" "lzham" "mozjpeg"
14702 "pcodec" "sperr" "sz3" "szip" "ultrahdr" "zfp"
14703 "zlibng" "zopfli"))))))
14704 (add-after 'unpack 'fix-sanity-check
14705 (lambda _
14706 ;; XXX: Don't exit twice. The generated script already does that.
14707 (substitute* "imagecodecs/__main__.py"
14708 (("sys\\.exit\\(main\\(\\)\\)")
14709 ""))))
14710 (add-before 'check 'configure-tests
14711 (lambda _
14712 (setenv "HOME" (getcwd)))))))
14713 (inputs
14714 (list brotli
14715 c-blosc
14716 c-blosc2
14717 giflib
14718 lcms
14719 libheif
14720 libjpeg-turbo
14721 libpng
14722 libtiff
14723 libwebp
14724 lz4
14725 lzfse
14726 snappy
14727 xz
14728 zlib
14729 `(,zstd "lib")))
14730 (propagated-inputs
14731 (list python-numpy python-matplotlib python-tifffile))
14732 (native-inputs
14733 (list python-cython python-pytest python-setuptools))
14734 (home-page "https://www.lfd.uci.edu/~gohlke/")
14735 (synopsis "Image transformation, compression, and decompression codecs")
14736 (description
14737 "Imagecodecs is a Python library that provides block-oriented, in-memory
14738buffer transformation, compression, and decompression functions for use in the
14739tifffile, czifile, and other scientific image input/output modules.")
14740 (license license:bsd-3)))
14741
14742(define-public python-property-manager
14743 (package
14744 (name "python-property-manager")
14745 (version "3.0")
14746 (source
14747 (origin
14748 (method git-fetch)
14749 (uri (git-reference
14750 (url "https://github.com/xolox/python-property-manager")
14751 (commit version)))
14752 (file-name (git-file-name name version))
14753 (sha256
14754 (base32 "1v7hjm7qxpgk92i477fjhpcnjgp072xgr8jrgmbrxfbsv4cvl486"))))
14755 (build-system pyproject-build-system)
14756 (native-inputs (list python-pytest python-setuptools))
14757 (propagated-inputs
14758 (list python-verboselogs
14759 python-humanfriendly
14760 python-coloredlogs))
14761 (home-page "https://github.com/xolox/python-property-manager")
14762 (synopsis "Useful property variants for Python programming")
14763 (description
14764 "The @code{property-manager} package defines several custom property
14765variants for Python programming including required properties,writable
14766properties, cached properties, etc.")
14767 (license license:expat)))
14768
14769(define-public python-executing
14770 (package
14771 (name "python-executing")
14772 (version "2.2.0")
14773 (source
14774 (origin
14775 (method url-fetch)
14776 (uri (pypi-uri "executing" version))
14777 (sha256
14778 (base32 "0mb74ajjfhzscvwxr9qazjs2q7il2fvyicm7s58jbzh8h418q42x"))))
14779 (build-system pyproject-build-system)
14780 (arguments
14781 (list
14782 #:test-flags
14783 ;; Test needs IPython
14784 #~(list "-k" "not test_two_statement_lookups")
14785 #:phases
14786 #~(modify-phases %standard-phases
14787 (add-after 'unpack 'fix-tests
14788 (lambda _
14789 ;; See: <https://github.com/alexmojaki/executing/issues/99>.
14790 (substitute* "pyproject.toml"
14791 (("ignore_missing_imports = true.*")
14792 "ignore_missing_imports = true
14793
14794[tool.pytest.ini_options]
14795python_functions = \"test_\"\n")))))))
14796 (native-inputs
14797 (list python-asttokens
14798 python-littleutils
14799 python-pytest
14800 python-rich
14801 python-setuptools
14802 python-setuptools-scm
14803 python-wheel))
14804 (home-page "https://github.com/alexmojaki/executing")
14805 (synopsis "Get information about what a Python frame is currently doing")
14806 (description "This package lets you get information about what a frame is
14807currently doing, particularly the AST node being executed.")
14808 (license license:expat)))
14809
14810(define-public python-executor
14811 (package
14812 (name "python-executor")
14813 (version "23.2")
14814 (source
14815 (origin
14816 (method git-fetch)
14817 (uri (git-reference
14818 (url "https://github.com/xolox/python-executor")
14819 (commit version)))
14820 (file-name (git-file-name name version))
14821 (sha256
14822 (base32 "1mr0662c5l5zx0wjapcprp8p2xawfd0im3616df5sgv79fqzwfqs"))))
14823 (build-system pyproject-build-system)
14824 (arguments
14825 (list #:tests? #f)) ;TODO: tests require root/sudo
14826 (native-inputs (list python-mock python-pytest python-setuptools))
14827 (propagated-inputs
14828 (list python-six
14829 python-property-manager
14830 python-fasteners
14831 python-virtualenv))
14832 (home-page "https://github.com/xolox/python-executor")
14833 (synopsis "Programmer friendly subprocess wrapper")
14834 (description
14835 "The @code{executor} package is a simple wrapper for Python’s subprocess
14836module that makes it very easy to handle subprocesses on UNIX systems with
14837proper escaping of arguments and error checking currently doing, particularly
14838the AST node being executed.")
14839 (license license:expat)))
14840
14841(define-public python-roifile
14842 (package
14843 (name "python-roifile")
14844 (version "2025.5.10")
14845 (source
14846 (origin
14847 (method url-fetch)
14848 (uri (pypi-uri "roifile" version))
14849 (sha256
14850 (base32 "1kiwylcmxckzrqj3xn5ljcjfyx6y2s8bnqjd5psmkb4mjrwiypcf"))))
14851 (build-system pyproject-build-system)
14852 (arguments (list #:tests? #f)) ; There are none.
14853 (native-inputs (list python-setuptools))
14854 (propagated-inputs (list python-numpy))
14855 (home-page "https://www.lfd.uci.edu/~gohlke/")
14856 (synopsis "Read and write ImageJ ROI format")
14857 (description "Roifile is a Python library to read, write, create, and plot
14858ImageJ ROIs, an undocumented and ImageJ application specific format to store
14859regions of interest, geometric shapes, paths, text, etc for image overlays.")
14860 (license license:bsd-3)))
14861
14862(define-public python-lfdfiles
14863 (package
14864 (name "python-lfdfiles")
14865 (version "2026.4.30")
14866 (source
14867 (origin
14868 (method url-fetch)
14869 (uri (pypi-uri "lfdfiles" version))
14870 (sha256
14871 (base32 "1y4p4n321dp33s7a3almgiirch6kain5liq8g01wrpzw1d4g1rz1"))
14872 (modules '((guix build utils)))
14873 (snippet
14874 ;; Delete pre-generated Cython files.
14875 #~(begin
14876 (for-each delete-file (find-files "lfdfiles" "_.*\\.c$"))
14877 (delete-file "lfdfiles/conftest.py")))))
14878 (build-system pyproject-build-system)
14879 (arguments
14880 ;; XXX: Tests run with pytest, but most fail due to missing test data.
14881 (list #:tests? #f))
14882 (native-inputs (list python-setuptools))
14883 (propagated-inputs (list python-click python-numpy python-tifffile))
14884 (home-page "https://www.lfd.uci.edu/~gohlke/")
14885 (synopsis "Work with LFD data files")
14886 (description
14887 "Lfdfiles is a Python library and console script for reading, writing,
14888converting, and viewing many of the proprietary file formats used to store
14889experimental data and metadata at the Laboratory for Fluorescence Dynamics.")
14890 (license license:bsd-3)))
14891
14892;; ~8Mo of test files.
14893(define python-av-testdata
14894 (file-union
14895 "python-av-testdata"
14896 (cons*
14897 (let ((file "pexels/time-lapse-video-of-night-sky-857195.mp4"))
14898 `(,(string-append "pyav-curated/" file)
14899 ,(origin
14900 (method url-fetch)
14901 (uri (string-append "https://pyav.org/datasets/" file))
14902 (sha256
14903 (base32 "10fjs2gyha88gzv7pv3njv0fimv61ihz39p1556qazm90xbknzgb")))))
14904 (map
14905 (match-lambda
14906 ((file . hash)
14907 (list (string-append "fate-suite/" file)
14908 (origin
14909 (method url-fetch)
14910 (uri (string-append "http://fate.ffmpeg.org/fate-suite/" file))
14911 (sha256 (base32 hash))))))
14912 '(("aac/latm_stereo_to_51.ts" .
14913 "05h8389i944gb7f2y9c7848vqn8xz1mnm602fwala85npj4z8p4m")
14914 ("h264/extradata-reload-multi-stsd.mov" .
14915 "1rwlkl9vxp925vzh13cq5dfr983jxbkng0w6ivaymqqwvi7bvg5m")
14916 ("amv/MTV_high_res_320x240_sample_Penguin_Joke_MTV_from_WMV.amv" .
14917 "1hiifhdmd0ygzny5mplqdxl3dh9g95384ilkr4ccwv5l9y7hrmiv")
14918 ("audio-reference/chorusnoise_2ch_44kHz_s16.wav" .
14919 "06xybcnv7max9mmj6f1fw8rwz2aawhcyx2wgj1gmn1142kk431ra")
14920 ("h264/interlaced_crop.mp4" .
14921 "04bcmwd6scqn63y6p8i5srbjh9jq1sc95q6vy7srwfhzwxl9cma9")
14922 ("hap/HAPQA_NoSnappy_127x1.mov" .
14923 "1kvf8xs5v29sjqk2p07arl2hlp9z7hb1lb4202v4iqiwva1jmiaq")
14924 ("mkv/codec_delay_opus.mkv" .
14925 "0ll3qnmxnkhqxbh6s2a3clbkbhw5bsbfw6mh6kxdsa463iyyka8r")
14926 ("mov/displaymatrix.mov" .
14927 "1d4jp93hdyfhasxhqmx8lliwsa2w1kv2jj1qh6fqs74aqb6kzb82")
14928 ("mov/mov-1elist-ends-last-bframe.mov" .
14929 "04lyjsm8zncw9aac7vmkc2h45dcyb6y8643s3pg3rgzgcgqkq3nn")
14930 ("mov/white_zombie_scrunch-part.mov" .
14931 "07wg7mxa799z8dcvnbbrr9f0b5l6r42bd7d414isk3kc3jw0z6ka")
14932 ("mpeg2/mpeg2_field_encoding.ts" .
14933 "1f3waj8jhp6v655hnqpxi2bx3b36976vdjmr74hjr7jv2hx3724n")
14934 ("vorbis/vorbis_chapter_extension_demo.ogg" .
14935 "1prhhwi44psk9xji2mvk7rnvk899h5rx9wi3dmzkgwaz11r0cjdk")
14936 ("mxf/track_01_v02.mxf" .
14937 "04gpbma4kxvhn4dr1sh2k4pq2kbpmnmk2s2bdhq081jzap2983q1")
14938 ("png1/55c99e750a5fd6_50314226.png" .
14939 "05rha9vdix0wfibrhpaknh9fzj0cv84q6d2ypxq1wc0y328fc068")
14940 ("qtrle/aletrek-rle.mov" .
14941 "1n6ksjrqrb7gnbvzhj58y5z5jx6bmpgg7lxwzvnbfg9f9ib2yxdr")
14942 ("sub/MovText_capability_tester.mp4" .
14943 "07znmm4bhnp5f40yksnpf7ws94yflsbv169ydkga6rdby6ys2sv3")
14944 ("sub/vobsub.sub" .
14945 "12rwhnv1k7mngvyq026f2xd9dpd9mxmwg82sa9p5r8z54hrw8sjz"))))))
14946
14947(define-public python-av
14948 (package
14949 (name "python-av")
14950 (version "16.0.1")
14951 (source
14952 (origin
14953 (method url-fetch)
14954 (uri (pypi-uri "av" version))
14955 (sha256
14956 (base32 "1gqxzwbgwj164x211lsjgqj8xx9rpjxhzq6rls4mhpqbz9wyfb6x"))))
14957 (build-system pyproject-build-system)
14958 (arguments
14959 (list
14960 ;; Upstream is not great in responding to open issues or change requests.
14961 ;; See:
14962 ;; - <https://github.com/PyAV-Org/PyAV/issues/1942>
14963 ;; - <https://github.com/PyAV-Org/PyAV/issues/1946>
14964 ;; - <https://github.com/PyAV-Org/PyAV/pull/1944>
14965 #:test-flags
14966 ;; Writing to custom IO requires network access.
14967 #~(list "-k" "not test_writing_to_custom_io_dash")
14968 #:phases
14969 #~(modify-phases %standard-phases
14970 (add-before 'check 'pre-check
14971 (lambda _
14972 ;; This would otherwise interfere with finding the installed
14973 ;; av when running tests.
14974 (delete-file-recursively "av")
14975 (setenv "PYAV_TESTDATA_DIR" #+python-av-testdata)
14976 (substitute* "tests/common.py"
14977 (("^os\\.environ\\[\"PYAV_TESTDATA_DIR\"\\] = asset\\(\\)")
14978 "os.environ.setdefault(\"PYAV_TESTDATA_DIR\", asset())")))))))
14979 (native-inputs
14980 (list pkg-config
14981 python-cython
14982 python-numpy
14983 python-pillow
14984 python-pytest
14985 python-setuptools))
14986 (inputs (list ffmpeg))
14987 (home-page "https://github.com/PyAV-Org/PyAV")
14988 (synopsis "Pythonic bindings for FFmpeg's libraries")
14989 (description
14990 "PyAV is a Python library that allows for direct and precise manipulation
14991of media through containers, streams, packets, codecs, and frames. It provides
14992access to the powerful FFmpeg libraries while managing the complex details as
14993much as possible.
14994PyAV also facilitates data transformation and integration with
14995other packages such as Numpy and Pillow. However, working with media is a
14996challenging task and PyAV cannot abstract it away or make all the best decisions
14997for you. If you can accomplish your tasks with the ffmpeg command, PyAV may not
14998be necessary. Nonetheless, PyAV is an essential tool when working with media
14999that requires its specific capabilities.")
15000 (license license:bsd-3)))
15001
15002(define-public python-ffmpeg-python
15003 ;; The latest release (0.2.0) is old and its test suite crashes on Python 3.10.
15004 (package
15005 (name "python-ffmpeg-python")
15006 (properties '((commit . "df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6")
15007 (revision . "0")))
15008 (version (git-version "0.2.0"
15009 (assoc-ref properties 'revision)
15010 (assoc-ref properties 'commit)))
15011 (source
15012 (origin
15013 (method git-fetch)
15014 (uri (git-reference
15015 (url "https://github.com/kkroening/ffmpeg-python.git")
15016 (commit (assoc-ref properties 'commit))))
15017 (file-name (git-file-name name version))
15018 (sha256
15019 (base32 "1zj4ac37n4igfj21zy405mdlvbpv6jyb12wfpszf8zkhhj2qby4c"))))
15020 (build-system pyproject-build-system)
15021 (arguments
15022 (list
15023 #:test-flags
15024 #~(list "-k" "not test_pipe and not test__probe")
15025 #:phases
15026 #~(modify-phases %standard-phases
15027 (add-after 'unpack 'hardcode-ffmpeg
15028 (lambda* (#:key inputs #:allow-other-keys)
15029 (let ((ffmpeg (search-input-file inputs "bin/ffmpeg")))
15030 (substitute* "ffmpeg/_run.py"
15031 (("cmd='ffmpeg'")
15032 (string-append "cmd='" ffmpeg "'")))
15033 (substitute* "ffmpeg/tests/test_ffmpeg.py"
15034 (("out_file.compile\\(\\) == \\['ffmpeg'")
15035 (format #f "out_file.compile() == [~s" ffmpeg)))))))))
15036 (inputs (list ffmpeg))
15037 (propagated-inputs (list python-future))
15038 (native-inputs (list python-future
15039 python-numpy
15040 python-pytest
15041 python-pytest-mock
15042 python-setuptools))
15043 (home-page "https://github.com/kkroening/ffmpeg-python")
15044 (synopsis "Python bindings for FFmpeg with complex filtering support")
15045 (description
15046 "ffmpeg-python allows you to write FFmpeg filtergraphs in familiar
15047Python terms, taking care of running ffmpeg with the correct command-line
15048arguments. It handles arbitrarily large (directed-acyclic) signal graphs.")
15049 (license license:asl2.0)))
15050
15051(define-public python-imageio-ffmpeg
15052 (package
15053 (name "python-imageio-ffmpeg")
15054 (version "0.6.0")
15055 (source
15056 (origin
15057 (method url-fetch)
15058 (uri (pypi-uri "imageio_ffmpeg" version))
15059 (sha256
15060 (base32 "0m8ppa4ap5vnic3jb25hsrq2gn0283x7mfr5z6ln8m80ivnnnmg2"))))
15061 (build-system pyproject-build-system)
15062 (arguments
15063 (list
15064 #:tests? #f ;XXX: tests require network access to get FFmpeg data
15065 #:phases
15066 #~(modify-phases %standard-phases
15067 (add-after 'unpack 'hardcode-ffmpeg
15068 (lambda* (#:key inputs #:allow-other-keys)
15069 (substitute* "imageio_ffmpeg/_utils.py"
15070 (("os\\.getenv\\(\"IMAGEIO_FFMPEG_EXE\".*\\)" all)
15071 (string-append "(" all " or \""
15072 (search-input-file inputs "bin/ffmpeg")
15073 "\")"))))))))
15074 (native-inputs
15075 (list python-setuptools
15076 python-wheel))
15077 (inputs
15078 (list ffmpeg))
15079 (home-page "https://github.com/imageio/imageio-ffmpeg")
15080 (synopsis "FFMPEG wrapper for Python")
15081 (description
15082 "This package provides an FFMPEG wrapper for working with video files.
15083It implements generator functions for reading and writing data to and from
15084FFMPEG, reliably terminating the process when done.")
15085 (license license:bsd-2)))
15086
15087(define-public python-imageio
15088 (package
15089 (name "python-imageio")
15090 (version "2.36.1")
15091 (source
15092 (origin
15093 (method url-fetch)
15094 (uri (pypi-uri "imageio" version))
15095 (sha256
15096 (base32
15097 "0qmy8qbnycas6v2a43qw9pxmd23fm3hpq3qb20b9x6kzyhqx5qg4"))))
15098 (build-system pyproject-build-system)
15099 (arguments
15100 (list
15101 #:test-flags #~(list "-m" "not needs_internet"
15102 ;; This attempts to load libGL.so (provided by mesa)
15103 ;; at the Python store path (sys.base_prefix?).
15104 "-k" "not test_findlib2"
15105 "--ignore" "tests/test_freeimage.py")
15106 #:phases
15107 #~(modify-phases %standard-phases
15108 (add-after 'unpack 'fix-source
15109 (lambda* (#:key inputs #:allow-other-keys)
15110 (substitute* "imageio/core/util.py"
15111 (("\"/var/tmp\"")
15112 "os.getenv(\"TMPDIR\", \"/tmp\")")))))))
15113 (propagated-inputs
15114 (list python-imageio-ffmpeg python-numpy python-pillow python-tifffile))
15115 (native-inputs
15116 (list python-fsspec
15117 python-pytest
15118 python-setuptools))
15119 (home-page "https://imageio.github.io/")
15120 (synopsis "Library for reading and writing a wide range of image data")
15121 (description
15122 "Imageio is a Python library that provides an easy interface to read and
15123write a wide range of image data, including animated images, video, volumetric
15124data, and scientific formats.")
15125 (license license:bsd-2)))
15126
15127(define-public python-pyudorandom
15128 ;; Releases are not tagged in Git:
15129 ;; https://github.com/mewwts/pyudorandom/issues/3
15130 (let ((commit "473b3f9c562469dd3c3ddbdfa3e9351e7709812c")
15131 (revision "0"))
15132 (package
15133 (name "python-pyudorandom")
15134 (version (git-version "1.0.0" revision commit))
15135 (source
15136 (origin
15137 (method git-fetch)
15138 (uri (git-reference
15139 (url "https://github.com/mewwts/pyudorandom")
15140 (commit commit)))
15141 (file-name (git-file-name name version))
15142 (sha256
15143 (base32 "0k54lxlmh56n8l60hhigi57y8dycnmfw700vq6diqn8b30xna47c"))))
15144 (build-system pyproject-build-system)
15145 (arguments (list #:test-backend #~'unittest))
15146 (native-inputs (list python-setuptools))
15147 (home-page "https://github.com/mewwts/pyudorandom")
15148 (synopsis "Generate pseudorandom numbers by using algebra")
15149 (description
15150 "The @code{pyudorandom} module lets you iterate over a list
15151in a non-succsessive, yet deterministic way based on integer modulo.
15152It comes in handy when you want to mix up the items, but don't need
15153any guarantees of randomness. It might be slow on small data,
15154but shall be significantly faster than @code{random.shuffle}
15155for longer lists.")
15156 (license license:expat))))
15157
15158(define-public python-pyvips
15159 (package
15160 (name "python-pyvips")
15161 (version "3.1.1")
15162 (source
15163 (origin
15164 (method git-fetch) ; PyPI does not include test helpers
15165 (uri (git-reference
15166 (url "https://github.com/libvips/pyvips")
15167 (commit (string-append "v" version))))
15168 (file-name (git-file-name name version))
15169 (sha256
15170 (base32 "1ibc1m2qbr9dzw3ck69fcbgrn1kvq3j6mkw1ac52ngd4v2fhbx04"))))
15171 (build-system pyproject-build-system)
15172 (native-inputs
15173 (list pkg-config
15174 python-pytest
15175 python-setuptools
15176 python-wheel))
15177 (inputs
15178 (list glib vips))
15179 (propagated-inputs
15180 (list python-cffi python-pkgconfig))
15181 (home-page "https://github.com/libvips/pyvips")
15182 (synopsis "Python bindings for VIPS")
15183 (description "The @code{pyvips} package provides Python bindings for VIPS,
15184a multithreaded image-processing system with low memory needs.")
15185 (license license:expat)))
15186
15187;; WARNING: This package is a dependency of mesa.
15188;; There are no users in python-xyz for this package, consider to adopt closer
15189;; to Mesa.
15190(define-public python-pycparser
15191 (package
15192 (name "python-pycparser")
15193 (version "2.22")
15194 (source
15195 (origin
15196 (method url-fetch)
15197 (uri (pypi-uri "pycparser" version))
15198 (sha256
15199 (base32
15200 "1xhhxjg460f70ldki4prxmb7zl1bfl3mnjplbc7kkxa0q3lqn729"))))
15201 (outputs '("out" "doc"))
15202 (build-system pyproject-build-system)
15203 (arguments
15204 (list
15205 #:test-backend #~'unittest
15206 #:phases
15207 #~(modify-phases %standard-phases
15208 (add-after 'install 'install-doc
15209 (lambda _
15210 (let* ((data (string-append #$output:doc "/share"))
15211 (doc (string-append data "/doc/" #$name "-" #$version))
15212 (examples (string-append doc "/examples")))
15213 (mkdir-p examples)
15214 (for-each (lambda (file)
15215 (copy-file (string-append "." file)
15216 (string-append doc file)))
15217 '("/README.rst" "/CHANGES" "/LICENSE"))
15218 (copy-recursively "examples" examples)))))))
15219 (native-inputs
15220 (list python-setuptools))
15221 (home-page "https://github.com/eliben/pycparser")
15222 (synopsis "C parser in Python")
15223 (description
15224 "Pycparser is a complete parser of the C language, written in pure Python
15225using the PLY parsing library. It parses C code into an AST and can serve as
15226a front-end for C compilers or analysis tools.")
15227 (license license:bsd-3)))
15228
15229(define-public python-pywavelets
15230 (package
15231 (name "python-pywavelets")
15232 (version "1.8.0")
15233 (home-page "https://github.com/PyWavelets/pywt")
15234 (source (origin
15235 (method url-fetch)
15236 (uri (pypi-uri "pywavelets" version))
15237 (sha256
15238 (base32
15239 "1aimbjxvflmx4qrl17bfzy64pz5ql4s9bhnb8g0ssh28fm2h507k"))))
15240 (build-system pyproject-build-system)
15241 (arguments
15242 (list
15243 #:test-flags '(list "--pyargs" "pywt")
15244 #:phases
15245 #~(modify-phases %standard-phases
15246 ;; The compiled libraries are only in the output at this point,
15247 ;; but they are needed to run tests.
15248 ;; FIXME: This should be handled by the pyargs pytest argument,
15249 ;; but is not for some reason.
15250 (add-before 'check 'pre-check
15251 (lambda _ (chdir #$output))))))
15252 (native-inputs
15253 (list meson
15254 ninja
15255 pkg-config
15256 python-cython
15257 python-meson
15258 python-numpy
15259 python-pytest))
15260 (propagated-inputs
15261 (list python-numpy python-scipy))
15262 (synopsis "Wavelet transforms in Python")
15263 (description
15264 "PyWavelets is a library for wavelet transforms in Python. Wavelets are
15265mathematical basis functions that are localized in both time and frequency.
15266Wavelet transforms are time-frequency transforms employing wavelets. They are
15267similar to Fourier transforms, the difference being that Fourier transforms are
15268localized only in frequency instead of in time and frequency.")
15269 (license license:expat)))
15270
15271(define-public python-pywal
15272 (package
15273 (name "python-pywal")
15274 (version "3.3.0")
15275 (source
15276 (origin
15277 (method git-fetch)
15278 (uri (git-reference
15279 (url "https://github.com/dylanaraps/pywal")
15280 (commit version)))
15281 (file-name (git-file-name name version))
15282 (sha256
15283 (base32 "039m7dch479hlwddynacdrr0klz6a5bdly5swqbs94hfimficiyf"))))
15284 (build-system pyproject-build-system)
15285 (arguments
15286 `(#:phases
15287 (modify-phases %standard-phases
15288 (add-before 'check 'fix-home-directory
15289 (lambda _
15290 ;; Tests fail with "Permission denied: '/homeless-shelter'".
15291 (setenv "HOME" "/tmp"))))))
15292 (native-inputs
15293 (list python-pytest
15294 python-setuptools))
15295 (inputs
15296 (list imagemagick))
15297 (home-page "https://github.com/dylanaraps/pywal")
15298 (synopsis "Color palette generator and applicator")
15299 (description
15300 "Pywal is a tool that generates a color palette from the dominant colors
15301in an image. It then applies the colors system-wide and on-the-fly in all of
15302your favourite programs.")
15303 (license license:expat)))
15304
15305(define-public python-pywal16
15306 (package
15307 (name "python-pywal16")
15308 (version "3.8.10")
15309 (source
15310 (origin
15311 (method url-fetch)
15312 (uri (pypi-uri "pywal16" version))
15313 (sha256
15314 (base32 "0836ya6zw0dglh0yldd9apsfvh5f9cxvmy8nc7aw2w8s491yancf"))))
15315 (build-system pyproject-build-system)
15316 (arguments
15317 (list
15318 #:phases
15319 '(modify-phases %standard-phases
15320 (add-before 'check 'set-HOME
15321 (lambda _ (setenv "HOME" "/tmp"))))))
15322 (native-inputs
15323 (list imagemagick
15324 python-pytest
15325 python-setuptools))
15326 (home-page "https://github.com/eylles/pywal16")
15327 (synopsis "16 colors fork of pywal")
15328 (description
15329 "Pywal16 is a tool that generates a color palette from the dominant
15330colors in an image. It then applies the colors system-wide and on-the-fly in
15331all of your favorite programs.")
15332 (license license:expat)))
15333
15334(define-public python-click-didyoumean
15335 (package
15336 (name "python-click-didyoumean")
15337 (version "0.3.1")
15338 (source
15339 (origin
15340 (method git-fetch) ;no tests in PyPI archive
15341 (uri (git-reference
15342 (url "https://github.com/click-contrib/click-didyoumean")
15343 (commit (string-append "v" version))))
15344 (file-name (git-file-name name version))
15345 (sha256
15346 (base32 "1byfqs3m87zfpvssm1al9dvq94gjd0iddpwrzk6205n18wjsphqb"))))
15347 (build-system pyproject-build-system)
15348 (native-inputs
15349 (list python-poetry-core python-pytest))
15350 (propagated-inputs
15351 (list python-click))
15352 (home-page "https://github.com/timofurrer/click-didyoumean")
15353 (synopsis "Git-like did-you-mean feature in Click")
15354 (description
15355 "This plugin enables git-like did-you-mean feature in Click.")
15356 (license license:expat)))
15357
15358(define-public python-pywinrm
15359 (package
15360 (name "python-pywinrm")
15361 (version "0.5.0")
15362 (source
15363 (origin
15364 (method git-fetch)
15365 (uri (git-reference
15366 (url "https://github.com/diyan/pywinrm/")
15367 (commit (string-append "v" version))))
15368 (file-name (git-file-name name version))
15369 (sha256
15370 (base32 "0jp7rps6zg5b6n98lfkwbhv72982sxxnqc4v4i6hjlq1ycjmmb8r"))))
15371 (build-system pyproject-build-system)
15372 (propagated-inputs
15373 (list python-requests python-requests-ntlm python-xmltodict))
15374 (native-inputs
15375 (list python-mock python-pytest python-setuptools))
15376 (home-page "https://github.com/diyan/pywinrm/")
15377 (synopsis "Python library for Windows Remote Management (WinRM)")
15378 (description
15379 "pywinrm is a Python client for the Windows Remote Management (WinRM)
15380service. It allows you to invoke commands on target Windows machines from
15381any machine that can run Python.")
15382 (license license:expat)))
15383
15384(define-public python-manimpango
15385 (package
15386 (name "python-manimpango")
15387 (version "0.5.0")
15388 (source
15389 (origin
15390 (method git-fetch) ; no tests data in PyPi package
15391 (uri (git-reference
15392 (url "https://github.com/ManimCommunity/ManimPango")
15393 (commit (string-append "v" version))))
15394 (file-name (git-file-name name version))
15395 (sha256
15396 (base32 "00mrvswk8yly0m13jq0f432pr19sy3j6w37lrv78ah1j6jz9n50h"))))
15397 (build-system pyproject-build-system)
15398 (arguments
15399 (list
15400 #:phases
15401 #~(modify-phases %standard-phases
15402 (add-before 'check 'build-extensions
15403 (lambda _
15404 (invoke "python" "setup.py" "build_ext" "--inplace"))))))
15405 (native-inputs
15406 (list pkg-config
15407 python-cython
15408 python-pytest
15409 python-setuptools
15410 python-wheel))
15411 (inputs
15412 (list pango))
15413 (home-page "https://manimpango.manim.community/")
15414 (synopsis "Bindings for Pango for using with Manim")
15415 (description
15416 "Python bindings for ManimPango which is a C binding for Pango,
15417using Cython.
15418
15419ManimPango is internally used in Manim to render (non-LaTeX) text.")
15420 (license license:expat)))
15421
15422(define-public python-cairocffi
15423 (package
15424 (name "python-cairocffi")
15425 (version "1.7.1")
15426 (source
15427 (origin
15428 ;; The PyPI archive does not include the documentation, so use Git.
15429 (method git-fetch)
15430 (uri (git-reference
15431 (url "https://github.com/Kozea/cairocffi")
15432 (commit (string-append "v" version))))
15433 (file-name (git-file-name name version))
15434 (sha256
15435 (base32
15436 "08ilpzf1027f5w461yx2cg0ky64pd41kclfklyn8n292dmc9sk4g"))))
15437 (build-system pyproject-build-system)
15438 (outputs '("out" "doc"))
15439 (inputs
15440 (list glib gtk+ gdk-pixbuf cairo))
15441 (native-inputs
15442 (list python-flit-core
15443 python-numpy
15444 python-pikepdf
15445 python-pytest
15446 python-sphinx
15447 python-sphinx-rtd-theme))
15448 (propagated-inputs
15449 (list python-xcffib)) ; used at run time
15450 (arguments
15451 (list
15452 #:phases
15453 #~(modify-phases %standard-phases
15454 (add-after 'unpack 'patch-paths
15455 (lambda* (#:key inputs #:allow-other-keys)
15456 (substitute* "cairocffi/__init__.py"
15457 ;; Hack the dynamic library loading mechanism.
15458 (("find_library\\(library_name\\)")
15459 "\"found\"")
15460 (("filenames = \\(library_filename,\\) \\+ filenames")
15461 "pass")
15462 (("libcairo.so.2")
15463 (search-input-file inputs "/lib/libcairo.so.2")))
15464 (substitute* "cairocffi/pixbuf.py"
15465 (("libgdk_pixbuf-2.0.so.0")
15466 (search-input-file inputs "/lib/libgdk_pixbuf-2.0.so.0"))
15467 (("libgobject-2.0.so.0")
15468 (search-input-file inputs "/lib/libgobject-2.0.so.0"))
15469 (("libglib-2.0.so.0")
15470 (search-input-file inputs "/lib/libglib-2.0.so.0"))
15471 (("libgdk-3.so.0")
15472 (search-input-file inputs "/lib/libgdk-3.so.0")))))
15473 (add-after 'install 'install-doc
15474 (lambda* (#:key inputs #:allow-other-keys)
15475 (let* ((data (string-append #$output:doc "/share"))
15476 (doc (string-append data "/doc/" #$name "-" #$version))
15477 (html (string-append doc "/html")))
15478 (setenv "LD_LIBRARY_PATH"
15479 (string-append (assoc-ref inputs "cairo") "/lib" ":"
15480 (assoc-ref inputs "gdk-pixbuf") "/lib"))
15481 (setenv "LANG" "en_US.UTF-8")
15482 (mkdir-p html)
15483 (for-each (lambda (file)
15484 (copy-file (string-append "." file)
15485 (string-append doc file)))
15486 '("/README.rst" "/NEWS.rst"))
15487 (system* "python" "setup.py" "build_sphinx")
15488 (copy-recursively "docs/_build/html" html)))))))
15489 (home-page "https://github.com/Kozea/cairocffi")
15490 (synopsis "Python bindings and object-oriented API for Cairo")
15491 (description
15492 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
15493Python bindings and object-oriented API for cairo. Cairo is a 2D vector
15494graphics library with support for multiple backends including image buffers,
15495PNG, PostScript, PDF, and SVG file output.")
15496 (license license:bsd-3)))
15497
15498(define-public python-decorator
15499 (package
15500 (name "python-decorator")
15501 (version "5.2.1")
15502 (source
15503 (origin
15504 (method url-fetch)
15505 (uri (pypi-uri "decorator" version))
15506 (sha256
15507 (base32 "0q03vavcj2hxnv6006wiqnw7bbqq8rpw90yclyq39xsj6wa6dwk5"))))
15508 (build-system pyproject-build-system)
15509 (arguments
15510 (list #:test-backend #~'custom
15511 #:test-flags #~(list "tests/test.py")))
15512 (native-inputs
15513 (list python-setuptools))
15514 (home-page "https://pypi.org/project/decorator/")
15515 (synopsis "Python module to simplify usage of decorators")
15516 (description
15517 "The aim of the decorator module is to simplify the usage of decorators
15518for the average programmer, and to popularize decorators usage giving examples
15519of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
15520etc. The core of this module is a decorator factory.")
15521 (license license:expat)))
15522
15523(define-public python-drmaa
15524 (package
15525 (name "python-drmaa")
15526 (version "0.7.7")
15527 (source
15528 (origin
15529 (method url-fetch)
15530 (uri (pypi-uri "drmaa" version))
15531 (sha256
15532 (base32 "0xzqriqyvk5b8hszbavsyxd29wm3sxirm8zvvdm73rs2iq7w4hkx"))))
15533 (build-system pyproject-build-system)
15534 ;; The test suite requires libdrmaa which is provided by the cluster
15535 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
15536 ;; should be set to the path of the libdrmaa library.
15537 (arguments
15538 (list
15539 #:tests? #f
15540 #:phases
15541 #~(modify-phases %standard-phases
15542 ;; Loading the library fails because DRMAA_LIBRARY_PATH
15543 ;; is not configured.
15544 (delete 'sanity-check))))
15545 (native-inputs (list python-setuptools))
15546 (home-page "https://pypi.org/project/drmaa/")
15547 (synopsis "Python bindings for the DRMAA library")
15548 (description
15549 "A Python package for Distributed Resource Management (DRM) job
15550submission and control. This package is an implementation of the DRMAA 1.0
15551Python language binding specification.")
15552 (license license:bsd-3)))
15553
15554(define-public python-grako
15555 (package
15556 (name "python-grako")
15557 (version "3.99.9")
15558 (source
15559 (origin
15560 (method url-fetch)
15561 (uri (pypi-uri "grako" version ".zip"))
15562 (sha256
15563 (base32 "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw"))
15564 (snippet
15565 #~(begin (use-modules (guix build utils))
15566 (substitute* "grako/grammars.py"
15567 (("from collections import defaultdict, Mapping")
15568 (string-append "from collections import defaultdict\n"
15569 "from collections.abc import Mapping")))
15570 (substitute* '("grako/util.py"
15571 "grako/walkers.py")
15572 (("collections\\.Mapping") "collections.abc.Mapping"))))))
15573 (build-system pyproject-build-system)
15574 ;; XXX: Test file 'grako.ebnf' is missing from archive.
15575 (arguments (list #:tests? #f))
15576 (native-inputs (list unzip python-pytest python-setuptools))
15577 (home-page "https://pypi.org/project/grako")
15578 (synopsis "EBNF parser generator")
15579 (description
15580 "Grako takes a grammar in a variation of EBNF as input, and outputs a
15581memoizing PEG/Packrat parser in Python.")
15582 (license license:bsd-3)))
15583
15584(define-public python-grandalf
15585 (package
15586 (name "python-grandalf")
15587 ;; `guix refresh` will try to upgrade to v0.55555, but that is older.
15588 (version "0.8")
15589 (source
15590 (origin
15591 (method git-fetch)
15592 (uri (git-reference
15593 (url "https://github.com/bdcht/grandalf")
15594 (commit (string-append "v" version))))
15595 (file-name (git-file-name name version))
15596 (sha256
15597 (base32 "199f86hz3g4p237ma4j27rzwmska3bxzsbgq20i4l4pczf9v7ax0"))
15598 (patches
15599 (list
15600 (origin
15601 (method url-fetch)
15602 (uri
15603 (string-append "https://github.com/bdcht/grandalf/commit/"
15604 "e61df12f00124b615a220cfcd58dd6f89d226264.patch"))
15605 (sha256
15606 (base32 "1p0315flsg4frpadcnn7fh41y5k3cdz4h722v6ri88a3s6hcpd36")))))))
15607 (build-system pyproject-build-system)
15608 (arguments
15609 (list
15610 #:phases
15611 #~(modify-phases %standard-phases
15612 (add-before 'build 'patch-requirements
15613 (lambda _
15614 (substitute* "setup.py"
15615 (("install_requires=\\['pyparsing'],") "")))))))
15616 (native-inputs
15617 (list python-setuptools python-pytest))
15618 (propagated-inputs
15619 (list python-numpy python-ply))
15620 (home-page "https://github.com/bdcht/grandalf")
15621 (synopsis "Graph and drawing algorithms framework")
15622 (description
15623 "Grandalf is a Python package made for experimentations with graphs
15624drawing algorithms. It is written in pure Python, and currently implements
15625two layouts: the Sugiyama hierarchical layout and the force-driven or energy
15626minimization approach. While not as fast or featured as graphviz or other
15627libraries like OGDF (C++), it provides a way to walk and draw graphs no larger
15628than thousands of nodes, while keeping the source code simple enough to tweak
15629and hack any part of it for experimental purpose. With a total of about 1500
15630lines of Python, the code involved in drawing the Sugiyama (dot) layout fits
15631in less than 600 lines. The energy minimization approach is comprised of only
15632250 lines!
15633
15634Grandalf does only 2 not-so-simple things:
15635@itemize
15636@item computing the nodes (x,y) coordinates (based on provided nodes
15637dimensions, and a chosen layout)
15638@item routing the edges with lines or nurbs
15639@end itemize
15640
15641It doesn’t depend on any GTK/Qt/whatever graphics toolkit. This means that it
15642will help you find where to draw things like nodes and edges, but it’s up to
15643you to actually draw things with your favorite toolkit.")
15644 ;; The user can choose either license.
15645 (license (list license:gpl2 license:epl1.0))))
15646
15647(define-public python-gridmap
15648 ;; XXX: Project is unmaintained since 2020-08-24, see:
15649 ;; <https://github.com/pygridtools/gridmap/issues/99>.
15650 (package
15651 (name "python-gridmap")
15652 (version "0.15.0")
15653 (source
15654 (origin
15655 (method git-fetch)
15656 (uri (git-reference
15657 (url "https://github.com/pygridtools/gridmap")
15658 (commit (string-append "v" version))))
15659 (file-name (git-file-name name version))
15660 (sha256
15661 (base32 "0w1sxvhv5ldbzkx70q7036yvny0zsylc4zj7nzmp3nhjdl8whlrm"))))
15662 (build-system pyproject-build-system)
15663 (arguments
15664 (list #:tests? #f ;XXX: freezes or timeout
15665 #:test-backend #~'nose))
15666 (native-inputs
15667 (list ;; python-pynose
15668 python-setuptools))
15669 (propagated-inputs
15670 (list python-cherrypy
15671 python-cloudpickle
15672 python-psutil
15673 python-drmaa
15674 python-pyzmq))
15675 (home-page "https://github.com/pygridtools/gridmap")
15676 (synopsis "Create jobs on a cluster directly from Python")
15677 (description
15678 "Gridmap is a Python package to allow you to easily create jobs on the
15679cluster directly from Python. You can directly map Python functions onto the
15680cluster without needing to write any wrapper code yourself.")
15681 (license license:gpl3+)))
15682
15683(define-public python-honcho
15684 (package
15685 (name "python-honcho")
15686 (version "2.0.0")
15687 (source
15688 (origin
15689 (method git-fetch)
15690 (uri (git-reference
15691 (url "https://github.com/nickstenning/honcho")
15692 (commit (string-append "v" version))))
15693 (file-name (git-file-name name version))
15694 (sha256
15695 (base32 "0hdp4cr6imxrlyg9x9xj5r6qdmgi63ffvmqjrr1kjs3qapan6s4l"))))
15696 (build-system pyproject-build-system)
15697 (arguments
15698 ;; Tests below fail with the error
15699 ;; ValueError: The 'honcho.export.xxx' package was not installed
15700 ;; in a way that PackageLoader understands.
15701 ;; Probably safe because it's testing for different init systems.
15702 (list #:test-flags #~(list "--ignore" "tests/integration/test_export.py"
15703 "--ignore" "tests/test_export_runit.py"
15704 "--ignore" "tests/test_export_supervisord.py"
15705 "--ignore" "tests/test_export_systemd.py"
15706 "--ignore" "tests/test_export_upstart.py")))
15707 (native-inputs
15708 (list python-jinja2 python-mock python-pytest python-setuptools python-wheel))
15709 (propagated-inputs
15710 (list python-colorama))
15711 (home-page "https://github.com/nickstenning/honcho")
15712 (synopsis "Manage Procfile-based applications")
15713 (description
15714 "A Procfile is a file which describes how to run an application
15715consisting of several processes. honcho starts all listed processes.
15716The output of all running processes is collected by honcho and
15717displayed.")
15718 (license license:expat)))
15719
15720(define-public python-hsluv
15721 (package
15722 (name "python-hsluv")
15723 (version "5.0.4")
15724 (source
15725 (origin
15726 (method url-fetch)
15727 (uri (pypi-uri "hsluv" version))
15728 (sha256
15729 (base32 "0bmpd7qxcvin8szblilxmw50v7mygf6a6i180h82123s893gk092"))))
15730 (build-system pyproject-build-system)
15731 (native-inputs
15732 (list python-pytest python-setuptools))
15733 (home-page "https://www.hsluv.org")
15734 (synopsis "Human-friendly HSL colour space implemented in Python")
15735 (description
15736 "Human-friendly @acronym{Hue Saturation Lightness,HSL}. HSLuv extends
15737@url{http://en.wikipedia.org/wiki/CIELUV,CIELUV} with a new saturation
15738component that allows you to span all the available chroma as a neat
15739percentage.")
15740 (license license:expat)))
15741
15742(define-public python-pebble
15743 (package
15744 (name "python-pebble")
15745 (version "5.1.3")
15746 (source
15747 (origin
15748 (method git-fetch)
15749 (uri (git-reference
15750 (url "https://github.com/noxdafox/pebble")
15751 (commit version)))
15752 (file-name (git-file-name name version))
15753 (sha256
15754 (base32 "1x3rvgm5b0g33xlh8w68r50zwqrdwjafwri8y2lzxny8y4i01ffp"))))
15755 (build-system pyproject-build-system)
15756 (native-inputs (list python-pytest python-setuptools))
15757 (home-page "https://github.com/noxdafox/pebble")
15758 (synopsis "Threading and multiprocessing for Python")
15759 (description
15760 "Pebble aims to help manage threads and processes in an easier way. It
15761wraps Python's standard library threading and multiprocessing objects.")
15762 (license license:lgpl3+)))
15763
15764(define-public python-pexpect
15765 (package
15766 (name "python-pexpect")
15767 (version "4.9.0")
15768 (source
15769 (origin
15770 (method url-fetch)
15771 (uri (pypi-uri "pexpect" version))
15772 (sha256
15773 (base32 "03ykxacc64ijldbpa31v5lxw93an0z0xmhm21q2i369w7w942zgf"))))
15774 (build-system pyproject-build-system)
15775 (arguments
15776 (list
15777 #:test-flags
15778 ;; The socket tests can hang (most often, but not only, when run in
15779 ;; parallel, see: <https://github.com/pexpect/pexpect/issues/809>)
15780 #~(list "--ignore=tests/test_socket.py"
15781 "--ignore=tests/test_socket_fd.py"
15782 "-k" (string-join
15783 (list
15784 ;; Disable failing test, see
15785 ;; <https://github.com/pexpect/pexpect/issues/568>.
15786 "not test_bash"
15787 ;; Fails with attempt to find OpenSSL.
15788 "test_large_stdout_stream"
15789 ;; Tests fail while trying to find
15790 ;; tmp-pexpect-xxxxxxxxxxxx directories.
15791 "test_run_uses_env"
15792 "test_run_uses_env_path"
15793 "test_run_uses_env_path_over_path"
15794 "test_spawn_uses_env"
15795 ;; Fails with assertion error: assert 0 == 500
15796 "test_before_across_chunks"
15797 ;; Bash is enough for tests.
15798 "test_zsh")
15799 " and not "))
15800 #:phases
15801 #~(modify-phases %standard-phases
15802 (add-before 'check 'prepare-tests
15803 (lambda _
15804 (substitute* (find-files "tests")
15805 (("/bin/bash") (which "bash"))
15806 (("/bin/echo") (which "echo"))
15807 (("/bin/ls") (which "ls"))
15808 (("/bin/which") (which "which"))
15809 ;; Many tests try to use the /bin directory which is not
15810 ;; present in the build environment. Use one that's non-empty
15811 ;; and unlikely to change.
15812 (("/bin'") "/dev'")))))))
15813 (native-inputs
15814 (list bash ;full Bash for 'test_replwrap.py'
15815 man-db
15816 python-pytest
15817 python-setuptools
15818 which))
15819 (propagated-inputs
15820 (list python-ptyprocess))
15821 (home-page "https://pexpect.readthedocs.org/")
15822 (synopsis "Controlling interactive console applications")
15823 (description
15824 "Pexpect is a pure Python module for spawning child applications;
15825controlling them; and responding to expected patterns in their output. Pexpect
15826works like Don Libes’ Expect. Pexpect allows your script to spawn a child
15827application and control it as if a human were typing commands.")
15828 (license license:isc)))
15829
15830(define-public python-sexpdata
15831 (package
15832 (name "python-sexpdata")
15833 (version "1.0.2")
15834 (source
15835 (origin
15836 (method url-fetch)
15837 (uri (pypi-uri "sexpdata" version))
15838 (sha256
15839 (base32
15840 "02f1v96wzqf3jgwbp1fvankszkzvyff53fa4ks7nyxpnc41ppdlj"))))
15841 (build-system pyproject-build-system)
15842 (arguments
15843 (list #:tests? #f)) ; no tests
15844 (native-inputs (list python-setuptools python-wheel))
15845 (home-page "https://github.com/jd-boyd/sexpdata")
15846 (synopsis "S-expression parser for Python")
15847 (description
15848 "Sexpdata is an S-expression parser/serializer. It has load and dump
15849functions like pickle, json or PyYAML module.")
15850 (license license:bsd-3)))
15851
15852(define-public python-pathable
15853 (package
15854 (name "python-pathable")
15855 (version "0.4.3")
15856 (source
15857 (origin
15858 (method url-fetch)
15859 (uri (pypi-uri "pathable" version))
15860 (sha256
15861 (base32 "1ayw9jzlw0qrz51rcfbba00xqq0c7vs3lgwrib67c1z5bcqrv1jw"))))
15862 (build-system pyproject-build-system)
15863 (arguments (list #:tests? #false)) ;there are none
15864 (native-inputs (list python-poetry-core))
15865 (home-page "https://github.com/p1c2u/pathable")
15866 (synopsis "Object-oriented paths")
15867 (description "With this package you can traverse resources like paths and
15868access resources on demand with separate accessor layer.")
15869 (license license:asl2.0)))
15870
15871(define-public python-importlib-resources
15872 (package
15873 (name "python-importlib-resources")
15874 (version "6.5.2")
15875 (source (origin
15876 (method url-fetch)
15877 (uri (pypi-uri "importlib_resources" version))
15878 (sha256
15879 (base32
15880 "0b7dizkjyjpwqm2dsmb40fy7iskwl3xv93yr9622ik2vxynqfpqq"))))
15881 (build-system pyproject-build-system)
15882 (native-inputs
15883 (list python-jaraco-test
15884 python-jaraco-collections
15885 python-pytest
15886 python-setuptools
15887 python-setuptools-scm
15888 python-zipp))
15889 (home-page "https://importlib-resources.readthedocs.io/")
15890 (synopsis "Read resources from Python packages")
15891 (description
15892 "@code{importlib_resources} is a backport of Python 3's standard library
15893@code{importlib.resources} module for Python 2.7, and Python 3.")
15894 (license license:asl2.0)))
15895
15896(define-public python-importlib-metadata
15897 (package
15898 (name "python-importlib-metadata")
15899 (version "8.7.0")
15900 (source
15901 (origin
15902 (method url-fetch)
15903 (uri (pypi-uri "importlib_metadata" version))
15904 (sha256
15905 (base32
15906 "004h71gl22rg57wxd0hgy72pdksn62ng4waldjhhm29v4anq2fyi"))))
15907 (build-system pyproject-build-system)
15908 (arguments
15909 (list #:test-flags #~(list "tests")))
15910 (native-inputs
15911 (list python-jaraco-test
15912 python-packaging-bootstrap
15913 python-pyfakefs
15914 python-pytest-bootstrap
15915 python-setuptools
15916 python-setuptools-scm))
15917 (propagated-inputs
15918 (list python-zipp))
15919 (home-page "https://importlib-metadata.readthedocs.io/")
15920 (synopsis "Read metadata from Python packages")
15921 (description
15922 "@code{importlib_metadata} is a library which provides an API for
15923accessing an installed Python package's metadata, such as its entry points or
15924its top-level name. This functionality intends to replace most uses of
15925@code{pkg_resources} entry point API and metadata API. Along with
15926@code{importlib.resources} in Python 3.7 and newer, this can eliminate the
15927need to use the older and less efficient @code{pkg_resources} package.")
15928 (license license:asl2.0)))
15929
15930(define-public python-importlib-metadata-argparse-version
15931 (package
15932 (name "python-importlib-metadata-argparse-version")
15933 (version "2.0.1")
15934 (home-page
15935 "https://github.com/mondeja/importlib-metadata-argparse-version")
15936 (source
15937 (origin
15938 (method git-fetch)
15939 (uri (git-reference
15940 (url home-page)
15941 (commit (string-append "v" version))))
15942 (file-name (git-file-name name version))
15943 (sha256
15944 (base32 "02jbfv7xkd4lhdcsr232b6x8xcpv93micz7848fhi5946grvm1j2"))))
15945 (build-system pyproject-build-system)
15946 (native-inputs (list python-pytest python-hatchling))
15947 (synopsis "Get Python package version more efficiently")
15948 (description
15949 "This package provides an @code{argparse} action to define CLI version
15950with a delayed call to @code{importlib.metadata}, avoiding to load this module
15951when not needed.")
15952 (license license:bsd-3)))
15953
15954(define-public python-importmagic
15955 (package
15956 (name "python-importmagic")
15957 (version "0.1.7")
15958 (source
15959 (origin
15960 (method git-fetch)
15961 (uri (git-reference
15962 (url "https://github.com/alecthomas/importmagic")
15963 (commit version)))
15964 (file-name (git-file-name name version))
15965 (sha256
15966 (base32 "1asijinpirq9ips9drsibyg2bj6qbpryz27n91akhvmzn78pbz7s"))))
15967 (build-system pyproject-build-system)
15968 (native-inputs (list python-pytest python-setuptools))
15969 (home-page "https://github.com/alecthomas/importmagic")
15970 (synopsis "Library for adding, removing and managing Python imports")
15971 (description
15972 "Importmagic is a Python library for automatically managing imports by
15973finding unresolved symbols in Python code and their corresponding imports.")
15974 (license license:bsd-3)))
15975
15976(define-public python-inotify-simple
15977 (package
15978 (name "python-inotify-simple")
15979 (version "1.3.5")
15980 (source
15981 (origin
15982 (method git-fetch)
15983 (uri (git-reference
15984 (url "https://github.com/chrisjbillington/inotify_simple")
15985 (commit version)))
15986 (file-name (git-file-name name version))
15987 (sha256
15988 (base32 "1dv9svrcz31acyq9smjlnw75xv3x5wpn5h6s8j8h0vrqyl3d7l05"))))
15989 (build-system pyproject-build-system)
15990 (arguments
15991 (list
15992 #:test-backend #~'custom
15993 #:test-flags #~(list "example.py")))
15994 (native-inputs (list python-setuptools))
15995 (home-page "https://github.com/chrisjbillington/inotify_simple")
15996 (synopsis "Simple wrapper around inotify library")
15997 (description
15998 "@code{inotify-simple} is a simple wrapper around inotify library.")
15999 (license license:bsd-3)))
16000
16001(define-public python-interface-meta
16002 (package
16003 (name "python-interface-meta")
16004 (version "1.3.0")
16005 (source
16006 (origin
16007 (method url-fetch)
16008 (uri (pypi-uri "interface_meta" version))
16009 (sha256
16010 (base32 "18brkmz2ssjikkrkb23cwccp683yi6y1alfdbmjvjgxpppw96i4a"))))
16011 (build-system pyproject-build-system)
16012 (native-inputs (list python-poetry-core python-pytest))
16013 (home-page "https://github.com/matthewwardrop/interface_meta")
16014 (synopsis
16015 "API for enforced method signatures and consistent documentation")
16016 (description
16017 "This package provides a convenient way to expose an extensible API with
16018enforced method signatures and consistent documentation.")
16019 (license license:expat)))
16020
16021(define-public python-jaraco-itertools
16022 (package
16023 (name "python-jaraco-itertools")
16024 (version "6.4.3")
16025 (source
16026 (origin
16027 (method git-fetch)
16028 (uri (git-reference
16029 (url "https://github.com/jaraco/jaraco.itertools")
16030 (commit (string-append "v" version))))
16031 (file-name (git-file-name name version))
16032 (sha256
16033 (base32 "0nf674j28nlqszcvjhjdgbmy92xbwhylvg2rlic11w28iz4s8d9f"))))
16034 (build-system pyproject-build-system)
16035 (arguments
16036 (list #:tests? #f)) ;no tests
16037 (native-inputs
16038 (list python-setuptools
16039 python-setuptools-scm))
16040 (propagated-inputs
16041 (list python-inflect
16042 python-more-itertools))
16043 (home-page "https://github.com/jaraco/jaraco.itertools")
16044 (synopsis "Tools for working with iterables")
16045 (description
16046 "This package provides an utility collection based on no longer
16047maintained @code{jaraco.util}.")
16048 (license license:expat)))
16049
16050(define-public python-jaraco-logging
16051 (package
16052 (name "python-jaraco-logging")
16053 (version "3.4.0")
16054 (source
16055 (origin
16056 (method git-fetch)
16057 (uri (git-reference
16058 (url "https://github.com/jaraco/jaraco.logging")
16059 (commit (string-append "v" version))))
16060 (file-name (git-file-name name version))
16061 (sha256
16062 (base32 "0c13wxbmk0rl1jd0fxp3p7qpsps8lj6p2wlkny2ng5z4qn21ahhi"))))
16063 (build-system pyproject-build-system)
16064 (native-inputs
16065 (list python-pytest
16066 python-setuptools
16067 python-setuptools-scm))
16068 (propagated-inputs
16069 (list python-tempora))
16070 (home-page "https://github.com/jaraco/jaraco.logging")
16071 (synopsis "Support for Python's logging facility")
16072 (description
16073 "This package allows soliciting log-level info from command-line
16074parameters.")
16075 (license license:expat)))
16076
16077(define-public python-jaraco-packaging
16078 (package
16079 (name "python-jaraco-packaging")
16080 (version "9.4.0") ;the latest version compatible with [email protected]
16081 (source
16082 (origin
16083 (method url-fetch)
16084 (uri (pypi-uri "jaraco.packaging" version))
16085 (sha256
16086 (base32
16087 "1djpwmw2gmb6i9by1bc4lh4qlkvifgsqfj5alb9xz7pa80fcm416"))))
16088 (build-system pyproject-build-system)
16089 (arguments
16090 (list #:tests? #f)) ;no tests in PyPI archive
16091 (native-inputs
16092 (list python-setuptools
16093 python-setuptools-scm))
16094 (propagated-inputs
16095 (list python-pypa-build
16096 python-virtualenv
16097 python-domdf-python-tools
16098 python-jaraco-context
16099 python-sphinx))
16100 (home-page "https://github.com/jaraco/jaraco.packaging")
16101 (synopsis "Tools to supplement packaging Python releases")
16102 (description
16103 "This package provides various tools to supplement packaging Python
16104releases.")
16105 (license license:expat)))
16106
16107(define-public python-jaraco-vcs
16108 (package
16109 (name "python-jaraco-vcs")
16110 (version "2.4.1")
16111 (source
16112 (origin
16113 (method git-fetch)
16114 (uri (git-reference (url "https://github.com/jaraco/jaraco.vcs")
16115 (commit (string-append "v" version))))
16116 (file-name (git-file-name name version))
16117 (sha256 (base32 "1n9f0l4zp8dbbq2ha93bd9z6gb9y7gsmbd4jkl5gcm51qpsq4vpm"))))
16118 (build-system pyproject-build-system)
16119 (arguments
16120 (list
16121 #:test-flags
16122 ;; Ignore doctests.
16123 #~(list "--ignore-glob=jaraco/vcs/*.py")))
16124 (propagated-inputs (list python-jaraco-classes
16125 python-jaraco-path
16126 python-jaraco-versioning
16127 python-more-itertools
16128 python-packaging
16129 python-dateutil
16130 python-tempora))
16131 (native-inputs (list python-pygments
16132 python-pytest
16133 python-pytest-home
16134 python-setuptools
16135 python-setuptools-scm))
16136 (home-page "https://github.com/jaraco/jaraco.vcs")
16137 (synopsis "Utilities for working with VCS repositories")
16138 (description
16139 "This package provides facilities for working with VCS repositories in
16140Python.")
16141 (license license:expat)))
16142
16143(define-public python-jaraco-versioning
16144 (package
16145 (name "python-jaraco-versioning")
16146 (version "1.1.0")
16147 (source
16148 (origin
16149 (method git-fetch)
16150 (uri (git-reference
16151 (url "https://github.com/jaraco/jaraco.versioning")
16152 (commit (string-append "v" version))))
16153 (file-name (git-file-name name version))
16154 (sha256
16155 (base32 "12svnpa5sl3r5lci9bybzy5gb8pd4clfkl65x5hsap00ada2w91r"))))
16156 (build-system pyproject-build-system)
16157 (arguments
16158 (list
16159 #:phases
16160 #~(modify-phases %standard-phases
16161 ;; doctest started failing with python-packaging 26.2
16162 (add-after 'unpack 'fix-doc-test
16163 (lambda _
16164 (substitute* "jaraco/versioning.py"
16165 (("<Version") "<SummableVersion")))))))
16166 (propagated-inputs (list python-packaging))
16167 (native-inputs
16168 (list python-pytest python-setuptools python-setuptools-scm))
16169 (home-page "https://github.com/jaraco/jaraco.versioning")
16170 (synopsis "Version manipulation utils")
16171 (description
16172 "This package builds upon @code{python-packaging} to provide more
16173sophisticated version manipulation.")
16174 (license license:expat)))
16175
16176(define-public python-simplegeneric
16177 (package
16178 (name "python-simplegeneric")
16179 (version "0.8.1")
16180 (source
16181 (origin
16182 (method url-fetch)
16183 (uri (pypi-uri "simplegeneric" version ".zip"))
16184 (sha256
16185 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
16186 (build-system pyproject-build-system)
16187 (arguments
16188 (list
16189 #:test-backend #~'custom
16190 #:test-flags #~(list "-m" "simplegeneric")))
16191 (native-inputs
16192 (list unzip python-setuptools))
16193 (home-page "https://cheeseshop.python.org/pypi/simplegeneric")
16194 (synopsis "Python module for simple generic functions")
16195 (description
16196 "The simplegeneric module lets you define simple single-dispatch generic
16197functions, akin to Python’s built-in generic functions like @code{len()},
16198@code{iter()} and so on. However, instead of using specially-named methods,
16199these generic functions use simple lookup tables, akin to those used by
16200e.g. @code{pickle.dump()} and other generic functions found in the Python
16201standard library.")
16202 (license license:zpl2.1)))
16203
16204(define-public python-ipython-genutils
16205 ;; TODO: This package is retired, check if can be removed, see description.
16206 (package
16207 (name "python-ipython-genutils")
16208 (version "0.1.0")
16209 (source
16210 (origin
16211 (method url-fetch)
16212 (uri (pypi-uri "ipython_genutils" version))
16213 (sha256
16214 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
16215 (build-system pyproject-build-system)
16216 (arguments `(#:tests? #f)) ; no tests
16217 (native-inputs
16218 (list python-setuptools))
16219 (home-page "https://ipython.org")
16220 (synopsis "Vestigial utilities from IPython")
16221 (description
16222 "This package provides retired utilities from IPython. No packages
16223outside IPython/Jupyter should depend on it.
16224
16225This package shouldn't exist. It contains some common utilities shared by
16226Jupyter and IPython projects during The Big Split. As soon as possible, those
16227packages will remove their dependency on this, and this package will go
16228away.")
16229 (license license:bsd-3)))
16230
16231;;; Variant used to break a cycle with python-ipykernel.
16232(define-public python-ipyparallel-bootstrap
16233 (hidden-package
16234 (package
16235 (name "python-ipyparallel-bootstrap")
16236 (version "9.0.1")
16237 (source
16238 (origin
16239 (method url-fetch)
16240 (uri (pypi-uri "ipyparallel" version))
16241 (sha256
16242 (base32 "177jk2g8srsddgyb4djbyci93v766vzrnqzzpd7ski804anjqn9f"))))
16243 (build-system pyproject-build-system)
16244 (arguments
16245 (list
16246 #:tests? #f
16247 #:phases #~(modify-phases %standard-phases
16248 ;; The python-ipykernel is normally propagated but is
16249 ;; removed from this package to break the cycle.
16250 (delete 'sanity-check))))
16251 (native-inputs
16252 (list python-hatchling))
16253 (propagated-inputs
16254 (list python-dateutil
16255 python-decorator
16256 python-entrypoints
16257 python-ipython
16258 ;; python-ipykernel is omitted here to break a cycle.
16259 python-jupyter-client-bootstrap
16260 python-psutil
16261 python-pyzmq
16262 python-tornado
16263 python-tqdm
16264 python-traitlets))
16265 (home-page "https://ipython.org/")
16266 (synopsis "Interactive Parallel Computing with IPython")
16267 (description
16268 "@code{ipyparallel} is a Python package and collection of CLI scripts
16269for controlling clusters for Jupyter. @code{ipyparallel} contains the
16270following CLI scripts:
16271@enumerate
16272@item ipcluster - start/stop a cluster
16273@item ipcontroller - start a scheduler
16274@item ipengine - start an engine
16275@end enumerate")
16276 (license license:bsd-3))))
16277
16278(define-public python-ipyparallel
16279 (package
16280 (inherit python-ipyparallel-bootstrap)
16281 (name "python-ipyparallel")
16282 (arguments
16283 (list
16284 #:test-flags
16285 ;; Disable warning because DeprecationWarnings make tests fail.
16286 #~(list "-p" "no:warnings" "--pyargs" "ipyparallel")))
16287 (native-inputs
16288 (modify-inputs native-inputs
16289 (append python-ipython
16290 python-pytest
16291 python-pytest-asyncio
16292 python-pytest-tornado
16293 python-testpath)))
16294 (propagated-inputs
16295 (modify-inputs propagated-inputs
16296 (replace "python-jupyter-client-bootstrap" python-jupyter-client)
16297 (append python-ipykernel)))
16298 (properties (alist-delete 'hidden? (package-properties
16299 python-ipyparallel-bootstrap)))))
16300
16301;; TODO: Package python-jupysql which is the maintained fork of this one.
16302(define-public python-ipython-sql
16303 (package
16304 (name "python-ipython-sql")
16305 (properties '((commit . "e21bc64e172270311d9103602e1c2ec1bcdd5aa8")
16306 (revision . "0")))
16307 (version (git-version "0.5.0"
16308 (assoc-ref properties 'revision)
16309 (assoc-ref properties 'commit)))
16310 (source
16311 (origin
16312 (method git-fetch)
16313 (uri (git-reference
16314 (url "https://github.com/catherinedevlin/ipython-sql")
16315 (commit (assoc-ref properties 'commit))))
16316 (file-name (git-file-name name version))
16317 (sha256
16318 (base32 "0palwgr7lnar8ykifzhf1qach206bf1xa1zkji2adk9pr9ajsiix"))))
16319 (build-system pyproject-build-system)
16320 (arguments
16321 (list #:tests? #f ;Fail because of prettytable.
16322 #:phases
16323 #~(modify-phases %standard-phases
16324 (replace 'check
16325 (lambda* (#:key tests? #:allow-other-keys)
16326 (setenv "HOME" (getcwd))
16327 (if tests?
16328 (invoke "ipython" "-c"
16329 "import pytest; pytest.main(['.'])")
16330 (format #t "test suite not run.~%")))))))
16331 (native-inputs (list python-pytest python-setuptools))
16332 (propagated-inputs
16333 (list python-ipython
16334 python-ipython-genutils
16335 python-prettytable
16336 python-sqlalchemy-2
16337 python-sqlparse))
16338 (home-page "https://github.com/catherinedevlin/ipython-sql")
16339 (synopsis "RDBMS access via IPython")
16340 (description "This library connects to a database, using SQLAlchemy URL
16341connect strings, then issue SQL commands within IPython or IPython Notebook.")
16342 (license license:expat)))
16343
16344(define-public python-optree
16345 (package
16346 (name "python-optree")
16347 (version "0.14.0")
16348 (source
16349 (origin
16350 (method git-fetch)
16351 (uri (git-reference
16352 (url "https://github.com/metaopt/optree")
16353 (commit (string-append "v" version))))
16354 (file-name (git-file-name name version))
16355 (sha256
16356 (base32
16357 "17zph1jgzk0zaanj7057qj8x5cml8j66ip0xmlbwmq4396hmdlbs"))))
16358 (build-system pyproject-build-system)
16359 (arguments
16360 (list
16361 #:test-flags
16362 ;; These tests fails due to a circular import
16363 '`("-k" ,(string-append "not test_treespec_pickle_missing_registration"
16364 " and not test_import_no_warnings"))))
16365 (propagated-inputs (list python-typing-extensions))
16366 (native-inputs
16367 (list python-pytest
16368 python-setuptools
16369 python-wheel
16370 cmake-minimal
16371 pybind11-2))
16372 (home-page "https://github.com/metaopt/optree")
16373 (synopsis "Optimized PyTree Utilities")
16374 (description "This package contains operations on PyTrees (a tree made of
16375container data structures in Python).")
16376 (license license:asl2.0)))
16377
16378(define-public python-backcall
16379 (package
16380 (name "python-backcall")
16381 (version "0.2.0")
16382 (source
16383 (origin
16384 (method git-fetch)
16385 (uri (git-reference
16386 (url "https://github.com/takluyver/backcall/")
16387 (commit version)))
16388 (file-name (git-file-name name version))
16389 (sha256
16390 (base32 "0br41zib1zph2jazanyjfl03rrb7frplk639fb10wvdqkrzgm6cd"))))
16391 (build-system pyproject-build-system)
16392 (native-inputs (list python-flit-core python-pytest))
16393 (home-page "https://github.com/takluyver/backcall/")
16394 (synopsis "Specifications for callback functions passed in to an API")
16395 (description
16396 "If your code lets other people supply callback functions, it's important
16397to specify the function signature you expect, and check that functions support
16398that. Adding extra parameters later would break other peoples code unless
16399you're careful. The @code{backcall} package provides a way of specifying the
16400callback signature using a prototype function.")
16401 (license license:bsd-3)))
16402
16403(define-public python-pubmed-parser
16404 (package
16405 (name "python-pubmed-parser")
16406 (version "0.5.1")
16407 (source (origin
16408 (method git-fetch)
16409 (uri (git-reference
16410 (url "https://github.com/titipata/pubmed_parser")
16411 (commit version)))
16412 (file-name (git-file-name name version))
16413 (sha256
16414 (base32
16415 "0hm520pxmbqlfckkdyccagmmsrqwdi0qdsc0l7rgp62jmsv7ppi5"))))
16416 (build-system pyproject-build-system)
16417 (arguments (list #:tests? #f)) ;; Tests require internet
16418 (native-inputs
16419 (list python-setuptools))
16420 (propagated-inputs
16421 (list python-lxml
16422 python-numpy
16423 python-requests
16424 python-six ;hard dependency
16425 python-unidecode))
16426 (home-page "https://titipata.github.io/pubmed_parser/")
16427 (synopsis "Parser for Pubmed Open-Access Subset and MEDLINE XML repository")
16428 (description
16429 "This package provides a Python parser for Pubmed Open-Access Subset and
16430MEDLINE XML repository.")
16431 (license license:expat)))
16432
16433(define-public python-pure-eval
16434 (package
16435 (name "python-pure-eval")
16436 (version "0.2.3")
16437 (source
16438 (origin
16439 (method url-fetch)
16440 (uri (pypi-uri "pure_eval" version))
16441 (sha256
16442 (base32 "0hmg1qcv1h5k0dyj7sfp54ibnmjrvf4awdc6gin5fk2n80zrhkjz"))))
16443 (build-system pyproject-build-system)
16444 (native-inputs
16445 (list python-pytest
16446 python-setuptools
16447 python-setuptools-scm
16448 python-wheel))
16449 (home-page "https://github.com/alexmojaki/pure_eval")
16450 (synopsis "Python library to evaluate abstract syntax tree nodes")
16451 (description "The @code{pure_eval} Python library can safely evaluate
16452abstract syntax tree (AST) nodes without side effects.")
16453 (license license:expat)))
16454
16455(define-public python-puremagic
16456 (package
16457 (name "python-puremagic")
16458 (version "1.28")
16459 (source
16460 (origin
16461 (method git-fetch) ;no tests in PyPI archive
16462 (uri (git-reference
16463 (url "https://github.com/cdgriffith/puremagic")
16464 (commit version)))
16465 (file-name (git-file-name name version))
16466 (sha256
16467 (base32 "0sffrjjqh37ijwnggyvs2rfm4iwaz2m395wqg0x727wv8i0x3f3b"))))
16468 (build-system pyproject-build-system)
16469 (native-inputs
16470 (list python-pytest python-setuptools python-wheel))
16471 (home-page "https://github.com/cdgriffith/puremagic")
16472 (synopsis "Pure Python implementation of magic file detection")
16473 (description
16474 "This package implements a functionality that will identify a file based
16475off it's magic numbers.")
16476 (license license:expat)))
16477
16478(define-public python-ast-decompiler
16479 (package
16480 (name "python-ast-decompiler")
16481 (version "0.7.0")
16482 (source
16483 (origin
16484 (method url-fetch)
16485 (uri (pypi-uri "ast_decompiler" version))
16486 (sha256
16487 (base32 "0dw3fck4ajilphqw4hdpa8pmqxg3jfk2xkmjnk3kx5pqwl3sbhzg"))
16488 ;; We need to manually create an __init__.py file under the tests/
16489 ;; directory, since it is not included in the distributed
16490 ;; version. (See:
16491 ;; https://github.com/JelleZijlstra/ast_decompiler/issues/52).
16492 (modules '((guix build utils)))
16493 (snippet '(call-with-output-file "tests/__init__.py"
16494 (const #t)))))
16495 (build-system pyproject-build-system)
16496 (native-inputs (list python-flit-core python-pytest))
16497 (home-page "https://github.com/JelleZijlstra/ast_decompiler")
16498 (synopsis
16499 "Decompile an @acronym{AST, Abstract Syntax Tree} to Python code")
16500 (description
16501 "This library provides functionality to decompile @acronym{AST, Abstract
16502Syntax Tree} objects, as generated by the standard library @code{ast} module,
16503to Python code.")
16504 (license license:asl2.0)))
16505
16506(define-public python-asttokens
16507 (package
16508 (name "python-asttokens")
16509 (version "3.0.1")
16510 (source
16511 (origin
16512 (method git-fetch)
16513 (uri (git-reference
16514 (url "https://github.com/gristlabs/asttokens")
16515 (commit (string-append "v" version))))
16516 (file-name (git-file-name name version))
16517 (sha256 (base32 "1qqi7dygcv58czrsafc4gf41prfb6shd0crx33kd9wypk0v29afn"))))
16518 (build-system pyproject-build-system)
16519 (native-inputs
16520 (list python-astroid
16521 python-pytest
16522 python-setuptools
16523 python-setuptools-scm))
16524 (home-page "https://github.com/gristlabs/asttokens")
16525 (synopsis "Python library to annotate abstract syntax trees")
16526 (description "The @code{asttokens} module annotates Python abstract syntax
16527trees (ASTs) with the positions of tokens and text in the source code that
16528generated them. It makes it possible for tools that work with logical AST
16529nodes to find the particular text that resulted in those nodes, for example
16530for automated refactoring or highlighting.")
16531 (license license:asl2.0)))
16532
16533(define-public python-littleutils
16534 (package
16535 (name "python-littleutils")
16536 (version "0.2.4")
16537 (source
16538 (origin
16539 (method url-fetch)
16540 (uri (pypi-uri "littleutils" version))
16541 (sha256
16542 (base32 "069xlm6vp1rprgrl4gsg3fd2vg0nzdw7v2qij7i45v8c080mp0y7"))))
16543 (build-system pyproject-build-system)
16544 (arguments (list #:tests? #f)) ;no tests in PyPIi archive or Git checkout
16545 (native-inputs
16546 (list python-setuptools
16547 python-setuptools-scm
16548 python-wheel))
16549 (home-page "https://github.com/alexmojaki/littleutils")
16550 (synopsis "Python utility function collection")
16551 (description "@code{littleutils} is a small collection of Python utility
16552functions, useful in the context of writing unit tests among other uses.")
16553 (license license:expat)))
16554
16555(define-public python-ipython
16556 (package
16557 (name "python-ipython")
16558 (version "9.8.0")
16559 (source
16560 (origin
16561 (method git-fetch)
16562 (uri (git-reference
16563 (url "https://github.com/ipython/ipython")
16564 (commit version)))
16565 (file-name (git-file-name name version))
16566 (sha256
16567 (base32 "01xislvlz33hlpbpf9cfgqabva3wzg49gb5437ypdzwldf8q25cg"))))
16568 (build-system pyproject-build-system)
16569 (arguments
16570 (list
16571 ;; tests: 1655 passed, 118 skipped, 3 xfailed, 7 warnings
16572 ;; with-extra: 1681 passed, 87 skipped, 5 deselected, 3 xfailed, 8 warnings
16573 #:test-backend #~'custom
16574 ;; XXX: It's a workaround to fix the error with module import
16575 ;; "_pytest.pathlib.ImportPathMismatchError:", see:
16576 ;; <https://codeberg.org/guix/guix/issues/2108>.
16577 #:test-flags
16578 #~(list "-m" "pytest" "-vv"
16579 "-k" (string-join
16580 ;; These need git.
16581 (list "not test_json_getsysinfo"
16582 "IPython.utils.sysinfo.sys_info"
16583 ;; Failed: DID NOT RAISE
16584 "test_timeit_raise_on_interrupt"
16585 "test_script_raise_on_interrupt"
16586 "test_time_raise_on_interrupt")
16587 " and not "))
16588 #:phases
16589 #~(modify-phases %standard-phases
16590 (add-before 'check 'pre-check
16591 (lambda _
16592 (setenv "HOME" "/tmp"))))))
16593 (propagated-inputs
16594 (list python-decorator
16595 python-ipython-pygments-lexers
16596 python-jedi
16597 python-matplotlib-inline
16598 python-pexpect
16599 python-prompt-toolkit
16600 python-pygments
16601 python-stack-data
16602 python-traitlets
16603 python-typing-extensions))
16604 (native-inputs
16605 (list python-pytest
16606 python-pytest-asyncio
16607 python-setuptools
16608 python-testpath
16609 ;; [extra]
16610 ;; python-curio ;deprecated
16611 ;; python-ipykernel ;cycles
16612 ;; python-jupyter-ai ;not packaged
16613 python-matplotlib
16614 ;; python-nbclient ;cycles
16615 python-nbformat
16616 python-numpy
16617 python-pandas
16618 python-trio))
16619 (home-page "https://ipython.org")
16620 (synopsis "IPython is a tool for interactive computing in Python")
16621 (description
16622 "IPython provides a rich architecture for interactive computing with:
16623Powerful interactive shells, a browser-based notebook, support for interactive
16624data visualization, embeddable interpreters and tools for parallel
16625computing.")
16626 (properties '((cpe-name . "ipython")))
16627 (license license:bsd-3)))
16628
16629(define-public python-ipython-documentation
16630 (package
16631 (inherit python-ipython)
16632 (name "python-ipython-documentation")
16633 (version (package-version python-ipython))
16634 (arguments
16635 (list
16636 #:phases
16637 #~(modify-phases %standard-phases
16638 (add-after 'unpack 'set-pythonpath
16639 (lambda _
16640 ;; Ensure this fixed (via the
16641 ;; "python-ipython-documentation-chars.patch" patch) copy of
16642 ;; IPython gets used.
16643 (setenv "PYTHONPATH" (string-append (getcwd)))))
16644 (delete 'build)
16645 (delete 'check)
16646 (replace 'install
16647 (lambda* (#:key outputs #:allow-other-keys)
16648 (let* ((data (string-append #$output "/share"))
16649 (doc (string-append data "/doc/" #$name "-" #$version))
16650 (html (string-append doc "/html"))
16651 (info (string-append data "/info")))
16652 (invoke "make" "-C" "docs" "info" "html"
16653 (string-append "SPHINXOPTS=-j"
16654 (number->string (parallel-job-count))))
16655 (install-file "COPYING.rst" doc)
16656 (copy-recursively "examples" (string-append doc "/examples"))
16657 ;; Install HTML documentation.
16658 (copy-recursively "docs/build/html" html)
16659 ;; Likewise for the info manual.
16660 (install-file "docs/build/texinfo/ipython.info" info)
16661 (symlink (string-append html "/_images")
16662 (string-append info "/ipython-figures"))))))))
16663 (native-inputs
16664 (list graphviz
16665 python-docrepr
16666 python-ipykernel
16667 python-sphinx
16668 python-sphinx-rtd-theme
16669 python-sphinx-toml
16670 texinfo))))
16671
16672;; A bare minimal package, mainly to use in tests and reduce closure
16673;; size. Tests are left out in the main package to slim down native-inputs.
16674(define-public python-ipython-minimal
16675 (package/inherit python-ipython
16676 (name "python-ipython-minimal")
16677 (arguments
16678 (list #:tests? #f))
16679 (native-inputs
16680 (list python-setuptools))))
16681
16682(define-public python-ipython-pygments-lexers
16683 (package
16684 (name "python-ipython-pygments-lexers")
16685 (version "1.1.1")
16686 (source
16687 (origin
16688 (method git-fetch)
16689 (uri (git-reference
16690 (url "https://github.com/ipython/ipython-pygments-lexers/")
16691 (commit version)))
16692 (file-name (git-file-name name version))
16693 (sha256
16694 (base32 "154vbpp9mkblsk1d0w8x8mybwgn5gz6mjgg77nqyn75ky0banrd7"))))
16695 (build-system pyproject-build-system)
16696 (propagated-inputs (list python-pygments))
16697 (native-inputs (list python-flit-core python-pytest))
16698 (home-page "https://github.com/ipython/ipython-pygments-lexers/")
16699 (synopsis "Plugin for IPython code sessions")
16700 (description
16701 "This package defines a variety of Pygments lexers for highlighting IPython
16702code.")
16703 (license license:bsd-3)))
16704
16705(define-public python-pydbus
16706 (package
16707 (name "python-pydbus")
16708 (version "0.6.0")
16709 (source
16710 (origin
16711 (method url-fetch)
16712 (uri (pypi-uri "pydbus" version))
16713 (sha256
16714 (base32 "0b0gipvz7vcfa9ddmwq2jrx16d4apb0hdnl5q4i3h8jlzwp1c1s2"))))
16715 (build-system pyproject-build-system)
16716 (arguments
16717 (list #:tests? #f ; no tests in PyPI, git tests require running DBus
16718 #:phases
16719 #~(modify-phases %standard-phases
16720 (add-after 'unpack 'fix-comparability-with-pygobject
16721 (lambda _
16722 (substitute* "pydbus/_inspect3.py"
16723 (("getargspec")
16724 "getfullargspec")))))))
16725 (native-inputs
16726 (list python-setuptools
16727 python-wheel))
16728 (propagated-inputs
16729 (list python-pygobject))
16730 (home-page "https://github.com/LEW21/pydbus")
16731 (synopsis "Pythonic D-Bus library")
16732 (description
16733 "Pydbus provides a pythonic interface to the D-Bus message bus system.
16734Pydbus can be used to access remote objects and also for object publication.
16735It is based on PyGI, the Python GObject Introspection bindings, which is the
16736recommended way to use GLib from Python.")
16737 (license license:lgpl2.1+)))
16738
16739(define-public python-dbus-1.2
16740 (package
16741 (name "python-dbus")
16742 (version "1.2.18")
16743 (source
16744 (origin
16745 (method url-fetch)
16746 (uri (string-append "https://dbus.freedesktop.org/releases/dbus-python/"
16747 "dbus-python-" version ".tar.gz"))
16748 (sha256
16749 (base32 "0q3jrw515z98mqdk9x822nd95rky455zz9876f1nqna5igkd3gcj"))))
16750 (build-system gnu-build-system)
16751 (native-inputs
16752 (list pkg-config
16753 python-setuptools))
16754 (inputs
16755 `(("python" ,python-wrapper)
16756 ("dbus-glib" ,dbus-glib)))
16757 (synopsis "Python bindings for D-bus")
16758 (description "python-dbus provides bindings for libdbus, the reference
16759implementation of D-Bus.")
16760 (home-page "https://www.freedesktop.org/wiki/Software/DBusBindings/")
16761 (license license:expat)))
16762
16763(define-public python-dasbus
16764 (package
16765 (name "python-dasbus")
16766 (version "1.7")
16767 (source
16768 (origin
16769 (method git-fetch)
16770 (uri (git-reference
16771 (url "https://github.com/dasbus-project/dasbus")
16772 (commit (string-append "v" version))))
16773 (file-name (git-file-name name version))
16774 (sha256
16775 (base32 "1dii0skg7pqi4jhy1dkshqmn49i5ngq92sw7w7j4sxd3g8pjhj46"))))
16776 (build-system pyproject-build-system)
16777 (arguments
16778 (list
16779 #:phases
16780 #~(modify-phases %standard-phases
16781 (replace 'check
16782 (lambda* (#:key tests? (test-flags '()) #:allow-other-keys)
16783 (when tests?
16784 (apply invoke "dbus-launch" "pytest" "-vv" test-flags)))))))
16785 (native-inputs
16786 (list dbus
16787 python-hatchling
16788 python-pytest
16789 python-setuptools))
16790 (propagated-inputs
16791 (list python-pygobject))
16792 (home-page "https://dasbus.readthedocs.io/")
16793 (synopsis "DBus library in Python")
16794 (description
16795 "This DBus library is written in Python, based on GLib and inspired by
16796@code{pydbus}.")
16797 (license license:lgpl2.1+)))
16798
16799(define-public python-notify2
16800 (package
16801 (name "python-notify2")
16802 (version "0.3.1")
16803 (source
16804 (origin
16805 (method url-fetch)
16806 (uri (pypi-uri "notify2" version))
16807 (sha256
16808 (base32
16809 "0z8rrv9rsg1r2qgh2dxj3dfj5xnki98kgi3w839kqby4a26i1yik"))))
16810 (build-system pyproject-build-system)
16811 (arguments (list #:tests? #f)) ; tests depend on system state
16812 (native-inputs (list python-setuptools))
16813 (propagated-inputs (list python-dbus))
16814 (home-page "https://bitbucket.org/takluyver/pynotify2")
16815 (synopsis "Python interface to D-Bus notifications")
16816 (description
16817 "Pynotify2 provides a Python interface for sending D-Bus notifications.
16818It is a reimplementation of pynotify in pure Python, and an alternative to
16819the GObject Introspection bindings to libnotify for non-GTK applications.")
16820 (license (list license:bsd-2
16821 license:lgpl2.1+))))
16822
16823;; beautifulsoup4 has a totally different namespace than 3.x,
16824;; and pypi seems to put it under its own name, so I guess we should too
16825(define-public python-beautifulsoup4
16826 (package
16827 (name "python-beautifulsoup4")
16828 (version "4.14.3")
16829 (source
16830 (origin
16831 (method url-fetch)
16832 (uri (pypi-uri "beautifulsoup4" version))
16833 (sha256
16834 (base32
16835 "11pvlxgxxn8bcgfsbbfrb9b9jw3ma7qggycycsx6ndbd332v34k2"))))
16836 (build-system pyproject-build-system)
16837 (native-inputs
16838 (list python-hatchling
16839 python-pytest))
16840 (propagated-inputs
16841 (list python-soupsieve
16842 python-typing-extensions
16843 ;; [optional]
16844 python-cchardet
16845 python-chardet
16846 python-charset-normalizer
16847 python-html5lib
16848 python-lxml))
16849 (home-page "https://www.crummy.com/software/BeautifulSoup/bs4/")
16850 (synopsis "Python screen-scraping library")
16851 (description
16852 "Beautiful Soup is a Python library designed for rapidly setting up
16853screen-scraping projects. It offers Pythonic idioms for navigating,
16854searching, and modifying a parse tree, providing a toolkit for
16855dissecting a document and extracting what you need. It automatically
16856converts incoming documents to Unicode and outgoing documents to UTF-8.")
16857 (license license:expat)))
16858
16859(define-public python-beautifulsoup4-bootstrap
16860 (hidden-package
16861 (package/inherit python-beautifulsoup4
16862 (arguments
16863 (list #:tests? #f))
16864 (native-inputs
16865 (list python-hatchling))
16866 (propagated-inputs '()))))
16867
16868
16869(define-public python-netifaces
16870 (package
16871 (name "python-netifaces")
16872 (version "0.11.0")
16873 (source
16874 (origin
16875 (method url-fetch)
16876 (uri (pypi-uri "netifaces" version))
16877 (sha256
16878 (base32 "0cnajf5rl4w1sa72j921scbigr6zndig56cq8ggpx45jdqa7jfh4"))))
16879 (build-system pyproject-build-system)
16880 (arguments
16881 (list
16882 #:test-backend #~'custom
16883 #:test-flags #~(list "test.py")))
16884 (native-inputs (list python-setuptools))
16885 (home-page "https://github.com/al45tair/netifaces")
16886 (synopsis "Python module for portable network interface information")
16887 (description
16888 "Netifaces is a Python module providing information on network
16889interfaces in an easy and portable manner.")
16890 (license license:expat)))
16891
16892(define-public python-networkx
16893 (package
16894 (name "python-networkx")
16895 (version "3.4.2")
16896 (source
16897 (origin
16898 (method url-fetch)
16899 (uri (pypi-uri "networkx" version))
16900 (sha256
16901 (base32 "1qaks3c3h5qlw25z949q3plw8iwgm9h152kwnam64lwc89lkcz1h"))))
16902 (build-system pyproject-build-system)
16903 (arguments
16904 (list
16905 #:test-flags
16906 #~(list "--numprocesses" (number->string (parallel-job-count)))))
16907 (native-inputs
16908 (list python-pytest
16909 python-pytest-xdist
16910 python-setuptools
16911 python-wheel))
16912 (propagated-inputs
16913 (list python-decorator))
16914 (home-page "https://networkx.github.io/")
16915 (synopsis "Python module for creating and manipulating graphs and networks")
16916 (description
16917 "NetworkX is a Python package for the creation, manipulation, and study
16918of the structure, dynamics, and functions of complex networks.")
16919 (license license:bsd-3)))
16920
16921(define-public python-datrie
16922 (package
16923 (name "python-datrie")
16924 (version "0.8.3")
16925 (source
16926 (origin
16927 (method git-fetch)
16928 (uri (git-reference
16929 (url "https://github.com/kmike/datrie")
16930 (commit version)))
16931 (file-name (git-file-name name version))
16932 (sha256
16933 (base32 "1jfyhzfjgin370l6chd0cjg521ql3y53db194n94ff6cdbdbg7cg"))))
16934 (build-system pyproject-build-system)
16935 (arguments
16936 (list
16937 #:phases
16938 #~(modify-phases %standard-phases
16939 (add-after 'ensure-no-mtimes-pre-1980 'inject-libdatrie
16940 (lambda* (#:key inputs #:allow-other-keys)
16941 (let* ((headers (search-input-directory inputs
16942 "include/datrie"))
16943 (base (dirname (dirname headers))))
16944 (symlink headers "libdatrie/datrie")
16945 (setenv "LDFLAGS" (string-append "-L" base "/lib")))))
16946 (add-before 'build 'relax-gcc-14-strictness
16947 (lambda _
16948 (setenv "CFLAGS"
16949 "-g -O2 -Wno-error=incompatible-pointer-types"))))))
16950 (native-inputs
16951 (list python-cython python-hypothesis python-pytest python-setuptools))
16952 (inputs (list libdatrie))
16953 (home-page "https://github.com/kmike/datrie")
16954 (synopsis "Fast, efficiently stored trie for Python")
16955 (description
16956 "This package provides a fast, efficiently stored trie implementation for
16957Python.")
16958 (license license:lgpl2.1+)))
16959
16960(define-public python-amply
16961 (package
16962 (name "python-amply")
16963 (version "0.1.6")
16964 (source
16965 (origin
16966 (method url-fetch)
16967 (uri (pypi-uri "amply" version))
16968 (sha256
16969 (base32 "195fg1n5nsl722hk33f6a7ak3n0hfs8yfpqi2xkhdqgqrh1i2hk1"))))
16970 (build-system pyproject-build-system)
16971 (native-inputs
16972 (list python-pytest
16973 python-setuptools
16974 python-setuptools-scm
16975 python-wheel))
16976 (propagated-inputs
16977 (list python-docutils
16978 python-pyparsing))
16979 (home-page "https://github.com/willu47/amply")
16980 (synopsis "Load and manipulate AMPL/GLPK data as Python data structures")
16981 (description
16982 "Amply allows you to load and manipulate AMPL/GLPK data as Python data
16983structures.")
16984 (license license:epl1.0)))
16985
16986(define-public python-pulp
16987 (package
16988 (name "python-pulp")
16989 (version "3.3.2")
16990 (source
16991 (origin
16992 (method git-fetch)
16993 (uri (git-reference
16994 (url "https://github.com/coin-or/pulp")
16995 (commit version)))
16996 (file-name (git-file-name name version))
16997 (sha256
16998 (base32 "1vagp2xg4kl7swrd7snf1dlrj5mgccbascy30j4zncvi9cplyxfk"))
16999 (snippet
17000 #~(begin
17001 ;; The solverdir contains several binaries; use the Guix cbc
17002 ;; package instead.
17003 (use-modules (guix build utils))
17004 (delete-file-recursively "pulp/solverdir")))))
17005 (build-system pyproject-build-system)
17006 (arguments
17007 (list
17008 #:phases
17009 #~(modify-phases %standard-phases
17010 (add-after 'unpack 'use-system-cbc
17011 (lambda* (#:key inputs #:allow-other-keys)
17012 (substitute* "pyproject.toml"
17013 ;; Do not copy the binaries.
17014 ((".*solverdir.*") ""))
17015 (let ((cbc (search-input-file inputs "/bin/cbc")))
17016 ;; PuLP default points to pulp/solverdir/../cbc,
17017 ;; use cbc from Guix instead.
17018 (substitute* "pulp/apis/coin_api.py"
17019 ((".*solverdir.*")
17020 (string-append " r\"" cbc "\"\n")))))))))
17021 (native-inputs
17022 (list python-pytest
17023 python-setuptools))
17024 (inputs
17025 (list cbc)) ;TODO: Add more solvers? Like highs
17026 (home-page "https://github.com/coin-or/pulp")
17027 (synopsis "Linear Programming modeler")
17028 (description
17029 "PuLP is a Linear Programming modeler written in Python. PuLP can
17030generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to
17031solve linear problems.")
17032 (license license:expat)))
17033
17034(define-public python-py-partiql-parser
17035 (package
17036 (name "python-py-partiql-parser")
17037 (version "0.6.3")
17038 (source
17039 (origin
17040 (method git-fetch)
17041 (uri (git-reference
17042 (url "https://github.com/getmoto/py-partiql-parser")
17043 (commit version)))
17044 (file-name (git-file-name name version))
17045 (sha256
17046 (base32 "1jkdndlih5zapi6ypq1z2rkqbgadyl4lcghb0gajfwiczdhs9lgp"))))
17047 (build-system pyproject-build-system)
17048 (native-inputs
17049 (list python-hatchling
17050 python-pytest))
17051 (home-page "https://pypi.org/project/py-partiql-parser/")
17052 (synopsis "Pure Python PartiQL Parser")
17053 (description
17054 "This package provides a tokenizer/parser/executor for the PartiQL
17055language, in Python.")
17056 (license license:expat)))
17057
17058(define-public python-py-tes
17059 (package
17060 (name "python-py-tes")
17061 (version "0.4.2")
17062 (source
17063 (origin
17064 (method git-fetch)
17065 (uri (git-reference
17066 (url "https://github.com/ohsu-comp-bio/py-tes")
17067 (commit version)))
17068 (file-name (git-file-name name version))
17069 (sha256
17070 (base32 "0nacmw7whmbfqa6y728l6f646wpgaanfa0v4p5mggag2044v55qx"))))
17071 (build-system pyproject-build-system)
17072 (native-inputs
17073 (list python-pytest python-requests-mock python-setuptools))
17074 (propagated-inputs
17075 (list python-attrs python-dateutil python-future python-requests))
17076 (home-page "https://github.com/ohsu-comp-bio/py-tes")
17077 (synopsis "Library for communicating with the GA4GH Task Execution API")
17078 (description "This package provides a library for communicating with the
17079GA4GH Task Execution API.")
17080 (license license:expat)))
17081
17082(define-public python-altgraph
17083 (package
17084 (name "python-altgraph")
17085 (version "0.17.4")
17086 (source
17087 (origin
17088 (method url-fetch)
17089 (uri (pypi-uri "altgraph" version))
17090 (sha256
17091 (base32 "01j48np3g50g6insjkszsz0vifwlm6gspria5vdwlkbciywznnhv"))))
17092 (build-system pyproject-build-system)
17093 (native-inputs (list python-pytest python-setuptools python-wheel))
17094 (home-page "https://altgraph.readthedocs.io")
17095 (synopsis "Python graph network package")
17096 (description
17097"This package provides tools for constructing graphs, BFS and DFS
17098traversals, topological sort, shortest paths, and more with graphviz
17099output.")
17100 (license license:expat)))
17101
17102(define-public python-pyqrcode
17103 (package
17104 (name "python-pyqrcode")
17105 (properties '((commit . "674a77b5eaf850d063f518bd90c243ee34ad6b5d")
17106 (revision . "0")))
17107 (version (git-version "1.2.1"
17108 (assoc-ref properties 'revision)
17109 (assoc-ref properties 'commit)))
17110 (source
17111 (origin
17112 (method git-fetch)
17113 (uri (git-reference
17114 (url "https://github.com/mnooner256/pyqrcode")
17115 (commit (assoc-ref properties 'commit))))
17116 (file-name (git-file-name name version))
17117 (sha256
17118 (base32 "0ks4sqwcwsnb5r65z6zdfbir34f35sfv3agnlmcq1w36fya2y62m"))))
17119 (build-system pyproject-build-system)
17120 (arguments (list #:test-backend #~'nose))
17121 (native-inputs (list python-pynose python-pypng python-setuptools))
17122 (home-page "https://github.com/mnooner256/pyqrcode")
17123 (synopsis "QR code generator")
17124 (description
17125 "Pyqrcode is a QR code generator written purely in Python with SVG, EPS,
17126PNG and terminal output.")
17127 (license license:bsd-3)))
17128
17129(define-public python-seaborn
17130 ;; TODO: Move to (gnu packages statistics).
17131 (package
17132 (name "python-seaborn")
17133 ;; 0.13.2 (2024-01-25), the latest release contains known
17134 ;; incompatibilities, see:
17135 ;; <https://github.com/mwaskom/seaborn/issues/3892>,
17136 ;; <https://github.com/mwaskom/seaborn/issues/3893>.
17137 (properties '((commit . "32088bbc3adc611b7118e57fce6d4ed096a76a29")
17138 (revision . "0")))
17139 (version (git-version "0.13.2"
17140 (assoc-ref properties 'revision)
17141 (assoc-ref properties 'commit)))
17142 (source
17143 (origin
17144 (method git-fetch)
17145 (uri (git-reference
17146 (url "https://github.com/mwaskom/seaborn")
17147 (commit (assoc-ref properties 'commit))))
17148 (file-name (git-file-name name version))
17149 (sha256
17150 (base32 "1d2aig4kpjc8lcvk1sp824ksy1vl17dd36s4zryhjhmz5b0idqx3"))))
17151 (build-system pyproject-build-system)
17152 (arguments
17153 (list
17154 ;; tests: 2359 passed, 16 skipped, 6 xfailed
17155 #:test-flags
17156 #~(list "--numprocesses" (number->string (parallel-job-count)))))
17157 (native-inputs
17158 (list python-flit-core
17159 python-pytest
17160 python-pytest-xdist))
17161 (propagated-inputs
17162 (list python-matplotlib
17163 python-numpy
17164 python-pandas
17165 python-scipy
17166 python-statsmodels))
17167 (home-page "https://seaborn.pydata.org/")
17168 (synopsis "Statistical data visualization")
17169 (description
17170 "Seaborn is a library for making attractive and informative statistical
17171graphics in Python. It is built on top of matplotlib and tightly integrated
17172with the PyData stack, including support for numpy and pandas data structures
17173and statistical routines from scipy and statsmodels.")
17174 (license license:bsd-3)))
17175
17176(define-public python-session-info
17177 (package
17178 (name "python-session-info")
17179 (version "1.0.0")
17180 (source
17181 (origin
17182 (method git-fetch)
17183 (uri (git-reference
17184 (url "https://gitlab.com/joelostblom/session_info")
17185 (commit version)))
17186 (file-name (git-file-name name version))
17187 (sha256
17188 (base32 "0w6y764qci5w9925c75xdr8jizgf8189mzzaz4zk5lw1f182yqy4"))))
17189 (build-system pyproject-build-system)
17190 (arguments (list #:tests? #f)) ; No tests.
17191 (native-inputs (list python-setuptools))
17192 (propagated-inputs (list python-stdlib-list))
17193 (home-page "https://gitlab.com/joelostblom/session_info")
17194 (synopsis "Output version information for modules currently loaded")
17195 (description
17196 "This package outputs version information for modules loaded in the current
17197session, Python, and the OS.")
17198 (license license:bsd-3)))
17199
17200(define-public python-mpmath
17201 (package
17202 (name "python-mpmath")
17203 (version "1.3.0")
17204 (source
17205 (origin
17206 (method git-fetch)
17207 (uri (git-reference
17208 (url "https://github.com/fredrik-johansson/mpmath")
17209 (commit version)))
17210 (file-name (git-file-name name version))
17211 (sha256
17212 (base32 "058ahp0z0gn0z1hwvggrmiir1xag6rzgrfgfg138kjnk5ml9q4gl"))))
17213 (build-system pyproject-build-system)
17214 (native-inputs
17215 (list python-pytest
17216 python-setuptools
17217 python-setuptools-scm))
17218 (home-page "https://mpmath.org")
17219 (synopsis "Arbitrary-precision floating-point arithmetic in python")
17220 (description
17221 "@code{mpmath} can be used as an arbitrary-precision substitute for
17222Python's float/complex types and math/cmath modules, but also does much
17223more advanced mathematics.")
17224 (license license:bsd-3)))
17225
17226(define-public python-bigfloat
17227 (package
17228 (name "python-bigfloat")
17229 (version "0.4.0")
17230 (source
17231 (origin
17232 (method url-fetch)
17233 (uri (pypi-uri "bigfloat" version))
17234 (sha256
17235 (base32 "1f0c1hdr39bbl5rds5r1waa1papjmjiyp0ixs64mkjiahzg6pfaq"))
17236 (snippet '(delete-file "mpfr.c"))))
17237 (build-system pyproject-build-system)
17238 (arguments
17239 (list
17240 #:test-flags
17241 ;; This one fails with AssertionError: 0 != 8796082524191. Not good,
17242 ;; but I don't know what to do about it.
17243 '(list "-k" "not test_hash")
17244 #:phases
17245 '(modify-phases %standard-phases
17246 (add-before 'build 'cythonize
17247 (lambda _ (invoke "cython" "mpfr.pyx"))))))
17248 (inputs (list mpfr))
17249 (native-inputs
17250 (list python-cython python-pytest python-setuptools python-wheel))
17251 (propagated-inputs
17252 (list python-six))
17253 (home-page "https://github.com/mdickinson/bigfloat")
17254 (synopsis "Arbitrary precision floating-point arithmetic for Python")
17255 (description
17256 "This package provides a Python interface to the MPFR library for
17257multiprecision arithmetic.")
17258 (license license:lgpl3+)))
17259
17260(define-public python-plac
17261 (package
17262 (name "python-plac")
17263 (version "1.4.3")
17264 (source
17265 (origin
17266 (method git-fetch)
17267 (uri (git-reference
17268 (url "https://github.com/ialbert/plac")
17269 (commit (string-append "v" version))))
17270 (file-name (git-file-name name version))
17271 (sha256
17272 (base32 "0c9nagff8x7wk137yhs9fm1823c2l6yiyvm6w5gb0i4w5nsh6v0i"))))
17273 (build-system pyproject-build-system)
17274 (arguments
17275 (list
17276 #:phases
17277 #~(modify-phases %standard-phases
17278 (add-after 'unpack 'fix-tkinter
17279 (lambda _
17280 (substitute* "plac_tk.py"
17281 (("from Tkinter import Tk")
17282 "from tkinter import Tk")
17283 (("from ScrolledText import ScrolledText")
17284 "from tkinter.scrolledtext import ScrolledText")))))))
17285 (native-inputs
17286 (list (list python "tk") python-pytest python-setuptools))
17287 (home-page "https://github.com/ialbert/plac")
17288 (synopsis "Command line arguments parser")
17289 (description
17290 "This package can generate command line parameters from function
17291signatures.")
17292 (license license:bsd-3)))
17293
17294(define-public python-q
17295 (package
17296 (name "python-q")
17297 (properties '((commit . "cbad74095e20017f33d3ab75aa8375aa046ee697")
17298 (revision . "0")))
17299 (version (git-version "2.7"
17300 (assoc-ref properties 'revision)
17301 (assoc-ref properties 'commit)))
17302 (source
17303 (origin
17304 (method git-fetch)
17305 (uri (git-reference
17306 (url "https://github.com/zestyping/q")
17307 (commit (assoc-ref properties 'commit))))
17308 (file-name (git-file-name name version))
17309 (sha256
17310 (base32 "17bzi4xma4313waxanz5lly0cf0k6h33qrpy24sra2frh7gp0j0j"))))
17311 (build-system pyproject-build-system)
17312 (arguments
17313 (list
17314 ;; Deduced from the makefile.
17315 #:test-backend #~'custom
17316 #:test-flags #~(list "test/test_basic.py")
17317 #:phases
17318 #~(modify-phases %standard-phases
17319 (add-before 'check 'configure-tests
17320 (lambda* (#:key tests? #:allow-other-keys)
17321 (when tests?
17322 (setenv "TMPDIR" "/tmp")))))))
17323 (native-inputs (list python-setuptools))
17324 (home-page "https://github.com/zestyping/q")
17325 (synopsis "Quick-and-dirty debugging output for tired programmers")
17326 (description
17327 "q is a Python module for \"print\" style of debugging Python code. It
17328provides convenient short API for print out of values, tracebacks, and
17329falling into the Python interpreter.")
17330 (license license:asl2.0)))
17331
17332(define-public python-qnorm
17333 (package
17334 (name "python-qnorm")
17335 (version "0.9.0")
17336 (source
17337 (origin
17338 (method git-fetch)
17339 (uri (git-reference
17340 (url "https://github.com/Maarten-vd-Sande/qnorm")
17341 (commit (string-append "v" version))))
17342 (file-name (git-file-name name version))
17343 (sha256
17344 (base32 "0bgqxmqq8d3il0gnbvlb5sik50f6z8myx7p652lpv4llj9hrl2w8"))))
17345 (build-system pyproject-build-system)
17346 (arguments
17347 (list
17348 #:phases
17349 #~(modify-phases %standard-phases
17350 (add-after 'unpack 'fix-pandas-3
17351 (lambda _
17352 ;; Pandas 3.0 removed the implicit engine fallback that used
17353 ;; to switch to the Python engine whenever sep=None was
17354 ;; passed without an explicit 'engine', which get_delim()
17355 ;; relied on for delimiter auto-detection
17356 ;; Try removing the phase on the next update.
17357 (substitute* "qnorm/util.py"
17358 (("table, sep=None, iterator=True")
17359 "table, sep=None, engine=\"python\", iterator=True")))))))
17360 (propagated-inputs
17361 (list python-numba python-numpy python-pandas
17362 ;; XXX: pandas optional dependencies.
17363 python-tables python-pyarrow python-fastparquet))
17364 (native-inputs (list python-setuptools))
17365 (home-page "https://github.com/Maarten-vd-Sande/qnorm")
17366 (synopsis "Quantile normalization")
17367 (description
17368 "This tool implements quantile normalization. It properly resolves rank
17369ties, which is important when ties happen frequently, such as when working
17370with discrete numbers (integers) in count tables. This implementation should
17371be relatively fast, and can use multiple cores to sort the columns and
17372tie-resolvement is accelerated by numba.")
17373 (license license:expat)))
17374
17375(define-public python-quantlaw
17376 (package
17377 (name "python-quantlaw")
17378 (version "0.0.7")
17379 (source
17380 (origin
17381 (method git-fetch)
17382 (uri (git-reference
17383 (url "https://github.com/Quantlaw/quantlaw")
17384 (commit (string-append "v" version))))
17385 (file-name (git-file-name name version))
17386 (sha256
17387 (base32 "1ps0hcw2x2w9g0gipflka98zf1zsadgs161r6pgp7nh0sq8kpkrh"))))
17388 (build-system pyproject-build-system)
17389 (arguments
17390 (list
17391 #:test-flags
17392 #~(list "-k"
17393 ;; test expects network access
17394 "not test_load_statue_names")))
17395 (native-inputs (list python-pytest python-setuptools))
17396 (propagated-inputs (list python-beautifulsoup4 python-networkx
17397 python-pandas python-regex python-requests))
17398 (home-page "https://quantlaw.readthedocs.io/")
17399 (synopsis "Coding utilities for quantitative legal studies")
17400 (description
17401 "This package provides coding utilities for quantitative legal studies.")
17402 (license license:bsd-3)))
17403
17404(define-public python-singledispatch
17405 (package
17406 (name "python-singledispatch")
17407 (version "4.0.0")
17408 (source
17409 (origin
17410 (method url-fetch)
17411 (uri (pypi-uri "singledispatch" version))
17412 (sha256
17413 (base32
17414 "1z5qbbvvjvh3cwcjv57p7vzhayx0j1ysnvjq0d5py6k5d2ljghzk"))))
17415 (build-system pyproject-build-system)
17416 (native-inputs
17417 (list python-pytest
17418 python-setuptools
17419 python-six ; required for conversion, not at run-time
17420 python-wheel))
17421 (home-page
17422 "https://docs.python.org/3/library/functools.html#functools.singledispatch")
17423 (synopsis "Backport of singledispatch feature from Python 3.4")
17424 (description
17425 "This library brings functools.singledispatch from Python 3.4 to Python
174262.6-3.3.")
17427 (license license:expat)))
17428
17429(define-public python-pyzmq
17430 (package
17431 (name "python-pyzmq")
17432 (version "27.1.0")
17433 (source
17434 (origin
17435 (method git-fetch)
17436 (uri (git-reference
17437 (url "https://github.com/zeromq/pyzmq")
17438 (commit (string-append "v" version))))
17439 (file-name (git-file-name name version))
17440 (sha256
17441 (base32 "1zw0wm48ja90f616nwd33njplcni7wszw6r660l7cnim81yb3rhq"))))
17442 (build-system pyproject-build-system)
17443 (arguments
17444 (list
17445 #:test-flags
17446 '(list "-m" "not flaky")
17447 #:phases
17448 #~(modify-phases %standard-phases
17449 (add-before 'build 'configure
17450 (lambda _
17451 ;; Our zeromq package is built with '--enable-drafts'; also
17452 ;; enable draft support for pyzmq so the draft test passes.
17453 (setenv "ZMQ_DRAFT_API" "1")
17454 ;; Make sure to prevent building bundled libzmq.
17455 (setenv "PYZMQ_NO_BUNDLE" "1")))
17456 (add-before 'check 'delete-source
17457 ;; To prevent loading it and skip build extensions one more times.
17458 (lambda _
17459 (delete-file-recursively "zmq"))))))
17460 (native-inputs
17461 (list cmake-minimal
17462 ;; python-cffi ; for PyPy
17463 python-cython
17464 python-packaging
17465 python-pytest
17466 python-pytest-asyncio
17467 python-scikit-build-core
17468 python-tornado))
17469 (inputs
17470 (list libsodium
17471 zeromq))
17472 (home-page "https://github.com/zeromq/pyzmq")
17473 (synopsis "Python bindings for 0MQ")
17474 (description
17475 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
17476 (license license:bsd-4)))
17477
17478(define-public python-immutabledict
17479 (package
17480 (name "python-immutabledict")
17481 (version "4.2.0")
17482 (source
17483 (origin
17484 (method url-fetch)
17485 (uri (pypi-uri "immutabledict" version))
17486 (sha256
17487 (base32 "0pvwfasa5l78pi32zk55x5ihpdzkdh4f3xwbfmd7ldyjma0zs0z0"))))
17488 (build-system pyproject-build-system)
17489 (native-inputs
17490 (list python-poetry-core python-pytest))
17491 (home-page "https://github.com/corenting/immutabledict")
17492 (synopsis "Immutable wrapper around dictionaries")
17493 (description
17494 "@dfn{immutabledict} is an immutable wrapper around dictionaries.
17495It implements the complete mapping interface and can be used as a drop-in
17496replacement for dictionaries where immutability is desired.")
17497 (license license:expat)))
17498
17499(define-public python-emoji
17500 (package
17501 (name "python-emoji")
17502 (version "2.12.1")
17503 (source
17504 (origin
17505 (method url-fetch)
17506 (uri (pypi-uri "emoji" version))
17507 (sha256
17508 (base32 "1svk94pad8gcvjwd329zmfrw09wakwh6qjvnhf6sa6k92y44i82a"))))
17509 (build-system pyproject-build-system)
17510 (propagated-inputs (list python-typing-extensions))
17511 (native-inputs
17512 (list python-pytest
17513 python-setuptools
17514 python-wheel))
17515 (home-page "https://github.com/carpedm20/emoji/")
17516 (synopsis "Emoji terminal output for Python")
17517 (description
17518 "This package provides Emoji terminal output for Python. The
17519entire set of Emoji codes as defined by the Unicode Consortium is supported in
17520addition to a bunch of aliases.")
17521 (license license:bsd-3)))
17522
17523;; TODO: Remove this package when upgrading python-gh-md-to-html to the
17524;; latest version. The latest gh-md-to-html does not build successfully from
17525;; the PyPI distribution. Let's resolve #72102 while keeping gh-md-to-html at
17526;; version 1.21.2 from failing.
17527;; https://issues.guix.gnu.org/72102
17528;; https://github.com/phseiff/github-flavored-markdown-to-html/issues/73
17529(define-public python-emoji-for-gh-md-to-html
17530 (package
17531 (inherit python-emoji)
17532 (version "1.6.1")
17533 (source
17534 (origin
17535 (method url-fetch)
17536 (uri (pypi-uri "emoji" version))
17537 (sha256
17538 (base32 "0923mpixwq6hdpkgvi4r46alfvf608iq975rb8lnqpq29j71mmjk"))))))
17539
17540(define-public python-sarge
17541 (package
17542 (name "python-sarge")
17543 (version "0.1.7.post1") ;post release only to correct errors in metadata
17544 (source
17545 (origin
17546 (method git-fetch)
17547 (uri (git-reference
17548 (url "https://github.com/vsajip/sarge")
17549 (commit version)))
17550 (file-name (git-file-name name version))
17551 (sha256
17552 (base32 "0kn577lnaznr2hz1w1617l1agd21xs1fq2qv8kg2dy92qinl6gbd"))))
17553 (build-system pyproject-build-system)
17554 (native-inputs (list python-pytest python-setuptools))
17555 (home-page "https://docs.red-dove.com/sarge/")
17556 (synopsis "Subprocess wrapper with command pipeline functionality")
17557 (description "@code{sarge} is a wrapper for subprocess which provides
17558command pipeline functionality.")
17559 (license license:bsd-3)))
17560
17561(define-public python-sentry-sdk
17562 ;; TODO: Move to (gnu packages python-web).
17563 (package
17564 (name "python-sentry-sdk")
17565 (version "2.59.0")
17566 (source
17567 (origin
17568 (method git-fetch)
17569 (uri (git-reference
17570 (url "https://github.com/getsentry/sentry-python")
17571 (commit version)))
17572 (file-name (git-file-name name version))
17573 (sha256
17574 (base32 "1ghpfqfhjkh511q11l5lisahian34b3lzjk2xvkg2ijm6p9ail88"))))
17575 (build-system pyproject-build-system)
17576 (arguments
17577 (list
17578 ;; tests: 2119 passed, 128 skipped, 224 warnings
17579 #:test-flags
17580 #~(list "--durations=10"
17581 "--numprocesses" (number->string (parallel-job-count))
17582 ;; The whole test suite is quite shaky, may fail unpredictably
17583 ;; and depends on many additional inputs to enable all
17584 ;; integration tests.
17585 "-k" (string-join
17586 (list "not test_aggregates"
17587 "test_aggregates_deprecated"
17588 (string-append "test_aggregates_explicitly_disabled"
17589 "_session_tracking_request_mode")
17590 (string-append "test_aggregates_explicitly_disabled"
17591 "_session_tracking_request"
17592 "_mode_deprecated")
17593 "test_auto_session_tracking_with_aggregates[False]"
17594 "test_auto_session_tracking_with_aggregates[True]"
17595 "test_basic"
17596 "test_default_attributes"
17597 "test_default_release"
17598 (string-append "test_ensure_integration_enabled"
17599 "_no_original_function_enabled")
17600 "test_logger_with_all_attributes"
17601 "test_merging"
17602 (string-append "test_session_mode_defaults_to"
17603 "_request_mode_in_wsgi_handler"))
17604 " and not "))
17605 #:phases
17606 #~(modify-phases %standard-phases
17607 (add-after 'unpack 'fix-pytest-config
17608 (lambda _
17609 ;; Tests run in debug mode which generats a lot of noise.
17610 (delete-file "tox.ini")
17611 (substitute* "pyproject.toml"
17612 (("addopts =.*") "")))))))
17613 (native-inputs
17614 (list nss-certs-for-test
17615 python-brotli
17616 python-jsonschema
17617 python-mock
17618 python-pysocks
17619 python-pytest
17620 python-pytest-aiohttp
17621 python-pytest-asyncio
17622 python-pytest-localserver
17623 python-pytest-timeout
17624 python-pytest-xdist
17625 python-responses
17626 python-setuptools
17627 python-socksio))
17628 (propagated-inputs
17629 (list python-certifi
17630 python-urllib3
17631 ;; [optional]
17632 ;; python-unleashclient
17633 python-aiohttp
17634 ;; python-anthropic
17635 ;; python-apache-beam
17636 ;; python-arq
17637 python-asttokens
17638 ;; python-asyncpg
17639 ;; python-blinker
17640 ;; python-bottle
17641 ;; python-celery
17642 ;; python-celery-redbeat
17643 ;; python-chalice
17644 ;; python-clickhouse-driver
17645 ;; python-django
17646 python-executing
17647 ;; python-falcon
17648 ;; python-fastapi
17649 ;; python-flask
17650 ;; python-google-genai
17651 ;; python-grpcio
17652 python-httpcore
17653 ;; python-httpx
17654 ;; python-huey
17655 ;; python-huggingface-hub
17656 ;; python-langchain
17657 ;; python-langgraph
17658 ;; python-launchdarkly-server-sdk
17659 ;; python-litellm
17660 ;; python-litestar
17661 ;; python-loguru
17662 ;; python-markupsafe
17663 ;; python-mcp
17664 ;; python-openai
17665 ;; python-openfeature-sdk
17666 ;; python-opentelemetry-distro
17667 ;; python-protobuf
17668 ;; python-pure-eval
17669 ;; python-pydantic-ai
17670 ;; python-pymongo
17671 ;; python-pyspark
17672 ;; python-quart
17673 ;; python-rq
17674 ;; python-sanic
17675 ;; python-sqlalchemy
17676 ;; python-starlette
17677 ;; python-starlite
17678 ;; python-statsig
17679 ;; python-tiktoken
17680 #;python-tornado))
17681 (home-page "https://github.com/getsentry/sentry-python")
17682 (synopsis "Python SDK for Sentry")
17683 (description "This package provides a Python SDK for the Sentry
17684application monitoring and error tracking software.")
17685 (license license:bsd-2)))
17686
17687;; A bare minimal package, mainly to use in tests and reduce closure
17688;; size. Tests are left out in the main package to slim down native-inputs.
17689(define-public python-sentry-sdk-minimal
17690 (package/inherit python-sentry-sdk
17691 (name "python-sentry-sdk-minimal")
17692 (arguments
17693 (list #:tests? #f))
17694 (native-inputs
17695 (list python-setuptools))
17696 (propagated-inputs
17697 (list python-certifi
17698 python-urllib3))))
17699
17700(define-public python-pep440
17701 (package
17702 (name "python-pep440")
17703 (version "0.1.2")
17704 (source
17705 (origin
17706 (method url-fetch)
17707 (uri (pypi-uri "pep440" version))
17708 (sha256
17709 (base32 "0kfhysbyci4f2sxvv991yvn22kbhncn0jg1arbhzw4rbri375csq"))))
17710 (build-system pyproject-build-system)
17711 (arguments
17712 ;; This checks for "pep440" in the output, but we actually print
17713 ;; ".pep440-real" due to wrapping.
17714 (list #:test-flags '(list "-k" "not test_cli_help")))
17715 (propagated-inputs (list python-check-manifest python-mypy python-pytest
17716 python-pytest-console-scripts python-pytest-cov))
17717 (native-inputs (list python-flit-core))
17718 (home-page "https://pypi.org/project/pep440/")
17719 (synopsis "Utils to check whether versions number match PEP 440")
17720 (description
17721 "This package provides a simple package with utils to check whether
17722versions number match PEP 440.")
17723 (license license:expat)))
17724
17725(define-public python-pyproject-metadata
17726 (package
17727 (name "python-pyproject-metadata")
17728 (version "0.11.0")
17729 (source
17730 (origin
17731 (method git-fetch)
17732 (uri (git-reference
17733 (url "https://github.com/FFY00/python-pyproject-metadata")
17734 (commit version)))
17735 (file-name (git-file-name name version))
17736 (sha256
17737 (base32 "0f838jc5m8f3f4gazzsidhk6x2d359g53ysa0bp0fw11jsv1n2vp"))))
17738 (build-system pyproject-build-system)
17739 (propagated-inputs (list python-packaging))
17740 (native-inputs
17741 (list python-flit-core python-pytest python-tomli))
17742 (home-page "https://github.com/FFY00/python-pyproject-metadata")
17743 (synopsis "Dataclass for PEP 621 metadata")
17744 (description "This project does not implement the parsing of
17745@file{pyproject.toml} containing PEP 621 metadata. Instead, given a Python
17746data structure representing PEP 621 metadata (already parsed), it will
17747validate this input and generate a PEP 643-compliant metadata
17748file (e.g. @file{PKG-INFO}).")
17749 (license license:expat)))
17750
17751(define-public python-meson
17752 (package
17753 (name "python-meson")
17754 (version "0.19.0")
17755 (source
17756 (origin
17757 (method git-fetch)
17758 (uri (git-reference
17759 (url "https://github.com/mesonbuild/meson-python")
17760 (commit version)))
17761 (file-name (git-file-name name version))
17762 (sha256
17763 (base32 "0kbp3iax1w12bkx0kfxsavdw4almksi1yh9866pcsf9zim49k5nz"))))
17764 (build-system pyproject-build-system)
17765 ;; tests: 124 passed, 16 skipped
17766 (native-inputs
17767 (list git-minimal/pinned
17768 patchelf
17769 python-pytest
17770 python-pytest-mock))
17771 (propagated-inputs
17772 (list meson
17773 ninja
17774 python-cython
17775 python-packaging
17776 python-pyproject-metadata))
17777 (home-page "https://github.com/mesonbuild/meson-python")
17778 (synopsis "Meson Python build backend (PEP 517)")
17779 (description "This package provides a PEP 517 build backend that makes
17780use of the Meson build system.")
17781 (license license:expat)))
17782
17783(define-public python-mfusepy
17784 (package
17785 (name "python-mfusepy")
17786 (version "3.1.1")
17787 (source
17788 (origin
17789 (method git-fetch)
17790 (uri (git-reference
17791 (url "https://github.com/mxmlnkn/mfusepy")
17792 (commit (string-append "v" version))))
17793 (file-name (git-file-name name version))
17794 (sha256
17795 (base32 "04vsmmh1zpy8cxxrj9dqiqajisn95skg3wqr8dgqck25780v3c4k"))))
17796 (build-system pyproject-build-system)
17797 (native-inputs (list python-setuptools))
17798 (inputs (list fuse))
17799 (arguments
17800 (list
17801 #:tests? #f ; Tests require fuse kernel module
17802 #:phases
17803 #~(modify-phases %standard-phases
17804 (add-after 'unpack 'embed-libfuse
17805 (lambda* (#:key inputs #:allow-other-keys)
17806 (substitute* "mfusepy.py"
17807 (("^(_libfuse_path = )os\\.environ\\.get.+$" _ pre)
17808 (format #f "~a\"~a\"\n"
17809 pre (search-input-file inputs "/lib/libfuse3.so")))))))))
17810 (home-page "https://github.com/mxmlnkn/mfusepy")
17811 (synopsis "Ctypes bindings for the high-level API in libfuse 2 and 3")
17812 (description "Ctypes bindings for the high-level API in libfuse 2 and 3.")
17813 (license license:isc)))
17814
17815(define-public python-mccabe
17816 ;; Last public release (0.7.0) is from 2022-01-24.
17817 (let ((commit "292b5c71c3fe5496771b46ac9d86361c9b760d17")
17818 (revision "0"))
17819 (package
17820 (name "python-mccabe")
17821 (version (git-version "0.7.0" revision commit))
17822 (source
17823 (origin
17824 (method git-fetch)
17825 (uri (git-reference
17826 (url "https://github.com/PyCQA/mccabe")
17827 (commit commit)))
17828 (file-name (git-file-name name version))
17829 (sha256
17830 (base32 "12aa5qjzf0anx1bdfcgg4gvn9kkm1cc5qi2lzrh23c5gxyfyxw17"))))
17831 (build-system pyproject-build-system)
17832 (arguments
17833 (list
17834 #:test-flags
17835 ;; AssertionError: 0 != 1
17836 #~(list (string-append "--deselect=test_mccabe.py"
17837 "::RegressionTests::test_get_module_complexity"))))
17838 (native-inputs
17839 (list python-pytest
17840 python-setuptools))
17841 (home-page "https://github.com/PyCQA/mccabe")
17842 (synopsis "McCabe checker, plugin for flake8")
17843 (description
17844 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
17845complexity of Python source code.")
17846 (license license:expat))))
17847
17848(define-public python-autoflake8
17849 (package
17850 (name "python-autoflake8")
17851 (version "0.4.0")
17852 (source (origin
17853 (method git-fetch) ;for tests
17854 (uri (git-reference
17855 (url "https://github.com/fsouza/autoflake8")
17856 (commit (string-append "v" version))))
17857 (file-name (git-file-name name version))
17858 (sha256
17859 (base32
17860 "0jx7bkslbhr24yvq60pl39faz2r6g93f1zm1gygswl0rzr5zmgnh"))))
17861 (build-system pyproject-build-system)
17862 (native-inputs
17863 (list python-aiofiles
17864 python-poetry-core
17865 python-pytest
17866 python-pytest-xdist))
17867 (propagated-inputs (list python-pyflakes))
17868 (home-page "https://github.com/fsouza/autoflake8")
17869 (synopsis "Automatically fix issues reported by flake8")
17870 (description "Tool to automatically fix some issues reported by
17871@command{flake8}.")
17872 (license license:expat)))
17873
17874(define-public python-flake8
17875 (package
17876 (name "python-flake8")
17877 (version "7.3.0")
17878 (source
17879 (origin
17880 (method git-fetch)
17881 (uri (git-reference
17882 (url "https://github.com/pycqa/flake8")
17883 (commit version)))
17884 (file-name (git-file-name name version))
17885 (sha256
17886 (base32 "0dva22djb3pdrizghvs5r1k7vr1j3khs0k9z8y6dz4ga50dli4bm"))))
17887 (build-system pyproject-build-system)
17888 (native-inputs
17889 (list python-pytest
17890 python-setuptools))
17891 (propagated-inputs
17892 (list python-mccabe
17893 python-pycodestyle
17894 python-pyflakes))
17895 (home-page "https://flake8.pycqa.org/en/latest/")
17896 (synopsis "The modular source code checker: pep8, pyflakes and co")
17897 (description
17898 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
17899 (license license:expat)))
17900
17901(define-public python-flake8-blind-except
17902 (package
17903 (name "python-flake8-blind-except")
17904 (version "0.2.1")
17905 (source
17906 (origin
17907 (method git-fetch)
17908 (uri (git-reference
17909 (url "https://github.com/elijahandrews/flake8-blind-except")
17910 (commit (string-append "v" version))))
17911 (file-name (git-file-name name version))
17912 (sha256
17913 (base32 "09zrfrm0896miysrpb7fhxzqjn6pm8y0b638nncswm2wvw9by72q"))))
17914 (build-system pyproject-build-system)
17915 (arguments (list #:tests? #f)) ;no tests
17916 (native-inputs (list python-setuptools))
17917 (propagated-inputs (list python-pycodestyle))
17918 (home-page "https://github.com/elijahandrews/flake8-blind-except")
17919 (synopsis "Check for blind @code{except:} statements")
17920 (description
17921 "This package provides a flake8 extension that checks for blind
17922@code{except:} statements.")
17923 (license license:expat)))
17924
17925(define-public python-flake8-bugbear
17926 (package
17927 (name "python-flake8-bugbear")
17928 (version "24.10.31")
17929 (source
17930 (origin
17931 (method url-fetch)
17932 (uri (pypi-uri "flake8_bugbear" version))
17933 (sha256
17934 (base32 "1nrrwhfmk49riflmng26qqjzvfang5lij14ripzqwzxjf8f56ns3"))))
17935 (build-system pyproject-build-system)
17936 (native-inputs
17937 (list python-hypothesmith
17938 python-pytest
17939 python-setuptools
17940 python-wheel))
17941 (propagated-inputs
17942 (list python-attrs
17943 python-flake8))
17944 (home-page "https://github.com/PyCQA/flake8-bugbear")
17945 (synopsis "Flake8 plugin for finding likely bugs and design problems in your program")
17946 (description
17947 "This package contains a plugin for Flake8 finding likely bugs and design
17948problems in your program. It contains warnings that don't belong in pyflakes
17949and pycodestyle.")
17950 (license license:expat)))
17951
17952(define-public python-flake8-continuation
17953 (package
17954 (name "python-flake8-continuation")
17955 (version "1.0.5")
17956 (source
17957 (origin
17958 (method git-fetch)
17959 (uri (git-reference
17960 (url "https://github.com/planetlabs/flake8-continuation")
17961 (commit version)))
17962 (file-name (git-file-name name version))
17963 (sha256
17964 (base32 "04fsd361x03mgyydsdm9vr28ikr2mdip13c805i2wzxc45qsc9x7"))))
17965 (build-system pyproject-build-system)
17966 (arguments
17967 (list
17968 #:phases
17969 #~(modify-phases %standard-phases
17970 (add-after 'unpack 'remove-python-six-dependency
17971 (lambda _
17972 (substitute* "flake8_continuation.py"
17973 (("import six|six\\.moves\\.")
17974 ""))
17975 (substitute* "setup.py"
17976 ((", \"six\"")
17977 "")))))))
17978 (native-inputs (list python-pytest python-setuptools))
17979 (propagated-inputs (list python-flake8 python-pycodestyle))
17980 (home-page "https://github.com/planetlabs/flake8-continuation")
17981 (synopsis "Flake8 Line Continuation Plugin")
17982 (description
17983 "A Flake8 plugin that checks for the line continuation style to be in the
17984preferred method according to PEP-8, specifically:
17985@quotation
17986The preferred way of wrapping long lines is by using Python's implied line
17987continuation inside parentheses, brackets and braces. Long lines can be
17988broken over multiple lines by wrapping expressions in parentheses. These
17989should be used in preference to using a backslash for line continuation.
17990@end quotation")
17991 (license license:asl2.0)))
17992
17993(define-public python-flake8-debugger
17994 (package
17995 (name "python-flake8-debugger")
17996 (version "4.1.2")
17997 (source
17998 (origin
17999 (method git-fetch)
18000 (uri (git-reference
18001 (url "https://github.com/jbkahn/flake8-debugger")
18002 (commit version)))
18003 (file-name (git-file-name name version))
18004 (sha256
18005 (base32 "1nmqs238a02ypld32lwbagbk1jppm3pddrjdrrngc1xpbzb9nyl0"))))
18006 (build-system pyproject-build-system)
18007 (native-inputs (list python-poetry-core python-pytest python-setuptools))
18008 (propagated-inputs (list python-flake8 python-pycodestyle))
18009 (home-page "https://github.com/jbkahn/flake8-debugger")
18010 (synopsis "@code{ipdb} and @code{pdb} statement checker plugin for flake8")
18011 (description
18012 "This package provides a Flake8 plugin that checks for @code{ipdb} and
18013@code{pdb} imports and set traces, as well as @code{from
18014IPython.terminal.embed}, @code{import InteractiveShellEmbed} and
18015@code{InteractiveShellEmbed()()}.")
18016 (license license:expat)))
18017
18018(define-public python-flake8-implicit-str-concat
18019 (package
18020 (name "python-flake8-implicit-str-concat")
18021 (version "0.5.0")
18022 (source
18023 (origin
18024 (method url-fetch)
18025 (uri (pypi-uri "flake8_implicit_str_concat" version))
18026 (sha256
18027 (base32 "1s59w4x053j4794n6h9c7hafa8jjjymx6aar5q23pjw4vrdis7hh"))))
18028 (build-system pyproject-build-system)
18029 (arguments
18030 (list
18031 #:tests? #f)) ; no tests in PiPY or git checkout
18032 (native-inputs
18033 (list python-hatchling))
18034 (propagated-inputs
18035 (list python-attrs
18036 python-more-itertools))
18037 (home-page "https://github.com/keisheiled/flake8-implicit-str-concat")
18038 (synopsis "Flake8 plugin to encourage correct string literal concatenation")
18039 (description
18040 "This is a plugin for the Python code checking tool Flake8 to encourage
18041correct string literal concatenation.
18042
18043It looks for style problems like implicitly concatenated string literals on
18044the same line (which can be introduced by the code formatting tool Black), or
18045unnecessary plus operators for explicit string literal concatenation.")
18046 (license license:expat)))
18047
18048(define-public python-flake8-print
18049 (package
18050 (name "python-flake8-print")
18051 (version "5.0.0")
18052 (source
18053 (origin
18054 (method url-fetch)
18055 (uri (pypi-uri "flake8-print" version))
18056 (sha256
18057 (base32 "1ydx92xck090ajp8vk2378fm0f4wj3mikhinjs3w1hcw70m5m4bn"))))
18058 (build-system pyproject-build-system)
18059 (arguments
18060 (list
18061 #:tests? #f)) ; no tests in PiPY or git checkout
18062 (native-inputs
18063 (list python-poetry-core))
18064 (propagated-inputs
18065 (list python-flake8
18066 python-pycodestyle))
18067 (home-page "https://github.com/jbkahn/flake8-print")
18068 (synopsis "Print statement checker plugin for Flake8")
18069 (description
18070 "This plugin for Flake8 checks for @code{print} statements in Python
18071files.")
18072 (license license:expat)))
18073
18074(define-public python-flake8-pyi
18075 (package
18076 (name "python-flake8-pyi")
18077 (version "26.5.0")
18078 (source
18079 (origin
18080 (method git-fetch)
18081 (uri (git-reference
18082 (url "https://github.com/ambv/flake8-pyi")
18083 (commit version)))
18084 (file-name (git-file-name name version))
18085 (sha256
18086 (base32 "006shfi8a99ysfac5s7fizx8f5w9hz3pl551kp9q1883rh1rfd5m"))))
18087 (build-system pyproject-build-system)
18088 (arguments
18089 (list
18090 #:phases
18091 #~(modify-phases %standard-phases
18092 (add-after 'unpack 'fix-pytest-config
18093 (lambda _
18094 ;; Prevent full threads utilization.
18095 (substitute* "pyproject.toml"
18096 (("-nauto") "")))))))
18097 (native-inputs
18098 (list python-hatch-vcs
18099 python-hatchling
18100 python-pytest))
18101 (propagated-inputs
18102 (list python-attrs
18103 python-flake8
18104 python-pyflakes))
18105 (home-page "https://github.com/ambv/flake8-pyi")
18106 (synopsis "Flake8 plugin for type hinting stub files")
18107 (description
18108 "This package contains a plugin that provides specializations for type
18109hinting stub files, especially interesting for linting typeshed. It adds the
18110@file{.pyi} extension to the default value of the @code{--filename}
18111command-line argument to Flake8. This means stubs are linted by default with
18112this plugin enabled, without needing to explicitly list every file. It
18113modifies PyFlakes runs for @file{.pyi} files to defer checking type annotation
18114expressions after the entire file has been read. This enables support for
18115first-class forward references that stub files use.")
18116 (license license:expat)))
18117
18118(define-public python-flake8-quotes
18119 (package
18120 (name "python-flake8-quotes")
18121 (version "3.4.0")
18122 (source
18123 (origin
18124 (method url-fetch)
18125 (uri (pypi-uri "flake8-quotes" version))
18126 (sha256
18127 (base32 "0v1762x0819xqha7w4l4hh66bpi82imgiib8pvmd78hhnwplkn5a"))))
18128 (build-system pyproject-build-system)
18129 (native-inputs
18130 (list python-pytest
18131 python-setuptools
18132 python-wheel))
18133 (propagated-inputs
18134 (list python-flake8))
18135 (home-page "https://github.com/zheller/flake8-quotes/")
18136 (synopsis "Flake8 lint for quotes")
18137 (description "This package provides a Flake8 lint for quotes.")
18138 (license license:expat)))
18139
18140(define-public python-flake8-todo
18141 (package
18142 (name "python-flake8-todo")
18143 (version "0.7")
18144 (source
18145 (origin
18146 (method git-fetch)
18147 (uri (git-reference
18148 (url "https://github.com/schlamar/flake8-todo")
18149 (commit (string-append "v" version))))
18150 (file-name (git-file-name name version))
18151 (sha256
18152 (base32 "0bx4bs9l6cvqk5v21my4dn0zmkrr0sajsw6f3x1dj4fpg3dp5d8s"))))
18153 (build-system pyproject-build-system)
18154 (arguments (list #:tests? #f)) ; No tests.
18155 (native-inputs (list python-setuptools))
18156 (propagated-inputs (list python-pycodestyle))
18157 (home-page "https://github.com/schlamar/flake8-todo")
18158 (synopsis "TODO notes checker, plugin for flake8")
18159 (description
18160 "This package provides the @code{flake8-todo} Python module, a
18161TODO notes checker plugin for flake8.")
18162 (license license:expat)))
18163
18164(define-public python-flake8-isort
18165 (package
18166 (name "python-flake8-isort")
18167 (version "7.0.0")
18168 (source
18169 (origin
18170 (method git-fetch)
18171 (uri (git-reference
18172 (url "https://github.com/gforcada/flake8-isort")
18173 (commit version)))
18174 (file-name (git-file-name name version))
18175 (sha256
18176 (base32 "0d7j2ws59bm9143m69ah6h865i2pn97p4gjpwx6jrwi9sy26kj5z"))))
18177 (build-system pyproject-build-system)
18178 (arguments (list #:test-backend #~'custom
18179 #:test-flags #~(list "run_tests.py")))
18180 (native-inputs (list python-hatchling python-pytest))
18181 (propagated-inputs (list python-flake8 python-isort))
18182 (home-page "https://github.com/gforcada/flake8-isort")
18183 (synopsis "Flake8 plugin integrating isort")
18184 (description
18185 "This package provides a flake8 plugin that integrates isort,
18186extending flake8 so that it can warn about badly sorted Python import
18187directives.")
18188 (license license:gpl2+)))
18189
18190(define-public python-autoflake
18191 (package
18192 (name "python-autoflake")
18193 (version "2.3.1")
18194 (source
18195 (origin
18196 (method url-fetch)
18197 (uri (pypi-uri "autoflake" version))
18198 (sha256
18199 (base32 "17lhrmz6h7pz2nald90p8gn3hhzbqwmd78819yf4b1habgf7b2y9"))))
18200 (build-system pyproject-build-system)
18201 (arguments
18202 (list
18203 #:phases
18204 #~(modify-phases %standard-phases
18205 (replace 'check
18206 (lambda _
18207 (invoke "python" "test_autoflake.py"))))))
18208 (native-inputs
18209 (list python-hatchling))
18210 (propagated-inputs
18211 (list python-pyflakes))
18212 (home-page "https://github.com/myint/autoflake")
18213 (synopsis "Removes unused imports and unused variables")
18214 (description
18215 "@code{autoflake} removes unused imports and unused variables from Python
18216code as reported by @code{pyflakes}.
18217
18218By default, it only removes unused imports for modules that are part of the
18219standard library. Removal of unused variables is also disabled by default.
18220It also removes useless @code{pass} statements.")
18221 (license license:expat)))
18222
18223(define-public python-mistune
18224 (package
18225 (name "python-mistune")
18226 (version "3.2.1")
18227 (source
18228 (origin
18229 (method git-fetch)
18230 (uri (git-reference
18231 (url "https://github.com/lepture/mistune")
18232 (commit (string-append "v" version))))
18233 (file-name (git-file-name name version))
18234 (sha256
18235 (base32 "1zcfky6rr860mdbjxs1h0lhla39g8s3048xdnb24y0lnyj3h80gh"))))
18236 (build-system pyproject-build-system)
18237 (native-inputs
18238 (list python-pytest
18239 python-setuptools))
18240 (home-page "https://github.com/lepture/mistune")
18241 (synopsis "Markdown parser in pure Python")
18242 (description
18243 "This package provides a fast markdown parser in pure Python.")
18244 (license license:bsd-3)))
18245
18246(define-public python-markdown
18247 (package
18248 (name "python-markdown")
18249 (version "3.10.2")
18250 (source
18251 (origin
18252 (method git-fetch)
18253 (uri (git-reference
18254 (url "https://github.com/Python-Markdown/markdown")
18255 (commit version)))
18256 (file-name (git-file-name name version))
18257 (sha256
18258 (base32 "1i7hn91zhg5blykvsdzr1hq00p8xqysdh1l73iypx9pd2pdvk7w9"))))
18259 (build-system pyproject-build-system)
18260 (native-inputs
18261 (list python-pyyaml
18262 python-setuptools))
18263 (home-page "https://python-markdown.github.io/")
18264 (synopsis "Python implementation of Markdown")
18265 (description
18266 "This package provides a Python implementation of John Gruber's
18267Markdown. The library features international input, various Markdown
18268extensions, and several HTML output formats. A command line wrapper
18269markdown_py is also provided to convert Markdown files to HTML.")
18270 (license license:bsd-3)))
18271
18272(define-public python-markdown2
18273 (package
18274 (name "python-markdown2")
18275 (version "2.5.3")
18276 (source
18277 (origin
18278 (method git-fetch) ; no tests data in PyPi package
18279 (uri (git-reference
18280 (url "https://github.com/trentm/python-markdown2")
18281 (commit version)))
18282 (file-name (git-file-name name version))
18283 (sha256
18284 (base32 "136lwfhrbgdy3ci7qrkvcm5qx5c4xv4zwbnn57yfqg37pymflima"))))
18285 (build-system pyproject-build-system)
18286 (arguments
18287 (list
18288 #:test-backend #~'custom
18289 #:test-flags #~(list "test.py" "--" "-knownfailure")
18290 #:phases
18291 #~(modify-phases %standard-phases
18292 (add-before 'check 'pre-check
18293 (lambda _
18294 (chdir "test"))))))
18295 (native-inputs
18296 (list ;; python-pygments ;optional, tests fail when added
18297 ;; python-wavedrom ;optional, not packaged
18298 ;; python-latex2mathml ;optional, not packaged
18299 python-setuptools))
18300 (home-page "https://github.com/trentm/python-markdown2")
18301 (synopsis "Fast and complete Python implementation of Markdown")
18302 (description
18303 "This package provides a fast and complete Python implementation of
18304Markdown. It was written to closely match the behaviour of the original
18305Perl-implemented Markdown.pl. It also comes with a number of
18306extensions (called @code{extras}) for things like syntax coloring, tables,
18307header-ids.")
18308 (license license:expat)))
18309
18310(define-public python-mdx-include
18311 (package
18312 (name "python-mdx-include")
18313 (version "1.4.2")
18314 (source
18315 (origin
18316 (method git-fetch)
18317 (uri (git-reference
18318 (url "https://github.com/neurobin/mdx_include")
18319 (commit (string-append "v" version))))
18320 (file-name (git-file-name name version))
18321 (sha256
18322 (base32 "01fk4y7hkl8a06qfd4a258l8rgcx7z7j4dzb80gk9md48l6p516a"))))
18323 (build-system pyproject-build-system)
18324 (arguments
18325 (list
18326 #:test-backend #~'unittest
18327 #:phases
18328 (let* ((django-hello-url "\
18329https://gist.github.com/drgarcia1986/3cce1d134c3c3eeb01bd/raw/\
1833073951574d6b62a18b4c342235006ff89d299f879/django_hello.py")
18331 (django-hello
18332 (origin
18333 (method url-fetch)
18334 (uri django-hello-url)
18335 (sha256 (base32 "\
1833613bqmfqwypnv3apxs9akpk3fqsk0yzys5slxfllj285npnka550r")))))
18337 #~(modify-phases %standard-phases
18338 (add-before 'check 'disable-test-requiring-network
18339 (lambda _
18340 (substitute* "mdx_include/test/test.py"
18341 (("(\\s+def )test_(config|non_existent)\\(" _ pre post)
18342 (string-append pre "__off__test_" post "("))
18343 (((string-join (string-split #$django-hello-url #\.) "\\."))
18344 #+django-hello))))))))
18345 (native-inputs (list python-setuptools))
18346 (propagated-inputs (list python-cyclic python-markdown python-rcslice))
18347 (home-page "https://github.com/neurobin/mdx_include")
18348 (synopsis "Python Markdown extension to include local or remote files")
18349 (description "Include extension for Python Markdown. It lets you include
18350local or remote (downloadable) files into your markdown at arbitrary
18351positions.
18352
18353This project is motivated by markdown-include and provides the same
18354functionalities with some extras.")
18355 (license license:bsd-3)))
18356
18357(define-public python-ptyprocess
18358 (package
18359 (name "python-ptyprocess")
18360 (version "0.7.0")
18361 (source
18362 (origin
18363 (method url-fetch)
18364 (uri (pypi-uri "ptyprocess" version))
18365 (sha256
18366 (base32
18367 "081j893x6c9qrfszp8swfqlpvk8agh1jc32y9140pvnf90xhlpaw"))))
18368 (build-system pyproject-build-system)
18369 (native-inputs
18370 (list python-flit-core
18371 python-pytest))
18372 (home-page "https://github.com/pexpect/ptyprocess")
18373 (synopsis "Run a subprocess in a pseudo terminal")
18374 (description
18375 "This package provides a Python library used to launch a subprocess in a
18376pseudo terminal (pty), and interact with both the process and its pty.")
18377 (license license:isc)))
18378
18379(define-public python-configshell-fb
18380 (package
18381 (name "python-configshell-fb")
18382 (version "1.1.30")
18383 (source
18384 (origin
18385 (method url-fetch)
18386 (uri (pypi-uri "configshell-fb" version))
18387 ;; XXX: Snippet below is required because on v1.1.30 the source code
18388 ;; has configshell_fb as softlink to configshell and guix
18389 ;; pyproject-build-system doesn't work with symlinks very well.
18390 ;;
18391 ;; This package is only used in spdk for now and it's crucial to keep
18392 ;; it locked on version and keep the snipped for spdk to build
18393 ;; successfully.
18394 (snippet #~(begin
18395 (use-modules (guix build utils))
18396 (delete-file "setup.py")
18397 (delete-file-recursively "configshell_fb")
18398 (rename-file "configshell" "configshell_fb")))
18399 (sha256
18400 (base32 "1zkhf62qsfcbxwzlc62r6qx37wwyscppc469rlm45zy9lzmbgxj1"))))
18401 (build-system pyproject-build-system)
18402 (arguments
18403 (list #:tests? #f)) ;; this package has no tests
18404 (native-inputs
18405 (list python-setuptools
18406 python-six
18407 python-wheel))
18408 (propagated-inputs
18409 (list python-pyparsing))
18410 (home-page "https://github.com/open-iscsi/configshell-fb")
18411 (synopsis "Framework to implement simple but nice CLIs")
18412 (description
18413 "This package provides a framework to implement simple but nice CLIs.")
18414 (license license:asl2.0)))
18415
18416(define-public python-configupdater
18417 (package
18418 (name "python-configupdater")
18419 (version "3.2")
18420 (source
18421 (origin
18422 (method git-fetch)
18423 (uri (git-reference
18424 (url "https://github.com/pyscaffold/configupdater")
18425 (commit (string-append "v" version))))
18426 (file-name (git-file-name name version))
18427 (sha256
18428 (base32 "0s2znph12lrs2wcnwz114153dkr1ccn2g7z8xcc83ypy15sbmz6r"))))
18429 (build-system pyproject-build-system)
18430 (native-inputs
18431 (list python-pytest python-setuptools python-setuptools-scm))
18432 (home-page "https://github.com/pyscaffold/configupdater")
18433 (synopsis "Parser like ConfigParser but for updating configuration files")
18434 (description
18435 "ConfigUpdater is a Python library for updating INI configuration files
18436while preserving the original file's formatting, structure, and comments.
18437Unlike Python's standard ConfigParser, ConfigUpdater maintains minimal,
18438targeted changes--keeping comments, section ordering, key-value pair
18439ordering, and original casing intact.")
18440 (license license:expat)))
18441
18442(define-public python-crccheck
18443 (package
18444 (name "python-crccheck")
18445 (version "1.3.0")
18446 (source
18447 (origin
18448 (method git-fetch) ; no tests in PyPI
18449 (uri (git-reference
18450 (url "https://github.com/MartinScharrer/crccheck")
18451 (commit (string-append "v" version))))
18452 (file-name (git-file-name name version))
18453 (sha256
18454 (base32 "1sagpmsh95si77nhqmxx6mbal2jbxpl4a3mqjfnz19mf2pfyvs4y"))))
18455 (build-system pyproject-build-system)
18456 (native-inputs (list python-pytest python-setuptools python-wheel))
18457 (home-page "https://github.com/MartinScharrer/crccheck")
18458 (synopsis "Calculation library for CRCs and checksums")
18459 (description "@code{crccheck} is a calculation library for CRCs and
18460checksums. It implement more than a hundred checksum routines.")
18461 (license license:gpl3+)))
18462
18463(define-public python-crashtest
18464 (package
18465 (name "python-crashtest")
18466 (version "0.4.1")
18467 (source
18468 (origin
18469 (method git-fetch)
18470 (uri (git-reference
18471 (url "https://github.com/sdispater/crashtest")
18472 (commit version)))
18473 (file-name (git-file-name name version))
18474 (sha256
18475 (base32 "180xrr1iw1614z7yrrnsigy0211q9985f9pbzjsj6rvrs6w7fm2d"))))
18476 (build-system pyproject-build-system)
18477 (native-inputs (list python-poetry-core python-pytest))
18478 (home-page "https://github.com/sdispater/crashtest")
18479 (synopsis "Manage Python errors with ease")
18480 (description
18481 "Python library that makes exceptions handling and inspection easier.")
18482 (license license:expat)))
18483
18484(define-public python-pysendfile
18485 (package
18486 (name "python-pysendfile")
18487 (version "2.0.1")
18488 (source
18489 (origin
18490 (method git-fetch)
18491 (uri (git-reference
18492 (url "https://github.com/giampaolo/pysendfile")
18493 (commit (string-append "release-" version))))
18494 (file-name (git-file-name name version))
18495 (sha256
18496 (base32 "1d2pcqad57l5ilc2icabybzzjgsg46djklhvyf17fgbkb0x3yc7c"))))
18497 (build-system pyproject-build-system)
18498 (arguments
18499 (list
18500 #:phases
18501 #~(modify-phases %standard-phases
18502 (replace 'check
18503 (lambda* (#:key tests? #:allow-other-keys)
18504 (when tests?
18505 (setenv "HOME" "/tmp")
18506 (invoke "make" "test")))))))
18507 (native-inputs (list python-pytest python-setuptools))
18508 (propagated-inputs (list python-pyasynchat))
18509 (home-page "https://github.com/giampaolo/pysendfile")
18510 (synopsis "Python interface to sendfile(2)")
18511 (description "The @code{pysendfile} Python library provides an interface to
18512the @code{sendfile(2)} system call.")
18513 (license license:expat)))
18514
18515(define-public python-pyftpdlib
18516 (package
18517 (name "python-pyftpdlib")
18518 (version "1.5.10")
18519 (source
18520 (origin
18521 (method url-fetch)
18522 (uri (pypi-uri "pyftpdlib" version))
18523 (sha256
18524 (base32 "0a3i1253d3qp9rqb64wdq908a05bn7yizqys92vjzfmw2l9fpgcd"))))
18525 (build-system pyproject-build-system)
18526 ;; Using Pytest instead of the Makefile causes the command line tests to
18527 ;; fail on unknown Pytest arguments.
18528 (arguments
18529 (list
18530 #:test-flags
18531 #~(list
18532 "-k" "not TestCommandLineParser"
18533 ;; These contains flaky tests.
18534 "--deselect=pyftpdlib/test/test_functional.py"
18535 "--deselect=pyftpdlib/test/test_functional_ssl.py")))
18536 (native-inputs
18537 (list python-psutil
18538 python-pytest
18539 python-setuptools
18540 python-wheel))
18541 (propagated-inputs
18542 (list python-pyopenssl
18543 python-pysendfile))
18544 (home-page "https://github.com/giampaolo/pyftpdlib/")
18545 (synopsis "Asynchronous and scalable Python FTP server library")
18546 (description "The Python FTP server library provides a high-level
18547interface to write efficient, scalable and asynchronous FTP servers with
18548Python. It is the most complete @url{http://www.faqs.org/rfcs/rfc959.html,
18549RFC-959} FTP server implementation available for Python, and has the following
18550traits:
18551@itemize
18552@item
18553It is lightweight, fast and scalable.
18554@item
18555It uses the @code{sendfile(2)} system call for uploads.
18556@item
18557It uses @code{epoll}, @code{kqueue} and @code{select} to handle concurrency
18558asynchronously.
18559@item
18560It supports FTPS (@url{http://tools.ietf.org/html/rfc4217, RFC-4217}),
18561IPv6 (RFC-2428), Unicode file names (@url{http://tools.ietf.org/html/rfc2640,
18562RFC-2640}) and MLSD/MLST commands (RFC-3659).
18563@item
18564It has a flexible system of @samp{authorizers} able to manage both
18565@samp{virtual} and @samp{real} users.
18566@end itemize")
18567 (license license:expat)))
18568
18569(define-public python-fonttools
18570 (package
18571 (name "python-fonttools")
18572 (version "4.59.2")
18573 (source
18574 (origin
18575 (method url-fetch)
18576 (uri (pypi-uri "fonttools" version ".tar.gz"))
18577 (sha256
18578 (base32 "08pgq9nrj3r81gzb6gbf5mcak0xyqrj26cw0rc5za4v1n14hfb77"))))
18579 (build-system pyproject-build-system)
18580 (arguments
18581 (list
18582 #:tests? (not (%current-target-system))
18583 ;; tests: 4529 passed, 59 skipped, 8 deselected, 2 xfailed, 28 warnings,
18584 ;; 3 subtests passed
18585 #:test-flags
18586 #~(list "--deselect=tfmLib.py::fontTools.tfmLib"
18587 #$@(map (lambda (ls) (string-append "--deselect=Tests/"
18588 (string-join ls "::")))
18589 ;; XXX: Some test data is not included in PyPI archive,
18590 ;; remove when switched to git-fetch.
18591 '(("cffLib/cffLib_test.py" "CffLibTest"
18592 "test_reading_supplement_encoding")
18593 ("tfmLib/tfmLib_test.py"
18594 "test_read_boundary_char")
18595 ("tfmLib/tfmLib_test.py"
18596 "test_read_fontdimens_vanilla")
18597 ("tfmLib/tfmLib_test.py"
18598 "test_read_fontdimens_mathex")
18599 ("tfmLib/tfmLib_test.py"
18600 "test_read_fontdimens_mathsy")
18601 ("voltLib/volttofea_test.py" "ToFeaTest"
18602 "test_cli_vtp")
18603 ("voltLib/volttofea_test.py" "ToFeaTest"
18604 "test_group_order"))))))
18605 (native-inputs
18606 (list python-pytest
18607 python-setuptools))
18608 ;; All of them are listed as extras_require.
18609 (propagated-inputs
18610 (list python-brotli
18611 python-lxml
18612 python-unicodedata2
18613 python-zopfli))
18614 (home-page "https://github.com/fonttools/fonttools")
18615 (synopsis "Tools to manipulate font files")
18616 (description
18617 "FontTools/TTX is a library to manipulate font files from Python. It
18618supports reading and writing of TrueType/OpenType fonts, reading and writing
18619of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
18620also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
18621from an XML-based format.")
18622 (license license:expat)))
18623
18624;;; Tests are left out in the main package to avoid cycles.
18625;; XXX: When updating, solve comment in python-cu2qu.
18626(define-public python-fonttools-minimal
18627 (hidden-package
18628 (package
18629 (inherit python-fonttools)
18630 (name "python-fonttools-minimal")
18631 (arguments '(#:tests? #f))
18632 (native-inputs
18633 (list python-setuptools))
18634 (propagated-inputs '()))))
18635
18636(define-public python-ly
18637 (package
18638 (name "python-ly")
18639 (version "0.9.9")
18640 (source
18641 (origin
18642 (method git-fetch)
18643 (uri (git-reference
18644 (url "https://github.com/frescobaldi/python-ly")
18645 (commit (string-append "v" version))))
18646 (file-name (git-file-name name version))
18647 (sha256
18648 (base32 "1q9jdvc4mrv3xkp7jm4g4kisq1k1d05b5d3wfvhpd85a9yqjrhq8"))))
18649 (build-system pyproject-build-system)
18650 (arguments
18651 (list
18652 #:phases
18653 (let ((namespace-url "http://www.w3.org/2001/03/xml.xsd")
18654 (xlink-url "http://www.w3.org/XML/2008/06/xlink.xsd"))
18655 #~(modify-phases %standard-phases
18656 (add-after 'unpack 'inject-data
18657 (lambda _
18658 (substitute* "tests/musicxml.xsd"
18659 (((string-join (string-split #$namespace-url #\.) "\\."))
18660 #$(origin
18661 (method url-fetch)
18662 (uri namespace-url)
18663 (sha256 (base32 "\
186641j6h0sp0pcqi5dv9m6sxwr8brrb59fyx091ld1x6wlh28js4vn8f"))))
18665 (((string-join (string-split #$xlink-url #\.) "\\."))
18666 #$(origin
18667 (method url-fetch)
18668 (uri xlink-url)
18669 (sha256 (base32 "\
186700jpjha5iiq4rf4hx3qfnmyya9cf17ysxz0rbhsffn5nwgxnghgf8")))))))))))
18671 (native-inputs (list python-hatchling python-lxml python-pytest))
18672 (synopsis "Tool and library for manipulating LilyPond files")
18673 (description
18674 "This package provides a Python library to parse, manipulate or create
18675documents in LilyPond format. A command line program ly is also provided that
18676can be used to do various manipulations with LilyPond files.")
18677 (home-page "https://pypi.org/project/python-ly/")
18678 (license license:gpl2+)))
18679
18680(define-public python-appdirs
18681 (package
18682 (name "python-appdirs")
18683 (version "1.4.4")
18684 (source
18685 (origin
18686 (method url-fetch)
18687 (uri (pypi-uri "appdirs" version))
18688 (sha256
18689 (base32 "0hfzmwknxqhg20aj83fx80vna74xfimg8sk18wb85fmin9kh2pbx"))))
18690 (build-system pyproject-build-system)
18691 (arguments (list #:test-backend #~'unittest))
18692 (native-inputs (list python-setuptools))
18693 (home-page "https://github.com/ActiveState/appdirs")
18694 (synopsis "Determine platform-specific dirs, e.g. a \"user data dir\"")
18695 (description
18696 "This module provides a portable way of finding out where user data
18697should be stored on various operating systems.")
18698 (license license:expat)))
18699
18700(define-public python-gorilla
18701 (package
18702 (name "python-gorilla")
18703 (version "0.5.0")
18704 (source
18705 (origin
18706 (method git-fetch)
18707 (uri (git-reference
18708 (url "https://github.com/christophercrouzet/gorilla")
18709 (commit (string-append "v" version))))
18710 (file-name (git-file-name name version))
18711 (sha256
18712 (base32 "1j1ajnav99nlggqcpcpzg6hny3wgpsy4i8f1s9drx003m9ma2j7l"))))
18713 (build-system pyproject-build-system)
18714 (arguments (list #:test-backend #~'unittest))
18715 (native-inputs (list python-setuptools))
18716 (home-page "https://github.com/christophercrouzet/gorilla")
18717 (synopsis "Convenient monkey patching with Python")
18718 (description
18719 "Gorilla is a Python library that provides a convenient approach to
18720monkey patching. Monkey patching is the process of modifying module and
18721class attributes at runtime with the purpose of replacing or extending
18722third-party code.")
18723 (license license:expat)))
18724
18725(define-public python-llfuse
18726 (package
18727 (name "python-llfuse")
18728 (version "1.5.1")
18729 (source
18730 (origin
18731 (method git-fetch)
18732 (uri (git-reference
18733 (url "https://github.com/python-llfuse/python-llfuse")
18734 (commit (string-append "release-" version))))
18735 (file-name (git-file-name name version))
18736 (sha256
18737 (base32 "16wsrg1py4gvcxfgsfkll73lfq62psc0hcqvs73az7s4b1pvyy62"))))
18738 (build-system pyproject-build-system)
18739 (arguments
18740 (list
18741 #:test-flags
18742 #~(list "-k" "not test_listdir") ; requires /usr/bin access.
18743 #:phases
18744 #~(modify-phases %standard-phases
18745 (add-before 'build 'build-cython
18746 (lambda _
18747 (invoke "python" "setup.py" "build_cython"))))))
18748 (inputs (list fuse-2 attr))
18749 (native-inputs
18750 (list pkg-config python-cython python-pytest python-setuptools))
18751 (synopsis "Python bindings for FUSE")
18752 (description
18753 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
18754 (home-page "https://github.com/python-llfuse/python-llfuse")
18755 (license license:lgpl2.0+)))
18756
18757(define-public python-msgpack
18758 (package
18759 (name "python-msgpack")
18760 (version "1.1.2")
18761 (source
18762 (origin
18763 (method url-fetch)
18764 (uri (pypi-uri "msgpack" version))
18765 (sha256
18766 (base32 "0zpl4sb9zk7fh3abaxqlf65d0g3hvjy6k028k3rn1pbk2cy7cq1v"))))
18767 (build-system pyproject-build-system)
18768 (native-inputs
18769 (list python-pytest
18770 python-setuptools))
18771 (home-page "https://msgpack.org/")
18772 (synopsis "MessagePack (de)serializer")
18773 (description "MessagePack is a fast, compact binary serialization format,
18774suitable for similar data to JSON. This package provides CPython bindings for
18775reading and writing MessagePack data.")
18776 (license license:asl2.0)))
18777
18778(define-public python-openstep-plist
18779 (package
18780 (name "python-openstep-plist")
18781 (version "0.5.2")
18782 (source
18783 (origin
18784 (method git-fetch)
18785 (uri (git-reference
18786 (url "https://github.com/fonttools/openstep-plist")
18787 (commit (string-append "v" version))))
18788 (file-name (git-file-name name version))
18789 (sha256
18790 (base32 "0h6d9cm3chfwf05jdw5axf9ck38kpcsyj16bkdh5ipkgz3x4mwr6"))))
18791 (build-system pyproject-build-system)
18792 (native-inputs
18793 (list python-cython
18794 python-pytest
18795 python-setuptools-scm
18796 python-setuptools))
18797 (home-page "https://github.com/fonttools/openstep-plist")
18798 (synopsis "OpenStep plist parser and writer")
18799 (description
18800 "This package provides a parser for the \"old style\" OpenStep property
18801list format (also known as ASCII plist), written in Cython.")
18802 (license license:expat)))
18803
18804(define-public python-resolvelib
18805 (package
18806 (name "python-resolvelib")
18807 ;; Use latest commit, because last release, 1.2.1 is incompatible
18808 ;; with python-packaging 26,
18809 (properties '((commit . "a0cb7c50b78028f840b238d8e1c391e0546f2325")
18810 (revision . "0")))
18811 (version (git-version "1.2.1"
18812 (assoc-ref properties 'revision)
18813 (assoc-ref properties 'commit)))
18814 (source
18815 (origin
18816 (method git-fetch)
18817 (uri (git-reference
18818 (url "https://github.com/sarugaku/resolvelib")
18819 (commit (assoc-ref properties 'commit))))
18820 (file-name (git-file-name name version))
18821 (sha256
18822 (base32 "1f00jlcv7fal4y6iyvqsycc6b5mkvxgc0jdddbkm1jcci1qy1yfl"))))
18823 (build-system pyproject-build-system)
18824 (native-inputs
18825 (list python-packaging
18826 python-pytest
18827 python-setuptools
18828 python-wheel))
18829 (home-page "https://github.com/sarugaku/resolvelib")
18830 (synopsis "Abstract dependencies resolver")
18831 (description
18832 "The ResolveLib library provides a @code{Resolver} class that includes
18833dependency resolution logic.")
18834 (license license:isc)))
18835
18836;; XXX: Deprecated package: this project was archived by the owner on Mar 26,
18837;; 2022. It is now read-only.
18838(define-public python-commonmark
18839 (package
18840 (name "python-commonmark")
18841 (version "0.9.1")
18842 (source
18843 (origin
18844 (method url-fetch)
18845 (uri (pypi-uri "commonmark" version))
18846 (sha256
18847 (base32 "0q7d39lm8kcingpmykk5r959hrwwj6v2icyw3mihczxyb749sbs5"))))
18848 (build-system pyproject-build-system)
18849 (native-inputs
18850 (list python-setuptools))
18851 (home-page "https://github.com/readthedocs/commonmark.py")
18852 (synopsis "Python parser for the CommonMark Markdown spec")
18853 (description
18854 "This module is a pure Python port of jgm's @code{commonmark.js}, a
18855Markdown parser and renderer for the CommonMark specification, using only
18856native modules.")
18857 (license license:bsd-3)))
18858
18859(define-public python-immutables
18860 (package
18861 (name "python-immutables")
18862 (version "0.21")
18863 (source
18864 (origin
18865 (method git-fetch)
18866 (uri (git-reference
18867 (url "https://github.com/MagicStack/immutables")
18868 (commit (string-append "v" version))))
18869 (file-name (git-file-name name version))
18870 (sha256
18871 (base32 "1p5g20y7di5xglk6yyhb010vdmz73q9fsxpq0cm2gksp8mj856y1"))))
18872 (build-system pyproject-build-system)
18873 (arguments
18874 (list #:phases #~(modify-phases %standard-phases
18875 (add-after 'unpack 'remove-mypy-dependency
18876 (lambda _
18877 (delete-file "tests/test_mypy.py")
18878 (delete-file "tests/conftest.py"))))))
18879 (native-inputs
18880 (list python-pytest python-setuptools python-wheel))
18881 (home-page "https://github.com/MagicStack/immutables")
18882 (synopsis "High-performance immutable mapping type for Python")
18883 (description
18884 "An immutable mapping type for Python. The underlying datastructure is a
18885Hash Array Mapped Trie (HAMT) used in Clojure, Scala, Haskell, and other
18886functional languages.")
18887 (license license:asl2.0)))
18888
18889(define-public python-prettytable
18890 (package
18891 (name "python-prettytable")
18892 (version "3.12.0")
18893 (source
18894 (origin
18895 (method url-fetch)
18896 (uri (pypi-uri "prettytable" version))
18897 (sha256
18898 (base32 "0168xqdr0i9r4p3a3hjd4n7f133lp4xkxhvfx63aqisplcdkwjzh"))))
18899 (build-system pyproject-build-system)
18900 (native-inputs
18901 (list python-hatchling
18902 python-hatch-vcs
18903 python-pytest
18904 python-pytest-lazy-fixtures
18905 python-setuptools-scm))
18906 (propagated-inputs
18907 (list python-wcwidth))
18908 (home-page "https://github.com/jazzband/prettytable")
18909 (synopsis "Display tabular data in an ASCII table format")
18910 (description
18911 "A library designed to represent tabular data in visually appealing ASCII
18912tables. PrettyTable allows for selection of which columns are to be printed,
18913independent alignment of columns (left or right justified or centred) and
18914printing of sub-tables by specifying a row range.")
18915 (license license:bsd-3)))
18916
18917(define-public python-rtf-tokenize
18918 (package
18919 (name "python-rtf-tokenize")
18920 (version "1.0.1")
18921 (source (origin
18922 (method url-fetch)
18923 (uri (pypi-uri "rtf_tokenize" version))
18924 (sha256
18925 (base32
18926 "1ljs0dcg2p1iad4zrxgn1pbrrcjcrswhjxrbprhdxd822n0al84h"))))
18927 (build-system pyproject-build-system)
18928 (native-inputs (list python-pytest python-setuptools python-wheel))
18929 (home-page "https://github.com/benoit-pierre/rtf_tokenize")
18930 (synopsis "Simple RTF tokenizer")
18931 (description "This package is a simple RTF tokenizer.")
18932 (license license:gpl2+)))
18933
18934(define-public python-sniffio
18935 (package
18936 (name "python-sniffio")
18937 (version "1.3.1")
18938 (source
18939 (origin
18940 (method url-fetch)
18941 (uri (pypi-uri "sniffio" version))
18942 (sha256
18943 (base32 "1p496yran6zwg47m7w26r8y89nrsbkrrbf4119slj3qaczf4wcpl"))))
18944 (build-system pyproject-build-system)
18945 (arguments
18946 (list
18947 #:test-flags
18948 #~(list "--deselect=sniffio/_tests/test_sniffio.py::test_curio")))
18949 (native-inputs
18950 (list python-pytest python-setuptools))
18951 (home-page "https://github.com/python-trio/sniffio")
18952 (synopsis "Detect which async library a program is running under")
18953 (description
18954 "This package detects which async library a program is running under. It
18955supports multiple async I/O packages, like Trio, and asyncio.")
18956 ;; Either license applies.
18957 (license (list license:expat license:asl2.0))))
18958
18959(define-public python-snuggs
18960 (package
18961 (name "python-snuggs")
18962 (version "1.4.7")
18963 (source (origin
18964 (method url-fetch)
18965 (uri (pypi-uri "snuggs" version))
18966 (sha256
18967 (base32
18968 "0yv1wayrw9g6k0c2f721kha7wsv0s1fdlxpf5x7f34iqzq9z272h"))))
18969 (build-system pyproject-build-system)
18970 (propagated-inputs (list python-numpy python-pyparsing))
18971 (native-inputs (list python-hypothesis python-pytest python-setuptools
18972 python-wheel))
18973 (home-page "https://github.com/mapbox/snuggs")
18974 (synopsis "Snuggs are S-expressions for Numpy")
18975 (description "Snuggs are S-expressions for Numpy.")
18976 (license license:expat)))
18977
18978(define-public python-geojson
18979 (package
18980 (name "python-geojson")
18981 (version "3.2.0")
18982 (source
18983 (origin
18984 (method url-fetch)
18985 (uri (pypi-uri "geojson" version))
18986 (sha256
18987 (base32 "00s9h22vs4ppncwg3a0gh90czb2dd6d99qznypw72vwc3sxblq5q"))))
18988 (build-system pyproject-build-system)
18989 (native-inputs (list python-pytest python-setuptools))
18990 (home-page "https://github.com/jazzband/geojson")
18991 (synopsis "Python bindings and utilities for GeoJSON")
18992 (description
18993 "This package provides Python bindings and utilities for
18994@uref{http://geojson.org/, GeoJSON}, a format for encoding geographic data
18995structures.")
18996 (license license:bsd-3)))
18997
18998;; pyowm only accepts a version less than version 3.
18999(define-public python-geojson-for-pyowm
19000 (package
19001 (inherit python-geojson)
19002 (version "2.5.0")
19003 (source
19004 (origin
19005 (method url-fetch)
19006 (uri (pypi-uri "geojson" version))
19007 (sha256
19008 (base32 "12k5bzqskvq3gqzkryarhdjl0df47y5k9cf8r3clasi2wjnbfjvf"))))
19009 (arguments
19010 ;; https://github.com/jazzband/geojson/issues/175
19011 (list #:tests? #f))))
19012
19013(define-public python-gpxpy
19014 (package
19015 (name "python-gpxpy")
19016 (version "1.6.2")
19017 (source
19018 (origin
19019 (method url-fetch)
19020 (uri (pypi-uri "gpxpy" version))
19021 (sha256
19022 (base32 "1bh1dkrbmcqb46r7j4fazzq7j6zfr2f04frm6h4bhhpcjx5lhb57"))))
19023 (build-system pyproject-build-system)
19024 (arguments
19025 (list #:test-backend #~'unittest))
19026 (native-inputs
19027 (list python-setuptools))
19028 (home-page "https://github.com/tkrajina/gpxpy")
19029 (synopsis "Python GPX parser")
19030 (description "GPX file parser and GPS track manipulation library.")
19031 (license license:asl2.0)))
19032
19033(define-public python-get-version
19034 (package
19035 (name "python-get-version")
19036 (version "3.5.5")
19037 (source
19038 (origin
19039 (method url-fetch)
19040 (uri (pypi-uri "get_version" version))
19041 (sha256
19042 (base32
19043 "01afv4fkgrm8v9hiww3qymmx201b6z3f8lc4g6nzq7djappn581x"))))
19044 (build-system pyproject-build-system)
19045 (arguments
19046 ;; XXX: No tests in PyPI and building from GitHub fails because of the
19047 ;; lack of git metadata in the checkout.
19048 (list #:tests? #f))
19049 (native-inputs (list python-flit-core))
19050 (propagated-inputs (list python-dunamai))
19051 (home-page "https://github.com/flying-sheep/get_version")
19052 (synopsis "Version helper in the spirit of versioneer")
19053 (description
19054 "This package provides a version helper that lets you automatically use
19055the latest @code{vX.X.X} Git tag as the version in your Python package. It
19056also supports getting the version from Python source distributions or, once
19057your package is installed, via @code{pkg_resources} (part of
19058@code{setuptools}).")
19059 (license license:gpl3+)))
19060
19061(define-public python-filetype
19062 (package
19063 (name "python-filetype")
19064 (version "1.2.0")
19065 (source
19066 (origin
19067 (method url-fetch)
19068 (uri (pypi-uri "filetype" version))
19069 (sha256
19070 (base32 "1nxa91szfbhhbhvdwj06jz8zghzwgb9lf0v6aj61vx2b8zb6rdb6"))))
19071 (build-system pyproject-build-system)
19072 (native-inputs (list python-pytest
19073 python-pytest-benchmark
19074 python-setuptools
19075 python-wheel))
19076 (home-page "https://github.com/h2non/filetype.py")
19077 (synopsis "Infer file type and MIME type of any file/buffer")
19078 (description "@code{filetype} is a small and dependency free Python
19079package to infer file type and MIME type checking the magic numbers
19080signature of a file or buffer.")
19081 (license license:expat)))
19082
19083(define-public python-cachelib
19084 (package
19085 (name "python-cachelib")
19086 (version "0.13.0")
19087 (source
19088 (origin
19089 (method url-fetch)
19090 (uri (pypi-uri "cachelib" version))
19091 (sha256
19092 (base32 "0j0s5vyhgka6g16a7n9g1fcc8wqxdl8rgzvlwaz9axf5wfb8k790"))))
19093 (build-system pyproject-build-system)
19094 (arguments
19095 ;; These tests use a remote connection.
19096 (list #:test-flags #~(list "--ignore" "tests/test_dynamodb_cache.py"
19097 "--ignore" "tests/test_mongodb_cache.py")))
19098 (native-inputs
19099 (list python-pytest python-pytest-xprocess python-setuptools python-wheel))
19100 (home-page "https://github.com/pallets-eco/cachelib")
19101 (synopsis "Collection of cache libraries")
19102 (description "Cachelib is a library extracted from @code{werkzeug} which
19103provides a collection of cache libraries in the same API interface.")
19104 (license license:bsd-3)))
19105
19106(define-public python-pylru
19107 (package
19108 (name "python-pylru")
19109 (version "1.2.0")
19110 (source
19111 (origin
19112 (method git-fetch)
19113 (uri (git-reference
19114 (url "https://github.com/jlhutch/pylru")
19115 (commit (string-append "v" version))))
19116 (file-name (git-file-name name version))
19117 (sha256
19118 (base32 "0sqai530d7fpjzny476f3zqq9mv05xqbyw500jmbhrpj9yy1l9xp"))))
19119 (build-system pyproject-build-system)
19120 (arguments
19121 (list
19122 #:test-backend #~'custom
19123 #:test-flags #~(list "test.py")))
19124 (native-inputs (list python-pytest python-setuptools))
19125 (home-page "https://github.com/jlhutch/pylru")
19126 (synopsis "Least recently used (LRU) cache implementation")
19127 (description
19128 "Pylru implements a true LRU cache along with several support classes.
19129Pylru provides a cache class with a simple dict interface. It also provides
19130classes to wrap any object that has a dict interface with a cache. Both
19131write-through and write-back semantics are supported. Pylru also provides
19132classes to wrap functions in a similar way, including a function decorator.")
19133 (license license:gpl2+)))
19134
19135(define-public python-legacy-api-wrap
19136 (package
19137 (name "python-legacy-api-wrap")
19138 (version "1.5")
19139 (source
19140 (origin
19141 (method url-fetch)
19142 (uri (pypi-uri "legacy_api_wrap" version))
19143 (sha256
19144 (base32
19145 "1wmdkhfbkwc9rwmnq3s55awh9gn3vsbpynm3jylf7gry5x9sc6xl"))))
19146 (build-system pyproject-build-system)
19147 (native-inputs
19148 (list python-hatch-docstring-description
19149 python-hatch-vcs
19150 python-hatchling
19151 python-pytest
19152 python-typer))
19153 (home-page "https://github.com/flying-sheep/legacy-api-wrap")
19154 (synopsis "Legacy API wrapper")
19155 (description "This module defines a decorator to wrap legacy APIs. The
19156primary use case is APIs defined before keyword-only parameters existed.")
19157 (license license:gpl3+)))
19158
19159(define-public python-langdetect
19160 (package
19161 (name "python-langdetect")
19162 (version "1.0.9")
19163 (source
19164 (origin
19165 (method url-fetch)
19166 (uri (pypi-uri "langdetect" version))
19167 (sha256
19168 (base32 "1805svvb7xjm4sf1j7b6nc3409x37pd1xmabfwwjf1ldkzwgxhfb"))))
19169 (build-system pyproject-build-system)
19170 (native-inputs
19171 (list python-pytest
19172 python-setuptools))
19173 (propagated-inputs
19174 (list python-six))
19175 (home-page "https://github.com/Mimino666/langdetect")
19176 (synopsis "Language detection library")
19177 (description
19178 "This library is a port of Nakatani Shuyo's language-detection library
19179(version from 03/03/2014) to Python.")
19180 (license license:expat)))
19181
19182(define-public python-pyasn1
19183 (package
19184 (name "python-pyasn1")
19185 (version "0.6.3")
19186 (source
19187 (origin
19188 (method git-fetch)
19189 (uri (git-reference
19190 (url "https://github.com/pyasn1/pyasn1")
19191 (commit (string-append "v" version))))
19192 (file-name (git-file-name name version))
19193 (sha256
19194 (base32 "0b22m94j163nikfkl031hgrfasb6wgqp3374b8dbr84jalkl0ykw"))))
19195 (build-system pyproject-build-system)
19196 (arguments
19197 (list #:test-backend #~'unittest
19198 #:test-flags #~(list "discover" "tests")))
19199 (native-inputs
19200 (list python-setuptools))
19201 (home-page "https://github.com/pyasn1/pyasn1")
19202 (synopsis "ASN.1 types and codecs")
19203 (description
19204 "This is an implementation of ASN.1 types and codecs in Python. It is
19205suitable for a wide range of protocols based on the ASN.1 specification.")
19206 (license license:bsd-2)))
19207
19208(define-public python-pyasn1-modules
19209 (package
19210 (name "python-pyasn1-modules")
19211 (version "0.4.2")
19212 (source
19213 (origin
19214 (method url-fetch)
19215 (uri (pypi-uri "pyasn1_modules" version))
19216 (sha256
19217 (base32
19218 "1rj1x4333b20chwslljsihngllj6yls63jmi8klam00ahzg92w37"))))
19219 (build-system pyproject-build-system)
19220 (arguments
19221 (list #:test-backend #~'unittest
19222 #:test-flags #~(list "discover" "tests")))
19223 (native-inputs
19224 (list python-setuptools))
19225 (propagated-inputs
19226 (list python-pyasn1))
19227 (home-page "https://github.com/pyasn1/pyasn1-modules")
19228 (synopsis "ASN.1 codec implementations")
19229 (description
19230 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
19231implementations of ASN.1-based codecs and protocols.")
19232 (license license:bsd-3)))
19233
19234(define-public python-asn1tools
19235 (package
19236 (name "python-asn1tools")
19237 (version "0.167.0")
19238 (source
19239 (origin
19240 (method url-fetch)
19241 (uri (pypi-uri "asn1tools" version))
19242 (sha256
19243 (base32 "1cpm6m3znagc553bc5l0rhwg2fccrl0k8m1pbvn6x2kqdmpkzmfa"))))
19244 (build-system pyproject-build-system)
19245 (arguments
19246 (list
19247 #:test-flags
19248 #~(list "-k" (string-join
19249 ;; Tests fail with error: IndexError: string index out of
19250 ;; range. It may be some incompatibility with pyparsing,
19251 ;; see <https://github.com/eerimoq/asn1tools/issues/167>.
19252 (list "not test_c_source"
19253 "test_command_line_generate_c_source_oer"
19254 "test_command_line_generate_c_source_uper"
19255 "test_command_line_generate_rust_source_uper"
19256 "test_missing_parameterized_value"
19257 "test_c_source"
19258 "test_parse_parameterization")
19259 " and not "))))
19260 (native-inputs
19261 (list python-pytest
19262 python-setuptools
19263 python-wheel))
19264 (propagated-inputs
19265 (list python-bitstruct
19266 python-diskcache
19267 python-prompt-toolkit
19268 python-pyparsing))
19269 (home-page "https://github.com/eerimoq/asn1tools")
19270 (synopsis "ASN.1 parsing, encoding and decoding")
19271 (description "This package provides ASN.1 parsing, encoding and decoding
19272for Python, including constraints checking. It supports several
19273codecs (e.g. BER, PER, UPER, XER) as well as limited C source code generating
19274for OER and UPER.")
19275 (license license:expat)))
19276
19277(define-public python-idna
19278 (package
19279 (name "python-idna")
19280 (version "3.18")
19281 (source
19282 (origin
19283 (method git-fetch)
19284 (uri (git-reference
19285 (url "https://github.com/kjd/idna")
19286 (commit (string-append "v" version))))
19287 (file-name (git-file-name name version))
19288 (sha256
19289 (base32 "0phrdwf6gqjpbs5kv3y6wbkvvpmq6kmjby674s8b9f6dsgzz4wpn"))))
19290 (build-system pyproject-build-system)
19291 (native-inputs
19292 (list python-flit-core python-pytest))
19293 (home-page "https://github.com/kjd/idna")
19294 (synopsis "Internationalized domain names in applications")
19295 (description
19296 "This is a library to support the Internationalised Domain Names in
19297Applications (IDNA) protocol as specified in RFC 5891. This version of the
19298protocol is often referred to as “IDNA2008” and can produce different results
19299from the earlier standard from 2003. The library is also intended to act as a
19300suitable drop-in replacement for the “encodings.idna” module that comes with
19301the Python standard library but currently only supports the older 2003
19302specification.")
19303 (license license:bsd-4)))
19304
19305(define-public python-libsass
19306 (package
19307 (name "python-libsass")
19308 (version "0.23.0")
19309 (source
19310 (origin
19311 ;; PyPI tarball is missing some test files.
19312 (method git-fetch)
19313 (uri (git-reference
19314 (url "https://github.com/sass/libsass-python")
19315 (commit version)))
19316 (file-name (git-file-name name version))
19317 (sha256
19318 (base32 "04jpk4y15k69chdnd64ks85bfn82071mbfiv2d1hl3y4zpvsn90a"))))
19319 (build-system pyproject-build-system)
19320 (arguments
19321 '(#:phases
19322 (modify-phases %standard-phases
19323 ;; Use Guix package of libsass instead of compiling from a checkout.
19324 (add-before 'build 'set-libsass
19325 (lambda _ (setenv "SYSTEM_SASS" "indeed")))
19326 ;; XXX: Silent 2 failing tests, reported to upstream (closed), see
19327 ;; https://github.com/sass/libsass-python/issues/440. It passed with
19328 ;; [email protected] which requires rebuild the world (1200+ packages),
19329 ;; remove when v3.6.5 is available.
19330 (add-before 'check 'silent-failing-tests
19331 (lambda _
19332 (substitute* "sasstests.py"
19333 (("def test_build_one")
19334 "def __off_test_build_one")
19335 (("def test_stack_trace_formatting")
19336 "def __off_test_stack_trace_formatting"))))
19337 (replace 'check
19338 (lambda* (#:key tests? #:allow-other-keys)
19339 (when tests?
19340 (invoke "pytest" "sasstests.py"))))
19341 (add-after 'install 'delete-test
19342 (lambda* (#:key inputs outputs #:allow-other-keys)
19343 ;; Delete sasstests.py because it attempts to open a file
19344 ;; that is not installed when loaded, which breaks the sanity
19345 ;; check.
19346 (delete-file (string-append
19347 (assoc-ref outputs "out")
19348 "/lib/python"
19349 (python-version
19350 (dirname (dirname
19351 (search-input-file inputs "bin/python"))))
19352 "/site-packages/sasstests.py")))))))
19353 (native-inputs
19354 (list python-pytest python-setuptools python-werkzeug python-wheel))
19355 (inputs
19356 (list libsass))
19357 (home-page "https://sass.github.io/libsass-python/")
19358 (synopsis "Straightforward binding of libsass for Python")
19359 (description
19360 "This package provides a simple Python extension module @code{sass} which
19361is binding LibSass.")
19362 (license license:expat)))
19363
19364;; It may be removed after 2026-01-24.
19365(define-deprecated/public-alias python-path-bootstrap python-path)
19366
19367(define-public python-pip-run
19368 (package
19369 (name "python-pip-run")
19370 (version "8.8.0")
19371 (source
19372 (origin
19373 (method git-fetch)
19374 (uri (git-reference
19375 (url "https://github.com/jaraco/pip-run")
19376 (commit (string-append "v" version))))
19377 (file-name (git-file-name name version))
19378 (sha256
19379 (base32 "0ycrjj3jgqcr9c2k7y8vprq65iblg0q0hvwz8zwi13gmb0ffds0c"))))
19380 (build-system pyproject-build-system)
19381 (arguments
19382 (list
19383 #:tests? (not (%current-target-system))
19384 #:test-flags
19385 #~(list "-k" (string-append
19386 ;; Do not test the myproject.toml build as it tries
19387 ;; to pull dependencies from the internet.
19388 "not project "
19389 ;; These tests attempt to install dependencies from
19390 ;; the network and fail.
19391 "and not test_pkg_imported "
19392 "and not test_pkg_loaded_from_alternate_index "
19393 "and not test_pkg_loaded_from_url "))))
19394 (native-inputs
19395 (list python-nbformat
19396 python-pygments
19397 python-pytest
19398 python-setuptools
19399 python-setuptools-scm))
19400 (propagated-inputs
19401 (list python-autocommand
19402 python-packaging
19403 python-path
19404 python-pip))
19405 (home-page "https://github.com/jaraco/pip-run")
19406 (synopsis "Dynamic dependency loader for Python")
19407 (description "The @command{pip-run} command provides on-demand temporary
19408package installation for a single interpreter run. It replaces this series of
19409commands:
19410@example
19411$ virtualenv --python pythonX.X --system-site-packages /tmp/env
19412$ /tmp/env/bin/pip install pkg1 pkg2 -r reqs.txt
19413$ /tmp/env/bin/python ...
19414$ rm -rf /tmp/env
19415@end example")
19416 (license license:expat)))
19417
19418;; It may be removed after 2026-01-24.
19419(define-deprecated/public-alias python-pip-run-bootstrap python-pip-run)
19420
19421(define-public python-libarchive-c
19422 (package
19423 (name "python-libarchive-c")
19424 (version "5.2")
19425 (source (origin
19426 (method url-fetch)
19427 (uri (pypi-uri "libarchive_c" version))
19428 (sha256
19429 (base32
19430 "05vl0pjpv5wqy9xybzixjv9anvih9yjx361c4rw6xbq9hpiahi7x"))))
19431 (build-system pyproject-build-system)
19432 (arguments
19433 (list
19434 #:phases
19435 #~(modify-phases %standard-phases
19436 (add-before 'build 'reference-libarchive
19437 (lambda* (#:key inputs #:allow-other-keys)
19438 ;; Retain the absolute file name of libarchive.so.
19439 (substitute* "libarchive/ffi.py"
19440 (("find_library\\('archive'\\)")
19441 (string-append
19442 "'"
19443 (search-input-file inputs "/lib/libarchive.so")
19444 "'"))))))))
19445 (native-inputs
19446 (list python-setuptools python-wheel python-pytest))
19447 (inputs
19448 (list libarchive))
19449 (home-page "https://github.com/Changaco/python-libarchive-c")
19450 (synopsis "Python interface to libarchive")
19451 (description
19452 "This package provides Python bindings to libarchive, a C library to
19453access possibly compressed archives in many different formats. It uses
19454Python's @code{ctypes} foreign function interface (FFI).")
19455 (license license:lgpl2.0+)))
19456
19457(define-public python-file
19458 (package/inherit file
19459 (name "python-file")
19460 (build-system pyproject-build-system)
19461 (arguments
19462 (list
19463 #:tests? #f ;no tests
19464 #:phases
19465 #~(modify-phases %standard-phases
19466 (add-before 'build 'change-directory
19467 (lambda _
19468 (chdir "python")))
19469 (add-before 'build 'set-library-file-name
19470 (lambda* (#:key inputs #:allow-other-keys)
19471 (substitute* "magic.py"
19472 (("find_library\\('magic'\\)")
19473 (format #f "~s" (search-input-file inputs
19474 "lib/libmagic.so")))))))))
19475 (inputs (list file))
19476 (native-inputs (cons* python-setuptools
19477 (if (%current-target-system)
19478 (list this-package)
19479 '())))
19480 (synopsis "Python bindings to the libmagic file type guesser")
19481 (description "This package provides Python bindings to the libmagic file
19482type guesser.
19483
19484Note that this module and the @code{python-magic} module both provide a
19485@file{magic.py} file; these two modules, which are different and were
19486developed separately, both serve the same purpose: provide Python bindings for
19487libmagic.")))
19488
19489(define-public python-pydemumble
19490 (package
19491 (name "python-pydemumble")
19492 (version "0.0.1")
19493 (source
19494 (origin
19495 (method git-fetch)
19496 (uri (git-reference
19497 (url "https://github.com/angr/pydemumble")
19498 (commit (string-append "v" version))))
19499 (file-name (git-file-name name version))
19500 (sha256
19501 (base32 "1hg5ywdsfyynn9hlr0xkafsv8i53b0s332f29ll13kk01630y0jp"))
19502 (patches (search-patches "python-pydemumble-system-nanobind.patch"))))
19503 (build-system pyproject-build-system)
19504 (arguments
19505 (list
19506 #:test-flags
19507 #~(list "discover" "-s" "tests")
19508 #:phases
19509 #~(modify-phases %standard-phases
19510 (add-after 'unpack 'set-demumble-source
19511 (lambda* _
19512 ;; demumble is only a binary and not intended to be used as
19513 ;; a library. Therefore, python-pydemumble creates it's own
19514 ;; bindings for demumble, which are autogenerated from C code.
19515 (substitute* "CMakeLists.txt"
19516 (("src/demumble")
19517 #+(package-source demumble))))))))
19518 (native-inputs (list python-nanobind python-scikit-build-core))
19519 (home-page "https://github.com/angr/pydemumble")
19520 (synopsis "Python library for demangling symbol names")
19521 (description
19522 "This package provides a Python wrapper library for @code{demumble}, which
19523is a tool to demangle C++, Rust, and Swift symbol names.")
19524 (license license:bsd-2)))
19525
19526(define-public python-pydevd
19527 (package
19528 (name "python-pydevd")
19529 (version "3.2.3")
19530 (source
19531 (origin
19532 (method git-fetch)
19533 (uri (git-reference
19534 (url "https://github.com/fabioz/PyDev.Debugger")
19535 (commit (string-append
19536 "pydev_debugger_"
19537 (string-join (string-split version #\.) "_")))))
19538 (modules '((guix build utils)))
19539 (snippet '(begin
19540 ;; Delete pre-built binaries.
19541 (for-each delete-file (find-files "." "\\.(so|dylib|dll)"))
19542 ;; This source is generated via Cython.
19543 (delete-file "_pydevd_bundle/pydevd_cython.c")))
19544 (file-name (git-file-name name version))
19545 (sha256
19546 (base32
19547 "0a40574f0rx23gissxmrpjq9cimhjxqsq9wbv5l7620h3blb5510"))))
19548 (build-system pyproject-build-system)
19549 (arguments
19550 (list
19551 #:test-flags
19552 #~(list "-n" (number->string (parallel-job-count))
19553 "-m" "not flaky"
19554 "-k"
19555 (string-join
19556 (list
19557 ;; The two "break_01" tests have been failing on
19558 ;; Python 3.10:
19559 ;; <https://github.com/fabioz/PyDev.Debugger/issues/222>.
19560 "not test_set_pydevd_break_01 "
19561 ;; the GUI event loop requires an X server.
19562 "test_gui_event_loop_custom"
19563 ;; This test validates that 'pydevd' is not in the
19564 ;; exception message, but it is due to being part
19565 ;; of the build file name present in the message.
19566 "test_evaluate_exception_trace"
19567 ;; This test fail with TimeoutError, no message on stderr.
19568 "test_soft_terminate"
19569 "test_debugger_case_deadlock_interrupt_thread"
19570 ;; subprocess.CalledProcessError
19571 ;; Python 3.11/3.12 specific issue:
19572 ;; <https://github.com/fabioz/PyDev.Debugger/issues/284>.
19573 "test_find_main_thread_id")
19574 " and not "))
19575 #:phases
19576 #~(modify-phases %standard-phases
19577 (add-after 'unpack 'fix-tests
19578 (lambda _
19579 (substitute* "tests_python/test_convert_utilities.py"
19580 ;; Add missing trailing '/'.
19581 (("\"\\\\\\\\usr\\\\\\\\bin\\\\\\\\\") == \"/usr/bin" all)
19582 (string-append all "/")))))
19583 (add-after 'unpack 'patch-command-paths
19584 (lambda* (#:key inputs #:allow-other-keys)
19585 (substitute* "_pydevd_bundle/pydevd_api.py"
19586 (("'kill'")
19587 (format #f "~s" (search-input-file inputs "bin/kill")))
19588 (("'pgrep'")
19589 (format #f "~s" (search-input-file inputs "bin/pgrep"))))))
19590 (add-after 'unpack 'generate-sources
19591 (lambda _
19592 (setenv "PYTHONPATH" (getcwd))
19593 (invoke "python" "build_tools/build.py")))
19594 (add-after 'unpack 'adjust-attach-binary-name
19595 (lambda _
19596 (substitute*
19597 '("pydevd_tracing.py"
19598 "pydevd_attach_to_process/add_code_to_python_process.py")
19599 (("def get_(target|python_helper_lib)_filename.*" all)
19600 (format #f "~a return ~s~%" all
19601 (string-append #$output "/lib/attach.so"))))))
19602 (add-after 'unpack 'patch-gdb
19603 (lambda* (#:key inputs #:allow-other-keys)
19604 (substitute*
19605 "pydevd_attach_to_process/add_code_to_python_process.py"
19606 (("'gdb',")
19607 (format #f "~s," (search-input-file inputs "bin/gdb"))))))
19608 (add-after 'build 'build-attach-linux-binary
19609 (lambda _
19610 (invoke #+(cxx-for-target) "-shared" "-o" "attach.so"
19611 "-fPIC" "-nostartfiles"
19612 "pydevd_attach_to_process/linux_and_mac/attach.cpp")))
19613 (add-before 'check 'pre-check
19614 (lambda* (#:key tests? #:allow-other-keys)
19615 (when tests?
19616 (setenv "PYDEVD_USE_CYTHON" "YES"))))
19617 (add-after 'install 'install-attach-binary
19618 (lambda _
19619 (install-file "attach.so"
19620 (string-append #$output "/lib"))))
19621 ;; Some modules aren't designed to be loadable by themselves, such
19622 ;; as 'pydev_app_engine_debug_startup' and fail.
19623 (delete 'sanity-check))))
19624 (native-inputs
19625 (list python-cython
19626 python-numpy
19627 python-psutil
19628 python-pytest
19629 python-pytest-xdist
19630 python-setuptools
19631 python-trio
19632 python-untangle
19633 python-wheel))
19634 (inputs (list coreutils gdb/pinned procps))
19635 (home-page "https://github.com/fabioz/PyDev.Debugger/")
19636 (synopsis "Python debugger")
19637 (description "PyDev.Debugger is a capable Python debugger used in PyDev
19638and other @acronym{IDEs, Integrated Development Environments}.")
19639 (license license:epl1.0)))
19640
19641(define-public python-debugpy
19642 (package
19643 (name "python-debugpy")
19644 (version "1.8.17")
19645 (source
19646 (origin
19647 (method git-fetch)
19648 (uri (git-reference ;no tests in PyPI archive
19649 (url "https://github.com/microsoft/debugpy")
19650 (commit (string-append "v" version))))
19651 (file-name (git-file-name name version))
19652 (modules '((guix build utils)))
19653 ;; Remove the bundled PyDev-Debugger copy, including its pre-built
19654 ;; attach binary.
19655 (snippet '(delete-file-recursively "src/debugpy/_vendored"))
19656 (patches (search-patches "python-debugpy-unbundle-pydevd.patch"))
19657 (sha256
19658 (base32
19659 "12yhmayc21zcq16dv5hrp4n896d9v3b88hh1biqvj8gnrmsxvcwb"))))
19660 (build-system pyproject-build-system)
19661 (arguments
19662 (list
19663 #:tests? #f ;FIXME: Fail on systems with YAMA LSM’s ptrace scope > 0.
19664 #:phases
19665 #~(modify-phases %standard-phases
19666 (add-after 'unpack 'patch-sh-in-tests
19667 (lambda _
19668 (substitute* "tests/debugpy/test_run.py"
19669 (("#!/bin/sh")
19670 (string-append "#!" (which "sh"))))))
19671 (add-before 'build 'configure
19672 (lambda _
19673 ;; This adjusts the behavior of debugpy to load pydevd from
19674 ;; Python site packages.
19675 (setenv "DEBUGPY_BUNDLING_DISABLED" "1"))))))
19676 (native-inputs
19677 (list python-setuptools
19678 python-versioneer))
19679 (propagated-inputs
19680 (list python-pydevd))
19681 (home-page "https://aka.ms/debugpy")
19682 (synopsis "Debug Adapter Protocol Python implementation")
19683 (description "An implementation of the Debug Adapter Protocol for
19684Python.")
19685 (license license:expat)))
19686
19687(define-public python-debian
19688 (package
19689 (name "python-debian")
19690 (home-page "https://salsa.debian.org/python-debian-team/python-debian")
19691 (version "0.1.49")
19692 (source
19693 (origin
19694 ;; Use git-fetch, as pypi doesn't include test suite.
19695 (method git-fetch)
19696 (uri (git-reference
19697 (url home-page)
19698 (commit version)))
19699 (file-name (git-file-name name version))
19700 (sha256
19701 (base32
19702 "190vy2ns0650icpwvv4qp6kr3c3i9jszy1vkdwpigxb96fs1bqf3"))
19703 (modules '((guix build utils)))
19704 (snippet
19705 #~(begin
19706 ;; python-apt, apt and dpkg are not yet available in guix,
19707 ;; and these tests heavily depend on them.
19708 (for-each delete-file
19709 '("lib/debian/tests/test_deb822.py"
19710 "lib/debian/tests/test_debfile.py"))
19711
19712 ;; for reproducible builds, otherwise python-debian
19713 ;; generates a _version.py including the date
19714 (copy-file "lib/debian/_version.py.in" "lib/debian/_version.py")
19715 (substitute* "lib/debian/_version.py"
19716 (("__CHANGELOG_VERSION__") #$version))))))
19717 (build-system pyproject-build-system)
19718 (native-inputs
19719 (list python-pytest python-setuptools))
19720 (propagated-inputs
19721 (list python-six python-chardet))
19722 (synopsis "Debian package related modules")
19723 (description
19724 "This package provides Python modules that abstract many formats of
19725Debian-related files, such as:
19726@itemize
19727@item Debtags information;
19728@item @file{debian/changelog} files;
19729@item packages files, pdiffs;
19730@item control files of single or multiple RFC822-style paragraphs---e.g.
19731 @file{debian/control}, @file{.changes}, @file{.dsc};
19732@item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
19733 contained files and meta-information.
19734@end itemize")
19735 ;; Modules are either GPLv2+ or GPLv3+.
19736 (license license:gpl3+)))
19737
19738(define-public python-json-spec
19739 (package
19740 (name "python-json-spec")
19741 (version "0.12.0")
19742 (source
19743 (origin
19744 (method git-fetch) ;no tests in PyPI archive
19745 (uri (git-reference
19746 (url "https://github.com/johnnoone/json-spec")
19747 (commit version)))
19748 (file-name (git-file-name name version))
19749 (sha256
19750 (base32 "14lzvpfi8vpwn2hsizljcyiiywfc1fssj0hh079jxw4xwjkm9328"))))
19751 (build-system pyproject-build-system)
19752 (native-inputs
19753 (list python-pytest
19754 python-poetry-core))
19755 (propagated-inputs
19756 (list python-termcolor)) ;for the CLI
19757 (home-page "https://json-spec.readthedocs.io/")
19758 (synopsis "JSON Schema, JSON Pointer and JSON Reference for Python")
19759 (description
19760 "This Python library implements several JSON specs, like JSON Schema,
19761JSON Reference and JSON Pointer.")
19762 (license license:bsd-3)))
19763
19764(define-public python-fastbencode
19765 (package
19766 (name "python-fastbencode")
19767 (version "0.3.9")
19768 (source
19769 (origin
19770 (method git-fetch)
19771 (uri (git-reference
19772 (url "https://github.com/breezy-team/fastbencode")
19773 (commit (string-append "v" version))))
19774 (file-name (git-file-name name version))
19775 (sha256
19776 (base32 "0d4sd1c2yv85spxx2gvi2fm0avlgpnb7nfkvw7hpxlx6qlaqi4ad"))))
19777 (build-system pyproject-build-system)
19778 (arguments
19779 (list
19780 #:test-backend #~'unittest
19781 #:test-flags #~(list "tests.test_suite")
19782 #:imported-modules (append %cargo-build-system-modules
19783 %pyproject-build-system-modules)
19784 #:modules '(((guix build cargo-build-system) #:prefix cargo:)
19785 (guix build pyproject-build-system)
19786 (guix build utils))
19787 #:phases
19788 #~(modify-phases %standard-phases
19789 (add-after 'unpack 'prepare-cargo-build-system
19790 (lambda args
19791 (for-each
19792 (lambda (phase)
19793 (format #t "Running cargo phase: ~a~%" phase)
19794 (apply (assoc-ref cargo:%standard-phases phase)
19795 #:cargo-target #$(cargo-triplet)
19796 args))
19797 '(unpack-rust-crates
19798 configure
19799 check-for-pregenerated-files
19800 patch-cargo-checksums)))))))
19801 (inputs (cargo-inputs 'fastbencode))
19802 (native-inputs
19803 (append
19804 (list python-setuptools-rust
19805 rust
19806 `(,rust "cargo"))
19807 (or (and=> (%current-target-system)
19808 (compose list make-rust-sysroot))
19809 '())))
19810 (home-page "https://github.com/breezy-team/fastbencode")
19811 (synopsis "Python Bencode (de)serializer with optional fast C extensions")
19812 (description
19813 "The fastbencode Python package implements the bencode serialization
19814format for storing and transmitting loosely structured data, originally used
19815by BitTorrent.
19816
19817The format can encode four different types of values: byte strings, integers,
19818lists, and dictionaries (associative arrays). It's simple and unaffected by
19819endianness,
19820
19821This package includes both a pure-Python version and an optional C extension
19822based on Cython. Both provide the same functionality, but the C version has
19823significantly better performance.")
19824 (license (list license:expat ; _bencode_py.py
19825 license:gpl2+)))) ; __init__.py
19826
19827(define-public python-fastjsonschema
19828 (package
19829 (name "python-fastjsonschema")
19830 (version "2.21.1")
19831 (source
19832 (origin
19833 (method git-fetch) ; no tests in PyPI release
19834 (uri (git-reference
19835 (url "https://github.com/horejsek/python-fastjsonschema")
19836 (commit (string-append "v" version))))
19837 (file-name (git-file-name name version))
19838 (sha256
19839 (base32 "1j7dc8hlvrlhzkiv0vqzd6shhjaf14g9v3zlfn7x17j04c1g3iz7"))))
19840 (build-system pyproject-build-system)
19841 (arguments
19842 (list
19843 #:test-flags #~(list "--ignore=tests/benchmarks/test_benchmark.py")))
19844 (native-inputs
19845 (list python-json-spec
19846 python-jsonschema
19847 python-pytest
19848 python-pytest-benchmark
19849 python-setuptools))
19850 (home-page "https://github.com/horejsek/python-fastjsonschema")
19851 (synopsis "Fast Python implementation of JSON schema")
19852 (description
19853 "This library implements validation of JSON documents by JSON schema for
19854drafts 04, 06 and 07.")
19855 (license license:bsd-3)))
19856
19857(define-public python-nbformat
19858 (package
19859 (name "python-nbformat")
19860 (version "5.10.4")
19861 ;; The PyPi release tarball lacks some test cases and test data.
19862 (source (origin
19863 (method git-fetch)
19864 (uri (git-reference
19865 (url "https://github.com/jupyter/nbformat")
19866 (commit (string-append "v" version))))
19867 (sha256
19868 (base32
19869 "0abd1d8iq21dwh17m72na2f3kr6a5p6ji1gnykf06jshikalj2x3"))
19870 (file-name (git-file-name name version))))
19871 (build-system pyproject-build-system)
19872 (arguments
19873 (list
19874 #:phases
19875 #~(modify-phases %standard-phases
19876 ;; We don't want to use hatch-nodejs just to get a version string.
19877 (add-after 'unpack 'patch-pyproject
19878 (lambda _
19879 (substitute* "pyproject.toml"
19880 ((", \"hatch-nodejs-version\"") "")
19881 (("dynamic = \\[\"version\"\\]")
19882 (string-append "version = \"" #$version "\""))))))))
19883 (propagated-inputs
19884 (list python-fastjsonschema python-jsonschema python-jupyter-core
19885 python-traitlets))
19886 (native-inputs
19887 (list python-hatchling
19888 python-pep440
19889 python-pytest
19890 python-testpath))
19891 (home-page "https://jupyter.org")
19892 (synopsis "Jupyter Notebook format")
19893 (description "This package provides the reference implementation of the
19894Jupyter Notebook format and Python APIs for working with notebooks.")
19895 (license license:bsd-3)))
19896
19897(define-public python-nb-clean
19898 (package
19899 (name "python-nb-clean")
19900 (version "4.0.1")
19901 (source
19902 (origin
19903 (method git-fetch) ; no tests in PyPI
19904 (uri (git-reference
19905 (url "https://github.com/srstevenson/nb-clean")
19906 (commit version)))
19907 (file-name (git-file-name name version))
19908 (sha256
19909 (base32 "1pa4m1qn7gx77lg3vy7y7vlyl45cg9ai9z93ds9ax108mbnrbdw7"))))
19910 (build-system pyproject-build-system)
19911 (native-inputs (list python-poetry-core
19912 python-pytest
19913 python-pytest-mock))
19914 (propagated-inputs (list python-nbformat))
19915 (home-page "https://github.com/srstevenson/nb-clean")
19916 (synopsis "Clean Jupyter notebooks for versioning")
19917 (description "This package cleans Jupyter notebooks of cell execution
19918counts, metadata, outputs, and empty cells, preparing them for committing to
19919version control. It provides a Git filter to automatically clean notebooks
19920before they're staged, and can also be used with other version control
19921systems, as a command line tool, and as a Python library.")
19922 (license license:isc)))
19923
19924(define-public python-entrypoints
19925 (package
19926 (name "python-entrypoints")
19927 (version "0.4")
19928 (source
19929 (origin
19930 (method url-fetch)
19931 (uri (pypi-uri "entrypoints" version))
19932 (sha256
19933 (base32 "1m5crkagmbvlgdwqv7nan64pbcjvy0c6idb7rpmik2i1m7dfs1mp"))))
19934 (build-system pyproject-build-system)
19935 (native-inputs
19936 (list python-flit-core
19937 python-pytest))
19938 (home-page "https://github.com/takluyver/entrypoints")
19939 (synopsis "Discover and load entry points from installed Python packages")
19940 (description "Entry points are a way for Python packages to advertise
19941objects with some common interface. The most common examples are
19942@code{console_scripts} entry points, which define shell commands by
19943identifying a Python function to run. The @code{entrypoints} module contains
19944functions to find and load entry points.")
19945 (license license:expat)))
19946
19947(define-public python-epc
19948 (package
19949 (name "python-epc")
19950 (properties '((commit . "f3673ae5c35f20a0f71546ab34c28e3dde3595c1")
19951 (revision . "0")))
19952 (version (git-version "0.0.5"
19953 (assoc-ref properties 'revision)
19954 (assoc-ref properties 'commit)))
19955 (source
19956 (origin
19957 (method git-fetch)
19958 (uri (git-reference
19959 (url "https://github.com/tkf/python-epc")
19960 (commit (assoc-ref properties 'commit))))
19961 (file-name (git-file-name name version))
19962 (sha256
19963 (base32 "0q27bj49yan2qg6i8m5czs5b5jv26ff42yz7j4r5652s7j3f42mm"))))
19964 (build-system pyproject-build-system)
19965 (arguments (list #:test-backend #~'nose))
19966 (propagated-inputs (list python-sexpdata))
19967 (native-inputs (list python-pynose python-setuptools))
19968 (home-page "https://github.com/tkf/python-epc")
19969 (synopsis "Remote procedure call (RPC) stack for Emacs Lisp and Python")
19970 (description
19971 "Python-EPC can call elisp functions from Python and Python functions
19972from elisp.")
19973 (license license:gpl3)))
19974
19975(define-public python-forex-python
19976 (package
19977 (name "python-forex-python")
19978 (version "1.5")
19979 (source
19980 (origin
19981 (method git-fetch)
19982 (uri (git-reference
19983 (url "https://github.com/MicroPyramid/forex-python")
19984 (commit version)))
19985 (file-name (git-file-name name version))
19986 (sha256
19987 (base32 "0pl5sfd0wkv1a2y324l518h6sing7wkadrbr5xcf6hjykn2mbi5h"))))
19988 (build-system pyproject-build-system)
19989 (arguments (list #:tests? #f)) ; Tests require online data.
19990 (native-inputs (list python-setuptools))
19991 (propagated-inputs (list python-requests python-simplejson))
19992 (home-page "https://github.com/MicroPyramid/forex-python")
19993 (synopsis "Foreign exchange rates and currency conversion")
19994 (description
19995 "@code{python-forex-python} can be used to manipulate foreign
19996exchange rates and to operate currency conversions.
19997
19998Features:
19999@itemize
20000@item List all currency rates.
20001@item BitCoin price for all currencies.
20002@item Converting amount to BitCoins.
20003@item Get historical rates for any day since 1999.
20004@item Conversion rate for one currency(ex; USD to INR).
20005@item Convert amount from one currency to other.('USD 10$' to INR).
20006@item Currency symbols.
20007@item Currency names.
20008@end itemize")
20009 (license license:expat)))
20010
20011(define-public python-simpleeval
20012 (package
20013 (name "python-simpleeval")
20014 (version "0.9.12")
20015 (source
20016 (origin
20017 (method git-fetch)
20018 (uri (git-reference
20019 (url "https://github.com/danthedeckie/simpleeval")
20020 (commit version)))
20021 (file-name (git-file-name name version))
20022 (sha256
20023 (base32 "0khgl729q5133fgc00d550f4r77707rkkn7r56az4v8bvx0q8xp4"))))
20024 (build-system pyproject-build-system)
20025 (native-inputs (list python-pytest python-setuptools))
20026 (home-page "https://github.com/danthedeckie/simpleeval")
20027 (synopsis "Simple, safe single expression evaluator library")
20028 (description
20029 "This package provides a quick single file library for easily adding
20030evaluatable expressions into python projects. Say you want to allow a user
20031to set an alarm volume, which could depend on the time of day, alarm level,
20032how many previous alarms had gone off, and if there is music playing at the
20033time.")
20034 (license license:expat)))
20035
20036(define-public python-haas
20037 ;; A recent revision is required to avoid obsoleted dependencies.
20038 (let ((commit "e9c45e88b682c9129ea0971ba31671429495de2c")
20039 (revision "0"))
20040 (package
20041 (name "python-haas")
20042 (version (git-version "0.9.0" revision commit))
20043 (source
20044 (origin
20045 (method git-fetch)
20046 (uri (git-reference
20047 (url "https://github.com/scalative/haas")
20048 (commit commit)))
20049 (file-name (git-file-name name version))
20050 (sha256
20051 (base32 "0hxfinnyc2jb5sgq8zwyn6zn63jb18p92pdz65fvhgf8w2r4ci13"))))
20052 (build-system pyproject-build-system)
20053 (propagated-inputs
20054 (list python-stevedore))
20055 (native-inputs
20056 (list python-coverage
20057 python-pytest
20058 python-setuptools
20059 python-testfixtures))
20060 (home-page "https://github.com/scalative/haas")
20061 (synopsis "Extensible Python test runner")
20062 (description "Haas is a python test runner that is backward-compatible
20063with Python's built-in unittest test-cases, but supports more advanced
20064features, such as project-specific plugins.")
20065 (license license:bsd-3))))
20066
20067(define-public python-okonomiyaki
20068 (package
20069 (name "python-okonomiyaki")
20070 (version "3.0.0")
20071 (source
20072 (origin
20073 (method git-fetch)
20074 (uri (git-reference
20075 (url "https://github.com/enthought/okonomiyaki/")
20076 (commit version)))
20077 (file-name (git-file-name name version))
20078 (sha256
20079 (base32 "0dx8smrairxcjqjisvvgwmj4nch12v03b779agjws87yv96ps0f4"))))
20080 (build-system pyproject-build-system)
20081 (arguments
20082 (list
20083 #:phases
20084 #~(modify-phases %standard-phases
20085 ;; Unknown platform.
20086 (add-before 'check 'delete-fail-tests
20087 (lambda _
20088 (delete-file-recursively
20089 "okonomiyaki/runtimes/tests/test_runtime.py"))))))
20090 (native-inputs
20091 (list python-distro
20092 python-haas
20093 python-jsonschema
20094 python-packaging
20095 python-parameterized
20096 python-pytest
20097 python-setuptools
20098 python-testfixtures
20099 python-zipfile2))
20100 (home-page "https://github.com/enthought/okonomiyaki/")
20101 (synopsis "Python library to deal with Enthought-specific metadata")
20102 (description
20103 "Okonomiyaki is a self-contained library aiming at consolidating
20104low-level code used in Enthought-specific egg and runtime archives.")
20105 (license license:bsd-3)))
20106
20107(define-public python-nbconvert
20108 (package
20109 (name "python-nbconvert")
20110 (version "7.17.0")
20111 (source
20112 (origin
20113 (method url-fetch)
20114 (uri (pypi-uri "nbconvert" version))
20115 (sha256
20116 (base32
20117 "0y6sdnwwlymhqya0g5bdmzgqfjv0mwj7qw3xdjgk04mynpqrc9hv"))))
20118 (build-system pyproject-build-system)
20119 (arguments
20120 (list
20121 #:test-flags
20122 '(list "-k"
20123 (string-append
20124 ;; These tests require pyppeteer, not yet
20125 ;; available in Guix.
20126 "not test_webpdf_with_chromium"
20127 " and not test_webpdf.py"
20128 ;; These tests require ipywidgets, which would
20129 ;; introduce a dependency cycle.
20130 " and not test_execute_widgets_from_nbconvert"
20131 " and not test_execute_multiple_notebooks"
20132
20133 ;; This test calls nbconvert itself via "sys.executable -m
20134 ;; nbconvert". It's probably harmless.
20135 " and not test_default_config"))
20136 #:phases
20137 #~(modify-phases %standard-phases
20138 (add-after 'unpack 'fix-paths
20139 (lambda* (#:key inputs #:allow-other-keys)
20140 ;; Use pandoc binary from input.
20141 (substitute* "nbconvert/utils/pandoc.py"
20142 (("'pandoc'")
20143 (format #f "~s" (search-input-file inputs "bin/pandoc"))))
20144 ;; Same for LaTeX.
20145 (substitute* "nbconvert/exporters/pdf.py"
20146 (("\"xelatex\"")
20147 (format #f "~s" (search-input-file inputs "bin/xelatex")))
20148 (("\"bibtex\"")
20149 (format #f "~s" (search-input-file inputs "bin/bibtex"))))
20150 ;; Likewise for Inkscape.
20151 (substitute* "nbconvert/preprocessors/svg2pdf.py"
20152 (("inkscape_path = which\\(\"inkscape\")")
20153 (format #f "inkscape_path = ~s"
20154 (search-input-file inputs "bin/inkscape"))))))
20155 (add-after 'unpack 'ignore-deprecation-warnings
20156 (lambda _
20157 (substitute* "pyproject.toml"
20158 (("\"ignore:nbconvert.utils" m)
20159 (string-append "\"ignore:zmq.eventloop.ioloop is deprecated:DeprecationWarning\",\n"
20160 m)))))
20161 (add-before 'check 'pre-check
20162 (lambda _
20163 ;; Tests depend on templates installed to output.
20164 (setenv "JUPYTER_PATH"
20165 (string-append #$output "/share/jupyter:"
20166 (getenv "JUPYTER_PATH")))
20167 ;; jupyter-core demands this
20168 (setenv "JUPYTER_PLATFORM_DIRS" "1")
20169 ;; Tests need writable HOME and TEXMFVAR.
20170 (setenv "HOME" "/tmp")
20171 (setenv "TEXMFVAR" "/tmp"))))))
20172 (inputs
20173 (list inkscape/pinned pandoc))
20174 (native-inputs
20175 (list python-flaky
20176 python-hatchling
20177 python-ipykernel
20178 ;; Adding ipywidgets would create a cycle.
20179 ;;python-ipywidgets
20180 python-pytest
20181 (texlive-local-tree
20182 (list texlive-adjustbox
20183 texlive-booktabs
20184 texlive-caption
20185 texlive-enumitem
20186 texlive-eurosym
20187 texlive-fancyvrb
20188 texlive-float
20189 texlive-fontspec
20190 texlive-grffile
20191 texlive-jknapltx
20192 texlive-parskip
20193 texlive-pdfcol
20194 texlive-rsfs
20195 texlive-soul
20196 texlive-tcolorbox
20197 texlive-titling
20198 texlive-ulem
20199 texlive-unicode-math
20200 texlive-upquote
20201 texlive-xetex))))
20202 (propagated-inputs
20203 (list python-beautifulsoup4
20204 python-bleach
20205 python-defusedxml
20206 python-jinja2
20207 python-jupyter-core
20208 python-jupyterlab-pygments
20209 python-markupsafe
20210 python-mistune
20211 python-nbclient
20212 python-nbformat
20213 python-packaging
20214 python-pandocfilters
20215 python-pygments
20216 python-tinycss2
20217 python-traitlets
20218 ;; Required, even if [serve] is not used.
20219 python-tornado
20220 ;; Required at runtime for `jupyter nbconvert --to=pdf`.
20221 texlive-adjustbox
20222 texlive-amsmath
20223 texlive-booktabs
20224 texlive-caption
20225 texlive-collection-basic
20226 texlive-enumitem
20227 texlive-environ
20228 texlive-etoolbox
20229 texlive-eurosym
20230 texlive-etoolbox
20231 texlive-fancyvrb
20232 texlive-float
20233 texlive-fontspec
20234 texlive-geometry
20235 texlive-grffile
20236 texlive-hyperref
20237 texlive-infwarerr
20238 texlive-jknapltx
20239 texlive-kvoptions
20240 texlive-lm
20241 texlive-lm-math
20242 texlive-mathpazo
20243 texlive-parskip
20244 texlive-pdfcol
20245 texlive-pgf
20246 texlive-rsfs
20247 texlive-soul
20248 texlive-stringenc
20249 texlive-tcolorbox
20250 texlive-titling
20251 texlive-tools
20252 texlive-trimspaces
20253 texlive-ucs
20254 texlive-ulem
20255 texlive-unicode-math
20256 texlive-upquote
20257 texlive-xcolor
20258 texlive-xetex
20259 texlive-zapfding))
20260 (home-page "https://jupyter.org")
20261 (synopsis "Converting Jupyter Notebooks")
20262 (description "The @code{nbconvert} tool, @code{jupyter nbconvert}, converts
20263notebooks to various other formats via Jinja templates. It allows you to
20264convert an @code{.ipynb} notebook file into various static formats including:
20265
20266@enumerate
20267@item HTML
20268@item LaTeX
20269@item PDF
20270@item Reveal JS
20271@item Markdown (md)
20272@item ReStructured Text (rst)
20273@item executable script
20274@end enumerate\n")
20275 (license license:bsd-3)))
20276
20277(define-public python-ipywidgets
20278 (package
20279 (name "python-ipywidgets")
20280 ;; XXX: Newer version requires python-jupyterlab, see guix/guix#2073.
20281 (version "8.1.4")
20282 (source
20283 (origin
20284 (method url-fetch)
20285 ;; Git: <https://github.com/jupyter-widgets/ipywidgets/tree/8.1.8/python/ipywidgets>
20286 (uri (pypi-uri "ipywidgets" version))
20287 (sha256
20288 (base32
20289 "0f9i3ycyc8c3rs3xk30hvq7mjs37phbxv4p8parrm02cxn9yzdc5"))))
20290 (build-system pyproject-build-system)
20291 (native-inputs
20292 (list python-ipykernel
20293 python-jsonschema
20294 python-pytest
20295 python-pytz
20296 python-setuptools))
20297 (propagated-inputs
20298 (list python-comm
20299 python-ipython
20300 python-jupyterlab-widgets
20301 python-traitlets
20302 python-widgetsnbextension))
20303 (home-page "https://ipython.org")
20304 (synopsis "IPython HTML widgets for Jupyter")
20305 (description "Ipywidgets are interactive HTML widgets for Jupyter
20306notebooks and the IPython kernel. Notebooks come alive when interactive
20307widgets are used. Users gain control of their data and can visualize changes
20308in the data.")
20309 (license license:bsd-3)))
20310
20311(define-public python-jsbeautifier
20312 (package
20313 (name "python-jsbeautifier")
20314 (version "1.15.3")
20315 (home-page "https://github.com/beautify-web/js-beautify")
20316 (source
20317 (origin
20318 (method git-fetch)
20319 (uri (git-reference
20320 (url home-page)
20321 (commit (string-append "v" version))))
20322 (file-name (git-file-name name version))
20323 (sha256
20324 (base32 "1zl1g6w5zn2hxk5qq83j52cxa1ig75ryjwsjxv9wiwkar4qq88zg"))))
20325 (build-system pyproject-build-system)
20326 (arguments
20327 (list
20328 #:phases
20329 #~(modify-phases %standard-phases
20330 (add-after 'unpack 'chdir
20331 (lambda _
20332 (chdir "python")
20333 (rename-file "setup-js.py" "setup.py"))))))
20334 (propagated-inputs (list python-editorconfig python-six))
20335 (native-inputs (list python-pytest python-setuptools))
20336 (synopsis "JavaScript unobfuscator and beautifier")
20337 (description
20338 "This packages provides tooling to beautify, unpack or deobfuscate
20339JavaScript, leveraging popular online obfuscators.")
20340 (license license:expat)))
20341
20342(define-public python-chardet
20343 (package
20344 (name "python-chardet")
20345 ;; XXX: Before update, check status of guix/guix#9242.
20346 (version "5.2.0")
20347 (source
20348 (origin
20349 (method url-fetch)
20350 (uri (pypi-uri "chardet" version))
20351 (sha256
20352 (base32
20353 "1xqwkjijq2fxn8rhcvfddl14lp39jllqbh527yy19i58g7s6yfqv"))))
20354 (native-inputs
20355 (list python-pytest python-setuptools))
20356 (build-system pyproject-build-system)
20357 (arguments
20358 (list #:test-flags
20359 ;; Disable test that fails sporadically:
20360 ;; https://github.com/chardet/chardet/issues/256
20361 #~'("-k" "not test_detect_all_and_detect_one_should_agree")
20362 #:phases
20363 #~(modify-phases %standard-phases
20364 ;; This package provides a 'chardetect' executable that only
20365 ;; depends on Python, so customize the wrap phase to avoid
20366 ;; adding pytest and friends in order to save size.
20367 ;; (See also <https://bugs.gnu.org/25235>.)
20368 (replace 'wrap
20369 (lambda* (#:key inputs outputs #:allow-other-keys)
20370 (let* ((sitedir (site-packages inputs outputs))
20371 (python (dirname (dirname
20372 (search-input-file
20373 inputs "bin/python"))))
20374 (python-sitedir
20375 (string-append python "/lib/python"
20376 (python-version python)
20377 "/site-packages")))
20378 (wrap-program (string-append #$output "/bin/chardetect")
20379 `("GUIX_PYTHONPATH" ":" suffix
20380 ,(list sitedir python-sitedir)))))))))
20381 (home-page "https://github.com/chardet/chardet")
20382 (synopsis "Universal encoding detector for Python 2 and 3")
20383 (description
20384 "This package provides @code{chardet}, a Python module that can
20385automatically detect a wide range of file encodings.")
20386 (license license:lgpl2.1+)))
20387
20388(define-public python-charset-normalizer
20389 (package
20390 (name "python-charset-normalizer")
20391 (version "3.4.7")
20392 (source
20393 (origin
20394 (method git-fetch)
20395 (uri (git-reference
20396 (url "https://github.com/ousret/charset_normalizer")
20397 (commit version)))
20398 (file-name (git-file-name name version))
20399 (sha256 (base32 "0faqj59d0z0yzgvsxndy48xrlvj05lfdqaf9fsc61ckwzzhlkrvl"))))
20400 (build-system pyproject-build-system)
20401 (native-inputs
20402 (list python-pytest
20403 python-setuptools))
20404 (home-page "https://github.com/ousret/charset_normalizer")
20405 (synopsis "Universal Charset Detector, alternative to Chardet")
20406 (description "This library helps you read text from an unknown charset
20407encoding. Motivated by @code{chardet}, it tries to resolve the issue by
20408taking a new approach. All IANA character set names for which the Python core
20409library provides codecs are supported.")
20410 (license license:expat)))
20411
20412(define-public python-docopt
20413 (package
20414 (name "python-docopt")
20415 (version "0.6.2")
20416 (source
20417 (origin
20418 (method git-fetch)
20419 (uri (git-reference
20420 (url "https://github.com/docopt/docopt")
20421 (commit version)))
20422 (file-name (git-file-name name version))
20423 (sha256
20424 (base32 "0aad9gbswnnhssin2q0m5lmpm0ahyf80ahs2zjigbn5y7fvljnd0"))
20425 (patches (search-patches "python-docopt-pytest6-compat.patch"))))
20426 (build-system pyproject-build-system)
20427 ;; tests: 203 passed, 6 warnings
20428 (native-inputs
20429 (list python-pytest-8 python-setuptools))
20430 (home-page "http://docopt.org")
20431 (synopsis "Command-line interface description language for Python")
20432 (description
20433 "This library allows the user to define a command-line interface from a
20434program's help message rather than specifying it programmatically with
20435command-line parsers like @code{getopt} and @code{argparse}.")
20436 (license license:expat)))
20437
20438(define-public python-pythonanywhere
20439 (package
20440 (name "python-pythonanywhere")
20441 (version "0.19.0")
20442 (source
20443 (origin
20444 (method git-fetch)
20445 (uri (git-reference
20446 (url "https://github.com/pythonanywhere/helper_scripts")
20447 (commit (string-append "v" version))))
20448 (file-name (git-file-name name version))
20449 (sha256
20450 (base32 "18g94djpq03c52j4g2c7v2s2bpijdhqz2lzz0rind97kyvss6fca"))))
20451 (build-system pyproject-build-system)
20452 (arguments
20453 (list
20454 #:test-flags
20455 #~(list "--ignore=tests/test_django_project.py" ;depedns on submodule
20456 "-k" (string-join
20457 ;; Network access is required to clone external
20458 ;; repositories.
20459 (list "not test_actually_creates_django_project_in_vir"
20460 "test_actually_downloads_repo"
20461 "test_actually_installing_a_real_package"
20462 "test_actually_works_against_example_repo"
20463 "test_autoconfigure_actually_works_against_example_repo"
20464 "test_exits_because_boolean_not_satisfied"
20465 "test_gets_version"
20466 "test_nuke_option_lets_you_run_twice"
20467 "test_nuke_option_lets_you_run_twice"
20468 "test_start_actually_creates_django_project_in_vir")
20469 " and not "))
20470 #:phases
20471 #~(modify-phases %standard-phases
20472 (add-after 'unpack 'relax-requirements
20473 (lambda _
20474 (substitute* "pyproject.toml"
20475 (("\"schema==.*\",")
20476 "\"schema\","))))
20477 (add-before 'check 'change-home
20478 (lambda _
20479 (setenv "HOME" "/tmp"))))))
20480 (native-inputs
20481 (list python-psutil
20482 python-pytest
20483 python-pytest-mock
20484 python-responses
20485 python-setuptools))
20486 (propagated-inputs
20487 (list python-dateutil
20488 python-docopt
20489 python-packaging
20490 python-pythonanywhere-core
20491 python-requests
20492 python-schema
20493 python-snakesay
20494 python-tabulate
20495 python-typer))
20496 (home-page "https://github.com/pythonanywhere/helper_scripts/")
20497 (synopsis "PythonAnywhere helper tools for users")
20498 (description
20499 "PythonAnywhere provides a command-line interface and an application
20500programming interface that allows managing files Web apps, scheduled
20501tasks and students. It includes single-command deployment for the Django Girls
20502tutorial.")
20503 (license license:expat)))
20504
20505(define-public python-pythonanywhere-core
20506 (package
20507 (name "python-pythonanywhere-core")
20508 (version "0.3.0")
20509 (source
20510 (origin
20511 (method git-fetch)
20512 (uri (git-reference
20513 (url "https://github.com/pythonanywhere/pythonanywhere-core")
20514 (commit (string-append "v" version))))
20515 (file-name (git-file-name name version))
20516 (sha256
20517 (base32 "0whi3a4wrfcaw224mi69gyds3njq64ck76mvgndamzxcq23sqr4v"))))
20518 (build-system pyproject-build-system)
20519 (arguments
20520 (list
20521 #:phases
20522 #~(modify-phases %standard-phases
20523 (add-before 'check 'pre-check
20524 (lambda _
20525 (setenv "HOME" "/tmp"))))))
20526 (native-inputs
20527 (list python-poetry-core
20528 python-pytest
20529 python-pytest-mock
20530 python-responses))
20531 (propagated-inputs
20532 (list python-dateutil
20533 python-requests
20534 python-snakesay
20535 python-typing-extensions))
20536 (home-page "https://github.com/pythonanywhere/pythonanywhere-core")
20537 (synopsis "API wrapper for PythonAnywhere services")
20538 (description
20539 "This package provides an API wrapper for programmatic management of
20540@code{PythonAnywhere} services.")
20541 (license license:expat)))
20542
20543(define-public python-dialog
20544 (package
20545 (name "python-dialog")
20546 (version "3.5.3")
20547 (source
20548 (origin
20549 (method url-fetch)
20550 (uri (pypi-uri "pythondialog" version))
20551 (sha256
20552 (base32 "08v3flvbhpc0p20drniiaalc3ijghlxk9ka5vz5mqqm6y254m8xj"))
20553 (modules '((guix build utils)))
20554 (snippet #~(delete-file-recursively "doc"))))
20555 (build-system pyproject-build-system)
20556 (arguments
20557 (list
20558 ;; XXX: There are no tests, but some examples. However, they need to
20559 ;; be run on a terminal.
20560 #:tests? #f
20561 #:phases
20562 #~(modify-phases %standard-phases
20563 (add-after 'unpack 'patch-path
20564 (lambda* (#:key inputs #:allow-other-keys)
20565 (substitute* "dialog.py"
20566 (("_path_to_executable\\(dialog\\)")
20567 (format #f "os.path.realpath(~s)"
20568 (search-input-file inputs "bin/dialog")))))))))
20569 (native-inputs (list python-setuptools))
20570 (inputs (list dialog))
20571 (home-page "https://pythondialog.sourceforge.net/")
20572 (synopsis "Python interface to the UNIX dialog utility")
20573 (description
20574 "A Python wrapper for the dialog utility. Its purpose is to provide an
20575easy to use, pythonic and comprehensive Python interface to dialog. This
20576allows one to make simple text-mode user interfaces on Unix-like systems")
20577 (license license:lgpl2.1)))
20578
20579(define-deprecated-package python-pythondialog python-dialog)
20580
20581(define-public python-confection
20582 (package
20583 (name "python-confection")
20584 (version "1.3.3")
20585 (source
20586 (origin
20587 (method git-fetch)
20588 (uri (git-reference
20589 (url "https://github.com/explosion/confection")
20590 (commit (string-append "release-v" version))))
20591 (file-name (git-file-name name version))
20592 (sha256
20593 (base32 "065a3044x26sh8wz9xw4yh1kdzn397j0mzznwvksx5qimp23117b"))))
20594 (build-system pyproject-build-system)
20595 (arguments
20596 (list
20597 #:phases
20598 #~(modify-phases %standard-phases
20599 (add-before 'check 'patch-pythonpath
20600 (lambda _
20601 (setenv "PYTHONPATH"
20602 (string-append (getcwd) ":"
20603 (getenv "GUIX_PYTHONPATH"))))))))
20604 (propagated-inputs (list python-pydantic python-srsly))
20605 (native-inputs (list python-pytest python-setuptools))
20606 (home-page "https://github.com/explosion/confection")
20607 (synopsis "Config system for Python")
20608 (description
20609 "Confection is a lightweight library that offers a configuration system
20610letting you conveniently describe arbitrary trees of objects.")
20611 (license license:expat)))
20612
20613(define-public python-configobj
20614 (package
20615 (name "python-configobj")
20616 (version "5.0.9")
20617 (source
20618 (origin
20619 (method url-fetch)
20620 (uri (pypi-uri "configobj" version))
20621 (sha256
20622 (base32 "0j3872id3ngxkaapz9bv8as4lg4rfmch0dxqy767p81syaxq3j03"))))
20623 (build-system pyproject-build-system)
20624 (native-inputs
20625 (list python-pytest
20626 python-setuptools))
20627 (home-page "https://github.com/DiffSK/configobj")
20628 (synopsis "Config file reading, writing and validation")
20629 (description
20630 "ConfigObj is a simple but powerful config file reader and writer: an
20631 ini file round tripper. Its main feature is that it is very easy to use,
20632with a straightforward programmer’s interface and a simple syntax for config
20633files.")
20634 (license license:bsd-3)))
20635
20636(define-public python-omegaconf
20637 (let ((commit "71e02647d93bb8bd467502008940317920ec7e5b")
20638 (revision "1"))
20639 (package
20640 (name "python-omegaconf")
20641 (version (git-version "2.3.0" revision commit))
20642 (source
20643 (origin
20644 (method git-fetch)
20645 (uri (git-reference
20646 (url "https://github.com/omry/omegaconf")
20647 (commit commit)))
20648 (file-name (git-file-name name version))
20649 (modules '((guix build utils)))
20650 (snippet
20651 #~(begin
20652 (delete-file-recursively "build_helpers/bin")
20653 (substitute* "build_helpers/build_helpers.py"
20654 (("java") "antlr4")
20655 (("\"-jar\",") "")
20656 (("str\\(build_dir / \"bin\" / \"antlr.*\"\\),") ""))))
20657 (sha256
20658 (base32 "1n5s1lm22sl2h4c1wv73lgkkqxcvhzgwm4bafvcqml3ckawvbw99"))))
20659 (build-system pyproject-build-system)
20660 (arguments
20661 (list
20662 #:test-flags
20663 ;; XXX: Those tests currently fail collection.
20664 #~(list "--ignore=tests/structured_conf/test_structured_config.py"
20665 "--ignore=tests/test_basic_ops_list.py"
20666 "--ignore=tests/test_merge.py"
20667 "--ignore=tests/test_select.py")
20668 #:phases
20669 #~(modify-phases %standard-phases
20670 (add-after 'unpack 'loosen-requirements
20671 (lambda _
20672 (substitute* "requirements/base.txt"
20673 (("antlr4-python3-runtime==.*")
20674 "antlr4-python3-runtime >=4.9\n"))
20675 ;; Ignore deprecation warnings.
20676 (substitute* "pyproject.toml"
20677 (("-Werror") "")))))))
20678 (native-inputs
20679 (list icedtea
20680 antlr4
20681 python-pytest
20682 python-pytest-mock
20683 python-setuptools
20684 python-wheel))
20685 (propagated-inputs
20686 (list python-antlr4-runtime
20687 python-pydevd
20688 python-pyyaml))
20689 (home-page "https://github.com/omry/omegaconf")
20690 (synopsis "Flexible configuration system")
20691 (description
20692 "OmegaConf is a hierarchical configuration system and supports merging
20693configurations from multiple sources. It provides a consistent API regardless
20694of how the configuration was created.")
20695 (license license:bsd-3))))
20696
20697(define-public python-configargparse
20698 (package
20699 (name "python-configargparse")
20700 (version "1.7.5")
20701 (source
20702 (origin
20703 (method git-fetch)
20704 (uri (git-reference
20705 (url "https://github.com/bw2/ConfigArgParse")
20706 (commit (string-append "v" version))))
20707 (file-name (git-file-name name version))
20708 (sha256
20709 (base32 "04d54knfjgxci3far2cp72xr8bjabq0xcawc0ks2nk7mfl1p05v5"))))
20710 (build-system pyproject-build-system)
20711 (native-inputs
20712 (list python-mock
20713 python-pytest
20714 python-pyyaml
20715 python-setuptools
20716 python-setuptools-scm))
20717 (home-page "https://github.com/bw2/ConfigArgParse")
20718 (synopsis "Replacement for argparse")
20719 (description
20720 "This package provides a drop-in replacement for argparse that allows
20721options to also be set via config files and/or environment variables.")
20722 (license license:expat)))
20723
20724(define-public python-connection-pool
20725 (package
20726 (name "python-connection-pool")
20727 (version "0.0.3")
20728 (source
20729 (origin
20730 (method git-fetch)
20731 (uri (git-reference
20732 (url "https://github.com/zhouyl/ConnectionPool")
20733 (commit version)))
20734 (file-name (git-file-name name version))
20735 (sha256
20736 (base32 "1c6676vga0p4xxa3f0jpbwgp3n69mxjisnfcwibd9x23iyxf3sr2"))))
20737 (build-system pyproject-build-system)
20738 (arguments (list #:tests? #f)) ; No tests.
20739 (native-inputs (list python-setuptools))
20740 (home-page "https://github.com/zhouyl/ConnectionPool")
20741 (synopsis "Thread-safe connection pool")
20742 (description
20743 "This package provides a library implementing a thread-safe connection
20744pool.")
20745 (license license:expat)))
20746
20747(define-public python-argparse-dataclass
20748 (package
20749 (name "python-argparse-dataclass")
20750 (version "2.0.0")
20751 (source
20752 (origin
20753 (method git-fetch) ;no tests in PyPI archive
20754 (uri (git-reference
20755 (url "https://github.com/mivade/argparse_dataclass")
20756 (commit version)))
20757 (file-name (git-file-name name version))
20758 (sha256
20759 (base32 "0fbxs2a4jk5bvy42jlnqw4l02zs1s6mmfn4sr8rknyc4ngl4y9q1"))))
20760 (build-system pyproject-build-system)
20761 (native-inputs (list python-pytest python-setuptools python-wheel))
20762 (home-page "https://github.com/mivade/argparse_dataclass")
20763 (synopsis "Declarative command-line interfaces using argparse and dataclasses")
20764 (description
20765 "This package provides declarative command-line interfaces using argparse
20766and dataclasses.")
20767 (license license:expat)))
20768
20769(define-public python-argparse-manpage
20770 (package
20771 (name "python-argparse-manpage")
20772 (version "4.7")
20773 (source
20774 (origin
20775 (method url-fetch)
20776 (uri (pypi-uri "argparse_manpage" version))
20777 (sha256
20778 (base32 "0clb20scp408gxac675v731vnj89pk9d5fb7pcy7bj1a45mvgshx"))))
20779 (build-system pyproject-build-system)
20780 (arguments
20781 (list
20782 #:test-flags
20783 ;; Tests require PIP.
20784 #~(list "--ignore=tests/test_examples.py")))
20785 (native-inputs
20786 (list python-pytest
20787 python-setuptools))
20788 (home-page "https://github.com/praiskup/argparse-manpage")
20789 (synopsis "Build manual page from Python's ArgumentParser object")
20790 (description
20791 "This package provides tools to build manual pages from Python's
20792@code{ArgumentParser} object.")
20793 (license license:asl2.0)))
20794
20795(define-public python-atomicwrites
20796 (package
20797 (name "python-atomicwrites")
20798 (version "1.4.0")
20799 (source
20800 (origin
20801 (method git-fetch)
20802 (uri (git-reference
20803 (url "https://github.com/untitaker/python-atomicwrites")
20804 (commit version)))
20805 (file-name (git-file-name name version))
20806 (sha256
20807 (base32 "1f21l5fyh8qmsacbsknwwgnd1b9x4i0aw0zpczr05wklkkbvd58y"))))
20808 (build-system pyproject-build-system)
20809 (native-inputs (list python-pytest python-setuptools))
20810 (synopsis "Atomic file writes in Python")
20811 (description
20812 "Library for atomic file writes using platform dependent tools
20813for atomic file system operations.")
20814 (home-page "https://github.com/untitaker/python-atomicwrites")
20815 (license license:expat)))
20816
20817(define-public python-qstylizer
20818 (package
20819 (name "python-qstylizer")
20820 (version "0.2.4")
20821 (source
20822 (origin
20823 (method git-fetch)
20824 (uri (git-reference
20825 (url "https://github.com/blambright/qstylizer")
20826 (commit version)))
20827 (file-name (git-file-name name version))
20828 (sha256
20829 (base32 "0413msw23kv87fgs14ajp9wb2qxkcw6ydvwjzabz7xcp8iif9kr2"))))
20830 (build-system pyproject-build-system)
20831 (native-inputs
20832 (list python-pbr
20833 python-pytest
20834 python-pytest-mock
20835 python-setuptools
20836 python-wheel))
20837 (propagated-inputs
20838 (list python-inflection
20839 python-tinycss2))
20840 (home-page "https://github.com/blambright/qstylizer")
20841 (synopsis "Qt stylesheet generation utility for PyQt/PySide")
20842 (description "@code{qstylizer} is a Python package designed to help with
20843the construction of PyQt/PySide stylesheets.")
20844 (license license:expat)))
20845
20846(define-public python-click-threading
20847 (package
20848 (name "python-click-threading")
20849 (version "0.5.0")
20850 (source
20851 (origin
20852 (method git-fetch)
20853 (uri (git-reference
20854 (url "https://github.com/click-contrib/click-threading")
20855 (commit version)))
20856 (file-name (git-file-name name version))
20857 (sha256
20858 (base32 "185pzw12ap7wrjpyxhsyrkhh7i1l5qclaa3zlpn8qvm39fz0kjni"))))
20859 (build-system pyproject-build-system)
20860 (native-inputs (list python-pytest python-setuptools))
20861 (propagated-inputs (list python-click))
20862 (synopsis "Utilities for multithreading in Click")
20863 (description
20864 "This package provides utilities for multithreading in Click
20865applications.")
20866 (home-page "https://github.com/click-contrib/click-threading")
20867 (license license:expat)))
20868
20869(define-public python-click-log
20870 (package
20871 (name "python-click-log")
20872 (version "0.3.2")
20873 (source
20874 (origin
20875 (method git-fetch)
20876 (uri (git-reference
20877 (url "https://github.com/click-contrib/click-log")
20878 (commit version)))
20879 (file-name (git-file-name name version))
20880 (sha256
20881 (base32 "01zpjyqnyzrx6xi7cii2180bqdcg2a6b1sdbjijri8jv755r7ray"))))
20882 (build-system pyproject-build-system)
20883 (native-inputs (list python-pytest python-setuptools))
20884 (propagated-inputs (list python-click))
20885 (synopsis "Logging for click applications")
20886 (description
20887 "This package provides a Python library for logging Click applications.")
20888 (home-page "https://github.com/click-contrib/click-log")
20889 (license license:expat)))
20890
20891(define-public python-click-default-group
20892 (package
20893 (name "python-click-default-group")
20894 (version "1.2.4")
20895 (source
20896 (origin
20897 (method git-fetch) ; no tests in PyPI release
20898 (uri (git-reference
20899 (url "https://github.com/click-contrib/click-default-group")
20900 (commit (string-append "v" version))))
20901 (file-name (git-file-name name version))
20902 (sha256
20903 (base32 "06h12qwg0lhvxlgfm9768afibwp8j6r3r440v630a30bv0nkhngm"))))
20904 (build-system pyproject-build-system)
20905 (propagated-inputs
20906 (list python-click))
20907 (native-inputs
20908 (list python-flit-core python-pytest))
20909 (synopsis "Extends click.Group")
20910 (description "This package extends click.Group to invoke a command without
20911explicit subcommand name.")
20912 (home-page "https://github.com/click-contrib/click-default-group")
20913 (license license:bsd-3)))
20914
20915(define-public python-apipkg
20916 (package
20917 (name "python-apipkg")
20918 (version "3.0.2")
20919 (source
20920 (origin
20921 (method url-fetch)
20922 (uri (pypi-uri "apipkg" version))
20923 (sha256
20924 (base32 "03ay7j57mfh4sa8vh9qwid1ggwdc0lasyw3ycsmgv5r6z2j63an7"))))
20925 (build-system pyproject-build-system)
20926 (arguments (list #:tests? #f)) ;no tests in PyPI archive
20927 (native-inputs
20928 (list python-hatch-vcs
20929 python-hatchling))
20930 (home-page "https://github.com/pytest-dev/apipkg")
20931 (synopsis "Namespace control and lazy-import mechanism")
20932 (description "With apipkg you can control the exported namespace of a Python
20933package and greatly reduce the number of imports for your users. It is a small
20934pure Python module that works on virtually all Python versions.")
20935 (license license:expat)))
20936
20937(define-public python-essentials
20938 (package
20939 (name "python-essentials")
20940 (version "1.1.8")
20941 (source
20942 (origin
20943 (method git-fetch)
20944 (uri (git-reference
20945 (url "https://github.com/Neoteroi/essentials")
20946 (commit (string-append "v" version))))
20947 (file-name (git-file-name name version))
20948 (sha256
20949 (base32 "1k8ybgxh0xvwxjc22pkmyvdhm0jgmj77rlg656r81iiibc0l7zj8"))))
20950 (build-system pyproject-build-system)
20951 (native-inputs
20952 (list python-hatchling
20953 python-pydantic
20954 python-pytest-asyncio))
20955 (home-page "https://github.com/Neoteroi/essentials/wiki")
20956 (synopsis
20957 "Utility functions, exceptions, and classes for Python applications")
20958 (description
20959 "Essentials is a collection of functions, exceptions, and classes for Python
20960applications. Examples of utilities are exceptions for common scenarios,
20961friendly JSON encoder, decorators for retries and logging.")
20962 (license license:expat)))
20963
20964(define-public python-execnet
20965 (package
20966 (name "python-execnet")
20967 (version "2.1.2")
20968 (source
20969 (origin
20970 (method git-fetch)
20971 (uri (git-reference
20972 (url "https://github.com/pytest-dev/execnet")
20973 (commit (string-append "v" version))))
20974 (file-name (git-file-name name version))
20975 (sha256
20976 (base32 "1msiqa1qz6dkdh4c3z351cld12qh8amhq4j1mdkq8sz015j47vnx"))))
20977 (build-system pyproject-build-system)
20978 (arguments
20979 (list
20980 ;; tests: 466 passed, 614 skipped, 4 xfailed, 11 xpassed, 1 warning
20981 #:phases
20982 #~(modify-phases %standard-phases
20983 (add-before 'check 'pre-check
20984 (lambda _
20985 ;; Unset PYTHONDONTWRITEBYTECODE to match the expectations of a
20986 ;; test in 'testing/test_gateway.py'.
20987 (unsetenv "PYTHONDONTWRITEBYTECODE"))))))
20988 (native-inputs
20989 (list python-hatchling
20990 python-hatch-vcs
20991 python-pytest-bootstrap))
20992 (home-page "https://codespeak.net/execnet/")
20993 (synopsis "Rapid multi-Python deployment")
20994 (description
20995 "Execnet provides a share-nothing model with channel-send/receive communication
20996for distributing execution across many Python interpreters across version,
20997platform and network barriers. It has a minimal and fast API targeting the
20998following uses:
20999
21000@enumerate
21001@item distribute tasks to (many) local or remote CPUs
21002@item write and deploy hybrid multi-process applications
21003@item write scripts to administer multiple environments
21004@end enumerate")
21005 (license license:expat)))
21006
21007(define-public python-icalendar
21008 (package
21009 (name "python-icalendar")
21010 (version "6.3.2")
21011 (source
21012 (origin
21013 (method url-fetch) ;XXX: hatch-vcs fails with git-fetch
21014 (uri (pypi-uri "icalendar" version))
21015 (sha256
21016 (base32 "188hj57l5l1jjnrfxwkmsh8hsn5pwvv93m7p7b9misgbzk5hxhg0"))))
21017 (build-system pyproject-build-system)
21018 (arguments
21019 (list
21020 ;; tests: 8995 passed, 21 skipped, 2 deselected
21021 #:test-flags
21022 #~(list
21023 "-k"
21024 (string-append
21025 ;; See: <https://github.com/collective/icalendar/issues/812>.
21026 "not test_dateutil_timezone_is_matched_with_tzname[Arctic/Longyearbyen]"
21027 " and not test_docstring_of_python_file[icalendar.timezone.tzid]"))))
21028 (native-inputs
21029 (list python-hatch-vcs
21030 python-hatchling
21031 python-pytest
21032 python-pytz))
21033 (propagated-inputs
21034 (list python-dateutil
21035 python-tzdata))
21036 (home-page "https://github.com/collective/icalendar")
21037 (synopsis "Python library for parsing and generating iCalendar files")
21038 (description
21039 "@code{icalendar} is a Python library for parsing and generating
21040iCalendar files.")
21041 (license license:bsd-2)))
21042
21043(define-public python-args
21044 (let ((commit "9460f1a35eb3055e9e4de1f0a6932e0883c72d65")
21045 (revision "0"))
21046 (package
21047 (name "python-args")
21048 (version (git-version "0.1.0" revision commit))
21049 (source
21050 (origin
21051 (method git-fetch)
21052 (uri (git-reference
21053 (url "https://github.com/kennethreitz-archive/args")
21054 (commit commit)))
21055 (file-name (git-file-name name version))
21056 (sha256
21057 (base32 "1zfxpbp9vldqdrjmd0c6y3wisl35mx5v8zlyp3nhwpy1730wrc9j"))))
21058 (build-system pyproject-build-system)
21059 (arguments
21060 (list
21061 #:tests? #f ; XXX: python-nose is deprecated.
21062 #:phases
21063 #~(modify-phases %standard-phases
21064 (add-after 'unpack 'patch-args.py
21065 (lambda _
21066 (substitute* "args.py"
21067 (("basestring")
21068 "str")))))))
21069 (native-inputs (list python-setuptools python-wheel))
21070 (home-page "https://github.com/kennethreitz-archive/args")
21071 (synopsis "Command-line argument parser")
21072 (description
21073 "This library provides a Python module to parse command-line arguments.")
21074 (license license:bsd-3))))
21075
21076(define-public python-clint
21077 (package
21078 (name "python-clint")
21079 (version "0.5.1")
21080 (source (origin
21081 (method url-fetch)
21082 (uri (pypi-uri "clint" version))
21083 (sha256
21084 (base32
21085 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
21086 (build-system pyproject-build-system)
21087 (native-inputs
21088 (list python-pytest python-setuptools python-wheel))
21089 (propagated-inputs
21090 (list python-args))
21091 (home-page "https://github.com/kennethreitz/clint")
21092 (synopsis "Command-line interface tools")
21093 (description
21094 "Clint is a Python module filled with a set of tools for developing
21095command-line applications, including tools for colored and indented
21096output, progress bar display, and pipes.")
21097 (license license:isc)))
21098
21099(define-public python-rply
21100 (package
21101 (name "python-rply")
21102 (version "0.7.8")
21103 (source
21104 (origin
21105 (method git-fetch)
21106 (uri (git-reference
21107 (url "https://github.com/alex/rply")
21108 (commit (string-append "v" version))))
21109 (file-name (git-file-name name version))
21110 (sha256
21111 (base32 "0kn8vikyf95mr8l9g3324b7gk4cgxlvvy1abqpl1h803idqg1vwq"))))
21112 (build-system pyproject-build-system)
21113 (arguments
21114 (list
21115 #:test-flags #~(list "--ignore=tests/test_ztranslation.py")
21116 #:phases
21117 #~(modify-phases %standard-phases
21118 (add-before 'check 'fix-pytest-use
21119 (lambda _
21120 (substitute* (find-files "tests" "\\.py$")
21121 (("import py")
21122 "import pytest")
21123 (("py\\.test")
21124 "pytest"))
21125 (setenv "HOME" (getcwd)))))))
21126 (native-inputs (list python-pytest python-setuptools))
21127 (propagated-inputs (list python-appdirs))
21128 (home-page "https://github.com/alex/rply")
21129 (synopsis "Parser generator for Python")
21130 (description
21131 "This package provides a pure Python based parser generator, that also
21132works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
21133with a new public API, and RPython support.")
21134 (license license:bsd-3)))
21135
21136(define-public python-hy
21137 (package
21138 (name "python-hy")
21139 (version "1.3.1")
21140 (source
21141 (origin
21142 (method git-fetch)
21143 (uri (git-reference
21144 (url "https://github.com/hylang/hy")
21145 (commit version)))
21146 (file-name (git-file-name name version))
21147 (sha256
21148 (base32 "0fc1qjr2kkl3a5hig9l2g3ysapvc16gj1gyblaszm3xza6w0zn58"))))
21149 (build-system pyproject-build-system)
21150 (arguments
21151 (list
21152 ;; This test expects the hy executable to be called 'hy', but in Guix
21153 ;; it's .hy-real.
21154 #:test-flags #~(list "-k" "not test_sys_executable")))
21155 (native-inputs (list python-pytest python-setuptools))
21156 (propagated-inputs (list python-funcparserlib))
21157 (home-page "https://hylang.org/hy/doc")
21158 (synopsis "Lisp frontend to Python")
21159 (description
21160 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
21161its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
21162Python at your fingertips, in Lisp form.")
21163 (license license:expat)))
21164
21165(define-public python-hissp
21166 (package
21167 (name "python-hissp")
21168 (version "0.5.0")
21169 (source
21170 (origin
21171 (method git-fetch)
21172 (uri (git-reference
21173 (url "https://github.com/gilch/hissp")
21174 (commit (string-append "v" version))))
21175 (file-name (git-file-name name version))
21176 (sha256
21177 (base32 "03lxna935c0qs3lppb2xrvvgh0dkwz8lh5pmgqrmpddin1kxyjri"))))
21178 (build-system pyproject-build-system)
21179 (arguments (list #:test-backend #~'unittest))
21180 (native-inputs (list python-hypothesis python-setuptools))
21181 (home-page "https://github.com/gilch/hissp")
21182 (synopsis "It's Python with a Lissp")
21183 (description
21184 "Hissp is a modular Lisp implementation that compiles to a functional
21185subset of Python—Syntactic macro metaprogramming with full access to the
21186Python ecosystem.")
21187 (license license:asl2.0)))
21188
21189(define-public python-promise
21190 (package
21191 (name "python-promise")
21192 (version "2.3.0")
21193 (source
21194 (origin
21195 (method git-fetch)
21196 (uri (git-reference
21197 (url "https://github.com/syrusakbary/promise")
21198 (commit (string-append "v" version))))
21199 (file-name (git-file-name name version))
21200 (sha256
21201 (base32 "17mq1bm78xfl0x1g50ng502m5ldq6421rzz35hlqafsj0cq8dkp6"))))
21202 (build-system pyproject-build-system)
21203 (arguments
21204 (list
21205 #:test-flags
21206 #~(list "--ignore=tests/test_benchmark.py"
21207 ;; Issues with pytest-asyncio
21208 "--ignore=tests/test_awaitable.py"
21209 "-k" (string-join
21210 (list "not test_issue_9_safe"
21211 ;; Stacktrace issues.
21212 "test_thrown_exceptions_have_stacktrace"
21213 "test_thrown_exceptions_preserve_stacktrace")
21214 " and not "))))
21215 (native-inputs
21216 (list python-mock
21217 python-pytest
21218 python-pytest-asyncio
21219 python-setuptools))
21220 (propagated-inputs (list python-six))
21221 (home-page "https://github.com/syrusakbary/promise")
21222 (synopsis "Promises/A+ implementation for Python")
21223 (description
21224 "This package provides an implementation of Promises in Python. It is a
21225super set of Promises/A+ designed to have readable, performant code and to
21226provide just the extensions that are absolutely necessary for using promises
21227in Python.")
21228 (license license:expat)))
21229
21230(define-public python-progress
21231 (package
21232 (name "python-progress")
21233 (version "1.6")
21234 (source
21235 (origin
21236 (method git-fetch)
21237 (uri (git-reference
21238 (url "https://github.com/verigak/progress/")
21239 (commit version)))
21240 (file-name (git-file-name name version))
21241 (sha256
21242 (base32 "0qz5b9d3cvfdy2f1gb4r20f1qgcsihhmbc2bm2jgbvryxylp0f5k"))
21243 (snippet #~(delete-file "demo.gif"))))
21244 (build-system pyproject-build-system)
21245 (arguments
21246 (list
21247 #:test-backend #~'custom
21248 #:test-flags #~(list "test_progress.py")))
21249 (native-inputs (list python-setuptools))
21250 (home-page "https://github.com/verigak/progress/")
21251 (synopsis "Progress reporting bars for Python")
21252 (description
21253 "This Python package provides progress reporting for visual of progress
21254of long running operations. There are multiple choices of progress bars and
21255spinners, with customizable options, such as width, fill character, and
21256suffix.")
21257 (license license:isc)))
21258
21259(define-public python-progressbar2
21260 (package
21261 (name "python-progressbar2")
21262 (version "4.5.0")
21263 (source
21264 (origin
21265 (method url-fetch)
21266 (uri (pypi-uri "progressbar2" version))
21267 (sha256
21268 (base32 "1yw8j3sz9y3nw2x1ffiqqzml8l9vb0kixxnsjkmk3vc691icnqk6"))))
21269 (build-system pyproject-build-system)
21270 (arguments
21271 (list
21272 #:test-flags #~(list "--pyargs" "progressbar" "tests")
21273 #:phases
21274 #~(modify-phases %standard-phases
21275 (add-after 'unpack 'fix-pytest-config
21276 (lambda _
21277 ;; Drop test coverage requirements.
21278 (substitute* "pytest.ini"
21279 ((".*-cov.*") "")))))))
21280 (native-inputs
21281 (list python-dill
21282 python-pytest
21283 python-freezegun
21284 python-setuptools
21285 python-setuptools-scm
21286 python-wheel))
21287 (propagated-inputs
21288 (list python-utils))
21289 (home-page "https://github.com/WoLpH/python-progressbar")
21290 (synopsis "Text progress bar library for Python")
21291 (description
21292 "This package provides a Python progressbar library to provide
21293visual (yet text based) progress to long running operations.")
21294 (license license:bsd-3)))
21295
21296(define-public python-progressbar33
21297 (package
21298 (name "python-progressbar33")
21299 (version "2.4")
21300 (source
21301 (origin
21302 (method git-fetch)
21303 (uri (git-reference
21304 (url "https://github.com/germangh/python-progressbar")
21305 (commit (string-append "v" version))))
21306 (file-name (git-file-name name version))
21307 (sha256
21308 (base32 "0vyn2l6i7fgqskqfx3nfs1dibc5v1cxydg3v3422xf41pkba282c"))))
21309 (build-system pyproject-build-system)
21310 (arguments
21311 (list
21312 #:test-backend #~'custom
21313 #:test-flags #~(list "examples.py")))
21314 (native-inputs (list python-setuptools))
21315 (home-page "https://github.com/germangh/python-progressbar")
21316 (synopsis "Text progress bar library for Python")
21317 (description
21318 "This package provides a text progress bar library for Python. This
21319version only differs from the original @code{progressbar} package in that it
21320uses relative package imports instead of absolute imports, which is necessary
21321for the module to work under Python 3.3.")
21322 ;; Either or both of these licenses may be selected.
21323 (license (list license:lgpl2.1+ license:bsd-3))))
21324
21325;; XXX: Not maintained since 2012.
21326(define-public python-monthdelta
21327 (package
21328 (name "python-monthdelta")
21329 (version "0.9.1")
21330 (source
21331 (origin
21332 (method url-fetch)
21333 (uri (pypi-uri "MonthDelta" version))
21334 (sha256
21335 (base32 "0iwcsk7ryjw5h1wp10ykwd01f3am8gdlga6461q1v1njsk0rxh41"))))
21336 (build-system pyproject-build-system)
21337 (arguments
21338 (list #:tests? #f)) ; No tests.
21339 (native-inputs (list python-setuptools))
21340 (home-page "http://packages.python.org/MonthDelta")
21341 (synopsis "Date computations with months")
21342 (description
21343 "MonthDelta provides functionality to do date computations with months.")
21344 (license license:expat)))
21345
21346(define-public python-moto
21347 (package
21348 (name "python-moto")
21349 (version "5.1.20")
21350 (source (origin
21351 (method url-fetch)
21352 (uri (pypi-uri "moto" version))
21353 (sha256
21354 (base32 "1h1yy584gs061s3yrgggqvg3m3hp71aivq5pwj00smbawa0xf4kd"))))
21355 (build-system pyproject-build-system)
21356 (arguments
21357 (list
21358 ;; tests: 11149 passed, 38 skipped, 52 deselected, 2 xfailed, 4 warnings
21359 #:test-flags
21360 #~(list "-m" "not network and not requires_docker"
21361 ;; Not all of the tests are thread save, see:
21362 ;; <https://github.com/getmoto/moto/issues/7786>.
21363 ;; "--numprocesses" (number->string (min 8 (parallel-job-count)))
21364 "-k" (string-join
21365 ;; Network access is required.
21366 (list "not test_passthrough_calls_for_entire_service"
21367 "test_passthrough_calls_for_specific_url"
21368 "test_passthrough_calls_for_wildcard_urls"
21369 "test_put_record_batch_http_destination"
21370 "test_put_record_http_destination"
21371 "test_s3_server_post_cors_multiple_origins"
21372 "test_with_custom_request_header"
21373 ;; AttributeError: 'ImportError' object has no
21374 ;; attribute 'message'
21375 "test_batch_update"
21376 "test_batch_update__not_enough_parameters"
21377 "test_execute_transaction"
21378 "test_without_primary_key_in_where_clause")
21379 " and not ")
21380 "tests")
21381 #:phases
21382 #~(modify-phases %standard-phases
21383 (add-after 'unpack 'patch-hardcoded-executable-names
21384 (lambda* (#:key inputs #:allow-other-keys)
21385 (let ((bash-exec (search-input-file inputs "/bin/sh")))
21386 (substitute* "moto/batch/models.py"
21387 (("/bin/sh") bash-exec))
21388 (substitute* (find-files "tests" "\\.py$")
21389 (("#!/bin/bash") (string-append "#!" bash-exec))))))
21390 (add-before 'check 'pre-check
21391 (lambda _
21392 (setenv "AWS_ACCESS_KEY_ID" "guix-access-key-id")
21393 (setenv "AWS_SECRET_ACCESS_KEY" "guix-secret-access-key")
21394 (setenv "TESTS_SKIP_REQUIRES_DOCKER" "true"))))))
21395 (native-inputs
21396 (list python-flask
21397 python-flask-cors
21398 python-freezegun
21399 python-pycognito
21400 python-pyotp
21401 python-pytest
21402 python-setuptools))
21403 (inputs
21404 (list bash-minimal))
21405 (propagated-inputs
21406 (list python-antlr4-runtime
21407 python-aws-xray-sdk
21408 python-boto3
21409 python-botocore
21410 python-cfn-lint
21411 python-cryptography
21412 python-dateutil
21413 python-graphql-core
21414 python-jinja2
21415 python-joserfc
21416 python-jsonpath-ng
21417 python-multipart
21418 python-openapi-spec-validator
21419 python-py-partiql-parser
21420 python-pyparsing
21421 python-requests
21422 python-responses
21423 python-werkzeug
21424 python-xmltodict))
21425 (home-page "https://github.com/spulec/moto")
21426 (synopsis "Mock out the boto library")
21427 (description
21428 "@code{moto} is a library designed to easily mock out the
21429@code{boto} library.")
21430 (license license:asl2.0)))
21431
21432(define-public python-plumbum
21433 (package
21434 (name "python-plumbum")
21435 (version "1.7.0")
21436 (source
21437 (origin
21438 (method git-fetch)
21439 (uri (git-reference
21440 (url "https://github.com/tomerfiliba/plumbum")
21441 (commit (string-append "v" version))))
21442 (file-name (git-file-name name version))
21443 (sha256
21444 (base32 "1vlaiz4bwgrcay51knj6a20lh3lwihjqxhxhdk6nqkn9ijg0hc81"))))
21445 (build-system pyproject-build-system)
21446 (arguments
21447 (list
21448 #:test-flags
21449 #~(list "--ignore=tests/test_remote.py"
21450 "--ignore=tests/test_putty.py"
21451 "--ignore=tests/test_sudo.py"
21452 "-k"
21453 (string-join (list "not test_home"
21454 "test_iter_lines_error"
21455 "test_quoting"
21456 "test_copy_move_delete")
21457 " and not "))))
21458 (native-inputs
21459 (list procps
21460 python-psutil
21461 python-pytest
21462 python-setuptools
21463 python-setuptools-scm
21464 python-wheel))
21465 (home-page "https://plumbum.readthedocs.io")
21466 (synopsis "Python shell combinators library")
21467 (description
21468 "Plumbum is a library of tools for replacing shell scripts with Python
21469code.")
21470 (license license:expat)))
21471
21472(define-public python-deprecation
21473 (package
21474 (name "python-deprecation")
21475 (version "2.1.0")
21476 (source
21477 (origin
21478 (method url-fetch)
21479 (uri (pypi-uri "deprecation" version))
21480 (sha256
21481 (base32
21482 "1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj"))))
21483 (build-system pyproject-build-system)
21484 (arguments
21485 (list
21486 #:test-backend #~'unittest
21487 #:phases
21488 #~(modify-phases %standard-phases
21489 (add-after 'unpack 'drop-unittest2
21490 ;; See: <https://github.com/briancurtin/deprecation/issues/54>.
21491 (lambda _
21492 (substitute* "tests/test_deprecation.py"
21493 (("import unittest2")
21494 "import unittest as unittest2")))))))
21495 (native-inputs
21496 (list python-setuptools))
21497 (propagated-inputs
21498 (list python-packaging))
21499 (home-page "https://deprecation.readthedocs.io/")
21500 (synopsis "Python library to handle automated deprecations")
21501 (description
21502 "This is a library that enables automated deprecations. It offers the
21503@code{deprecated()} decorator to wrap functions, providing proper warnings
21504both in documentation and via Python’s warnings system, as well as the
21505@code{deprecation.fail_if_not_removed()} decorator for test methods to ensure
21506that deprecated code is eventually removed.")
21507 (license license:asl2.0)))
21508
21509(define-public python-jmespath
21510 (package
21511 (name "python-jmespath")
21512 (version "1.0.1")
21513 (source
21514 (origin
21515 (method url-fetch)
21516 (uri (pypi-uri "jmespath" version))
21517 (sha256
21518 (base32 "1gpdc1f0q5c9scmbw1l9g40jjfk3pxwg91ayvn7xbvvddlh1n9lh"))))
21519 (build-system pyproject-build-system)
21520 (native-inputs
21521 (list python-pytest
21522 python-setuptools))
21523 (home-page "https://github.com/jmespath/jmespath.py")
21524 (synopsis "JSON Matching Expressions")
21525 (description
21526 "JMESPath (pronounced “james path”) is a Python library that allows one
21527to declaratively specify how to extract elements from a JSON document.")
21528 (license license:expat)))
21529
21530(define-public python-asteval
21531 (package
21532 (name "python-asteval")
21533 (version "1.0.6")
21534 (source
21535 (origin
21536 (method url-fetch)
21537 (uri (pypi-uri "asteval" version))
21538 (sha256
21539 (base32 "17x1qk07cixj1nn59pp5dzjc9jna92v6kljdss81l5rf9cqfga0s"))))
21540 (build-system pyproject-build-system)
21541 (native-inputs
21542 (list python-pytest python-setuptools python-setuptools-scm))
21543 (home-page "https://github.com/newville/asteval")
21544 (synopsis "Minimalistic evaluator of Python expressions")
21545 (description
21546 "This package provides a minimalistic evaluator of Python expression
21547using the @code{ast} module.")
21548 (license license:expat)))
21549
21550(define-public python-lmfit
21551 (package
21552 (name "python-lmfit")
21553 (version "1.3.4")
21554 (source
21555 (origin
21556 (method git-fetch)
21557 (uri (git-reference
21558 (url "https://github.com/lmfit/lmfit-py")
21559 (commit version)))
21560 (file-name (git-file-name name version))
21561 (sha256
21562 (base32 "00zx5fc5qkk8cxjpz00z8xm4kga7m0jgr8pbgb097sifbxlix0d9"))))
21563 (build-system pyproject-build-system)
21564 (native-inputs
21565 (list python-pytest
21566 python-setuptools
21567 python-setuptools-scm))
21568 (propagated-inputs
21569 (list python-asteval
21570 python-dill
21571 python-numpy
21572 python-scipy
21573 python-uncertainties))
21574 (home-page "https://lmfit.github.io/lmfit-py/")
21575 (synopsis "Least-Squares minimization with bounds and constraints")
21576 (description
21577 "Lmfit provides a high-level interface to non-linear optimization and
21578curve fitting problems for Python. It builds on and extends many of the
21579optimization methods of @code{scipy.optimize}. Initially inspired by (and
21580named for) extending the Levenberg-Marquardt method from
21581@code{scipy.optimize.leastsq}, lmfit now provides a number of useful
21582enhancements to optimization and data fitting problems.")
21583 (license license:bsd-3)))
21584
21585(define-public python-bokeh
21586 (package
21587 (name "python-bokeh")
21588 ;; Update bokehjs on (gnu packages javascript) to the same version.
21589 (version "3.10.0")
21590 (source
21591 (origin
21592 (method git-fetch)
21593 (uri (git-reference
21594 (url "https://github.com/bokeh/bokeh")
21595 (commit version)))
21596 (file-name (git-file-name name version))
21597 (sha256
21598 (base32 "0gh3zmc6nb7awxgpyry3ncy15a18kmimm1ja6sa0qprw4bysx1xb"))
21599 (patches (list (search-patch "python-bokeh-bokehjs-env.patch")))
21600 (modules '((guix build utils)))
21601 (snippet
21602 #~(delete-file-recursively "bokehjs"))))
21603 (build-system pyproject-build-system)
21604 (arguments
21605 (list
21606 #:test-flags
21607 #~(list
21608 ;; Ignore bokehjs outdated resources tests.
21609 ;; 11983 passed, 23 skipped, 1 deselected.
21610 "--ignore=tests/test_bokehjs.py" ;1 failed.
21611 "--ignore=tests/test_defaults.py" ;1 failed.
21612 "--ignore=tests/test_examples.py" ;430 failed.
21613 "--ignore=tests/test_cross.py" ;8 failed.
21614 "--ignore=tests/codebase/" ;12 failed.
21615 "--ignore=tests/unit/bokeh/embed/" ;3 failed.
21616 "--ignore=tests/unit/bokeh/core/test_templates.py" ;2 failed.
21617 "--ignore=tests/unit/bokeh/test_resources.py" ;5 failed.
21618 "--ignore=tests/unit/bokeh/util/test_compiler.py" ;4 failed.
21619 "--ignore=tests/unit/bokeh/test_ext.py" ;1 failed.
21620 "--ignore=tests/unit/bokeh/server/" ;3 failed
21621 "--ignore=tests/unit/bokeh/util/test_package.py" ;1 failed.
21622 "-k" "not test_handling_SIGTERM")
21623 #:phases
21624 #~(modify-phases %standard-phases
21625 ;; Skip bokehjs build and set environment
21626 (add-after 'unpack 'skip-bokehjs-build-install
21627 (lambda _
21628 (substitute* "setup.py"
21629 ((" else:" all)
21630 (string-append
21631 " elif action == \"skip\":\n"
21632 " return\n"
21633 all)))
21634 (setenv "BOKEHJS_ACTION" "skip")
21635 (setenv "HOME" "/tmp")))
21636 (add-before 'build 'set-version
21637 (lambda _
21638 (substitute* "pyproject.toml"
21639 ((", \"setuptools-git-versioning\"") "")
21640 (("dynamic = \\[\"version\"\\]")
21641 (string-append "version = '" #$version "'"))))))))
21642 (native-inputs
21643 (list git-minimal
21644 python-beautifulsoup4
21645 python-dateutil
21646 python-flaky
21647 python-json5
21648 python-mock
21649 python-nbconvert
21650 python-pandas
21651 python-pytest
21652 python-pytest-asyncio
21653 python-pytest-timeout
21654 python-pytz
21655 python-requests
21656 python-setuptools
21657 python-toml
21658 python-wheel))
21659 (propagated-inputs
21660 (list node-bokehjs
21661 python-contourpy
21662 python-jinja2
21663 python-narwhals
21664 python-numpy
21665 python-packaging
21666 python-pandas
21667 python-pillow
21668 python-pyyaml
21669 python-tornado
21670 python-xyzservices))
21671 (native-search-paths
21672 (list (search-path-specification
21673 (variable "BOKEHJS_PATH")
21674 (files '("bokehjs/static")))))
21675 (home-page "https://github.com/bokeh/bokeh")
21676 (synopsis "Interactive plots and applications in the browser from Python")
21677 (description
21678 "This package provides tools for interactive plots and applications in the
21679browser from Python.")
21680 (license license:bsd-3)))
21681
21682;; TODO: Move to python-web.
21683(define-public python-botocore
21684 ;; Note: When updating botocore, also make sure that boto3 and awscli
21685 ;; are compatible.
21686 (package
21687 (name "python-botocore")
21688 (version "1.42.5")
21689 (source
21690 (origin
21691 (method url-fetch)
21692 (uri (pypi-uri "botocore" version))
21693 (sha256
21694 (base32
21695 "0vqkfzrljd15qnzgdzqqbf1l1f8qhg5pz010b5wxk1j2y63w9grp"))))
21696 (build-system pyproject-build-system)
21697 (arguments
21698 (list
21699 ;; tests: 4496 passed, 87 skipped
21700 #:test-flags
21701 #~(list "--numprocesses" (number->string (min (parallel-job-count) 8))
21702 ;; The full test suite is huge, run some of it's portion.
21703 "--ignore=tests/integration"
21704 "--ignore=tests/functional")))
21705 (native-inputs
21706 (list python-jsonschema
21707 python-pytest
21708 python-pytest-xdist
21709 python-setuptools))
21710 (propagated-inputs
21711 (list python-dateutil
21712 python-jmespath
21713 python-urllib3))
21714 (home-page "https://github.com/boto/botocore")
21715 (synopsis "Low-level interface to AWS")
21716 (description
21717 "Botocore is a Python library that provides a low-level interface to the
21718Amazon Web Services (AWS) API.")
21719 (license license:asl2.0)))
21720
21721(define-public python-boto3
21722 (package
21723 (name "python-boto3")
21724 (version "1.42.5")
21725 (source
21726 (origin
21727 (method git-fetch)
21728 (uri (git-reference
21729 (url "https://github.com/boto/boto3")
21730 (commit version)))
21731 (file-name (git-file-name name version))
21732 (sha256
21733 (base32 "15xpx54k503zcr03rx5q4fc3wf4f9zxnmghah9shamb61k2zriv1"))))
21734 (build-system pyproject-build-system)
21735 (arguments
21736 (list
21737 ;; tests: 1435 passed, 22 skipped, 1 warning
21738 #:test-flags
21739 #~(list "--numprocesses" (number->string (min 8 (parallel-job-count)))
21740 ;; Integration tests are trying to connect to AWS.
21741 "--ignore=tests/integration")))
21742 (native-inputs
21743 (list python-mock
21744 python-pytest
21745 python-pytest-xdist
21746 python-setuptools))
21747 (propagated-inputs
21748 (list python-botocore
21749 python-jmespath
21750 python-s3transfer))
21751 (home-page "https://github.com/boto/boto3")
21752 (synopsis "AWS SDK for Python")
21753 (description
21754 "Boto3 is a Python library for writing programs that interact with
21755@acronym{AWS,Amazon Web Services}.")
21756 (license license:asl2.0)))
21757
21758(define-public python-pyfiglet
21759 (package
21760 (name "python-pyfiglet")
21761 (version "1.0.4")
21762 (source
21763 (origin
21764 (method git-fetch)
21765 (uri (git-reference
21766 (url "https://github.com/pwaller/pyfiglet")
21767 (commit (string-append "v" version))))
21768 (file-name (git-file-name name version))
21769 (sha256
21770 (base32 "1r1fyphz99jar2xfk761cl740zxk4b0gygajgjfx6i1kf0dxdv40"))))
21771 (build-system pyproject-build-system)
21772 (arguments
21773 (list
21774 #:phases
21775 #~(modify-phases %standard-phases
21776 (add-after 'unpack 'fallback-on-default-build
21777 (lambda _
21778 ;; This pyproject has little value and fails because of the
21779 ;; :__legacy__ suffix. Removing it to rely on defaults.
21780 (delete-file "pyproject.toml"))))))
21781 (native-inputs (list python-pytest python-setuptools))
21782 (home-page "https://github.com/pwaller/pyfiglet")
21783 (synopsis "Draw ASCII art big letters in Python")
21784 (description
21785 "This module lets you draw large letter from ordinary characters in pure
21786 Python.")
21787 (license license:expat)))
21788
21789(define-public python-mako
21790 (package
21791 (name "python-mako")
21792 (version "1.3.12")
21793 (source
21794 (origin
21795 (method git-fetch)
21796 (uri (git-reference
21797 (url "https://github.com/sqlalchemy/mako")
21798 (commit (string-append "rel_" (string-replace-substring
21799 version "." "_")))))
21800 (file-name (git-file-name name version))
21801 (sha256
21802 (base32 "1cvx14yvsx13fnxbwjy4jh8yy87pa6lzfgqzkih4j6c8q0zjd0v0"))))
21803 (build-system pyproject-build-system)
21804 (native-inputs
21805 (list python-pytest
21806 python-setuptools))
21807 (propagated-inputs
21808 (list python-markupsafe))
21809 (home-page "https://www.makotemplates.org/")
21810 (synopsis "Templating language for Python")
21811 (description "Mako is a templating language for Python that compiles
21812templates into Python modules.")
21813 (license license:expat)))
21814
21815(define-public python-cookiecutter
21816 (package
21817 (name "python-cookiecutter")
21818 (version "2.6.0")
21819 (source
21820 (origin
21821 (method url-fetch)
21822 (uri (pypi-uri "cookiecutter" version))
21823 (sha256
21824 (base32 "0762882zrvf3sslr9r7v8wkdwjckhm2clj4d831gvx54kqbgh8fv"))))
21825 (build-system pyproject-build-system)
21826 (arguments
21827 (list
21828 #:phases #~(modify-phases %standard-phases
21829 (add-before 'check 'pre-check
21830 (lambda _
21831 ;; test_get_user_config.py requires a writable home
21832 ;; directory.
21833 (setenv "HOME"
21834 (getcwd))
21835 ;; test_hooks.py dynamically creates shell scripts
21836 ;; with a /bin/bash shebang. We have to patch these.
21837 (substitute* "tests/test_hooks.py"
21838 (("/bin/bash")
21839 (string-append #$(this-package-native-input
21840 "bash-minimal") "/bin/bash"))))))))
21841 (native-inputs (list bash-minimal
21842 git-minimal/pinned
21843 python-freezegun
21844 python-pytest
21845 python-pytest-mock
21846 python-setuptools
21847 python-wheel))
21848 (propagated-inputs (list python-arrow
21849 python-binaryornot
21850 python-click
21851 python-jinja2
21852 python-pyyaml
21853 python-requests
21854 python-rich
21855 python-slugify))
21856 (home-page "https://github.com/cookiecutter/cookiecutter")
21857 (synopsis
21858 "Command-line utility that creates projects from project templates")
21859 (description
21860 "This package provides a command-line utility that creates projects from
21861project templates, e.g. creating a Python package project from a Python package
21862project template.")
21863 (license license:bsd-3)))
21864
21865(define-public python-pyquery
21866 (package
21867 (name "python-pyquery")
21868 (version "2.0.1")
21869 (source
21870 (origin
21871 (method url-fetch)
21872 (uri (pypi-uri "pyquery" version))
21873 (sha256
21874 (base32
21875 "1brg6aawb9m5mdfmc6g7v5r6pczbx67r4l9cn5yh6bdi0qkvp501"))))
21876 (build-system pyproject-build-system)
21877 (arguments
21878 (list
21879 #:test-flags
21880 #~(list #$@(map (lambda (test) (string-append
21881 "--deselect=tests/test_pyquery.py::"
21882 test))
21883 (list
21884 ;; AssertionError: 'REQUEST_METHOD: POST' not found in ''
21885 "TestWebScrapping::test_post"
21886 ;; AssertionError: 'HTTP_X_FOO: bar' not found in ''
21887 "TestWebScrapping::test_session"
21888 ;; Assertion is not equal.
21889 "TestManipulating::test_val_for_textarea"
21890 "TestHTMLParser::test_replaceWith"
21891 "TestHTMLParser::test_replaceWith_with_function"
21892 ;; Network access is required.
21893 "TestWebScrapping::test_get"
21894 "TestWebScrappingEncoding::test_get")))))
21895 (native-inputs
21896 (list python-pytest
21897 python-requests
21898 python-setuptools
21899 python-webob
21900 python-webtest
21901 python-wheel))
21902 (propagated-inputs
21903 (list python-cssselect python-lxml))
21904 (home-page "https://github.com/gawel/pyquery")
21905 (synopsis "Make jQuery-like queries on xml documents")
21906 (description "pyquery allows you to make jQuery queries on xml documents.
21907The API is as much as possible the similar to jQuery. pyquery uses lxml for
21908fast xml and html manipulation.")
21909 (license license:bsd-3)))
21910
21911(define-public python-amqp
21912 (package
21913 (name "python-amqp")
21914 (version "5.1.1")
21915 (source
21916 (origin
21917 (method url-fetch)
21918 (uri (pypi-uri "amqp" version))
21919 (sha256
21920 (base32 "1qmmffiy48nady7is8529vxcyqbq88v5zgawqr3fk4q8rkz166rc"))))
21921 (build-system pyproject-build-system)
21922 (arguments
21923 (list ; Integration tests require network connectivity.
21924 #:test-flags '(list "--ignore=t/integration/test_rmq.py")))
21925 (native-inputs (list python-pytest python-setuptools python-wheel))
21926 (propagated-inputs (list python-vine))
21927 (home-page "https://github.com/celery/py-amqp")
21928 (synopsis "Low-level AMQP client for Python (fork of amqplib)")
21929 (description
21930 "This is a fork of amqplib which was originally written by Barry Pederson.
21931It is maintained by the Celery project, and used by kombu as a pure python
21932alternative when librabbitmq is not available.")
21933 (license license:lgpl2.1+)))
21934
21935(define-public python-benchmark-4dn
21936 (package
21937 (name "python-benchmark-4dn")
21938 (version "0.5.24")
21939 (source (origin
21940 (method url-fetch)
21941 (uri (pypi-uri "benchmark_4dn" version))
21942 (sha256
21943 (base32
21944 "1cjin99p8mrh4nkbr4hsdfks9c22dfw3gk5ad80b4rxngs8mwj0s"))))
21945 (properties '(("upstream-name" . "benchmark_4dn")))
21946 (build-system pyproject-build-system)
21947 ;; There are none.
21948 (arguments (list #:tests? #false))
21949 (native-inputs
21950 (list python-poetry-core))
21951 (home-page "https://github.com/SooLee/Benchmark/")
21952 (synopsis "Benchmark functions for CWL workflows")
21953 (description
21954 "This package provides benchmark functions that return total space, memory,
21955CPUs required per given input size, and parameters for CWL workflows.")
21956 (license license:expat)))
21957
21958(define-public python-beniget
21959 (package
21960 (name "python-beniget")
21961 (version "0.5.0")
21962 (source
21963 (origin
21964 (method url-fetch)
21965 (uri (pypi-uri "beniget" version))
21966 (sha256
21967 (base32 "08ig66dp3xjl3nhqlpdkv0bl1m0m5mr1x2yrncz3vpn7ivx13bz7"))))
21968 (build-system pyproject-build-system)
21969 (native-inputs
21970 (list python-pytest
21971 python-setuptools))
21972 (propagated-inputs
21973 (list python-gast))
21974 (home-page "https://github.com/serge-sans-paille/beniget")
21975 (synopsis "Extract semantic information about static Python code")
21976 (description
21977 "Beniget is a collection of analyzers for Python @acronym{AST,
21978Abstract Syntax Tree}. It is a building block for writing a static analyzer
21979or compiler for Python.")
21980 (license license:bsd-3)))
21981
21982(define-public python-kombu
21983 (package
21984 (name "python-kombu")
21985 (version "5.6.2")
21986 (source
21987 (origin
21988 (method git-fetch)
21989 (uri (git-reference
21990 (url "https://github.com/celery/kombu")
21991 (commit (string-append "v" version))))
21992 (file-name (git-file-name name version))
21993 (sha256
21994 (base32 "1yglhylq1vfi43yv2q02k9kf5kwdr0xhrmghmmhyna87qd108ir7"))))
21995 (build-system pyproject-build-system)
21996 (arguments
21997 (list
21998 ;; tests: 854 passed, 193 skipped
21999 #:test-flags
22000 #~(list
22001 ;; TODO: Package azure-identity (required for this file)
22002 "--ignore=t/unit/transport/test_azurestoragequeues.py"
22003 ;; XXX: Requires google-cloud-pubsub.
22004 "--ignore=t/unit/transport/test_gcpubsub.py"
22005 ;; XXX: Requires pyro, see:
22006 ;; <https://codeberg.org/guix/guix/issues/5857>
22007 "--ignore=t/unit/transport/test_pyro.py")
22008 #:phases
22009 #~(modify-phases %standard-phases
22010 (add-after 'unpack 'relax-requirements
22011 (lambda _
22012 (substitute* "requirements/default.txt"
22013 (("tzdata>=2025.2")
22014 "tzdata>=2025.1")))))))
22015 (native-inputs
22016 (list python-botocore
22017 python-pytest
22018 python-pytest-freezer
22019 python-pytest-sugar
22020 python-setuptools))
22021 (propagated-inputs
22022 (list python-amqp
22023 python-packaging
22024 python-tzdata
22025 python-vine))
22026 (home-page "https://kombu.readthedocs.io")
22027 (synopsis "Message passing library for Python")
22028 (description
22029 "The aim of Kombu is to make messaging in Python as easy as possible by
22030providing an idiomatic high-level interface for the AMQ protocol, and also
22031provide proven and tested solutions to common messaging problems. AMQP is the
22032Advanced Message Queuing Protocol, an open standard protocol for message
22033orientation, queuing, routing, reliability and security, for which the
22034RabbitMQ messaging server is the most popular implementation.")
22035 (license license:bsd-3)))
22036
22037(define-public python-billiard
22038 (package
22039 (name "python-billiard")
22040 (version "4.2.2")
22041 (source
22042 (origin
22043 (method git-fetch)
22044 (uri (git-reference
22045 (url "https://github.com/celery/billiard")
22046 (commit (string-append "v" version))))
22047 (file-name (git-file-name name version))
22048 (sha256
22049 (base32 "1p08w9msiajhg23ifcgnkv8jlbnh3ip3qhxahl5q0338sk4kah19"))))
22050 (build-system pyproject-build-system)
22051 (arguments
22052 (list
22053 #:phases
22054 #~(modify-phases %standard-phases
22055 (add-after 'unpack 'remove-win-files
22056 (lambda _
22057 (for-each delete-file-recursively
22058 '("billiard/popen_spawn_win32.py"
22059 "billiard/_win.py")))))))
22060 (native-inputs (list python-psutil python-pytest python-setuptools))
22061 (home-page "https://github.com/celery/billiard")
22062 (synopsis "Python multiprocessing fork with improvements and bugfixes")
22063 (description
22064 "Billiard is a fork of the Python 2.7 multiprocessing package. The
22065multiprocessing package itself is a renamed and updated version of R Oudkerk's
22066pyprocessing package. This standalone variant is intended to be compatible with
22067Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
22068 (license license:bsd-3)))
22069
22070(define-public python-celery
22071 (package
22072 (name "python-celery")
22073 (version "5.6.3")
22074 (source
22075 (origin
22076 (method url-fetch)
22077 (uri (pypi-uri "celery" version))
22078 (sha256
22079 (base32 "04i9w7sakiahf2593mshxxwqis19hnyrmr8vy3lq5f2l42yhcw0p"))))
22080 (build-system pyproject-build-system)
22081 (arguments
22082 (list
22083 ;; tests: 3362 passed, 38 skipped, 10 deselected, 3 xfailed, 63
22084 ;; warnings, 28808 subtests passed
22085 #:test-flags
22086 ;; The MongoDB backend test appears to expect an older version of
22087 ;; MongoDB which provided its own bson module, fails with "
22088 ;; AttributeError: module 'bson' has no attribute 'encode'".
22089 #~(list "--ignore=t/unit/backends/test_mongodb.py"
22090 ;; XXX: Requires google-cloud-firestore
22091 "--ignore=t/unit/backends/test_gcs.py"
22092 "-k" (string-join
22093 (list ;; AssertionError.
22094 "not test_check_privileges_no_fchown"
22095 ;; These 3 tests error out on ci.guix.gnu.org with
22096 ;; OSError: [Errno 24] Too many open files
22097 "test_register_with_event_loop__no_on_tick_dupes"
22098 "test_with_autoscaler_file_descriptor_safety"
22099 "test_with_file_descriptor_safety"
22100 ;; XXX: Fails to compare local timezones.
22101 "test_use_local_timezone"
22102 ;; assert 'No such option: --ini' in <...>
22103 "test_preload_options[subcommand_with_params0]"
22104 "test_preload_options[subcommand_with_params1]")
22105 " and not "))))
22106 (native-inputs
22107 (list python-azure-core
22108 python-dnspython
22109 python-flaky
22110 python-gevent
22111 python-google-cloud-storage
22112 python-iniconfig
22113 python-moto
22114 python-msgpack
22115 python-pymongo
22116 python-pytest
22117 python-pytest-celery
22118 python-pytest-click
22119 python-pytest-order
22120 python-pytest-timeout
22121 python-redis
22122 python-setuptools))
22123 (propagated-inputs
22124 (list python-billiard
22125 python-click
22126 python-click-didyoumean
22127 python-click-plugins
22128 python-click-repl
22129 python-dateutil
22130 python-kombu
22131 python-tzlocal
22132 python-vine))
22133 (home-page "https://celeryproject.org")
22134 (synopsis "Distributed Task Queue")
22135 (description
22136 "Celery is an asynchronous task queue/job queue based on distributed
22137message passing. It is focused on real-time operation, but supports
22138scheduling as well. The execution units, called tasks, are executed
22139concurrently on a single or more worker servers using multiprocessing,
22140Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
22141synchronously (wait until ready).")
22142 (license license:bsd-3)))
22143
22144;; A bare minimal package, mainly to use in tests and reduce closure
22145;; size. Tests are left out in the main package to slim down native-inputs.
22146(define-public python-celery-minimal
22147 (package/inherit python-celery
22148 (name "python-celery-minimal")
22149 (arguments
22150 (list #:tests? #f))
22151 (native-inputs
22152 (list python-setuptools))))
22153
22154(define-public python-anyqt
22155 (package
22156 (name "python-anyqt")
22157 (version "0.2.1")
22158 (source
22159 (origin
22160 (method git-fetch)
22161 (uri (git-reference
22162 (url "https://github.com/ales-erjavec/anyqt")
22163 (commit version)))
22164 (file-name (git-file-name name version))
22165 (sha256
22166 (base32 "0dci4sx53icd3jxv5gm22yr5g4dcyqbyvkkwliqpmbkxxjxj0dc8"))))
22167 (build-system pyproject-build-system)
22168 (arguments
22169 (list
22170 ;; XXX: Qt tests require Qt modules, see test/test_import.py.
22171 ;; TODO Add/configure the right Qt inputs.
22172 #:test-flags
22173 #~(list "--ignore-glob=tests/test_q*.py")
22174 #:phases
22175 #~(modify-phases %standard-phases
22176 (add-after 'unpack 'delete-files
22177 ;; Delete files related to other operating systems.
22178 (lambda _
22179 (delete-file "AnyQt/QtMacExtras.py")
22180 (delete-file "AnyQt/QtWinExtras.py"))))))
22181 (native-inputs
22182 (list python-pyqt-6
22183 python-pytest
22184 python-pytest-qt
22185 python-setuptools))
22186 (home-page "https://github.com/ales-erjavec/anyqt")
22187 (synopsis "PyQt compatibility layer")
22188 (description
22189 "This package provides a PyQt/PySide compatibility layer. More precisely,
22190it provides compatibility for the following modules: PyQt4, PyQt5, PyQt6,
22191PySide, PySide2.")
22192 (license license:gpl3)))
22193
22194(define-public python-qasync
22195 (package
22196 (name "python-qasync")
22197 (version "0.28.0")
22198 (source
22199 (origin
22200 (method git-fetch)
22201 (uri (git-reference
22202 (url "https://github.com/CabbageDevelopment/qasync/")
22203 (commit (string-append "v" version))))
22204 (file-name (git-file-name name version))
22205 (sha256
22206 (base32 "13i5riq7ig4csxlx61fzb8xl12ny0dkwj4h8f8r95xz5rii7a0kr"))))
22207 (build-system pyproject-build-system)
22208 (arguments
22209 (list
22210 #:phases
22211 #~(modify-phases %standard-phases
22212 (add-before 'check 'set-qpa
22213 (lambda _
22214 (setenv "QT_QPA_PLATFORM" "offscreen"))))))
22215 (native-inputs
22216 (list python-pytest python-uv-build))
22217 (propagated-inputs
22218 (list python-pyqt-6))
22219 (home-page "https://github.com/CabbageDevelopment/qasync")
22220 (synopsis "Implementation of the PEP 3156 Event-Loop with Qt")
22221 (description
22222 "@code{qasync} allows coroutines to be used in PyQt/PySide applications
22223by providing an implementation of the PEP 3156 event-loop.")
22224 (license license:bsd-2)))
22225
22226(define-public python-editor
22227 (package
22228 (name "python-editor")
22229 (version "1.8.0")
22230 (source
22231 (origin
22232 (method git-fetch)
22233 (uri (git-reference
22234 (url "https://github.com/rec/editor")
22235 (commit (string-append "v" version))))
22236 (file-name (git-file-name name version))
22237 (sha256
22238 (base32 "0xc8p92n7lsgaah0xbaxyml2l8mfajb7v8kdiwy5rw6mh3phbwlr"))))
22239 (build-system pyproject-build-system)
22240 (native-inputs (list python-hatchling python-pytest python-tdir))
22241 (propagated-inputs (list python-runs python-xmod))
22242 (home-page "https://rec.github.io/editor/")
22243 (synopsis "Open the default text editor")
22244 (description
22245 "@code{editor} opens the default text editor to edit an existing file, a
22246new file, or a tempfile, blocks while the user edits text, then returns the
22247contents of the file.")
22248 (license license:expat)))
22249
22250(define-public python-multiprocessing-logging
22251 (package
22252 (name "python-multiprocessing-logging")
22253 (version "0.3.4")
22254 (home-page "https://github.com/jruere/multiprocessing-logging")
22255 (source
22256 (origin
22257 (method git-fetch)
22258 (uri (git-reference
22259 (url home-page)
22260 (commit (string-append "v" version))))
22261 (file-name (git-file-name name version))
22262 (sha256
22263 (base32 "0ib1plsyi4g68n0crc2cqhk54fccsmcijzh66g89fd3lgababgxd"))))
22264 (build-system pyproject-build-system)
22265 (arguments (list #:test-backend #~'unittest))
22266 (native-inputs (list python-setuptools))
22267 (synopsis "Manage logs from multiple processes")
22268 (description
22269 "This Python module implements a multiprocessing-aware @code{Handler}
22270that, when set on the root @code{Logger}, will tunnel log records to the
22271main process so that they are handled correctly.")
22272 (license license:lgpl3+)))
22273
22274(define-public python-munkres
22275 (package
22276 (name "python-munkres")
22277 (version "1.1.4")
22278 (source
22279 (origin
22280 (method url-fetch)
22281 (uri (pypi-uri "munkres" version))
22282 (sha256
22283 (base32 "00yvj8bxmhhhhd74v7j0x673is7vizmxwgb3dd5xmnkr74ybyi7w"))))
22284 (build-system pyproject-build-system)
22285 (arguments
22286 (list
22287 ;; See https://github.com/bmc/munkres/issues/40
22288 #:test-flags
22289 (if (member (%current-system) %32bit-supported-systems)
22290 #~(list "-k" "not test_profit_float")
22291 #~(list))))
22292 (native-inputs (list python-pytest python-setuptools))
22293 (home-page "https://software.clapper.org/munkres/")
22294 (synopsis "Implementation of the Munkres algorithm")
22295 (description
22296 "The Munkres module provides an implementation of the Munkres algorithm
22297(also called the Hungarian algorithm or the Kuhn-Munkres algorithm), useful
22298for solving the Assignment Problem.")
22299 (license license:bsd-3)))
22300
22301(define-public python-codespell
22302 (package
22303 (name "python-codespell")
22304 (version "2.4.3")
22305 (source
22306 (origin
22307 (method git-fetch)
22308 (uri (git-reference
22309 (url "https://github.com/codespell-project/codespell")
22310 (commit (string-append "v" version))))
22311 (file-name (git-file-name name version))
22312 (sha256
22313 (base32 "1c1wnl14af496s5iwsc0bp6pg4i8yankr7wvxxb66dc8s87n2rd1"))))
22314 (build-system pyproject-build-system)
22315 (native-inputs
22316 (list python-pygments
22317 python-pytest
22318 python-pytest-dependency
22319 python-setuptools
22320 python-setuptools-scm))
22321 (propagated-inputs
22322 (list python-chardet))
22323 (home-page "https://github.com/codespell-project/codespell/")
22324 (synopsis "Spellchecker for code")
22325 (description
22326 "Codespell fixes common misspellings in text files. It's designed
22327primarily for checking misspelled words in source code, but it can be used
22328with other files as well. It does not check for word membership in a complete
22329dictionary, but instead looks for a set of common misspellings. Therefore it
22330should catch errors like \"adn\", but it will not catch \"adnasdfasdf\". This
22331also means it shouldn't generate false-positives when you use a niche term it
22332doesn't know about.")
22333 (license
22334 (list
22335 ; for codespell and codespell_lib
22336 license:gpl2
22337 ; for dictionary*.txt
22338 license:cc-by-sa3.0))))
22339
22340(define-public python-jellyfish
22341 (package
22342 (name "python-jellyfish")
22343 (version "1.2.1")
22344 (source
22345 (origin
22346 (method git-fetch)
22347 (uri (git-reference
22348 (url "https://github.com/jamesturk/jellyfish")
22349 (commit (string-append "v" version))))
22350 (file-name (git-file-name name version))
22351 (sha256
22352 (base32 "1zsbvyq608yrfv29hlwjkr6ycrghy8s5hpwnj3aa9symihazpb4c"))))
22353 (build-system pyproject-build-system)
22354 (arguments
22355 (list
22356 #:imported-modules (append %cargo-build-system-modules
22357 %pyproject-build-system-modules)
22358 #:modules '(((guix build cargo-build-system) #:prefix cargo:)
22359 (guix build pyproject-build-system)
22360 (guix build utils))
22361 #:phases
22362 #~(modify-phases %standard-phases
22363 (add-after 'unpack 'prepare-cargo-build-system
22364 (lambda args
22365 (for-each
22366 (lambda (phase)
22367 (format #t "Running cargo phase: ~a~%" phase)
22368 (apply (assoc-ref cargo:%standard-phases phase)
22369 #:cargo-target #$(cargo-triplet)
22370 args))
22371 '(unpack-rust-crates
22372 configure
22373 check-for-pregenerated-files
22374 patch-cargo-checksums)))))))
22375 (inputs (cons* maturin (cargo-inputs 'jellyfish)))
22376 (native-inputs
22377 (append
22378 (list python-pytest
22379 python-setuptools
22380 rust
22381 `(,rust "cargo"))
22382 (or (and=> (%current-target-system)
22383 (compose list make-rust-sysroot))
22384 '())))
22385 (home-page "https://www.jpt.sh/projects/jellyfish/")
22386 (synopsis "Approximate and phonetic matching of strings")
22387 (description "Jellyfish uses a variety of string comparison and phonetic
22388encoding algorithms to do fuzzy string matching.")
22389 (license license:bsd-2)))
22390
22391(define-public python-pdfminer-six
22392 (package
22393 (name "python-pdfminer-six")
22394 (version "20260107")
22395 ;; There are no tests in the PyPI tarball.
22396 (source
22397 (origin
22398 (method git-fetch)
22399 (uri (git-reference
22400 (url "https://github.com/pdfminer/pdfminer.six")
22401 (commit version)))
22402 (file-name (git-file-name name version))
22403 (sha256
22404 (base32 "10f0g1zwbahfc5lrg84c8fiav184h0jr86y6ra9dqb81zb0875dj"))))
22405 (build-system pyproject-build-system)
22406 (arguments
22407 (list #:phases
22408 #~(modify-phases %standard-phases
22409 ;; Tests write to the source tree.
22410 (add-after 'unpack 'make-git-checkout-writable
22411 (lambda _
22412 (for-each make-file-writable (find-files ".")))))))
22413 (propagated-inputs
22414 (list python-charset-normalizer python-cryptography))
22415 (native-inputs
22416 (list python-pytest python-setuptools python-setuptools-scm))
22417 (home-page "https://github.com/pdfminer/pdfminer.six")
22418 (synopsis "PDF parser and analyzer")
22419 (description "@code{pdfminer.six} is a community maintained fork of
22420the original PDFMiner. It is a tool for extracting information from PDF
22421documents. It focuses on getting and analyzing text data. Pdfminer.six
22422extracts the text from a page directly from the sourcecode of the PDF. It
22423can also be used to get the exact location, font or color of the text.")
22424 (license license:expat)))
22425
22426(define-public python-rarfile
22427 (package
22428 (name "python-rarfile")
22429 (version "4.2")
22430 (source
22431 (origin
22432 (method git-fetch)
22433 (uri (git-reference
22434 (url "https://github.com/markokr/rarfile")
22435 (commit (string-append "v" version))))
22436 (file-name (git-file-name name version))
22437 (sha256
22438 (base32 "1lm4vz4w0hrnzln7w10ijhdiwxy7gz45m44zw4fz7rdnn7c06b36"))))
22439 (build-system pyproject-build-system)
22440 (arguments
22441 (list
22442 #:tests? #f ;The bsdtar utility is very limited and most tests fail.
22443 #:phases
22444 #~(modify-phases %standard-phases
22445 (add-after 'unpack 'patch
22446 (lambda* (#:key inputs #:allow-other-keys)
22447 (substitute* "rarfile.py"
22448 ;; Disable unrar and unar, which are unavailable on Guix.
22449 (("(unrar|unar)=True" all tool)
22450 (string-append tool "=False"))
22451 ;; Hardcode path to bsdtar
22452 (("\"bsdtar\"")
22453 (format #f "~s"
22454 (search-input-file inputs "bin/bsdtar")))))))))
22455 (native-inputs (list python-pytest python-setuptools))
22456 (inputs (list libarchive))
22457 (home-page "https://github.com/markokr/rarfile")
22458 (synopsis "RAR archive reader for Python")
22459 (description
22460 "This is Python module for RAR archive reading. The interface is made as
22461zipfile like as possible.")
22462 (license license:isc)))
22463
22464(define-public python-slugid
22465 (package
22466 (name "python-slugid")
22467 (version "2.0.0")
22468 (source
22469 (origin
22470 (method git-fetch)
22471 (uri (git-reference
22472 (url "https://github.com/taskcluster/slugid.py")
22473 (commit (string-append "v" version))))
22474 (file-name (git-file-name name version))
22475 (sha256
22476 (base32 "1h64p2jlqv6lsmw8h2j203kx3bhv72cwzpk5gdhsaamw30cp3h1i"))))
22477 (build-system pyproject-build-system)
22478 (arguments (list #:test-backend #~'nose))
22479 (native-inputs (list python-pynose python-setuptools))
22480 (home-page "http://taskcluster.github.io/slugid.py")
22481 (synopsis "Module for Base64 encoded UUID v4 slugs")
22482 (description
22483 "This package provides a module for generating v4 UUIDs and encoding them
22484into 22 character URL-safe base64 slug representation.")
22485 (license license:mpl2.0)))
22486
22487(define-public python-rich
22488 (package
22489 (name "python-rich")
22490 (version "15.0.0")
22491 (source
22492 (origin
22493 (method git-fetch)
22494 (uri (git-reference
22495 (url "https://github.com/willmcgugan/rich")
22496 (commit (string-append "v" version))))
22497 (file-name (git-file-name name version))
22498 (sha256
22499 (base32 "1qs8n1hcjxcpwbfjjlzfmywfczxzcpvjkk3ay04kdbi1lvlynkaj"))))
22500 (build-system pyproject-build-system)
22501 ;; The test_brokenpipeerror is flaky.
22502 (arguments (list #:test-flags #~(list "-k" "not test_brokenpipeerror")))
22503 (native-inputs
22504 (list python-poetry-core
22505 python-pytest
22506 which))
22507 (propagated-inputs
22508 (list python-markdown-it-py
22509 python-pygments))
22510 (home-page "https://github.com/willmcgugan/rich")
22511 (synopsis "Render rich text and more to the terminal")
22512 (description
22513 "This is a Python package for rendering rich text, tables, progress bars,
22514syntax highlighting, markdown and more to the terminal.")
22515 (license license:expat)))
22516
22517(define-public python-rich-click
22518 (package
22519 (name "python-rich-click")
22520 (version "1.9.8")
22521 (source
22522 (origin
22523 (method git-fetch)
22524 (uri (git-reference
22525 (url "https://github.com/ewels/rich-click")
22526 (commit (string-append "v" version))))
22527 (file-name (git-file-name name version))
22528 (sha256
22529 (base32 "1xgsblpkp4f43y579614n6cp8br2acms8vdj8gpqxa05csap0fqn"))))
22530 (build-system pyproject-build-system)
22531 (arguments
22532 (list
22533 #:test-flags
22534 ;; python-typer 0.26 vendored python-click and broke a lot of things.
22535 ;; See <https://github.com/ewels/rich-click/issues/330> and
22536 ;; <https://github.com/ewels/rich-click/commit/989c38cf4ed918a25fa523c8191c66b42315cb10>.
22537 ;; 136 passed, 6 skipped, 6 deselected
22538 #~(list "-k" "not _typer_")))
22539 (native-inputs
22540 (list python-inline-snapshot
22541 python-pytest
22542 python-setuptools
22543 python-typer))
22544 (propagated-inputs
22545 (list python-click
22546 python-rich))
22547 (home-page "https://github.com/ewels/rich-click")
22548 (synopsis "Format click help output nicely with rich")
22549 (description "Click is a \"Python package for creating beautiful command
22550line interfaces\". Rich is a \"Python library for rich text and beautiful
22551formatting in the terminal\". The intention of rich-click is to provide
22552attractive help output from click, formatted with rich, with minimal
22553customization required.")
22554 (license license:expat)))
22555
22556(define-public python-magic
22557 (package
22558 (name "python-magic")
22559 (version "0.4.27")
22560 (home-page "https://github.com/ahupp/python-magic")
22561 (source
22562 (origin
22563 (method git-fetch)
22564 (uri (git-reference (url home-page) (commit version)))
22565 (file-name (git-file-name name version))
22566 (sha256
22567 (base32 "1x11kfn4g244fia9a7y4ly8dqv5zsxfg3l5azc54dl6gkp2bk7vx"))))
22568 (build-system pyproject-build-system)
22569 (arguments
22570 (list
22571 #:test-backend #~'custom
22572 #:test-flags #~(list "test/libmagic_test.py")
22573 #:phases
22574 #~(modify-phases %standard-phases
22575 (add-after 'unpack 'fix-tests
22576 (lambda _
22577 ;; Adjust expected output for [email protected].
22578 (substitute* "test/libmagic_test.py"
22579 (("PDF document, version 1\\.2, 2 pages")
22580 "PDF document, version 1.2, 2 page(s)"))))
22581 ;; Replace a specific method call with a hard-coded path to the
22582 ;; necessary libmagic.so file in the store.
22583 (add-before 'build 'hard-code-path-to-libmagic
22584 (lambda* (#:key inputs #:allow-other-keys)
22585 (substitute* "magic/loader.py"
22586 (("find_library\\('magic'\\)")
22587 (format #f "~s"
22588 (search-input-file inputs "lib/libmagic.so")))))))))
22589 (native-inputs (list which python-setuptools))
22590 (inputs
22591 ;; python-magic needs to be able to find libmagic.so.
22592 (list file))
22593 (synopsis "File type identification using libmagic")
22594 (description
22595 "This module uses ctypes to access the libmagic file type identification
22596library. It makes use of the local magic database and supports both textual
22597and MIME-type output. Note that this module and the python-file module both
22598provide a \"magic.py\" file; these two modules, which are different and were
22599developed separately, both serve the same purpose: to provide Python bindings
22600for libmagic.")
22601 (license license:expat)))
22602
22603(define-public python-securetar
22604 (package
22605 (name "python-securetar")
22606 (version "2025.1.4")
22607 (source
22608 (origin
22609 (method git-fetch)
22610 (uri (git-reference
22611 (url "https://github.com/pvizeli/securetar")
22612 (commit version)))
22613 (file-name (git-file-name name version))
22614 (sha256
22615 (base32 "1b9m29j4mjiv7925wrbiyj6vyx7m9qmdz40zqd4vgxhz4pq6x3xw"))))
22616 (build-system pyproject-build-system)
22617 (native-inputs (list python-setuptools python-wheel python-pytest))
22618 (propagated-inputs (list python-cryptography))
22619 (home-page "https://github.com/pvizeli/securetar")
22620 (synopsis "Python module to handle tarfile backups")
22621 (description
22622 "This library provides a streaming wrapper around python tarfile and allow
22623secure handling files and support encryption.")
22624 (license license:asl2.0)))
22625
22626(define-public python-pkgconfig
22627 (package
22628 (name "python-pkgconfig")
22629 (version "1.6.0")
22630 (source
22631 (origin
22632 (method git-fetch)
22633 (uri (git-reference
22634 (url "https://github.com/matze/pkgconfig")
22635 (commit (string-append "v" version))))
22636 (file-name (git-file-name name version))
22637 (sha256
22638 (base32 "0xlfghjbx04gls3ad1ncggpi4xvjxcirrm3bamv5gp9wv3z5ln8s"))))
22639 (build-system pyproject-build-system)
22640 (arguments
22641 (list
22642 #:phases
22643 #~(modify-phases %standard-phases
22644 (add-after 'unpack 'fix-test-data
22645 (lambda _
22646 (substitute* "tests/data/fake-openssl.pc"
22647 (("Requires: libssl libcrypto") ""))))
22648 (add-before 'build 'set-pkg-config-path
22649 (lambda* (#:key inputs #:allow-other-keys)
22650 (setenv "PKG_CONFIG"
22651 (search-input-file inputs "/bin/pkg-config"))
22652 (substitute* "src/pkgconfig/pkgconfig.py"
22653 (("'pkg-config'")
22654 (format #f "~s"
22655 (search-input-file inputs "/bin/pkg-config")))))))))
22656 (native-inputs (list python-poetry-core python-pytest))
22657 (inputs (list pkg-config))
22658 (home-page "https://github.com/matze/pkgconfig")
22659 (synopsis "Python interface for pkg-config")
22660 (description "This module provides a Python interface to pkg-config. It
22661can be used to find all pkg-config packages, check if a package exists,
22662check if a package meets certain version requirements, query CFLAGS and
22663LDFLAGS and parse the output to build extensions with setup.py.")
22664 (license license:expat)))
22665
22666;; This package is unmaintained since 2014, but still used in `khmer'.
22667(define-public python-bz2file
22668 (package
22669 (name "python-bz2file")
22670 (version "0.98")
22671 (source
22672 (origin
22673 (method url-fetch)
22674 (uri (pypi-uri "bz2file" version))
22675 (sha256
22676 (base32 "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
22677 (build-system pyproject-build-system)
22678 (arguments (list #:tests? #f)) ; Tests use deprecated python modules.
22679 (native-inputs (list python-setuptools))
22680 (home-page "https://github.com/nvawda/bz2file")
22681 (synopsis "Read and write bzip2-compressed files")
22682 (description
22683 "Bz2file is a Python library for reading and writing bzip2-compressed
22684files. It contains a drop-in replacement for the I/O interface in the
22685standard library's @code{bz2} module, including features from the latest
22686development version of CPython that are not available in older releases.")
22687 (license license:asl2.0)))
22688
22689(define-public python-future
22690 (package
22691 (name "python-future")
22692 (version "1.0.0")
22693 (source
22694 (origin
22695 (method url-fetch)
22696 (uri (pypi-uri "future" version))
22697 (sha256
22698 (base32 "01bvq2a5vgxffq8555rvwhxw161m9y54z2j5w7d1x1h7jcq6hadx"))))
22699 (build-system pyproject-build-system)
22700 (arguments
22701 (list
22702 #:test-flags
22703 ;; Self tests failed.
22704 #~(list "--ignore=tests/test_future/test_futurize.py"
22705 "-k" (string-join
22706 ;; Self tests failed.
22707 (list "not test_division"
22708 "test_functions_unchanged"
22709 "test_mixed_annotations"
22710 "test_multiple_param_annotations"
22711 "test_print"
22712 "test_range_slice"
22713 ;; Network access is required.
22714 "test_ftp"
22715 "test_main"
22716 "test_moves_urllib_request_http"
22717 "test_urllib_request_http"
22718 ;; Tests failing on Python 3.12
22719 "test_converting_drive_letter"
22720 "test_converting_drive_letter"
22721 "test_converting_when_no_drive_letter"
22722 "test_converting_when_no_drive_letter"
22723 "test_converting_when_no_drive_letter"
22724 "test_converting_when_no_drive_letter"
22725 "test_isinstance_recursion_limit"
22726 "test_roundtrip_pathname2url"
22727 "test_roundtrip_pathname2url"
22728 "test_roundtrip_url2pathname"
22729 "test_roundtrip_url2pathname"
22730 "test_subclass_recursion_limit")
22731 " and not "))))
22732 (native-inputs
22733 (list python-pytest
22734 python-setuptools))
22735 (home-page "https://python-future.org")
22736 (synopsis "Single-source support for Python 3 and 2")
22737 (description
22738 "@code{python-future} is the missing compatibility layer between Python 2
22739and Python 3. It allows you to use a single, clean Python 3.x-compatible
22740codebase to support both Python 2 and Python 3 with minimal overhead.")
22741 (license license:expat)))
22742
22743(define-public python-cysignals
22744 (package
22745 (name "python-cysignals")
22746 (version "1.12.3")
22747 (source
22748 (origin
22749 (method url-fetch)
22750 (uri (pypi-uri "cysignals" version))
22751 (sha256
22752 (base32 "1syixz6xlmy1pjcr03ij7hcvaklgjy4mmwggssrmmnr9pxnn5xw9"))))
22753 (build-system pyproject-build-system)
22754 (native-inputs (list python-meson
22755 python-cython
22756 python-pytest))
22757 (home-page "https://github.com/sagemath/cysignals")
22758 (synopsis "Handling of interrupts and signals for Cython")
22759 (description
22760 "The cysignals package provides mechanisms to handle interrupts (and
22761other signals and errors) in Cython code, using two related approaches,
22762for mixed Cython/Python code or external C libraries and pure Cython code,
22763respectively.")
22764 (license license:lgpl3+)))
22765
22766(define-public python-rope
22767 (package
22768 (name "python-rope")
22769 (version "1.13.0")
22770 (source
22771 (origin
22772 (method url-fetch)
22773 (uri (pypi-uri "rope" version))
22774 (sha256
22775 (base32
22776 "1078mkzivz45my8x2y5gxisr0vba630xj7yxx7anr068xhnpshsi"))))
22777 (build-system pyproject-build-system)
22778 (arguments
22779 (list
22780 #:test-flags
22781 #~(list "-k" "test_version_hash_varies_on_get_file_content")))
22782 (propagated-inputs (list python-pytoolconfig))
22783 (native-inputs
22784 (list python-pytest python-pytest-timeout python-setuptools))
22785 (home-page "https://github.com/python-rope/rope")
22786 (synopsis "Refactoring library for Python")
22787 (description
22788 "Rope is a refactoring library for Python. It facilitates the renaming,
22789moving and extracting of attributes, functions, modules, fields and parameters
22790in Python source code. These refactorings can also be applied to occurrences
22791in strings and comments.")
22792 (license license:lgpl3+)))
22793
22794(define-public python-py3status
22795 (package
22796 (name "python-py3status")
22797 (version "3.62")
22798 (source
22799 (origin
22800 (method git-fetch)
22801 (uri (git-reference
22802 (url "https://github.com/ultrabug/py3status")
22803 (commit version)))
22804 (file-name (git-file-name name version))
22805 (sha256
22806 (base32 "13ggwr35w5isylrg1n7akhycm18r03bxin95hdpcmqg7fvqyfppz"))))
22807 (build-system pyproject-build-system)
22808 (arguments
22809 (list
22810 #:phases
22811 #~(modify-phases %standard-phases
22812 (add-before 'build 'hardcode-file-path
22813 (lambda* (#:key inputs #:allow-other-keys)
22814 (substitute* "py3status/parse_config.py"
22815 (("\\[\"file\", \"-b\"")
22816 (format #f "[~s, \"-b\""
22817 (search-input-file inputs "bin/file")))))))))
22818 (native-inputs (list python-hatchling python-pytest))
22819 (inputs (list file))
22820 (home-page "https://github.com/ultrabug/py3status")
22821 (synopsis "Extensible i3status wrapper written in Python")
22822 (description
22823 "py3status is an i3status wrapper which extends i3status functionality in
22824a modular way, allowing you to extend your panel with your own code,
22825responding to click events and updating clock every second.")
22826 (license license:bsd-3)))
22827
22828(define-public python-greenlet
22829 (package
22830 (name "python-greenlet")
22831 (version "3.5.1")
22832 (source
22833 (origin
22834 (method git-fetch)
22835 (uri (git-reference
22836 (url "https://github.com/python-greenlet/greenlet")
22837 (commit version)))
22838 (file-name (git-file-name name version))
22839 (sha256
22840 (base32 "1hvnpkmd9r9li62p5gmidkyq4zazi5adw5c2cah8w2f4n47zg7ix"))))
22841 (build-system pyproject-build-system)
22842 (arguments
22843 (list
22844 #:test-flags #~(list "--pyargs" "greenlet")
22845 #:phases
22846 #~(modify-phases %standard-phases
22847 (add-before 'check 'remove-local-source
22848 (lambda _
22849 (delete-file-recursively "src/greenlet"))))))
22850 (native-inputs
22851 (list python-objgraph
22852 python-pytest
22853 python-psutil
22854 python-setuptools))
22855 (home-page "https://greenlet.readthedocs.io/")
22856 (synopsis "Lightweight in-process concurrent programming")
22857 (description
22858 "Greenlet package is a spin-off of Stackless, a version of CPython
22859that supports micro-threads called \"tasklets\". Tasklets run
22860pseudo-concurrently (typically in a single or a few OS-level threads) and
22861are synchronized with data exchanges on \"channels\".")
22862 (license (list license:psfl license:expat))))
22863
22864(define-public python-objgraph
22865 (package
22866 (name "python-objgraph")
22867 (version "3.6.2")
22868 (source
22869 (origin
22870 (method url-fetch)
22871 (uri (pypi-uri "objgraph" version))
22872 (sha256
22873 (base32 "1n0swlq11w36r2p6x7b4y0zz10dgzpdc8qasyk3y68kl1zsg5f80"))))
22874 (build-system pyproject-build-system)
22875 (arguments
22876 (list
22877 #:test-flags
22878 #~(list "tests.py"
22879 ;; AssertionError: [0, 1, 2] not found in [[], [], [], [], [],
22880 ;; [], [], [], [], [], [], [], ...
22881 "-k" "not test_at_addrs")))
22882 (native-inputs
22883 (list graphviz
22884 python-pytest
22885 python-setuptools))
22886 (propagated-inputs
22887 (list python-graphviz))
22888 (home-page "https://mg.pov.lt/objgraph/")
22889 (synopsis "Draw Python object reference graphs with graphviz")
22890 (description
22891 "This package provides tools to draw Python object reference graphs with
22892graphviz.")
22893 (license license:expat)))
22894
22895(define-public python-gevent
22896 (package
22897 (name "python-gevent")
22898 (version "24.11.1")
22899 (source (origin
22900 (method url-fetch)
22901 (uri (pypi-uri "gevent" version))
22902 (sha256
22903 (base32
22904 "1jhs1k49nfhv59c0li6bcpvkr6pzmxkdgfm56gns7r792j8l3lcb"))
22905 (modules '((guix build utils)))
22906 (snippet
22907 '(begin
22908 ;; unbunding libev and c-ares
22909 (delete-file-recursively "deps")
22910 ;; Remove cythonized files.
22911 (with-directory-excursion "src/gevent"
22912 (for-each delete-file
22913 (append (list "resolver/cares.c"
22914 "queue.c"
22915 "local.c"
22916 "libev/corecext.h"
22917 "libev/corecext.c"
22918 "greenlet.c"
22919 "event.c"
22920 "_waiter.c"
22921 "_tracer.c"
22922 "_semaphore.c"
22923 "_imap.c"
22924 "_ident.c"
22925 "_hub_primitives.c"
22926 "_hub_local.c"
22927 "_greenlet_primitives.c"
22928 "_abstract_linkable.c")
22929 (find-files "." "\\.html$"))))))))
22930 (build-system pyproject-build-system)
22931 (arguments
22932 (list
22933 #:test-flags
22934 '(list
22935 ;; These tests relies on networking which is
22936 ;; not available in the build container.
22937 "test__getaddrinfo_import.py"
22938 ;; These tests rely on KeyboardInterrupts which do not
22939 ;; work inside the build container for some reason
22940 ;; (lack of controlling terminal?).
22941 "test__issues461_471.py"
22942 ;; TODO: Patch out the tests that use getprotobyname, etc
22943 ;; instead of disabling all the tests from these files.
22944 "test__resolver_dnspython.py"
22945 ;; This test contains 'test_unlink', which
22946 ;; fails on i686 (see: https://github.com/gevent/gevent/issues/1558).
22947 "test__core_stat.py")
22948 #:phases
22949 #~(modify-phases %standard-phases
22950 (add-before 'patch-source-shebangs 'patch-hard-coded-paths
22951 (lambda _
22952 (substitute* "src/gevent/subprocess.py"
22953 (("/bin/sh") (which "sh")))
22954 (for-each (lambda (file)
22955 (substitute* file
22956 (("/bin/sh") (which "sh"))
22957 (("/bin/true") (which "true"))))
22958 (find-files "src/greentest" "\\.py$"))))
22959 (add-before 'build 'do-not-use-bundled-sources
22960 (lambda _
22961 (setenv "GEVENTSETUP_EMBED" "0")
22962
22963 ;; Prevent building bundled libev.
22964 (substitute* "setup.py"
22965 (("run_make=_BUILDING")
22966 "run_make=False"))))
22967 (add-before 'build 'augment-C_INCLUDE_PATH
22968 (lambda* (#:key inputs #:allow-other-keys)
22969 (let* ((python (dirname (dirname
22970 (search-input-file
22971 inputs "bin/python"))))
22972 (version (python-version python))
22973 (greenlet (string-append
22974 #$(this-package-input "python-greenlet")
22975 "/include/python" version)))
22976 (setenv "C_INCLUDE_PATH"
22977 (string-append greenlet "/:"
22978 (or (getenv "C_INCLUDE_PATH")
22979 ""))))))
22980 (add-before 'check 'pretend-to-be-CI
22981 (lambda _
22982 ;; A few tests are skipped due to network constraints or
22983 ;; get longer timeouts when running in a CI environment.
22984 ;; Piggy-back on that, as we need the same adjustments.
22985 (setenv "TRAVIS" "1")
22986 (setenv "APPVEYOR" "1")))
22987 (add-before 'check 'adjust-tests
22988 (lambda* (#:key test-flags #:allow-other-keys)
22989 (call-with-output-file "skipped_tests.txt"
22990 (lambda (port)
22991 (format port "~a~%" (string-join test-flags "\n"))))))
22992 (replace 'check
22993 (lambda* (#:key tests? #:allow-other-keys)
22994 (when tests?
22995 ;; Use the build daemons configured number of workers.
22996 (setenv "NWORKERS" (number->string (parallel-job-count)))
22997 (invoke "python" "-m" "gevent.tests" "-unone" "--config"
22998 "known_failures.py" "--ignore" "skipped_tests.txt")))))))
22999 (propagated-inputs
23000 (list python-greenlet python-zope-event python-zope-interface))
23001 (native-inputs
23002 (list python-cffi
23003 python-cython
23004 python-dnspython
23005 python-idna
23006 python-objgraph
23007 python-psutil
23008 python-requests
23009 python-setuptools))
23010 (inputs
23011 (list c-ares libev libuv))
23012 (home-page "https://www.gevent.org/")
23013 (synopsis "Coroutine-based network library")
23014 (description
23015 "@code{gevent} is a coroutine-based Python networking library that uses
23016@code{greenlet} to provide a high-level synchronous API on top of the
23017@code{libev} event loop.")
23018 (license license:expat)))
23019
23020(define-public python-fastimport
23021 (package
23022 (name "python-fastimport")
23023 (version "0.9.16")
23024 (source
23025 (origin
23026 (method git-fetch)
23027 (uri (git-reference
23028 (url "https://github.com/jelmer/python-fastimport")
23029 (commit (string-append "v" version))))
23030 (file-name (git-file-name name version))
23031 (sha256
23032 (base32 "1pbnp9ffjs09ngva9qcizpscxl9s47rmd4dhxl62f5iwl6c46798"))))
23033 (build-system pyproject-build-system)
23034 (arguments (list #:test-backend #~'unittest))
23035 (native-inputs (list python-setuptools))
23036 (home-page "https://github.com/jelmer/python-fastimport")
23037 (synopsis "VCS fastimport parser and generator in Python")
23038 (description
23039 "This package provides a parser for and generator of the Git
23040@url{https://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html,fastimport}
23041format.")
23042 (license license:gpl2+)))
23043
23044(define-public python-pika
23045 (package
23046 (name "python-pika")
23047 (version "1.3.2")
23048 (source
23049 (origin
23050 (method git-fetch)
23051 (uri (git-reference
23052 (url "https://github.com/pika/pika")
23053 (commit version)))
23054 (file-name (git-file-name name version))
23055 (sha256
23056 (base32 "0bmp79lds26y2976xrpf53r3acqzpf3wpkprhlh3asqpfv5pwipb"))))
23057 (build-system pyproject-build-system)
23058 (arguments
23059 (list
23060 #:test-flags
23061 ;; XXX: These test most likely require a running RabbitMQ server.
23062 #~(list "--ignore=tests/acceptance/blocking_adapter_test.py")
23063 #:phases
23064 #~(modify-phases %standard-phases
23065 (add-before 'check 'configure-tests
23066 (lambda* (#:key tests? #:allow-other-keys)
23067 (when tests?
23068 (setenv "PYTHONPATH" (getcwd))))))))
23069 (native-inputs (list python-pytest
23070 python-gevent
23071 python-tornado
23072 python-twisted
23073 python-setuptools))
23074 (home-page "https://pika.readthedocs.org")
23075 (synopsis "Pure Python AMQP Client Library")
23076 (description
23077 "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
23078Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
23079network support library.")
23080 (license license:bsd-3)))
23081
23082(define-public python-pykka
23083 (package
23084 (name "python-pykka")
23085 (version "4.4.2")
23086 (source
23087 (origin
23088 (method git-fetch)
23089 (uri (git-reference
23090 (url "https://github.com/jodal/pykka")
23091 (commit (string-append "v" version))))
23092 (file-name (git-file-name name version))
23093 (sha256
23094 (base32 "15z6x31269l0zbxjv8afgi34smrh5fd3iwbjyh1342msry6msgla"))))
23095 (build-system pyproject-build-system)
23096 (native-inputs (list python-hatchling python-pytest python-pytest-mock))
23097 (home-page "https://pykka.readthedocs.io")
23098 (synopsis "Implementation of the actor model")
23099 (description
23100 "Pykka implements the actor model in Python, which introduces some simple
23101rules to control the sharing of state and cooperation between execution units,
23102and makes it easier to build concurrent applications.")
23103 (license license:asl2.0)))
23104
23105;; WARNING: This package is a dependency of mesa.
23106;; XXX: This project was archived by the owner on Dec 21, 2025. It is now
23107;; read-only. Consider to remove when nothing depends on it.
23108(define-public python-ply
23109 (package
23110 (name "python-ply")
23111 (version "3.11")
23112 (source
23113 (origin
23114 (method url-fetch)
23115 (uri (pypi-uri "ply" version))
23116 (sha256
23117 (base32 "18qx113g9bi1ac4indd5phma82zcdq601lxncp3vjn43m2mc3iq0"))))
23118 (build-system pyproject-build-system)
23119 (arguments (list #:tests? #f)) ;XXX: not tests in PyPI archive, there are in Git
23120 (native-inputs
23121 (list python-setuptools))
23122 (home-page "http://www.dabeaz.com/ply/")
23123 (synopsis "Python Lex & Yacc")
23124 (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
23125It uses LR parsing and does extensive error checking.")
23126 (license license:bsd-3)))
23127
23128(define-public python-kazoo
23129 (package
23130 (name "python-kazoo")
23131 (version "2.10.0")
23132 (source
23133 (origin
23134 (method git-fetch)
23135 (uri (git-reference
23136 (url "https://github.com/python-zk/kazoo")
23137 (commit version)))
23138 (file-name (git-file-name name version))
23139 (sha256
23140 (base32 "1ic1ky4v64jw59in02hqmyxskd98v32msd46pmsp39l7iighjrn2"))))
23141 (build-system pyproject-build-system)
23142 (arguments (list #:tests? #f)) ; XXX: needs zookeeper
23143 (native-inputs (list python-setuptools))
23144 (home-page "https://kazoo.readthedocs.org")
23145 (synopsis "High-level Zookeeper client library")
23146 (description
23147 "Kazoo is a Python client library for the Apache Zookeeper distributed
23148application service. It is designed to be easy to use and to avoid common
23149programming errors.")
23150 (license license:asl2.0)))
23151
23152(define-public python-columnize
23153 (package
23154 (name "python-columnize")
23155 (version "0.3.11")
23156 (source
23157 (origin
23158 (method url-fetch)
23159 (uri (pypi-uri "columnize" version))
23160 (sha256
23161 (base32 "1clb3lfw694crq8m767q0yjaazkplcrbzdr9fr2w39hhndivhcd6"))))
23162 (build-system pyproject-build-system)
23163 (native-inputs (list python-pytest python-setuptools))
23164 (home-page "https://github.com/rocky/pycolumnize")
23165 (synopsis "Format a simple (i.e. not nested) list into aligned columns.")
23166 (description
23167 "This package provides a way to format a simple (i.e. not nested) list
23168into aligned columns.")
23169 (license license:expat)))
23170
23171(define-public python-pysol-cards
23172 (package
23173 (name "python-pysol-cards")
23174 (version "0.24.0")
23175 (source
23176 (origin
23177 (method url-fetch)
23178 (uri (pypi-uri "pysol_cards" version))
23179 (sha256
23180 (base32 "0jsd7mqp0ak8zidg540b9hjncgx8diy9lv85zj6mi88sm0nlk1d9"))))
23181 (build-system pyproject-build-system)
23182 (arguments
23183 (list
23184 #:phases
23185 #~(modify-phases %standard-phases
23186 (replace 'check
23187 (lambda* (#:key test-flags tests? #:allow-other-keys)
23188 (when tests?
23189 (apply invoke
23190 "python"
23191 "-m"
23192 "unittest"
23193 "discover"
23194 "tests"
23195 test-flags)))))))
23196 (native-inputs (list python-setuptools python-wheel))
23197 (home-page "https://github.com/shlomif/pysol_cards")
23198 (synopsis "Deal PySol FC Cards")
23199 (description
23200 "The pysol-cards python modules provide code to generate the initial deals of
23201some PySol games.")
23202 (license license:expat)))
23203
23204(define-public python-freecell-solver
23205 (package
23206 (name "python-freecell-solver")
23207 (version "0.6.0")
23208 (source
23209 (origin
23210 (method url-fetch)
23211 (uri (pypi-uri "freecell_solver" version))
23212 (sha256
23213 (base32 "0cq77dmq21laqk8fhl61m33lbckymzk312r263x2mv93mccf8jrm"))))
23214 (build-system pyproject-build-system)
23215 (propagated-inputs (list python-cffi))
23216 (native-inputs (list python-pytest python-setuptools))
23217 (home-page "https://pypi.org/project/freecell-solver/")
23218 (synopsis "Freecell Solver bindings")
23219 (description
23220 "This package provides Python bindings for the freecell-solver
23221package. Freecell Solver is a program that automatically solves layouts of
23222Freecell and similar variants of Card Solitaire such as Eight Off, Forecell,
23223and Seahaven Towers, as well as Simple Simon boards.")
23224 (license license:expat)))
23225
23226(define-public python-inflection
23227 (package
23228 (name "python-inflection")
23229 (version "0.5.1")
23230 (source
23231 (origin
23232 (method git-fetch)
23233 (uri (git-reference
23234 (url "https://github.com/jpvanhal/inflection")
23235 (commit version)))
23236 (file-name (git-file-name name version))
23237 (sha256
23238 (base32 "0mvs6wgpi963k7mqrwzdkh32m29zcm772q0fy7pwszlcsh3l50kg"))))
23239 (build-system pyproject-build-system)
23240 (native-inputs (list python-pytest python-setuptools))
23241 (home-page "https://github.com/jpvanhal/inflection")
23242 (synopsis "Python string transformation library")
23243 (description
23244 "Inflection is a string transformation library. It singularizes
23245and pluralizes English words, and transforms strings from CamelCase to
23246underscored string.")
23247 (license license:expat)))
23248
23249(define-public python-krb5
23250 (package
23251 (name "python-krb5")
23252 (version "0.5.1")
23253 (source
23254 (origin
23255 (method url-fetch)
23256 (uri (pypi-uri "krb5" version))
23257 (sha256
23258 (base32 "1jivws8dsscsmyqngbc71r4qw8qmn98pqmhylz01r5dd1ljfw9bi"))))
23259 (build-system pyproject-build-system)
23260 (inputs (list mit-krb5))
23261 (native-inputs (list python-cython python-k5test python-pytest
23262 python-setuptools python-wheel))
23263 (home-page "https://github.com/jborean93/pykrb5")
23264 (synopsis "Kerberos API bindings for Python")
23265 (description "This library provides Python functions that wraps the
23266Kerberos 5 C API.")
23267 (license license:expat)))
23268
23269(define-public python-pylev
23270 (package
23271 (name "python-pylev")
23272 (version "1.4.0")
23273 (source
23274 (origin
23275 (method git-fetch)
23276 (uri (git-reference
23277 (url "https://github.com/toastdriven/pylev")
23278 (commit (string-append "v" version))))
23279 (file-name (git-file-name name version))
23280 (sha256
23281 (base32 "0fgxjdnvnvavnxmxxd0fl5jyr2f31g3a26bwyxcpy56mgpd095c1"))))
23282 (build-system pyproject-build-system)
23283 (arguments
23284 (list
23285 #:test-backend #~'custom
23286 #:test-flags #~(list "tests.py")))
23287 (native-inputs (list python-setuptools))
23288 (home-page "https://github.com/toastdriven/pylev")
23289 (synopsis "Levenshtein distance implementation in Python")
23290 (description
23291 "Pure Python Levenshtein implementation, based off the Wikipedia code
23292samples at @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
23293 (license license:bsd-3)))
23294
23295(define-public python-cleo
23296 (package
23297 (name "python-cleo")
23298 (version "2.1.0")
23299 (source (origin
23300 (method url-fetch)
23301 (uri (pypi-uri "cleo" version))
23302 (sha256
23303 (base32
23304 "08ym7xaalxzka3k9wp7i05n6j9xmmjs1y02ilrz0lrhkbl5qhb0b"))))
23305 (build-system pyproject-build-system)
23306 (native-inputs
23307 (list python-poetry-core
23308 python-mock
23309 python-pytest-mock
23310 python-pytest))
23311 (propagated-inputs
23312 (list python-crashtest python-rapidfuzz))
23313 (home-page "https://github.com/sdispater/cleo")
23314 (synopsis "Command-line arguments library for Python")
23315 (description
23316 "Cleo allows you to create command-line commands with signature in
23317docstring and colored output.")
23318 (license license:expat)))
23319
23320(define-public python-shellingham
23321 (package
23322 (name "python-shellingham")
23323 (version "1.5.4")
23324 (source
23325 (origin
23326 (method url-fetch)
23327 (uri (pypi-uri "shellingham" version))
23328 (sha256
23329 (base32 "1ph46hv920ha9clwxgrllbrphh0ww4v4pjmkbb9mnzj8kmrs1g4d"))))
23330 (build-system pyproject-build-system)
23331 (native-inputs
23332 (list python-pytest python-pytest-mock python-setuptools python-wheel))
23333 (home-page "https://github.com/sarugaku/shellingham")
23334 (synopsis "Tool to detect surrounding shell")
23335 (description
23336 "Shellingham detects what shell the current Python executable is
23337running in.")
23338 (license license:isc)))
23339
23340(define-public python-shshsh
23341 (package
23342 (name "python-shshsh")
23343 (version "1.0.5")
23344 (source
23345 (origin
23346 (method git-fetch)
23347 (uri
23348 (git-reference
23349 (url "https://github.com/zqqqqz2000/shshsh")
23350 (commit
23351 "fd21c8696aebaae04507760c16cb45979291fef5")))
23352 (file-name (git-file-name name version))
23353 (sha256
23354 (base32
23355 "1wzqyj1a6jj6cyv5ymzy834qm2lyq80yy1kfz0q0zayq9gm1cj7f"))))
23356 (build-system pyproject-build-system)
23357 (native-inputs
23358 (list python-poetry-core
23359 python-pytest))
23360 (home-page "https://github.com/zqqqqz2000/shshsh")
23361 (synopsis "Write Shell commands simply and safely within Python")
23362 (description "This package provides a way to write Shell commands from
23363within Python. Python functions can be chained together to process input
23364Bash control characters are escapted so that parameters can be passed
23365without worrying about command injection.")
23366 (license license:expat)))
23367
23368(define-public python-memcached
23369 (package
23370 (name "python-memcached")
23371 (version "1.62")
23372 (source
23373 (origin
23374 (method git-fetch)
23375 (uri (git-reference
23376 (url "https://github.com/linsomniac/python-memcached")
23377 (commit version)))
23378 (file-name (git-file-name name version))
23379 (sha256
23380 (base32 "1chw36v1g4zz32s2qc2ql1hzrd1ys8d4abjdjnjgg8anpx13hjj2"))))
23381 (build-system pyproject-build-system)
23382 (arguments
23383 (list
23384 #:tests? #f ;Requires a connection to a socket.
23385 #:test-backend #~'unittest))
23386 (native-inputs (list python-setuptools))
23387 (home-page "https://github.com/linsomniac/python-memcached")
23388 (synopsis "Pure python memcached client")
23389 (description
23390 "This software is a pure Python interface to the memcached memory cache
23391daemon. It is the client side software which allows storing values in one or
23392more, possibly remote, memcached servers.")
23393 (license license:psfl)))
23394
23395(define-public python-mergedeep
23396 (package
23397 (name "python-mergedeep")
23398 (version "1.3.4")
23399 (source
23400 (origin
23401 (method git-fetch)
23402 (uri (git-reference
23403 (url "https://github.com/clarketm/mergedeep")
23404 (commit (string-append "v" version))))
23405 (file-name (git-file-name name version))
23406 (sha256
23407 (base32 "1msvvdzk33sxzgyvs4fs8dlsrsi7fjj038z83s0yw5h8m8d78469"))))
23408 (build-system pyproject-build-system)
23409 (arguments (list #:test-backend #~'unittest))
23410 (native-inputs (list python-setuptools))
23411 (home-page "https://github.com/clarketm/mergedeep")
23412 (synopsis "Deep merge function for Python")
23413 (description
23414 "This package provides a deep merge function for Python, useful to
23415combine multiple data objects as one.")
23416 (license license:expat)))
23417
23418(define-public python-clikit
23419 (package
23420 (name "python-clikit")
23421 (version "0.6.2")
23422 (source
23423 (origin
23424 (method git-fetch)
23425 (uri (git-reference
23426 (url "https://github.com/sdispater/clikit")
23427 (commit version)))
23428 (file-name (git-file-name name version))
23429 (sha256
23430 (base32 "1l11iriqc61m30fp17yxwkgl5900kiw8x8vw2i93n1jh2lv182y4"))))
23431 (build-system pyproject-build-system)
23432 (arguments
23433 (list
23434 #:phases
23435 #~(modify-phases %standard-phases
23436 (add-after 'unpack 'relax-requirements
23437 (lambda _
23438 (substitute* "pyproject.toml"
23439 (("^crashtest.*")
23440 (format #f "crashtest=~s"
23441 #$(package-version
23442 (this-package-input "python-crashtest"))))))))))
23443 (native-inputs (list python-poetry-core python-pytest python-pytest-mock))
23444 (propagated-inputs (list python-crashtest python-pastel python-pylev))
23445 (home-page "https://github.com/sdispater/clikit")
23446 (synopsis "Group of utilities to build command line interfaces")
23447 (description
23448 "CliKit is a group of utilities to build testable command line
23449interfaces.")
23450 (license license:expat)))
23451
23452(define-public python-cattrs
23453 (package
23454 (name "python-cattrs")
23455 (version "26.1.0")
23456 (source
23457 (origin
23458 (method git-fetch)
23459 (uri (git-reference
23460 (url "https://github.com/python-attrs/cattrs")
23461 (commit (string-append "v" version))))
23462 (file-name (git-file-name name version))
23463 (sha256
23464 (base32 "0msn1zgv7shlh7nnmhydg7gv6j0y9yy1061f7qcj31jhzd7bnl4b"))))
23465 (build-system pyproject-build-system)
23466 (arguments
23467 (list
23468 ;; tests: 1010 passed, 15 xfailed
23469 #:test-flags
23470 #~(list "-m" "not benchmark"
23471 "--numprocesses" (number->string (parallel-job-count)))
23472 #:phases
23473 #~(modify-phases %standard-phases
23474 (add-after 'unpack 'fix-pytest-config
23475 (lambda _
23476 (substitute* "pyproject.toml"
23477 ;; All options are benchmark related.
23478 (("addopts =.*") "\n")))))))
23479 (native-inputs
23480 (list python-hatchling
23481 python-hatch-vcs
23482 python-immutables
23483 python-pytest
23484 python-pytest-benchmark
23485 python-pytest-xdist))
23486 (propagated-inputs
23487 (list python-attrs
23488 python-typing-extensions
23489 ;; [optional]
23490 python-cbor2
23491 python-msgpack
23492 python-msgspec
23493 python-orjson
23494 python-pymongo ;for the bson module
23495 python-pyyaml
23496 python-tomli-w
23497 python-tomlkit
23498 python-ujson))
23499 (home-page "https://github.com/python-attrs/cattrs")
23500 (synopsis "Python library for structuring and unstructuring data")
23501 (description "@code{cattrs} is an Python library for structuring and
23502unstructuring data. @code{cattrs} works best with @code{attrs} classes,
23503@code{dataclasses} and the usual Python collections, but other kinds of
23504classes can also be supported by manually registering converters.")
23505 (license license:expat)))
23506
23507;; A bare minimal package, mainly to use in tests and reduce closure
23508;; size. Tests are left out in the main package to slim down native-inputs and
23509;; optional propagated-inputs.
23510(define-public python-cattrs-minimal
23511 (package/inherit python-cattrs
23512 (name "python-cattrs-minimal")
23513 (arguments
23514 (substitute-keyword-arguments arguments
23515 ((#:tests? _ #t) #f)))
23516 (native-inputs
23517 (list python-hatchling
23518 python-hatch-vcs))
23519 (propagated-inputs
23520 (list python-attrs
23521 python-typing-extensions))))
23522
23523(define-public python-cachy
23524 (package
23525 (name "python-cachy")
23526 (version "0.3.0")
23527 (source
23528 (origin
23529 (method url-fetch)
23530 (uri (pypi-uri "cachy" version))
23531 (sha256
23532 (base32 "1cb9naly8ampzlky7h74n5wj628l7jkpsh0c0jz0namlrvs82r8q"))))
23533 (build-system pyproject-build-system)
23534 (arguments
23535 (list
23536 #:phases
23537 #~(modify-phases %standard-phases
23538 (replace 'check
23539 (lambda* (#:key tests? #:allow-other-keys)
23540 (when tests?
23541 ;; Make it compatible with python-flexmock 0.12.
23542 (substitute* (find-files "tests" "\\.py$")
23543 (("from flexmock import flexmock, flexmock_teardown")
23544 (string-append "from flexmock import flexmock\n"
23545 "from flexmock._api import flexmock_teardown")))
23546 (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
23547 "pytest")))))))
23548 (native-inputs
23549 (list memcached
23550 python-fakeredis
23551 python-flexmock
23552 python-pifpaf
23553 python-pytest
23554 python-setuptools
23555 python-wheel))
23556 (propagated-inputs
23557 (list python-memcached
23558 python-msgpack
23559 python-redis))
23560 (home-page "https://github.com/sdispater/cachy")
23561 (synopsis "Simple yet effective caching library")
23562 (description
23563 "Cachy provides a simple yet effective caching library. A simple but
23564powerful API: thread-safety; decorator syntax; support for memcached, redis,
23565database, file, dict stores. Cachy supports python versions 2.7+ and 3.2+.")
23566 (license license:expat)))
23567
23568(define-public python-pyproject-api
23569 (package
23570 (name "python-pyproject-api")
23571 (version "1.10.0")
23572 (source
23573 (origin
23574 (method url-fetch)
23575 (uri (pypi-uri "pyproject_api" version))
23576 (sha256
23577 (base32 "0c5kpg0fpqvvimzxjq2a9kdijk601393wxqwwvz4mp7b5vcg5ij0"))))
23578 (build-system pyproject-build-system)
23579 (native-inputs
23580 (list python-hatch-vcs
23581 python-hatchling
23582 python-pytest
23583 python-pytest-mock
23584 python-setuptools))
23585 (propagated-inputs
23586 (list python-packaging python-tomli))
23587 (home-page "https://pyproject-api.readthedocs.io/latest/")
23588 (synopsis "API to interact with the Python pyproject.toml based projects")
23589 (description
23590 "@code{pyproject-api} aims to abstract away interaction with
23591@code{pyproject.toml} style projects in a flexible way.")
23592 (license license:expat)))
23593
23594(define-public python-lark
23595 (package
23596 (name "python-lark")
23597 (version "1.2.2")
23598 (source
23599 (origin
23600 (method url-fetch)
23601 (uri (pypi-uri "lark" version))
23602 (sha256
23603 (base32 "107d1w24b3ln4zwsw4yvkfhff6bk5n3cpvlgbbqww5ndc80pv06a"))))
23604 (build-system pyproject-build-system)
23605 (native-inputs (list python-pytest python-setuptools python-wheel))
23606 (home-page "https://github.com/lark-parser/lark")
23607 (synopsis "Multi-language parser for Python")
23608 (description
23609 "Lark is a parser built with a focus on ergonomics, performance and
23610resilience. Lark can parse all context-free languages. That means it is
23611capable of parsing almost any programming language out there, and to
23612some degree most natural languages too.")
23613 (license license:expat)))
23614
23615(define-public python-find-libpython
23616 (package
23617 (name "python-find-libpython")
23618 (version "0.5.1")
23619 (source
23620 (origin
23621 (method git-fetch)
23622 (uri (git-reference
23623 (url "https://github.com/ktbarrett/find_libpython")
23624 (commit (string-append "v" version))))
23625 (file-name (git-file-name name version))
23626 (sha256
23627 (base32 "0r4mzmlbgzbxldxhw55b6haj9xybx1wwm9pvpr665mhsxgxaaqc3"))))
23628 (build-system pyproject-build-system)
23629 (native-inputs (list python-pytest python-setuptools))
23630 (home-page "https://github.com/ktbarrett/find_libpython")
23631 (synopsis "Find the path to the @code{libpython} dynamic library")
23632 (description
23633 "@code{find_libpython} helps find the path to the
23634@code{libpython} dynamic library for the current Python environment. It is
23635both a script and a Python package.")
23636 (license license:expat)))
23637
23638(define-public python-libcst
23639 (package
23640 (name "python-libcst")
23641 (version "1.6.0")
23642 (source (origin
23643 (method url-fetch)
23644 (uri (pypi-uri "libcst" version))
23645 (sha256
23646 (base32
23647 "1nzhvg52whpmfv8fkrnv7rlrmgc5m43hpyp8ra9kffx47yzcs3p8"))
23648 (snippet
23649 #~(begin (use-modules (guix build utils))
23650 ;; This is mostly to keep the cargo-build-system happy
23651 (with-output-to-file "Cargo.toml"
23652 (lambda ()
23653 (format #t "\
23654[workspace]
23655
23656members = [
23657 \"native\",]")))))))
23658 (build-system cargo-build-system)
23659 (arguments
23660 (list
23661 #:install-source? #false
23662 #:cargo-test-flags
23663 ;; According to .github/workflows/ci.yml
23664 '(list "--manifest-path=native/Cargo.toml"
23665 "--release"
23666 "--no-default-features")
23667 #:imported-modules `(,@%pyproject-build-system-modules
23668 ,@%cargo-build-system-modules)
23669 #:modules `((guix build cargo-build-system)
23670 ((guix build pyproject-build-system) #:prefix py:)
23671 (guix build utils))
23672 #:phases
23673 #~(modify-phases %standard-phases
23674 (add-after 'unpack 'prepare-source
23675 (lambda _
23676 (delete-file "native/Cargo.lock")))
23677 (replace 'build
23678 (assoc-ref py:%standard-phases 'build))
23679 (add-after 'install 'wrap
23680 (lambda _
23681 ;; Collection of python- and pyproject-build-system phases
23682 ;; between 'install and 'check.
23683 (assoc-ref py:%standard-phases 'add-install-to-pythonpath)
23684 (assoc-ref py:%standard-phases 'add-install-to-path)
23685 (assoc-ref py:%standard-phases 'wrap)
23686 (assoc-ref py:%standard-phases 'create-entrypoints)
23687 (assoc-ref py:%standard-phases 'compile-bytecode)))
23688 ;; We are not the only ones who cannot load libcst.native
23689 ;; during the 'check phase
23690 ;; https://github.com/Instagram/LibCST/issues/1176
23691 ;; (add-after 'wrap 'python-check
23692 ;; (lambda args
23693 ;; (apply (assoc-ref py:%standard-phases 'check)
23694 ;; #:test-flags '()
23695 ;; args)))
23696 (replace 'install
23697 (assoc-ref py:%standard-phases 'install)))))
23698 (native-inputs
23699 (list python-minimal-wrapper
23700 python-hypothesmith
23701 python-pytest
23702 python-setuptools
23703 python-setuptools-rust
23704 python-setuptools-scm
23705 python-wheel))
23706 (inputs (cons maturin (cargo-inputs 'python-libcst)))
23707 (propagated-inputs
23708 (list python-pyyaml))
23709 (home-page "https://github.com/Instagram/LibCST")
23710 (synopsis "Concrete Syntax Tree (CST) parser and serializer library for Python")
23711 (description
23712 "LibCST parses Python source code as a CST tree that keeps all
23713formatting details (comments, whitespaces, parentheses, etc). It's useful
23714for building automated refactoring (codemod) applications and linters.
23715LibCST creates a compromise between an Abstract Syntax Tree (AST) and
23716a traditional Concrete Syntax Tree (CST). By carefully reorganizing and
23717naming node types and fields, LibCST creates a lossless CST that looks and
23718feels like an AST.")
23719 (license (list license:expat
23720 ;; Some files unde libcst/_parser/ are under Python Software
23721 ;; Foundation license (see LICENSE file for details)
23722 license:psfl
23723 ;; libcst/_add_slots.py
23724 license:asl2.0))))
23725
23726(define-public python-libcst-minimal
23727 (hidden-package
23728 (package
23729 (inherit python-libcst)
23730 (name "python-libcst-minimal")
23731 (arguments
23732 (substitute-keyword-arguments arguments
23733 ((#:tests? _ #t) #f)))
23734 (native-inputs
23735 (list python-minimal-wrapper
23736 python-setuptools
23737 python-setuptools-rust
23738 python-setuptools-scm
23739 python-wheel)))))
23740
23741(define-public python-lazy-loader
23742 (package
23743 (name "python-lazy-loader")
23744 (version "0.4")
23745 (source (origin
23746 (method url-fetch)
23747 (uri (pypi-uri "lazy_loader" version))
23748 (sha256
23749 (base32
23750 "1lacaz292qxpgw6kxiirkx6sv9c5883nq4ssm3hs94cvb2153is7"))))
23751 (build-system pyproject-build-system)
23752 (native-inputs
23753 (list python-numpy python-pytest python-setuptools))
23754 (propagated-inputs
23755 (list python-flit-core
23756 python-setuptools
23757 python-wheel))
23758 (home-page "https://scientific-python.org/specs/spec-0001/")
23759 (synopsis "Load subpackages and functions on demand")
23760 (description "@code{python-lazy-loader} makes it easy to load subpackages
23761and functions on demand. Its main features are:
23762
23763@itemize
23764@item Allow subpackages to be made visible to users without incurring import
23765costs.
23766@item Allow external libraries to be imported only when used, improving import
23767times.
23768@end itemize")
23769 (license license:bsd-3)))
23770
23771(define-public python-lazy-object-proxy
23772 (package
23773 (name "python-lazy-object-proxy")
23774 (version "1.12.0")
23775 (source
23776 (origin
23777 (method git-fetch)
23778 (uri (git-reference
23779 (url "https://github.com/ionelmc/python-lazy-object-proxy")
23780 (commit (string-append "v" version))))
23781 (file-name (git-file-name name version))
23782 (sha256
23783 (base32 "1qig879igkjmj4mir26b0n40w3vn5jqn293172s6npxnb4k90kzk"))))
23784 (build-system pyproject-build-system)
23785 (native-inputs
23786 (list python-pytest
23787 python-pytest-benchmark
23788 python-setuptools
23789 python-setuptools-scm))
23790 (home-page "https://github.com/ionelmc/python-lazy-object-proxy")
23791 (synopsis "Lazy object proxy for Python")
23792 (description
23793 "Lazy object proxy is an object that wraps a callable but defers the call
23794until the object is actually required, and caches the result of said call.")
23795 (license license:bsd-2)))
23796
23797(define-public python-dnspython
23798 ;; TODO: Move to (gnu packages python-web).
23799 (package
23800 (name "python-dnspython")
23801 (version "2.8.0")
23802 (source
23803 (origin
23804 (method url-fetch)
23805 (uri (pypi-uri "dnspython" version))
23806 (sha256
23807 (base32 "03vdy97rh9kxwzyjymlrw235ljmqk4awcij0khcb2b25jrlkq78q"))))
23808 (build-system pyproject-build-system)
23809 (arguments
23810 (list
23811 ;; tests: 1216 passed, 198 skipped, 2 deselected
23812 #:test-flags
23813 #~(list
23814 ;; AssertionError: assert False
23815 "--deselect=tests/test_features.py::test_have"
23816 ;; dns.exception.SyntaxError: protocol not found
23817 "--deselect=tests/test_rdata.py::RdataTestCase::test_misc_good_WKS_text")
23818 #:phases
23819 #~(modify-phases %standard-phases
23820 (add-after 'unpack 'patch-getprotobyname-calls
23821 ;; These calls are problematic in the build environment as there is
23822 ;; no /etc/protocols. This breaks the sanity-check phase of any
23823 ;; package depending on this one.
23824 (lambda _
23825 (substitute* "dns/rdtypes/IN/WKS.py"
23826 (("socket.getprotobyname\\('tcp'\\)")
23827 "6")
23828 (("socket.getprotobyname\\('udp'\\)")
23829 "17")))))))
23830 (native-inputs
23831 (list python-hatchling
23832 python-pytest))
23833 (propagated-inputs
23834 (append
23835 (if (supported-package? python-cryptography)
23836 (list ;; DNSSEC
23837 python-cryptography
23838 ;; DNS over Quic
23839 python-aioquic
23840 ;; DNS over HTTPS
23841 python-h2
23842 python-httpcore
23843 python-httpx)
23844 '())
23845 (list python-idna
23846 python-trio)))
23847 (home-page "https://www.dnspython.org")
23848 (synopsis "DNS toolkit for Python")
23849 (description
23850 "dnspython is a DNS toolkit for Python. It supports almost all record
23851types. It can be used for queries, zone transfers, and dynamic updates.
23852It supports TSIG authenticated messages and EDNS0.")
23853 (license license:expat)))
23854
23855;; A bare minimal package, mainly to use in tests and reduce closure size.
23856;; Tests are left out in the main package to slim down native-inputs and
23857;; propagated-inputs.
23858(define-public python-dnspython-minimal
23859 (package/inherit python-dnspython
23860 (name "python-dnspython-minimal")
23861 (arguments
23862 (substitute-keyword-arguments arguments
23863 ((#:tests? _ #t) #f)))
23864 (native-inputs
23865 (list python-hatchling))
23866 (propagated-inputs '())))
23867
23868(define-public python-py3dns
23869 (package
23870 (name "python-py3dns")
23871 (version "4.0.2")
23872 (source
23873 (origin
23874 (method url-fetch)
23875 (uri (pypi-uri "py3dns" version))
23876 (sha256
23877 (base32 "0fcac412kh34r3gxvn7dc1srmjii2qs6n3lgyxh3q57cxj02wrcq"))))
23878 (build-system pyproject-build-system)
23879 (arguments
23880 ;; This package wants to read /etc/resolv.conf. We can't patch it without
23881 ;; removing functionality so we don't run tests.
23882 (list #:tests? #f))
23883 (native-inputs (list python-flit-core))
23884 (home-page "https://launchpad.net/py3dns")
23885 (synopsis "Python 3 DNS library")
23886 (description
23887 "This Python 3 module provides a DNS API for looking up DNS entries from
23888within Python 3 modules and applications. This module is a simple,
23889lightweight implementation.")
23890 (license license:psfl)))
23891
23892(define-public python-email-validator
23893 (package
23894 (name "python-email-validator")
23895 (version "2.2.0")
23896 (source
23897 (origin
23898 (method url-fetch)
23899 (uri (pypi-uri "email_validator" version))
23900 (sha256
23901 (base32 "1dw28lv9lpsw2s7dylhih93fn72s8iqyfsp6497p2yk19hs0ysfb"))))
23902 (build-system pyproject-build-system)
23903 (arguments
23904 (list
23905 #:test-flags
23906 ;; dns.resolver.NoResolverConfiguration: cannot open /etc/resolv.conf
23907 #~(list "-k" "not test_caching_dns_resolver")))
23908 (native-inputs
23909 (list python-pytest
23910 python-setuptools
23911 python-wheel))
23912 (propagated-inputs
23913 (list python-dnspython
23914 python-idna))
23915 (home-page "https://github.com/JoshData/python-email-validator")
23916 (synopsis "Email address validation library for Python")
23917 (description
23918 "This library validates email address syntax and deliverability.")
23919 (license license:cc0)))
23920
23921(define-public python-faker
23922 (package
23923 (name "python-faker")
23924 (version "37.4.2")
23925 (source
23926 (origin
23927 (method url-fetch)
23928 (uri (pypi-uri "faker" version))
23929 (sha256
23930 (base32 "02kbql0mgjh98ilz5crxlkrsl9qdqlfa5gmqjn46br9hxax1na4f"))))
23931 (build-system pyproject-build-system)
23932 ;; tests: 2104 passed, 12 skipped, 2 warnings
23933 (native-inputs
23934 (list python-freezegun
23935 python-pytest
23936 python-setuptools
23937 python-validators))
23938 (propagated-inputs
23939 (list python-tzdata))
23940 (home-page "https://github.com/joke2k/faker")
23941 (synopsis "Python package that generates fake data")
23942 (description
23943 "Faker is a Python package that generates fake data such as names,
23944addresses, and phone numbers.")
23945 (license license:expat)))
23946
23947(define-public python-pyaml
23948 (package
23949 (name "python-pyaml")
23950 (version "25.7.0")
23951 (source
23952 (origin
23953 (method url-fetch)
23954 (uri (pypi-uri "pyaml" version))
23955 (sha256
23956 (base32 "16yrflm7iyz82igpzlba16cbvwfwny2fnarf14mvz0b8q57ac4z1"))))
23957 (build-system pyproject-build-system)
23958 (native-inputs
23959 (list python-pytest
23960 python-setuptools))
23961 (propagated-inputs
23962 (list python-pyyaml))
23963 (home-page "https://github.com/mk-fg/pretty-yaml")
23964 (synopsis "YAML pretty-print library for Python")
23965 (description
23966 "pyaml is a PyYAML based python module to produce pretty and readable
23967YAML-serialized data.")
23968 (license license:wtfpl2)))
23969
23970(define-public python-pyyaml-env-tag
23971 (package
23972 (name "python-pyyaml-env-tag")
23973 (version "1.1")
23974 (source
23975 (origin
23976 (method git-fetch)
23977 (uri (git-reference
23978 (url "https://github.com/waylan/pyyaml-env-tag")
23979 (commit version)))
23980 (file-name (git-file-name name version))
23981 (sha256
23982 (base32 "16zkwmnlzzsdlxs9ww3b51mcarni2ykmi0v7752l7j4najxw875n"))))
23983 (build-system pyproject-build-system)
23984 (native-inputs (list python-pytest python-setuptools))
23985 (propagated-inputs (list python-pyyaml))
23986 (home-page "https://github.com/waylan/pyyaml-env-tag")
23987 (synopsis "Custom YAML tag for environment variables")
23988 (description
23989 "This package provides a custom YAML tag for referencing environment
23990variables in YAML files.")
23991 (license license:expat)))
23992
23993(define-public python-prompt-toolkit
23994 (package
23995 (name "python-prompt-toolkit")
23996 (version "3.0.51")
23997 (source
23998 (origin
23999 (method url-fetch)
24000 (uri (pypi-uri "prompt_toolkit" version))
24001 (sha256
24002 (base32 "1valgcf324yy0sf7rrbm2ivc4a65n8gvnj0vdz491z177cp1c6lk"))))
24003 (build-system pyproject-build-system)
24004 (arguments
24005 (list
24006 #:phases
24007 #~(modify-phases %standard-phases
24008 (add-before 'check 'pre-check
24009 (lambda _
24010 ;; HOME is needed for the test
24011 ;; "test_pathcompleter_can_expanduser".
24012 (setenv "HOME" "/tmp"))))))
24013 (native-inputs
24014 (list python-pytest
24015 python-setuptools))
24016 (propagated-inputs
24017 (list python-wcwidth))
24018 (home-page "https://github.com/prompt-toolkit/python-prompt-toolkit")
24019 (synopsis "Library for building command line interfaces in Python")
24020 (description
24021 "Prompt-Toolkit is a library for building interactive command line
24022interfaces in Python. It's like GNU Readline but it also features syntax
24023highlighting while typing, out-of-the-box multi-line input editing, advanced
24024code completion, incremental search, support for Chinese double-width
24025characters, mouse support, and auto suggestions.")
24026 (license license:bsd-3)))
24027
24028(define-public python-proselint
24029 (package
24030 (name "python-proselint")
24031 (version "0.14.0")
24032 (source
24033 (origin
24034 (method url-fetch)
24035 (uri (pypi-uri "proselint" version))
24036 (sha256
24037 (base32 "11hfd207bhsvb0iznlnbr0w7jxihvn3ismpjbmz7c57a5ckn8jb2"))))
24038 (build-system pyproject-build-system)
24039 (arguments
24040 (list
24041 #:phases
24042 #~(modify-phases %standard-phases
24043 (add-after 'unpack 'set-home-directory
24044 (lambda _
24045 (setenv "HOME" "/tmp"))))))
24046 (native-inputs
24047 (list python-poetry-core
24048 python-pytest))
24049 (propagated-inputs
24050 (list python-click))
24051 (home-page "http://proselint.com/")
24052 (synopsis "Linter for prose")
24053 (description "@code{python-proselint} is a linter for English prose, that
24054scans through a file and detects issues.")
24055 (license license:bsd-3)))
24056
24057(define-public python-jedi
24058 (package
24059 (name "python-jedi")
24060 (version "0.19.2")
24061 (source
24062 (origin
24063 (method git-fetch)
24064 (uri (git-reference
24065 (url "https://github.com/davidhalter/jedi")
24066 (commit (string-append "v" version))
24067 (recursive? #true)))
24068 (file-name (git-file-name name version))
24069 (sha256
24070 (base32
24071 "0w8rrw6s4bzr5csds8bhasrmzh9q77zh5dzisjysl8cb5qjx0w6s"))))
24072 (build-system pyproject-build-system)
24073 (arguments
24074 (list
24075 #:phases
24076 '(modify-phases %standard-phases
24077 (add-before 'check 'set-HOME
24078 (lambda _ (setenv "HOME" "/tmp"))))))
24079 (native-inputs
24080 (list python-docopt
24081 python-pytest
24082 python-setuptools
24083 python-wheel))
24084 (propagated-inputs
24085 (list python-parso))
24086 (home-page "https://github.com/davidhalter/jedi")
24087 (synopsis "Autocompletion and static analysis library for Python")
24088 (description
24089 "Jedi is a static analysis tool for Python that can be used in Integrated
24090Development Environments (@dfn{IDE}s) and text editors. It understands Python
24091on a deeper level than many other static analysis frameworks for Python.
24092
24093Jedi understands docstrings and you can use Jedi autocompletion in your REPL
24094as well.")
24095 (license license:expat)))
24096
24097(define-public ptpython
24098 (package
24099 (name "ptpython")
24100 (version "3.0.20")
24101 (source
24102 (origin
24103 (method git-fetch)
24104 (uri (git-reference
24105 (url "https://github.com/jonathanslenders/ptpython")
24106 (commit version)))
24107 (file-name (git-file-name name version))
24108 (sha256
24109 (base32 "0qbj7d4qkzl8l05kpmm19953lmqk379i17ab8g3sfnmfpsy3ji5m"))))
24110 (build-system pyproject-build-system)
24111 (arguments
24112 (list
24113 ;; XXX: There is a tests/run_tests.py file but all it does is a
24114 ;; sanity check.
24115 #:tests? #f))
24116 (native-inputs (list python-setuptools))
24117 (propagated-inputs
24118 (list python-appdirs python-jedi python-prompt-toolkit python-pygments))
24119 (home-page "https://github.com/jonathanslenders/ptpython")
24120 (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
24121 (description
24122 "ptpython is a Python read-eval-print loop with IDE-like features.
24123It supports syntax highlighting, multiline editing, autocompletion, mouse,
24124color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
24125etc.")
24126 (license license:bsd-3)))
24127
24128(define-public python-easyprocess
24129 (package
24130 (name "python-easyprocess")
24131 (version "1.1")
24132 (source
24133 (origin
24134 (method git-fetch)
24135 (uri (git-reference
24136 (url "https://github.com/ponty/easyprocess")
24137 (commit version)))
24138 (file-name (git-file-name name version))
24139 (sha256
24140 (base32 "1dysr0z2mijhxl4z86wxf4w94sszdm4i2w3id0a6qwyid6xqjksp"))))
24141 (build-system pyproject-build-system)
24142 (arguments
24143 ;; Tests require pyvirtualdisplay, which requires this package.
24144 (list #:tests? #f))
24145 (native-inputs (list python-setuptools))
24146 (home-page "https://github.com/ponty/easyprocess")
24147 (synopsis "Python subprocess interface")
24148 (description
24149 "@code{easyprocess} is an easy to use Python subprocess interface.")
24150 (license license:bsd-3)))
24151
24152(define-public python-entrypoint2
24153 (package
24154 (name "python-entrypoint2")
24155 (version "0.2.4")
24156 (source
24157 (origin
24158 (method url-fetch)
24159 (uri (pypi-uri "entrypoint2" version))
24160 (sha256
24161 (base32 "1qyxq54r2fbh09ab5sffbxajy8arbk6czxz5lq3ccr9qrypw6w27"))))
24162 (build-system pyproject-build-system)
24163 (native-inputs (list python-easyprocess
24164 python-pytest
24165 python-setuptools
24166 python-wheel))
24167 (home-page "https://github.com/ponty/entrypoint2")
24168 (synopsis "Command-line interface for Python modules")
24169 (description
24170 "@code{entrypoint2} is an easy to use command-line interface for Python
24171 modules based on @code{argparse}. It translates function signature and
24172 documentation to argparse configuration.")
24173 (license license:bsd-3)))
24174
24175(define-public python-pyvirtualdisplay
24176 (package
24177 (name "python-pyvirtualdisplay")
24178 (version "3.0")
24179 (source
24180 (origin
24181 (method url-fetch)
24182 (uri (pypi-uri "PyVirtualDisplay" version))
24183 (sha256
24184 (base32 "0nb1s7nilakrkcm0vq08pz9mh8rzyhjm9jkyn1gp5sxnrv1mnx89"))))
24185 (build-system pyproject-build-system)
24186 (arguments
24187 (list
24188 ;; tests: 27 passed, 8 deselected
24189 #:test-flags
24190 ;; TODO: Add libxcb to python-pillow on the next python-team cycle.
24191 ;; OSError: Pillow was built without XCB support
24192 #~(list #$@(map (lambda (test) (string-append "--deselect="
24193 "tests/"
24194 test))
24195 (list "test_smart.py::test_slowshot"
24196 "test_smart.py::test_slowshot_with"
24197 "test_smart.py::test_slowshot_nocrop"
24198 "test_smart.py::test_slowshot_timeout"
24199 "test_smart.py::test_slowshot_timeout_nocrop"
24200 "test_smart2.py::test_double"
24201 "test_smart_thread.py::test_smart"
24202 "test_examples.py::test_screenshot")))))
24203 (native-inputs
24204 (list python-easyprocess
24205 python-entrypoint2
24206 python-psutil
24207 python-pytest
24208 python-setuptools
24209 python-vncdotool-bootstrap
24210 xmessage
24211 xorg-server-for-tests))
24212 (home-page "https://github.com/ponty/pyvirtualdisplay")
24213 (synopsis "Python wrapper for Xvfb, Xephyr and Xvnc")
24214 (description
24215 "@code{pyvirtualdisplay} is a Python wrapper for Xvfb, Xephyr and Xvnc.")
24216 (license license:bsd-3)))
24217
24218(define-public python-pyserial
24219 (package
24220 (name "python-pyserial")
24221 ;; 3.5 (2020-11-23), use the latest commit as upstream stopped publishing
24222 ;; releases on PyPI or tagging new versions.
24223 (properties '((commit . "a5c48d445fbc1943d4fabf8d9090a50fda3172fd")
24224 (revision . "0")))
24225 (version (git-version "3.5"
24226 (assoc-ref properties 'revision)
24227 (assoc-ref properties 'commit)))
24228 (source
24229 (origin
24230 (method git-fetch)
24231 (uri (git-reference
24232 (url "https://github.com/pyserial/pyserial")
24233 (commit (assoc-ref properties 'commit))))
24234 (file-name (git-file-name name version))
24235 (sha256
24236 (base32 "1mfqs5g4qgp6lll859hy3i4gz7nn95g057s80k01jn2mza12swjp"))))
24237 (build-system pyproject-build-system)
24238 (native-inputs
24239 (list python-pyfakefs
24240 python-pytest
24241 python-setuptools))
24242 (home-page "https://github.com/pyserial/pyserial")
24243 (synopsis "Python Serial Port Bindings")
24244 (description
24245 "@code{pyserial} provide serial port bindings for Python. It supports
24246different byte sizes, stop bits, parity and flow control with RTS/CTS and/or
24247Xon/Xoff. The port is accessed in RAW mode.")
24248 (license license:bsd-3)))
24249
24250(define-public python-pyserial-asyncio
24251 (package
24252 (name "python-pyserial-asyncio")
24253 (version "0.6")
24254 (source
24255 (origin
24256 (method git-fetch)
24257 (uri (git-reference
24258 (url "https://github.com/pyserial/pyserial-asyncio")
24259 (commit (string-append "v" version))))
24260 (file-name (git-file-name name version))
24261 (sha256
24262 (base32 "0c8kzy2a4awsh580qrniwq0vyydlsvicjw79r270sqflxmjlns6n"))))
24263 (build-system pyproject-build-system)
24264 (arguments (list #:test-backend #~'unittest))
24265 (native-inputs (list python-setuptools))
24266 (propagated-inputs (list python-pyserial))
24267 (home-page "https://github.com/pyserial/pyserial-asyncio")
24268 (synopsis "Pyserial asynchronous I/O extension")
24269 (description
24270 "This package extends Pyserial with asynchronous I/O support.")
24271 (license license:bsd-3)))
24272
24273(define-public python-pymemcache
24274 (package
24275 (name "python-pymemcache")
24276 (version "4.0.0")
24277 (source
24278 (origin
24279 (method url-fetch)
24280 (uri (pypi-uri "pymemcache" version))
24281 (sha256
24282 (base32 "157z9blr8pjg9x84jph5hm0z2l6yaq6n421jcf1hzqn1pg8rpgr7"))))
24283 (build-system pyproject-build-system)
24284 (arguments
24285 ;; We don't have the zstd module.
24286 (list
24287 #:test-flags
24288 '(list "--ignore=pymemcache/test/test_compression.py")))
24289 (native-inputs
24290 (list python-faker
24291 python-pytest
24292 python-setuptools
24293 python-wheel))
24294 (home-page "https://github.com/pinterest/pymemcache")
24295 (synopsis "Comprehensive, fast, pure Python memcached client")
24296 (description
24297 "This package provides a comprehensive, fast, pure Python memcached
24298client.")
24299 (license license:asl2.0)))
24300
24301(define-public python-pymodbus
24302 (package
24303 (name "python-pymodbus")
24304 (version "3.8.6")
24305 (source
24306 (origin
24307 (method git-fetch)
24308 (uri (git-reference
24309 (url "https://github.com/riptideio/pymodbus")
24310 (commit (string-append "v" version))))
24311 (file-name (git-file-name name version))
24312 (sha256
24313 (base32 "1sncllh01c6vqq4fh9k3yg9fchmmw661rcp0066l7fis6sp4yw82"))))
24314 (build-system pyproject-build-system)
24315 (arguments
24316 (list
24317 #:test-flags
24318 #~(list "--ignore"
24319 "test/server/test_simulator_api.py"
24320 ;; These tests require the presence of a certificate.
24321 "--ignore-glob"
24322 "test/examples/*"
24323 "--ignore"
24324 "test/client/test_client.py")))
24325 (native-inputs (list python-mock
24326 python-pytest
24327 python-pytest-asyncio
24328 python-pytest-xdist
24329 python-redis
24330 python-setuptools
24331 python-sqlalchemy
24332 python-tornado
24333 python-twisted
24334 python-wheel))
24335 (propagated-inputs (list python-pyserial
24336 python-six
24337 ;; For the REPL.
24338 python-aiohttp
24339 python-click
24340 python-prompt-toolkit
24341 python-pygments
24342 python-pyserial-asyncio))
24343 (home-page "https://github.com/riptideio/pymodbus/")
24344 (synopsis "Modbus protocol stack in Python")
24345 (description
24346 "Pymodbus is a full Modbus protocol implementation using
24347 @code{asyncio}, @code{tornado} or @code{twisted} for its asynchronous
24348 communications core. It includes the following @emph{client} features:
24349 @itemize
24350 @item full read/write protocol on discrete and register
24351 @item most of the extended protocol (diagnostic/file/pipe/setting/information)
24352 @item TCP, UDP, Serial ASCII, Serial RTU, and Serial Binary
24353 @item asynchronous and synchronous versions
24354 @item payload builder/decoder utilities
24355 @item pymodbus read eval print loop (REPL).
24356 @end itemize
24357 It also includes the following @emph{server} features:
24358 @itemize
24359 @item can function as a fully implemented Modbus server
24360 @item TCP, UDP, Serial ASCII, Serial RTU, and Serial Binary
24361 @item asynchronous and synchronous versions
24362 @item full server control context (device information, counters, etc)
24363 @item a number of backing contexts (database, redis, sqlite, a slave device).
24364 @end itemize")
24365 (license license:bsd-3)))
24366
24367(define-public python-exodriver
24368 (package
24369 (name "python-exodriver")
24370 (version "2.6.0")
24371 (source (origin
24372 (method git-fetch)
24373 (uri (git-reference
24374 (url "https://github.com/labjack/exodriver")
24375 (commit (string-append "v" version))))
24376 (file-name (git-file-name name version))
24377 (sha256
24378 (base32
24379 "1ikjz8147p14s814yabdq821y691klnr2yg54zgsymcc97kvwp2q"))))
24380 (outputs (list "out"
24381 "doc")) ;544 KiB of examples
24382 (build-system gnu-build-system)
24383 (arguments
24384 (list
24385 #:tests? #f ;no test suite
24386 #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
24387 (string-append "PREFIX=" #$output)
24388 "RUN_LDCONFIG=0"
24389 "LINK_SO=1")
24390 #:phases
24391 #~(modify-phases %standard-phases
24392 (delete 'configure)
24393 (replace 'build
24394 (lambda* (#:key make-flags #:allow-other-keys #:rest args)
24395 (with-directory-excursion "liblabjackusb"
24396 (apply (assoc-ref %standard-phases 'build)
24397 `(,@args #:make-flags ,make-flags)))))
24398 (replace 'install
24399 (lambda* (#:key make-flags #:allow-other-keys #:rest args)
24400 (with-directory-excursion "liblabjackusb"
24401 (apply (assoc-ref %standard-phases 'install)
24402 `(,@args #:make-flags ,make-flags)))
24403 ;; Install udev rules.
24404 (install-file "90-labjack.rules"
24405 (string-append #$output "/lib/udev/rules.d"))
24406 ;; Install examples.
24407 (let ((doc (string-append #$output:doc "/share/doc/" #$name)))
24408 (mkdir-p doc)
24409 (copy-recursively "examples"
24410 (string-append doc "/examples"))))))))
24411 (inputs (list libusb))
24412 (home-page "https://github.com/labjack/exodriver")
24413 (synopsis "USB driver for LabJack data acquisition instruments")
24414 (description "This package provides @code{liblabjackusb}, a USB library for low-level
24415communication with the U3, U6, UE9, Digit, T4 and T7 LabJack data acquisition
24416instruments. A udev rule is also included to allow unprivileged users to
24417communicate with the instruments via USB.")
24418 (license license:expat))) ;see README
24419
24420(define-public python-labjack
24421 (package
24422 (name "python-labjack")
24423 (version "2.1.0")
24424 (source (origin
24425 (method url-fetch)
24426 (uri (pypi-uri "LabJackPython" version))
24427 (sha256
24428 (base32
24429 "0q516y0gzxlk298whiaw0qdi4jcmx7l5y3mp5g5lj68nrvhqzyy4"))))
24430 (build-system pyproject-build-system)
24431 (arguments
24432 (list
24433 #:tests? #f ;no test suite
24434 #:phases
24435 #~(modify-phases %standard-phases
24436 (add-after 'unpack 'patch-liblabjackusb.so
24437 (lambda* (#:key inputs #:allow-other-keys)
24438 (substitute* (find-files "." "\\.py$")
24439 (("ctypes.CDLL\\(\"liblabjackusb.so\"")
24440 (format #f "ctypes.CDLL(~s"
24441 (search-input-file inputs
24442 "lib/liblabjackusb.so")))))))))
24443 (native-inputs (list python-setuptools))
24444 ;; exodriver is provided as a regular input, as only its shared object is
24445 ;; used, not its Python API.
24446 (inputs (list python-exodriver))
24447 (home-page "https://labjack.com/support/software/examples/ud/labjackpython")
24448 (synopsis "Python library for LabJack U3, U6, UE9 and U12")
24449 (description
24450 "This Python library allows communicating with the U3, U6, UE9 and U12
24451LabJack data acquisition (DAQ) modules.")
24452 (license license:expat))) ;see setup.py
24453
24454(define-public python-kivy-garden
24455 (package
24456 (name "python-kivy-garden")
24457 (version "0.1.5")
24458 (source
24459 (origin
24460 (method git-fetch) ; source was removed from PyPI
24461 (uri (git-reference
24462 (url "https://github.com/kivy-garden/garden")
24463 (commit (string-append "v" version))))
24464 (file-name (git-file-name name version))
24465 (sha256
24466 (base32 "1pvjblaljrcmjkq6hsa89zkh9ggdval58d2lwzd69vlma8y03qy4"))))
24467 (build-system pyproject-build-system)
24468 (arguments
24469 (list
24470 #:tests? #f)) ; no tests in PyPI or Git distributions
24471 (native-inputs
24472 (list python-setuptools
24473 python-wheel))
24474 (propagated-inputs
24475 (list python-requests))
24476 (home-page "https://github.com/kivy-garden/garden")
24477 (synopsis "Garden tool for Kivy flowers")
24478 (description
24479 "This package provides the @command{garden} command to install packages
24480for Kivy, the multitouch application platform.")
24481 (license license:expat)))
24482
24483(define-public python-async-lru
24484 (package
24485 (name "python-async-lru")
24486 (version "2.0.4")
24487 (source
24488 (origin
24489 (method url-fetch)
24490 (uri (pypi-uri "async-lru" version))
24491 (sha256
24492 (base32 "09sn3bc3gc2flijm9k8kn4hmbnlkaddhqahb49izy188yrfrm9dq"))))
24493 (build-system pyproject-build-system)
24494 (native-inputs
24495 (list python-pytest
24496 python-pytest-asyncio
24497 python-pytest-timeout
24498 python-setuptools
24499 python-wheel))
24500 (propagated-inputs
24501 (list python-typing-extensions))
24502 (home-page "https://github.com/aio-libs/async-lru")
24503 (synopsis "Simple LRU cache for asyncio")
24504 (description
24505 "This package is a port of Python's built-in @code{functools.lru_cache}
24506function for @code{asyncio}. To better handle async behaviour, it also
24507ensures multiple concurrent calls will only result in 1 call to the wrapped
24508function, with all awaits receiving the result of that call when it
24509completes.")
24510 (license license:expat)))
24511
24512(define-public python-asyncinject
24513 (package
24514 (name "python-asyncinject")
24515 (version "0.6.1")
24516 (source
24517 (origin
24518 (method git-fetch)
24519 (uri (git-reference
24520 (url "https://github.com/simonw/asyncinject")
24521 (commit version)))
24522 (file-name (git-file-name name version))
24523 (sha256
24524 (base32 "127ahb32x2qqjk17a667adrvrl63ima8khifq6dfm0q3vlfslxnn"))))
24525 (build-system pyproject-build-system)
24526 (native-inputs
24527 (list python-pytest
24528 python-pytest-asyncio
24529 python-setuptools))
24530 (home-page "https://github.com/simonw/asyncinject")
24531 (synopsis
24532 "Run async workflows using pytest-fixtures-style dependency injection")
24533 (description
24534 "This package lets you run asynchronous workflows using
24535pytest-fixtures-style dependency injection.")
24536 (license license:asl2.0)))
24537
24538(define-public python-binaryornot
24539 (package
24540 (name "python-binaryornot")
24541 (version "0.6.0")
24542 (source
24543 (origin
24544 (method git-fetch)
24545 (uri (git-reference
24546 (url "https://github.com/audreyr/binaryornot")
24547 (commit (string-append "v" version))))
24548 (file-name (git-file-name name version))
24549 (sha256
24550 (base32 "008r45bbhax8flcc0cp5fm2p9niclf0kg773s2y2p1x1j5qjx1jb"))))
24551 (build-system pyproject-build-system)
24552 (arguments
24553 (list
24554 #:test-flags
24555 ;; FileNotFoundError: [Errno 2] No such file or directory: 'uv'
24556 #~(list (string-append "--deselect=tests/test_sdist.py"
24557 "::TestSdistContents"
24558 "::test_sdist_includes_pyc_fixtures"))))
24559 (native-inputs
24560 (list python-hatchling
24561 python-pytest))
24562 (home-page "https://github.com/audreyr/binaryornot")
24563 (synopsis "Package to check if a file is binary or text")
24564 (description "Ultra-lightweight pure Python package to check if a file is
24565 binary or text.")
24566 (license license:bsd-3)))
24567
24568(define-public python-bson
24569 (package
24570 (name "python-bson")
24571 (properties '((commit . "4e6b4c206f7204034ef74bff8ae84a95d76d1684")
24572 (revision . "0")))
24573 (version (git-version "0.5.10"
24574 (assoc-ref properties 'revision)
24575 (assoc-ref properties 'commit)))
24576 (source
24577 (origin
24578 (method git-fetch) ;for tests
24579 (uri (git-reference
24580 (url "https://github.com/py-bson/bson")
24581 (commit (assoc-ref properties 'commit))))
24582 (file-name (git-file-name name version))
24583 (sha256
24584 (base32
24585 "015db9gfqcirv3zjscvh5hyfw8cixjsbvfxaqdzji863vrvl5ns8"))))
24586 (build-system pyproject-build-system)
24587 (native-inputs
24588 (list python-pytest
24589 python-setuptools))
24590 (propagated-inputs
24591 (list python-dateutil
24592 python-six))
24593 (home-page "https://github.com/py-bson/bson")
24594 (synopsis "BSON (Binary JSON) codec for Python")
24595 (description "@code{bson} is a Python library implementing a BSON (Binary
24596JSON) codec.")
24597 (license license:asl2.0)))
24598
24599(define-public python-nltk
24600 (package
24601 (name "python-nltk")
24602 (version "3.9.1")
24603 (source
24604 (origin
24605 (method url-fetch)
24606 (uri (pypi-uri "nltk" version))
24607 (sha256
24608 (base32 "0s78gayd45vl1wvpa0a44ydij6ybb7xfar8jz2j8kgg47nyjglc7"))))
24609 (build-system pyproject-build-system)
24610 (arguments
24611 ;; Tests require some extra resources to be downloaded.
24612 ;; TODO Try packaging these resources.
24613 '(#:tests? #f))
24614 (propagated-inputs (list python-click python-joblib python-regex
24615 python-tqdm))
24616 (native-inputs (list python-setuptools python-wheel))
24617 (home-page "https://www.nltk.org/")
24618 (synopsis "Natural Language Toolkit")
24619 (description
24620 "NLTK provides interfaces to over 50 corpora and lexical resources such as
24621WordNet, along with a suite of text processing libraries for classification,
24622tokenization, stemming, tagging, parsing, and semantic reasoning, wrappers for
24623natural language processing libraries.")
24624 (license license:asl2.0)))
24625
24626(define-public python-pymongo
24627 (package
24628 (name "python-pymongo")
24629 (version "4.17.0")
24630 (source
24631 (origin
24632 (method git-fetch)
24633 (uri (git-reference
24634 (url "https://github.com/mongodb/mongo-python-driver")
24635 (commit version)))
24636 (file-name (git-file-name name version))
24637 (sha256
24638 (base32 "0ybp4klx2advd0aka4d0915vwvydid3cil16x497amc4wiigndhx"))))
24639 (build-system pyproject-build-system)
24640 (arguments
24641 (list
24642 ;; tests: 1354 passed, 6514 skipped, 838 deselected, 38 subtests passed
24643 #:test-flags
24644 #~(list
24645 ;; pytest.PytestDeprecationWarning: Overriding the
24646 ;; "event_loop_policy" fixture is deprecated and will be removed in a
24647 ;; future version of pytest-asyncio. Use the
24648 ;; "pytest_asyncio_loop_factories" hook to customize event loop
24649 ;; creation.
24650 "-W" "ignore::DeprecationWarning"
24651 ;; Run only default unit tests, no benchmark and networking tests.
24652 "-m" "default_async or default"
24653 ;; Tests need access to /etc/resolve.conf.
24654 "--ignore=test/asynchronous/test_srv_polling.py"
24655 "--ignore=test/test_client.py"
24656 "--ignore=test/test_srv_polling.py"
24657 ;; XXX: Tests fail with assertion is not equal.
24658 "-k" "not test_test_uri_options_srv-options_SRV_URI")))
24659 (native-inputs
24660 (list python-hatch-requirements-txt
24661 python-hatchling
24662 python-pytest
24663 python-pytest-asyncio
24664 python-setuptools))
24665 (propagated-inputs
24666 (list python-dnspython))
24667 (home-page "https://github.com/mongodb/mongo-python-driver")
24668 (synopsis "Python driver for MongoDB")
24669 (description
24670 "The PyMongo distribution contains tools for interacting with MongoDB
24671database from Python. The @code{bson} package is an implementation of the
24672@url{http://bsonspec.org/, BSON format} for Python. The @code{pymongo}
24673package is a native Python driver for MongoDB, offering both synchronous and
24674asynchronous APIs. The @code{gridfs} package is a gridfs implementation on
24675top of @code{pymongo}.")
24676 (license license:asl2.0)))
24677
24678(define-public python-py-consul
24679 (package
24680 (name "python-py-consul")
24681 (version "1.6.0")
24682 (source
24683 (origin
24684 (method git-fetch)
24685 (uri (git-reference
24686 ;; Fork from https://github.com/cablehead/python-consul
24687 (url "https://github.com/criteo/py-consul")
24688 (commit (string-append "v" version))))
24689 (file-name (git-file-name name version))
24690 (sha256
24691 (base32 "0jx0sx572akir5ks30d1hvxwmy2apc51idm5k73dfp9biyjhbllh"))))
24692 (build-system pyproject-build-system)
24693 (arguments (list #:tests? #f)) ; Tests require docker.
24694 (native-inputs (list python-setuptools))
24695 (propagated-inputs (list python-requests))
24696 (home-page "https://github.com/criteo/py-consul")
24697 (synopsis "Python client for Consul")
24698 (description
24699 "Python client for @url{http://www.consul.io/,Consul}, a tool for service
24700discovery, monitoring and configuration.")
24701 (license license:expat)))
24702
24703(define-public python-schematics
24704 (package
24705 (name "python-schematics")
24706 (version "2.1.1")
24707 (source
24708 (origin
24709 (method git-fetch)
24710 (uri (git-reference
24711 (url "https://github.com/schematics/schematics")
24712 (commit (string-append "v" version))))
24713 (file-name (git-file-name name version))
24714 (sha256
24715 (base32 "0nf14wy422f08zzxx4jv8kbym3asgfpjm7b2p51b8hgqgxqlmjcd"))))
24716 (build-system pyproject-build-system)
24717 (native-inputs
24718 (list python-dateutil python-mock python-pytest python-setuptools))
24719 (home-page "https://github.com/schematics/schematics")
24720 (synopsis "Python Data Structures for Humans")
24721 (description
24722 "Schematics is a Python library to combine types into structures,
24723validate them, and transform the shapes of your data based on simple
24724descriptions.
24725
24726The internals are similar to ORM type systems, but there is no database layer
24727in Schematics. Instead, building a database layer is easily made when
24728Schematics handles everything except for writing the query. Schematics can be
24729used for tasks where having a database involved is unusual.")
24730 (license license:bsd-3)))
24731
24732(define-public python-odfpy
24733 (package
24734 (name "python-odfpy")
24735 (version "1.4.2")
24736 (source
24737 (origin
24738 (method git-fetch)
24739 (uri (git-reference
24740 (url "https://github.com/eea/odfpy")
24741 (commit (string-append "release-" version))))
24742 (file-name (git-file-name name version))
24743 (sha256
24744 (base32 "15y0fvkk8akgx30dxld7mdqhdrrkwr16jy1q0znkzvwcgmpywrf4"))))
24745 (build-system pyproject-build-system)
24746 (native-inputs (list python-pytest python-setuptools))
24747 (propagated-inputs (list python-defusedxml))
24748 (home-page "https://github.com/eea/odfpy")
24749 (synopsis "Python API and tools to manipulate OpenDocument files")
24750 (description
24751 "Collection of libraries and utility programs written in Python to
24752manipulate OpenDocument 1.2 files.")
24753 (license
24754 ;; The software is mainly dual GPL2+ and ASL2.0, but includes a
24755 ;; number of files with other licenses.
24756 (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
24757
24758(define-public python-namex
24759 (package
24760 (name "python-namex")
24761 (version "0.0.7")
24762 (source
24763 (origin
24764 (method url-fetch)
24765 (uri (pypi-uri "namex" version))
24766 (sha256
24767 (base32 "16ynrq245c3nywv476izrc4bcacm9gxjzgr67ng91g929ny6bfl4"))))
24768 (build-system pyproject-build-system)
24769 (arguments (list #:tests? #false)) ;there are none
24770 (native-inputs (list python-setuptools python-wheel))
24771 (home-page "https://github.com/fchollet/namex")
24772 (synopsis
24773 "Separate implementation and public API surface of Python packages")
24774 (description
24775 "This package provides a simple utility to separate the
24776implementation of your Python package and its public API surface.")
24777 (license license:asl2.0)))
24778
24779(define-public python-natsort
24780 (package
24781 (name "python-natsort")
24782 (version "8.4.0")
24783 (source
24784 (origin
24785 (method url-fetch)
24786 (uri (pypi-uri "natsort" version))
24787 (sha256
24788 (base32 "10d53q50zn2s8iiszv01nr9r4imimc2dvplkl4ymj1sm1r52qca5"))))
24789 (build-system pyproject-build-system)
24790 (native-inputs
24791 (list glibc-utf8-locales ;; Tests want en_US.UTF-8
24792 python-pytest
24793 python-pytest-mock
24794 python-setuptools))
24795 (propagated-inputs
24796 (list python-fastnumbers
24797 python-pyicu))
24798 (home-page "https://github.com/SethMMorton/natsort")
24799 (synopsis "Natural sorting for python and shell")
24800 (description
24801 "Natsort lets you apply natural sorting on lists instead of
24802lexicographical. If you use the built-in @code{sorted} method in python on a
24803list such as @code{[@code{a20}, @code{a9}, @code{a1}, @code{a4}, @code{a10}]},
24804it would be returned as @code{[@code{a1}, @code{a10}, @code{a20}, @code{a4},
24805@code{a9}]}. Natsort provides a function @code{natsorted} that identifies
24806numbers and sorts them separately from strings. It can also sort version
24807numbers, real numbers, mixed types and more, and comes with a shell command
24808@command{natsort} that exposes this functionality in the command line.")
24809 (license license:expat)))
24810
24811(define-public python-graphql-core
24812 (package
24813 (name "python-graphql-core")
24814 (version "3.2.7")
24815 (source
24816 (origin
24817 (method git-fetch)
24818 (uri (git-reference
24819 (url "https://github.com/graphql-python/graphql-core")
24820 (commit (string-append "v" version))))
24821 (file-name (git-file-name name version))
24822 (sha256
24823 (base32 "1jq23vm7lvy6h7rrhfa9iss50vh5anmk0n8kvdbqgrxnzqak43va"))))
24824 (build-system pyproject-build-system)
24825 (native-inputs
24826 (list python-gevent
24827 python-mock
24828 python-poetry-core
24829 python-pytest
24830 python-pytest-benchmark
24831 python-pytest-mock))
24832 (propagated-inputs
24833 (list python-promise python-six))
24834 (home-page "https://github.com/graphql-python/graphql-core")
24835 (synopsis "GraphQL implementation for Python")
24836 (description
24837 "GraphQL implementation for Python. GraphQL is a data query language and
24838 runtime designed and used to request and deliver data to mobile and web apps.
24839 This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
24840 to Python.")
24841 (license license:expat)))
24842
24843(define-public python-graphql-relay
24844 (package
24845 (name "python-graphql-relay")
24846 (properties '((commit . "611c0333eeca53663d9b47f7994098edda81b087")
24847 (revision . "0")))
24848 (version (git-version "3.1.5"
24849 (assoc-ref properties 'revision)
24850 (assoc-ref properties 'commit)))
24851 (source
24852 (origin
24853 (method git-fetch)
24854 (uri (git-reference
24855 (url "https://github.com/graphql-python/graphql-relay-py")
24856 (commit (assoc-ref properties 'commit))))
24857 (file-name (git-file-name name version))
24858 (sha256
24859 (base32 "1bghnmyn6rsqji7j70yhvd6z0s4p71pdrm5144rn95dha3pdxih9"))))
24860 (build-system pyproject-build-system)
24861 (native-inputs
24862 (list python-pytest
24863 python-pytest-asyncio
24864 python-pytest-describe
24865 python-poetry-core))
24866 (propagated-inputs (list python-graphql-core))
24867 (home-page "https://github.com/graphql-python/graphql-relay-py")
24868 (synopsis "Relay implementation for Python")
24869 (description
24870 "This is a library to allow the easy creation of Relay-compliant servers
24871using the GraphQL Python reference implementation of a GraphQL server. It
24872should be noted that the code is a exact port of the original
24873@url{https://github.com/graphql/graphql-relay-js,graphql-relay js
24874implementation} from Facebook.")
24875 (license license:expat)))
24876
24877(define-public python-graphene
24878 (package
24879 (name "python-graphene")
24880 (version "3.4.3")
24881 (source
24882 (origin
24883 (method url-fetch)
24884 (uri (pypi-uri "graphene" version))
24885 (sha256
24886 (base32 "1aha3bnrafxd823q4swdmlvbprfb17v3fga4g3hffpz7ija8cdra"))))
24887 (build-system pyproject-build-system)
24888 (arguments
24889 (list #:tests? #f)) ;XXX: tests fail to load
24890 (native-inputs
24891 (list python-setuptools))
24892 (propagated-inputs
24893 (list python-dateutil
24894 python-graphql-core
24895 python-graphql-relay
24896 python-typing-extensions))
24897 (home-page "https://graphene-python.org/")
24898 (synopsis "GraphQL Framework for Python")
24899 (description
24900 "Graphene is a Python library for building GraphQL schemas/types. A
24901GraphQL schema describes your data model, and provides a GraphQL server with
24902an associated set of resolve methods that know how to fetch data.")
24903 (license license:expat)))
24904
24905(define-public python-rodi
24906 (package
24907 (name "python-rodi")
24908 (version "2.0.8")
24909 (source
24910 (origin
24911 (method git-fetch)
24912 (uri (git-reference
24913 (url "https://github.com/Neoteroi/rodi")
24914 (commit (string-append "v" version))))
24915 (file-name (git-file-name name version))
24916 (sha256
24917 (base32 "0kf98yjllrq7vqcp07r2gmkqcviqglsnai3sdigdsrwrfc0b44yp"))))
24918 (build-system pyproject-build-system)
24919 (native-inputs
24920 (list python-hatchling
24921 python-pytest
24922 python-pytest-asyncio))
24923 (home-page "https://github.com/Neoteroi/rodi")
24924 (synopsis "Dependency injection framework for Python")
24925 (description
24926 "Rodi is a dependency injection framework for Python applications.
24927
24928Its features include
24929
24930@itemize
24931@item Type resolution by signature types annotations.
24932@item Type resolution by class annotations.
24933@item Type resolution by names and aliases.
24934@item Build graph of objects without the need for source code changes.
24935@item Minimum overhead to obtain services, once the objects graph is built.
24936@item Support for singleton, transient, and scoped services.
24937@end itemize")
24938 (license license:expat)))
24939
24940;; XXX: The last time updated in 2015, consider to remove it when nothing is
24941;; depend on it.
24942(define-public python-snowballstemmer
24943 (package
24944 (name "python-snowballstemmer")
24945 (version "2.2.0")
24946 (source
24947 (origin
24948 (method url-fetch)
24949 (uri (pypi-uri "snowballstemmer" version))
24950 (sha256
24951 (base32 "1ccwy75i0f5yi1vy6fyvr1gf43ydhjani45mswm43ls7hpmnvc89"))))
24952 (build-system pyproject-build-system)
24953 (arguments
24954 (list
24955 #:tests? #f)) ; no tests
24956 (native-inputs
24957 (list python-setuptools))
24958 (home-page "https://github.com/shibukawa/snowball_py")
24959 (synopsis "Snowball stemming library collection for Python")
24960 (description
24961 "This package provides 16 word stemmer algorithms generated from Snowball
24962algorithms. It includes the 15 original ones plus the Poerter English
24963stemmer.")
24964 (license license:bsd-3)))
24965
24966(define-public python-setproctitle
24967 (package
24968 (name "python-setproctitle")
24969 (version "1.3.7")
24970 (source
24971 (origin
24972 (method git-fetch)
24973 (uri (git-reference
24974 (url "https://github.com/dvarrazzo/py-setproctitle")
24975 (commit (string-append "version-" version))))
24976 (file-name (git-file-name name version))
24977 (sha256
24978 (base32 "0k51ypmr2p2c55dyl2pq3dclih9jk2zx7dxm8010li4pyfsrvwvm"))))
24979 (build-system pyproject-build-system)
24980 (arguments
24981 (list
24982 #:phases
24983 #~(modify-phases %standard-phases
24984 (add-before 'check 'configure-tests
24985 (lambda* (#:key tests? #:allow-other-keys)
24986 (when tests?
24987 (setenv "PYTHON"
24988 (or (which "python3")
24989 (which "python")))
24990 (setenv "PYCONFIG"
24991 (if (which "python3-config")
24992 "python3-config --embed"
24993 "python-config"))
24994 (substitute* "tests/conftest.py"
24995 (("cc") "gcc"))))))))
24996 (native-inputs (list procps python-pytest python-setuptools)) ;required for tests
24997 (home-page "https://github.com/dvarrazzo/py-setproctitle")
24998 (synopsis
24999 "Setproctitle implementation for Python to customize the process title")
25000 (description
25001 "The library allows a process to change its title (as displayed by system
25002tools such as @code{ps} and @code{top}).
25003
25004Changing the title is mostly useful in multi-process systems, for example when a
25005master process is forked: changing the children's title allows identifying the
25006task each process is busy with. The technique is used by PostgreSQL and the
25007OpenSSH Server for example.")
25008 (license license:bsd-3)))
25009
25010(define-public python-pyelftools
25011 (package
25012 (name "python-pyelftools")
25013 (version "0.32")
25014 (source
25015 (origin
25016 (method git-fetch)
25017 (uri (git-reference
25018 (url "https://github.com/eliben/pyelftools")
25019 (commit (string-append "v" version))))
25020 (file-name (git-file-name name version))
25021 (sha256
25022 (base32 "0wx18rj5hcra45ck407vfvg46rs1qcj3qjhfkprf6264zs6z1i77"))
25023 (snippet
25024 #~(begin
25025 ;; Delete bundled readelf and llvm-dwardump executables. Project
25026 ;; also ships quite a lot binary files mainly for tests, check
25027 ;; with:
25028 ;;
25029 ;; find . -type f ! -size 0 -exec grep -IL . "{}" \;
25030 ;;
25031 (delete-file "test/external_tools/readelf")
25032 (delete-file "test/external_tools/llvm-dwarfdump")))))
25033 (build-system pyproject-build-system)
25034 (arguments
25035 (list
25036 #:phases
25037 #~(modify-phases %standard-phases
25038 (replace 'check
25039 (lambda* (#:key tests? #:allow-other-keys)
25040 (when tests?
25041 ;; Run just basic unit and example tests, dwarfdump and
25042 ;; readelf tests are not selected as they are fragile and
25043 ;; arch-specific.
25044 (invoke "python" "test/run_all_unittests.py")
25045 (invoke "python" "test/run_examples_test.py")))))))
25046 (home-page "https://github.com/eliben/pyelftools")
25047 (native-inputs
25048 (list python-setuptools
25049 python-wheel))
25050 (synopsis "Analyze binary and library file information")
25051 (description
25052 "This Python library provides interfaces for parsing and analyzing two
25053binary and library file formats ; the Executable and Linking Format (ELF), and
25054debugging information in the Debugging With Attributed Record
25055Format (DWARF).")
25056 (license license:public-domain)))
25057
25058(define-public python-pefile
25059 (package
25060 (name "python-pefile")
25061 (version "2024.8.26")
25062 (source
25063 (origin
25064 (method git-fetch)
25065 (uri (git-reference
25066 (url "https://github.com/erocarrera/pefile")
25067 (commit (string-append "v" version))))
25068 (file-name (git-file-name name version))
25069 (sha256
25070 (base32 "14bh23b7jipf2pxjivyn2khifal6fmk0pjsddrd3h1gd9n0wl9zd"))
25071 (snippet #~(delete-file "tests/test_data.tar.bz2.enc"))))
25072 (build-system pyproject-build-system)
25073 (arguments
25074 ;; XXX: Taken from tox.ini. Unclear why devs don't supply test data.
25075 ;; It seems clear however that test_data.tar.bz2.enc needs to be
25076 ;; decrypted and unpacked before we can run them.
25077 (list #:test-flags #~(list "--ignore=tests/pefile_test.py")))
25078 (native-inputs (list python-pytest python-setuptools))
25079 (propagated-inputs (list python-future))
25080 (home-page "https://github.com/erocarrera/pefile")
25081 (synopsis "Portable Executable (PE) file parser")
25082 (description
25083 "This python library provides interfaces for parsing and working with
25084Portable Executable (PE) files. It makes to most information from the header,
25085as well as section details and data available.")
25086 (license license:expat)))
25087
25088(define-public python-pyemd
25089 (package
25090 (name "python-pyemd")
25091 (version "1.0.0")
25092 (source (origin
25093 (method url-fetch)
25094 (uri (pypi-uri "pyemd" version))
25095 (sha256
25096 (base32
25097 "1zh0v47lxa33xg04jyvblzl1g4m3k2khx0b3xr6isnyinbkmlaxl"))))
25098 (build-system pyproject-build-system)
25099 (native-inputs
25100 (list python-cython
25101 python-pytest
25102 python-setuptools
25103 python-setuptools-scm))
25104 (propagated-inputs
25105 (list python-numpy-1))
25106 (home-page "https://github.com/wmayner/pyemd")
25107 (synopsis
25108 "Wrapper for Pele and Werman's implementation of the Earth Mover's Distance")
25109 (description
25110 "This package provides a Python wrapper for Ofir Pele and Michael
25111Werman's implementation of the Earth Mover's Distance.")
25112 (license license:expat)))
25113
25114(define-public python-imagesize
25115 (package
25116 (name "python-imagesize")
25117 (version "2.0.0")
25118 (source
25119 (origin
25120 (method git-fetch)
25121 (uri (git-reference
25122 (url "https://github.com/shibukawa/imagesize_py")
25123 (commit version)))
25124 (file-name (git-file-name name version))
25125 (sha256
25126 (base32 "1r07r80d16hkwhnmz6sfvj8d4s3d6wg82j99dbr3iy78gc48wia0"))))
25127 (build-system pyproject-build-system)
25128 (arguments (list #:test-backend #~'unittest))
25129 (native-inputs
25130 (list python-setuptools))
25131 (home-page "https://github.com/shibukawa/imagesize_py")
25132 (synopsis "Gets image size of files in various formats in Python")
25133 (description
25134 "This package allows determination of image size from PNG, JPEG,
25135JPEG2000 and GIF files in pure Python.")
25136 (license license:expat)))
25137
25138(define-public python-argcomplete
25139 (package
25140 (name "python-argcomplete")
25141 (version "3.7.2")
25142 (source
25143 (origin
25144 (method url-fetch)
25145 (uri (pypi-uri "argcomplete" version))
25146 (sha256
25147 (base32
25148 "1ff6kwdkhn59w80bn30fn4bhgmf0ahipbldh5nvfsscr1fdbdn5a"))))
25149 (build-system pyproject-build-system)
25150 (arguments
25151 (list #:tests? #f)) ;XXX: tests requires tcsh, fish and full bash shells
25152 (native-inputs
25153 (list python-hatch-vcs
25154 python-hatchling
25155 python-pexpect))
25156 (home-page "https://github.com/kislyuk/argcomplete")
25157 (synopsis "Shell tab completion for Python argparse")
25158 (description "argcomplete provides extensible command line tab completion
25159of arguments and options for Python scripts using @code{argparse}. It's
25160particularly useful for programs with many options or sub-parsers that can
25161dynamically suggest completions ; for example, when browsing resources over
25162the network.")
25163 (license license:asl2.0)))
25164
25165(define-public python-csscompressor
25166 (package
25167 (name "python-csscompressor")
25168 (version "0.9.5")
25169 (source
25170 (origin
25171 (method git-fetch)
25172 (uri (git-reference
25173 (url "https://github.com/sprymix/csscompressor")
25174 (commit (string-append "v" version))))
25175 (file-name (git-file-name name version))
25176 (sha256
25177 (base32 "1gzzb474lgs8l539z2vyyvcvm1j7nxxnb5jk79ys63ysbg4jwmz8"))))
25178 (build-system pyproject-build-system)
25179 (native-inputs (list python-pytest python-setuptools))
25180 (home-page "https://github.com/sprymix/csscompressor")
25181 (synopsis "Python port of YUI CSS Compressor")
25182 (description "This package provides a python port of YUI CSS Compressor.")
25183 (license license:bsd-3)))
25184
25185(define-public python-rcssmin
25186 (package
25187 (name "python-rcssmin")
25188 (version "1.2.0")
25189 (source
25190 (origin
25191 (method url-fetch)
25192 (uri (pypi-uri "rcssmin" version))
25193 (sha256
25194 (base32
25195 "0k68sw163vc36nb3nck0kwwal4vb4hi6634rzx7z19ng28j8fdpl"))))
25196 (build-system pyproject-build-system)
25197 (native-inputs (list python-pytest python-setuptools python-wheel))
25198 (home-page "http://opensource.perlig.de/rcssmin/")
25199 (synopsis "CSS Minifier")
25200 (description "The minifier is based on the semantics of the YUI compressor,
25201 which itself is based on the rule list by Isaac Schlueter.")
25202 (license license:asl2.0)))
25203
25204(define-public python-rjsmin
25205 (package
25206 (name "python-rjsmin")
25207 (version "1.2.3")
25208 (source
25209 (origin
25210 (method url-fetch)
25211 (uri (pypi-uri "rjsmin" version))
25212 (sha256
25213 (base32
25214 "1ihcff58vz4xrv1180v46wy5m80z61y7ab8ajyy4zh54jcjbb20k"))
25215 (modules '((guix build utils)))
25216 (snippet
25217 '(for-each delete-file (find-files "bench" "\\.js$")))))
25218 (build-system pyproject-build-system)
25219 (native-inputs
25220 (list python-pytest python-setuptools python-wheel))
25221 (home-page "http://opensource.perlig.de/rjsmin/")
25222 (synopsis "Javascript Minifier")
25223 (description "@code{rJSmin} is a javascript minifier written in Python.
25224The minifier is based on the semantics of jsmin.c by Douglas Crockford. The
25225module is a re-implementation aiming for speed, so it can be used at
25226runtime (rather than during a preprocessing step).")
25227 (license license:asl2.0)))
25228
25229(define-public python-cheetah
25230 (package
25231 (name "python-cheetah")
25232 (version "3.3.1")
25233 (source
25234 (origin
25235 (method url-fetch)
25236 (uri (pypi-uri "CT3" version))
25237 (sha256
25238 (base32 "1j36vampqip18jx0jzngb9rnkhhhl8hqnscg117y0d6cgrgm57qw"))))
25239 (build-system pyproject-build-system)
25240 (arguments
25241 (list
25242 #:test-backend #~'custom
25243 #:test-flags #~(list "Cheetah/Tests/Test.py")
25244 #:phases
25245 #~(modify-phases %standard-phases
25246 (add-after 'unpack 'use-absolute-python
25247 (lambda _
25248 (substitute* "Cheetah/CheetahWrapper.py"
25249 (("#!/usr/bin/env python")
25250 (string-append "#!" (which "python"))))))
25251 (add-before 'check 'configure-tests
25252 (lambda* (#:key tests? #:allow-other-keys)
25253 (substitute* "Cheetah/Tests/ImportHooks.py"
25254 (("os.path.dirname\\(__file__\\)")
25255 (string-append "'" (getcwd) "/Cheetah/Tests'")))
25256 (substitute* "Cheetah/Tests/Test.py"
25257 (("unittest.TextTestRunner\\(\\)")
25258 "unittest.TextTestRunner(verbosity=2)"))
25259 (setenv "TMPDIR" "/tmp"))))))
25260 (native-inputs (list python-setuptools))
25261 (propagated-inputs (list python-markdown)) ;optional
25262 (home-page "https://cheetahtemplate.org/")
25263 (synopsis "Template engine")
25264 (description
25265 "Cheetah is a text-based template engine and Python code generator.
25266
25267 Cheetah can be used as a standalone templating utility or referenced as a
25268library from other Python applications. It has many potential uses, but web
25269developers looking for a viable alternative to ASP, JSP, PHP and PSP are
25270expected to be its principle user group.
25271
25272Features:
25273@enumerate
25274@item Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any
25275other text-based format.
25276@item Cleanly separates content, graphic design, and program code.
25277@item Blends the power and flexibility of Python with a simple template
25278language that non-programmers can understand.
25279@item Gives template writers full access to any Python data structure, module,
25280function, object, or method in their templates.
25281@item Makes code reuse easy by providing an object-orientated interface to
25282templates that is accessible from Python code or other Cheetah templates. One
25283template can subclass another and selectively reimplement sections of it.
25284@item Provides a simple, yet powerful, caching mechanism that can dramatically
25285improve the performance of a dynamic website.
25286@item Compiles templates into optimized, yet readable, Python code.
25287@end enumerate")
25288 (license (license:x11-style "file://LICENSE"))))
25289
25290(define-public python-chevron
25291 (package
25292 (name "python-chevron")
25293 (version "0.14.0")
25294 (source (origin
25295 (method url-fetch)
25296 (uri (pypi-uri "chevron" version))
25297 (sha256
25298 (base32
25299 "1gqfh00ics2k1sm5g46l3bi8cl5fc5d1cwzh1ylvcxvdvypklqc7"))))
25300 (build-system pyproject-build-system)
25301 (arguments (list #:tests? #false)) ;there are none
25302 (native-inputs (list python-setuptools python-wheel))
25303 (home-page "https://github.com/noahmorrison/chevron")
25304 (synopsis "Mustache templating language renderer")
25305 (description "This package provides a Python implementation of the
25306Mustache templating language renderer.")
25307 (license license:expat)))
25308
25309(define-public python-dulwich
25310 (package
25311 (name "python-dulwich")
25312 (version "1.2.12")
25313 (source
25314 (origin
25315 (method git-fetch)
25316 (uri (git-reference
25317 (url "https://github.com/jelmer/dulwich")
25318 (commit (string-append "dulwich-" version))))
25319 (file-name (git-file-name name version))
25320 (sha256
25321 (base32 "0in5pgqhnnbfqi5alcg85kiaxr8zww9iih7qsyy9g1yzlaxs0dvd"))))
25322 (build-system pyproject-build-system)
25323 (arguments
25324 (list
25325 ;; tests: 3796 passed, 89 skipped, 1 xfailed, 8 warnings, 33 subtests
25326 ;; passed
25327 #:test-flags
25328 ;; Exclude fuzzing from discovery, depends on python-atheris.
25329 #~(list "tests")
25330 #:phases
25331 #~(modify-phases %standard-phases
25332 (add-after 'unpack 'fix-tests
25333 (lambda* (#:key inputs #:allow-other-keys)
25334 (substitute* '("tests/test_hooks.py"
25335 "tests/porcelain/test_filters.py"
25336 "tests/test_repository.py"
25337 "tests/test_worktree.py")
25338 (("/bin/sh")
25339 (search-input-file inputs "/bin/sh")))))
25340 (add-before 'check 'pre-check
25341 (lambda _
25342 (setenv "PYTHONHASHSEED" "random")
25343 (setenv "TMPDIR" "/tmp"))))))
25344 (native-inputs
25345 (list git-minimal/pinned
25346 openssh-sans-x
25347 ;; python-atheris ;not packaged yet in Guix
25348 python-gevent
25349 python-geventhttpclient
25350 python-pytest
25351 python-setuptools
25352 python-setuptools-rust))
25353 (propagated-inputs
25354 (list python-urllib3
25355 ;; [optional]
25356 gnupg
25357 gpgme
25358 python-aiohttp
25359 python-fastimport
25360 python-merge3
25361 python-munkres
25362 python-paramiko
25363 python-patiencediff
25364 python-rich))
25365 (home-page "https://www.dulwich.io/")
25366 (synopsis "Git implementation in Python")
25367 (description "Dulwich is an implementation of the Git file formats and
25368protocols written in pure Python.")
25369 ;; Can be used with either license.
25370 (license (list license:asl2.0 license:gpl2+))))
25371
25372(define-public python-dunamai
25373 (package
25374 (name "python-dunamai")
25375 (version "1.26.0")
25376 (source
25377 (origin
25378 (method url-fetch)
25379 (uri (pypi-uri "dunamai" version))
25380 (sha256
25381 (base32 "0zgrl9rr5qij6zdc6vsc6gs4qin7k2brykh38280bv90m91sr5jk"))))
25382 (build-system pyproject-build-system)
25383 (arguments
25384 (list
25385 #:test-flags
25386 #~(list "-k" "not test__version__from_git__shallow")
25387 #:phases
25388 #~(modify-phases %standard-phases
25389 ;; These steps are taken from NixOS package definition:
25390 ;; nixpkgs/pkgs/development/python-modules/dunamai/default.nix
25391 (add-before 'check 'pre-check
25392 (lambda _
25393 (setenv "PATH" (string-append #$output "/bin:" (getenv "PATH")))
25394 (setenv "HOME" "/tmp")
25395 (invoke "git" "config" "--global" "user.email" "[email protected]")
25396 (invoke "git" "config" "--global" "user.name" "Nobody"))))))
25397 (propagated-inputs
25398 (list python-packaging))
25399 (native-inputs
25400 (list git-minimal/pinned
25401 python-poetry-core
25402 python-pytest))
25403 (home-page "https://github.com/mtkennerly/dunamai")
25404 (synopsis "Dynamic version generation")
25405 (description
25406 "Dunamai is Python library and command line tool for producing dynamic,
25407standards-compliant version strings, derived from tags in your version control
25408system. This facilitates uniquely identifying nightly or per-commit builds in
25409continuous integration and releasing new versions of your software simply by
25410creating a tag.")
25411 (license license:expat)))
25412
25413(define-public python-pbkdf2
25414 (package
25415 (name "python-pbkdf2")
25416 (version "1.3")
25417 (source
25418 (origin
25419 (method url-fetch)
25420 (uri (pypi-uri "pbkdf2" version))
25421 (sha256
25422 (base32 "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc"))))
25423 (build-system pyproject-build-system)
25424 (arguments
25425 (list
25426 #:test-backend #~'custom
25427 #:test-flags #~(list "test/test_pbkdf2.py")))
25428 (native-inputs (list python-setuptools))
25429 (home-page "https://www.dlitz.net/software/python-pbkdf2/")
25430 (synopsis "Password-based key derivation")
25431 (description
25432 "This module implements the password-based key derivation function,
25433PBKDF2, specified in RSA PKCS#5 v2.0.
25434
25435PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which
25436is part of the RSA Public Key Cryptography Standards series. The provided
25437implementation takes a password or a passphrase and a salt value (and
25438optionally a iteration count, a digest module, and a MAC module) and provides
25439a file-like object from which an arbitrarily-sized key can be read.")
25440 (license license:expat)))
25441
25442(define-public python-qrcode
25443 (package
25444 (name "python-qrcode")
25445 (version "8.2")
25446 (source
25447 (origin
25448 (method url-fetch)
25449 (uri (pypi-uri "qrcode" version))
25450 (sha256
25451 (base32 "0v2h8vs1b80qhkc293w5dzvd439600ffzcznp5m16crb2yjg5hrm"))))
25452 (build-system pyproject-build-system)
25453 (native-inputs
25454 (list python-poetry-core
25455 python-pytest))
25456 (home-page "https://github.com/lincolnloop/python-qrcode")
25457 (synopsis "QR Code image generator")
25458 (description
25459 "This package provides a pure Python QR Code generator module. It uses
25460the Python Imaging Library (PIL) to allow for the generation of QR Codes.
25461
25462In addition this package provides a command line tool to generate QR codes and
25463either write these QR codes to a file or do the output as ascii art at the
25464console.")
25465 (license license:bsd-3)))
25466
25467(define-public python-rst2ansi
25468 (package
25469 (name "python-rst2ansi")
25470 (properties '((commit . "3728e16f8b8b1dc338e5df90ba2c4a93ee054b3f")
25471 (revision . "1")))
25472 (version (git-version "0.1.5"
25473 (assoc-ref properties 'revision)
25474 (assoc-ref properties 'commit)))
25475 (source
25476 (origin
25477 (method git-fetch)
25478 (uri (git-reference
25479 (url "https://github.com/Snaipe/python-rst-to-ansi")
25480 (commit (assoc-ref properties 'commit))))
25481 (file-name (git-file-name name version))
25482 (sha256
25483 (base32 "0q8afblqhkrnzxla81ialifcwkh9ga5xzxzi0lhg2gjwhbynbfsp"))))
25484 (build-system pyproject-build-system)
25485 (arguments
25486 (list
25487 #:tests? #f ; 2 tests fail with additional line characters
25488 #:phases
25489 #~(modify-phases %standard-phases
25490 (replace 'check
25491 (lambda* (#:key tests? #:allow-other-keys)
25492 (when tests?
25493 (invoke "cram" "test" "-v")))))))
25494 (native-inputs (list python-cram python-setuptools))
25495 (propagated-inputs (list python-docutils))
25496 (home-page "https://github.com/Snaipe/python-rst-to-ansi")
25497 (synopsis "Convert RST to ANSI-decorated console output")
25498 (description
25499 "Python module dedicated to rendering RST (reStructuredText) documents to
25500ansi-escaped strings suitable for display in a terminal.")
25501 (license license:expat)))
25502
25503(define-public python-ansi2html
25504 (package
25505 (name "python-ansi2html")
25506 (version "1.9.2")
25507 (source
25508 (origin
25509 (method url-fetch)
25510 (uri (pypi-uri "ansi2html" version))
25511 (sha256
25512 (base32 "19f0ap4w66b35csmx4k97pnb9fkdfnmgliajn0kvhdsxaf3vylrl"))))
25513 (build-system pyproject-build-system)
25514 (native-inputs
25515 (list python-mock
25516 python-pytest
25517 python-setuptools
25518 python-wheel))
25519 (home-page "https://github.com/ralphbean/ansi2html")
25520 (synopsis "Convert ANSI-decorated console output to HTML")
25521 (description
25522 "@command{ansi2html} is a Python library and command line utility for
25523converting text with ANSI color codes to HTML or LaTeX.")
25524 (license license:gpl3+)))
25525
25526(define-public python-easy-ansi
25527 (package
25528 (name "python-easy-ansi")
25529 (version "2.1")
25530 (source
25531 (origin
25532 (method git-fetch)
25533 (uri (git-reference
25534 (url "https://gitlab.com/joeysbytes/easy-ansi")
25535 (commit (string-append "v" version))))
25536 (file-name (git-file-name name version))
25537 (sha256
25538 (base32 "16zk4vyrr3hhb6aijmqchjlz181mgk7mi9zyyjd8i53h9rr00wkx"))))
25539 (build-system pyproject-build-system)
25540 (arguments
25541 (list
25542 #:phases
25543 #~(modify-phases %standard-phases
25544 (add-after 'install 'remove-extra
25545 (lambda* (#:key inputs outputs #:allow-other-keys)
25546 (with-directory-excursion (site-packages inputs outputs)
25547 (delete-file-recursively "tests")
25548 (delete-file "setup.py")))))))
25549 (native-inputs (list python-pytest python-setuptools))
25550 (home-page "https://gitlab.com/joeysbytes/easy-ansi")
25551 (synopsis "Terminal framework API")
25552 (description
25553 "Easy ANSI is a terminal framework API to give you an easy way to use
25554colors, cursor control movements, and line/box drawing. It is not meant as a
25555replacement to more full-featured frameworks (such as curses or urwid), but as
25556a tool to quickly create nice-looking screens in your terminal window. You
25557can even create animations with the cursor controls.")
25558 (license license:expat)))
25559
25560(define-public python-easy-ansi-0.3
25561 (package
25562 (inherit python-easy-ansi)
25563 (name "python-easy-ansi")
25564 (version "0.3")
25565 (source
25566 (origin
25567 (method git-fetch)
25568 (uri (git-reference
25569 (url "https://gitlab.com/joeysbytes/easy-ansi")
25570 (commit (string-append "v" version))))
25571 (file-name (git-file-name name version))
25572 (sha256
25573 (base32 "0albh55ynzs98qy9pln4qaxw5qhhh3lk09jy9bx19gycrp1c3lc3"))))
25574 (arguments '())))
25575
25576(define-public python-pycosat
25577 (package
25578 (name "python-pycosat")
25579 (version "0.6.6")
25580 (source
25581 (origin
25582 (method git-fetch)
25583 (uri (git-reference
25584 (url "https://github.com/ContinuumIO/pycosat")
25585 (commit version)))
25586 (file-name (git-file-name name version))
25587 (sha256
25588 (base32 "1p62d7fqny4ayr218lshrp35g75ljaxlgza9yr2hm44aqggvmqbw"))))
25589 ;; TODO: Unundle picosat. http://fmv.jku.at/picosat/
25590 (build-system pyproject-build-system)
25591 (arguments (list #:test-backend #~'unittest))
25592 (native-inputs (list unzip python-setuptools))
25593 (home-page "https://github.com/ContinuumIO/pycosat")
25594 (synopsis "Bindings to picosat (a SAT solver)")
25595 (description
25596 "This package provides efficient Python bindings to @code{picosat} on the
25597C level. When importing pycosat, the @code{picosat} solver becomes part of
25598the Python process itself. @code{picosat} is a @dfn{Boolean Satisfiability
25599Problem} (SAT) solver.")
25600 (license license:expat)))
25601
25602(define-public python-pypeg2
25603 (package
25604 (name "python-pypeg2")
25605 (version "2.15.2")
25606 (source
25607 (origin
25608 (method url-fetch)
25609 (uri (pypi-uri "pyPEG2" version))
25610 (sha256
25611 (base32 "0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b"))))
25612 (build-system pyproject-build-system)
25613 (native-inputs (list python-pytest python-setuptools))
25614 (propagated-inputs (list python-lxml))
25615 (home-page "https://fdik.org/pyPEG/")
25616 (synopsis "Parsing Expression Grammars in Python")
25617 (description
25618 "PyPEG is an intrinsic parser interpreter framework for Python. It is
25619based on Parsing Expression Grammars, PEG. With pyPEG you can parse many
25620formal languages.")
25621 (license license:gpl2)))
25622
25623(define-public python-pyformlang
25624 (package
25625 (name "python-pyformlang")
25626 (version "1.0.10")
25627 (source
25628 (origin
25629 (method url-fetch)
25630 (uri (pypi-uri "pyformlang" version))
25631 (sha256
25632 (base32 "0szgy4pqfixmswjs37qgma4qa3bsadpp3l1xflrpfi10aa8hh2sp"))))
25633 (build-system pyproject-build-system)
25634 (native-inputs
25635 (list python-pytest
25636 python-setuptools
25637 python-wheel))
25638 (propagated-inputs
25639 (list python-networkx
25640 python-numpy
25641 python-pydot))
25642 (home-page "https://github.com/Aunsiels/pyformlang")
25643 (synopsis "Framework for interacting with formal grammars")
25644 (description
25645 "This package provides a framework for working with formal
25646language grammars. The library was originally developed for educational
25647purposes and therefore implements many textbook algorithms regarding the
25648manipulation and interaction with formal grammars.")
25649 (license license:expat)))
25650
25651(define-public python-incremental
25652 (package
25653 (name "python-incremental")
25654 (version "24.7.2")
25655 (source
25656 (origin
25657 (method url-fetch)
25658 (uri (pypi-uri "incremental" version))
25659 (sha256
25660 (base32
25661 "1jb4skmy8awix345jk2pnar0sxmrf1gvn3kg9xyyivv0xr3iskzv"))))
25662 (build-system pyproject-build-system)
25663 (arguments
25664 ;; Tests require twisted, which needs this package.
25665 (list #:tests? #false
25666 #:build-backend "setuptools.build_meta"))
25667 (native-inputs
25668 (list python-setuptools))
25669 (home-page "https://github.com/hawkowl/incremental")
25670 (synopsis "Library for versioning Python projects")
25671 (description "Incremental is a small library that versions your Python
25672 projects.")
25673 (license license:expat)))
25674
25675(define-public python-invoke
25676 (package
25677 (name "python-invoke")
25678 (version "2.2.1")
25679 (source
25680 (origin
25681 (method url-fetch)
25682 (uri (pypi-uri "invoke" version))
25683 (sha256
25684 (base32 "01z73gmbmf5q3ynr3yfz894rrwr2v9406n94n1wjp4s89adz8nsi"))))
25685 ;; TODO: invoke/vendor contains:
25686 ;; - fluidity -> https://github.com/nsi-iff/fluidity (14y old)
25687 ;; - lexicon -> https://github.com/bitprophet/lexicon (2y old)
25688 ;; - yaml -> https://github.com/yaml/pyyaml (2y old)
25689 (build-system pyproject-build-system)
25690 (arguments
25691 (list
25692 ;; XXX: Requires many dependencies that are not yet in Guix.
25693 #:tests? #f
25694 #:phases
25695 #~(modify-phases %standard-phases
25696 (add-after 'unpack 'fix-bash-path
25697 (lambda _
25698 (let ((bash #$(this-package-input "bash-minimal")))
25699 (substitute* "invoke/config.py"
25700 (("shell = \"/bin/bash\"")
25701 (string-append "shell = \"" bash "/bin/bash\"")))))))))
25702 (native-inputs
25703 (list python-setuptools
25704 python-wheel))
25705 (inputs
25706 (list bash-minimal))
25707 (home-page "https://www.pyinvoke.org/")
25708 (synopsis "Pythonic task execution")
25709 (description
25710 "Invoke is a Python task execution tool and library, drawing inspiration
25711from various sources to arrive at a powerful and clean feature set. It is
25712evolved from the Fabric project, but focuses on local and abstract concerns
25713instead of servers and network commands.")
25714 (license license:bsd-3)))
25715
25716(define-public python-automat
25717 (package
25718 (name "python-automat")
25719 (version "24.8.1")
25720 (source (origin
25721 (method url-fetch)
25722 (uri (pypi-uri "Automat" version))
25723 (sha256
25724 (base32
25725 "123d63k8wg9pfv9j7hr0kd1kw23m0rwdx7irsa55ncpncg7jfhmk"))))
25726 (build-system pyproject-build-system)
25727 (arguments
25728 (list
25729 #:phases
25730 #~(modify-phases %standard-phases
25731 (replace 'check
25732 (lambda* (#:key tests? test-flags #:allow-other-keys)
25733 (with-directory-excursion #$output
25734 (apply invoke "pytest" "-vv" test-flags))))
25735 ;; Remove script, because it depends on python-twisted.
25736 (add-after 'unpack 'remove-entrypoint
25737 (lambda _
25738 (substitute* "pyproject.toml"
25739 (("automat-visualize = \"automat._visualize:tool\"") "")))))))
25740 (native-inputs
25741 (list python-pytest python-setuptools python-setuptools-scm python-wheel))
25742 (propagated-inputs
25743 (list python-graphviz python-typing-extensions))
25744 (home-page "https://github.com/glyph/Automat")
25745 (synopsis "Self-service finite-state machines")
25746 (description "Automat is a library for concise, idiomatic Python
25747 expression of finite-state automata (particularly deterministic finite-state
25748 transducers).")
25749 (license license:expat)))
25750
25751(define-public python-constantly
25752 (package
25753 (name "python-constantly")
25754 (version "23.10.4")
25755 (source
25756 (origin
25757 (method url-fetch)
25758 (uri (pypi-uri "constantly" version))
25759 (sha256
25760 (base32 "1gbw3izhn1gx1rgc61jbfr4dr535fxhynifp7jrhpb726c5bg4ma"))))
25761 (build-system pyproject-build-system)
25762 (arguments
25763 (list #:tests? #f)) ;cycles with python-twisted
25764 (native-inputs
25765 (list python-setuptools
25766 python-versioneer))
25767 (home-page "https://github.com/twisted/constantly")
25768 (synopsis "Symbolic constants in Python")
25769 (description "Constantly is a Python library that provides symbolic
25770 constant support. It includes collections and constants with text, numeric,
25771 and bit flag values.")
25772 (license license:expat)))
25773
25774(define-public python-attrs
25775 (package
25776 (name "python-attrs")
25777 (version "26.1.0")
25778 (source
25779 (origin
25780 (method git-fetch)
25781 (uri (git-reference
25782 (url "https://github.com/python-attrs/attrs/")
25783 (commit version)))
25784 (file-name (git-file-name name version))
25785 (sha256
25786 (base32 "17gagrqbg4fg7prpsqx746frfzcml13lnzqjjsah0jqc5qxd8yaf"))))
25787 (build-system pyproject-build-system)
25788 (native-inputs
25789 (list python-hatch-fancy-pypi-readme
25790 python-hatch-vcs
25791 python-hatchling
25792 python-hypothesis
25793 python-pytest))
25794 (home-page "https://github.com/python-attrs/attrs/")
25795 (synopsis "Attributes without boilerplate")
25796 (description "@code{attrs} is a Python package with class decorators that
25797 ease the chores of implementing the most common attribute-related object
25798 protocols.")
25799 (license license:expat)))
25800
25801(define-public python-attrs-bootstrap
25802 (package
25803 (inherit python-attrs)
25804 (name "python-attrs-bootstrap")
25805 (native-inputs (list python-hatchling
25806 python-hatch-fancy-pypi-readme
25807 python-hatch-vcs))
25808 (arguments `(#:tests? #f))))
25809
25810(define-public python-astroid
25811 (package
25812 (name "python-astroid")
25813 (version "4.0.4")
25814 (source
25815 (origin
25816 (method git-fetch)
25817 (uri (git-reference
25818 (url "https://github.com/PyCQA/astroid")
25819 (commit (string-append "v" version))))
25820 (file-name (git-file-name name version))
25821 (sha256
25822 (base32 "0dfvih7drm22dvppjangaxlmrq21wazfyglhm3n32rgh6g6m6qms"))))
25823 (build-system pyproject-build-system)
25824 (native-inputs
25825 (list python-mypy-minimal
25826 python-pytest
25827 python-setuptools))
25828 (home-page "https://github.com/PyCQA/astroid")
25829 (synopsis "Python source code base representation")
25830 (description "@code{python-astroid} provides a common base representation
25831of Python source code for projects such as pychecker, pyreverse, pylint, etc.
25832It provides a compatible representation which comes from the _ast module. It
25833rebuilds the tree generated by the builtin _ast module by recursively walking
25834down the AST and building an extended ast. The new node classes have
25835additional methods and attributes for different usages. They include some
25836support for static inference and local name scopes. Furthermore, astroid
25837builds partial trees by inspecting living objects.")
25838 (license license:lgpl2.1+)))
25839
25840(define-public python-isbnlib
25841 (package
25842 (name "python-isbnlib")
25843 (version "3.10.14")
25844 (source
25845 (origin
25846 (method git-fetch)
25847 (uri (git-reference
25848 (url "https://github.com/xlcnd/isbnlib")
25849 (commit (string-append "v" version))))
25850 (file-name (git-file-name name version))
25851 (sha256
25852 (base32 "07vpq8y0mn16489d1pl4zxgczgl1s2ydli4lci7f73z4zv179akp"))))
25853 (build-system pyproject-build-system)
25854 (arguments
25855 (list
25856 #:test-flags #~(list "-m" "not network")))
25857 (native-inputs (list python-pytest python-setuptools))
25858 (home-page "https://github.com/xlcnd/isbnlib")
25859 (synopsis "Python library to work with ISBN strings")
25860 (description
25861 "@code{python-isbnlib} is a (pure) python library that provides several
25862useful methods and functions to validate, clean, transform, hyphenate and get
25863metadata for ISBN strings. Its origin was as the core of isbntools. This
25864short version, is suitable to be include as a dependency in other projects.")
25865 (license license:lgpl3+)))
25866
25867(define-public python-isoduration
25868 ;; XXX: The project might be abandoned, consider to remove when nothing
25869 ;; depends on it.
25870 (package
25871 (name "python-isoduration")
25872 (version "20.11.0")
25873 (source
25874 (origin
25875 (method git-fetch)
25876 (uri (git-reference
25877 (url "https://github.com/bolsote/isoduration")
25878 (commit version)))
25879 (file-name (git-file-name name version))
25880 (sha256
25881 (base32 "1naml13qa1inr6k0j25jgw49r3wnkvwq5xc0v4navz6mxlgsrfp8"))))
25882 (build-system pyproject-build-system)
25883 (arguments
25884 (list
25885 ;; E ModuleNotFoundError: No module named 'isodate'
25886 #:test-flags #~(list "--ignore=tests/test_benchmark.py")))
25887 (native-inputs
25888 (list python-pytest
25889 python-setuptools))
25890 (propagated-inputs
25891 (list python-arrow))
25892 (home-page "https://github.com/bolsote/isoduration")
25893 (synopsis "Operations with ISO 8601 durations")
25894 (description "ISO 8601 is most commonly known as a way to exchange
25895datetimes in textual format. A lesser known aspect of the standard is the
25896representation of durations. The state of the art of ISO 8601 duration
25897handling in Python is more or less limited to what's offered by isodate. This
25898package attempts to address the shortcomings of @code{isodate}.")
25899 (license license:isc)))
25900
25901(define-public python-isort
25902 (package
25903 (name "python-isort")
25904 (version "9.0.1")
25905 (source
25906 (origin
25907 (method git-fetch) ;no tests in PyPI archive
25908 (uri (git-reference
25909 (url "https://github.com/PyCQA/isort")
25910 (commit version)))
25911 (file-name (git-file-name name version))
25912 (modules '((guix build utils)))
25913 (snippet '(for-each delete-file (find-files "." "\\.whl$")))
25914 (sha256
25915 (base32 "0xrhrk245v7wqrh6ql1ysnfb1v6sh0mrzbvyaxq36hddvxdx7f45"))))
25916 (build-system pyproject-build-system)
25917 (arguments
25918 (list
25919 #:test-flags
25920 ;; Ignore benchmark and integration to reduce closure size.
25921 #~(list "--ignore=tests/benchmark/"
25922 "--ignore=tests/integration/"
25923 "--ignore=tests/unit/profiles/test_black.py"
25924 "-k" (string-join
25925 (list "not test_gitignore"
25926 "test_isort_supports_shared_profiles_issue_970"
25927 "test_requirements_dir"
25928 "test_requirements_finder"
25929 "test_sort_configurable_sort_issue_1732"
25930 "test_sort_imports_error_handling")
25931 " and not "))))
25932 ;; TODO: Package example plugins separately, available in PyPI:
25933 ;; - example_isort_formatting_plugin
25934 ;; - example_isort_sorting_plugin
25935 ;; - example_shared_isort_profile
25936 (native-inputs
25937 (list python-black
25938 python-colorama
25939 python-hatch-vcs
25940 python-hatchling
25941 python-hypothesis
25942 python-pylama
25943 python-pytest))
25944 (propagated-inputs
25945 ;; XXX: python-mypy-extensions can be dropped when
25946 ;; https://github.com/PyCQA/isort/issues/2629 is fixed.
25947 (list python-mypy-extensions))
25948 (home-page "https://github.com/PyCQA/isort")
25949 (synopsis "Python utility/library to sort python imports")
25950 (description
25951 "@code{python-isort} is a python utility/library to sort imports
25952alphabetically, and automatically separated into sections. It provides a
25953command line utility, a python library and plugins for various editors.")
25954 (license license:expat)))
25955
25956(define-public python-configparser
25957 (package
25958 (name "python-configparser")
25959 (version "7.2.0")
25960 (source
25961 (origin
25962 (method url-fetch)
25963 (uri (pypi-uri "configparser" version))
25964 (sha256
25965 (base32 "0w3vichm4igwvh7r560rw58xi4s1yf9x1cyi6syszqqnx65cqadn"))))
25966 (build-system pyproject-build-system)
25967 (native-inputs
25968 (list python-pytest
25969 python-setuptools
25970 python-setuptools-scm
25971 python-wheel))
25972 (home-page "https://github.com/jaraco/configparser/")
25973 (synopsis "Backport of configparser from python 3.5")
25974 (description "@code{python-configparser} is a backport of
25975 @code{configparser} from Python 3.5 so that it can be used directly
25976 in other versions.")
25977 (license license:expat)))
25978
25979(define-public python-mando
25980 (package
25981 (name "python-mando")
25982 (version "0.8.2")
25983 (source
25984 (origin
25985 (method url-fetch)
25986 (uri (pypi-uri "mando" version))
25987 (sha256
25988 (base32 "1ddn4h1fvc9f8z2p8l88jyazxnp0h7rmh711i2hwkipxlbcmk5jk"))))
25989 (build-system pyproject-build-system)
25990 (native-inputs
25991 (list python-pytest python-setuptools))
25992 (home-page "https://mando.readthedocs.org/")
25993 (synopsis "Wrapper around argparse, allowing creation of complete CLI applications")
25994 (description
25995 "This package is a wrapper around argparse, allowing you to write complete CLI
25996applications in seconds while maintaining all the flexibility.")
25997 (license license:expat)))
25998
25999(define-public python-mwclient
26000 (package
26001 (name "python-mwclient")
26002 (version "0.11.0")
26003 (source
26004 (origin
26005 (method git-fetch)
26006 (uri (git-reference
26007 (url "https://github.com/mwclient/mwclient")
26008 (commit (string-append "v" version))))
26009 (file-name (git-file-name name version))
26010 (sha256
26011 (base32 "14kg353vzrwh7zks7zsza4hfb2n5vxprh9hnw4rjsimm8509axda"))))
26012 (build-system pyproject-build-system)
26013 (propagated-inputs
26014 (list python-requests-oauthlib))
26015 (native-inputs
26016 (list python-mock
26017 python-pytest
26018 python-responses
26019 python-setuptools))
26020 (home-page "https://github.com/btongminh/mwclient")
26021 (synopsis "MediaWiki API client")
26022 (description "This package provides a MediaWiki API client.")
26023 (license license:expat)))
26024
26025(define-public python-kneed
26026 (package
26027 (name "python-kneed")
26028 (version "0.8.5")
26029 (source
26030 (origin
26031 (method git-fetch)
26032 (uri (git-reference
26033 (url "https://github.com/arvkevi/kneed")
26034 (commit (string-append "v" version))))
26035 (file-name (git-file-name name version))
26036 (sha256
26037 (base32 "0kcglaql1nqvjv5q62myybznii1n1akln5yacp63rg8xv7l0zad1"))))
26038 (build-system pyproject-build-system)
26039 (arguments
26040 (list
26041 #:test-flags #~(list "--ignore=tests/test_no_matplotlib.py")))
26042 (native-inputs (list python-hatchling python-pytest))
26043 (propagated-inputs (list python-matplotlib python-numpy python-scipy))
26044 (home-page "https://github.com/arvkevi/kneed")
26045 (synopsis "Knee-point detection in Python")
26046 (description
26047 "This package implements the kneedle algorithm. Given a set of x and y
26048values, kneed will return the knee point of the function. The knee point is
26049the point of maximum curvature.")
26050 (license license:bsd-3)))
26051
26052(define-public python-diff-cover
26053 (package
26054 (name "python-diff-cover")
26055 (version "9.7.1")
26056 (source
26057 (origin
26058 (method url-fetch)
26059 (uri (pypi-uri "diff_cover" version))
26060 (sha256
26061 (base32 "0j1m8rfs080zsil516pvr0hy3x24dny4c77ilzfjgp5pcjy7hfx0"))))
26062 (build-system pyproject-build-system)
26063 (arguments
26064 (list
26065 #:test-flags
26066 ;; Dropp check of flake8 in tests.
26067 #~(list "-k" "not test_file_does_not_exist")))
26068 (native-inputs
26069 (list python-pycodestyle
26070 python-poetry-core
26071 python-pyflakes
26072 python-pylint
26073 python-pytest
26074 python-pytest-datadir
26075 python-pytest-mock))
26076 (propagated-inputs
26077 (list python-chardet
26078 python-jinja2
26079 python-pluggy
26080 python-pygments
26081 python-setuptools ; For pkg_resources.
26082 python-tomli))
26083 (home-page "https://github.com/Bachmann1234/diff_cover")
26084 (synopsis "Run coverage and linting reports on diffs")
26085 (description
26086 "Automatically find diff lines that need test coverage. It also finds
26087diff lines that have violations (according to tools such as pycodestyle,
26088pyflakes, flake8, or pylint). This is used as a code quality metric during
26089code reviews.")
26090 (license license:asl2.0)))
26091
26092(define-public python-diff-match-patch
26093 (package
26094 (name "python-diff-match-patch")
26095 (version "20241021")
26096 (source
26097 (origin
26098 (method url-fetch)
26099 (uri (pypi-uri "diff_match_patch" version))
26100 (sha256
26101 (base32
26102 "0wshhdnxvb7l45pjrj1fhrhvh7b6p1l2kvim559q9054kylmgbmy"))))
26103 (build-system pyproject-build-system)
26104 (native-inputs (list python-flit-core python-pytest))
26105 (home-page "https://github.com/diff-match-patch-python/diff-match-patch")
26106 (synopsis "Synchronize plain text")
26107 (description "Diff Match and Patch libraries offer robust algorithms to
26108 perform the operations required for synchronizing plain text.")
26109 (license license:asl2.0)))
26110
26111(define-public python-icdiff
26112 (package
26113 (name "python-icdiff")
26114 (version "2.0.7")
26115 (source (origin
26116 (method git-fetch)
26117 (uri (git-reference
26118 (url "https://github.com/jeffkaufman/icdiff")
26119 (commit (string-append "release-" version))))
26120 (file-name (git-file-name name version))
26121 (sha256
26122 (base32
26123 "0kwgglbnpvsv5qb59yl0pvihr1ca5m8l6cq8hjski5y62g33zv2w"))))
26124 (build-system pyproject-build-system)
26125 (arguments
26126 (list #:tests? #f)) ; there are no test scripts
26127 (native-inputs (list python-setuptools python-wheel))
26128 (home-page "https://www.jefftk.com/icdiff")
26129 (synopsis "Improved colored diff")
26130 (description "This package provides colored diff functions that highlight
26131parts of the lines that were modified.")
26132 (license license:psfl)))
26133
26134(define-public python-dirsync
26135 (package
26136 (name "python-dirsync")
26137 (version "2.2.6")
26138 (source
26139 (origin
26140 (method url-fetch)
26141 (uri (pypi-uri "dirsync" version))
26142 (sha256
26143 (base32
26144 "1g3h0lva0mgmm4i5z62h8jkv9y1mp5xlvl2w2nfa3galbgn5gdak"))))
26145 (build-system pyproject-build-system)
26146 (arguments
26147 ;; No tests in PyPI release and GitHub repository does not have the
26148 ;; latest release tag.
26149 (list #:tests? #f))
26150 (native-inputs (list python-setuptools python-wheel))
26151 (home-page "https://github.com/tkhyn/dirsync")
26152 (synopsis "Advanced directory tree synchronisation tool")
26153 (description
26154 "Dirsync is an advanced directory tree synchronisation tool.")
26155 (license license:expat)))
26156
26157(define-public python-levenshtein
26158 (package
26159 (name "python-levenshtein")
26160 ;; 0.27.3 (2025-11-01), the latest changes provide compatibility with
26161 ;; Cython 3.2.x, see: <https://github.com/rapidfuzz/Levenshtein/pull/84>.
26162 (properties '((commit . "7c905d9f4e788a95f5f1696517e6ff06d639943f")
26163 (revision . "0")))
26164 (version (git-version "0.27.3"
26165 (assoc-ref properties 'revision)
26166 (assoc-ref properties 'commit)))
26167 (source
26168 (origin
26169 (method git-fetch)
26170 (uri (git-reference
26171 (url "https://github.com/rapidfuzz/Levenshtein")
26172 (commit (assoc-ref properties 'commit))))
26173 (file-name (git-file-name name version))
26174 (sha256
26175 (base32 "14jdpxyc28bqjv3rmj4a5nrg0p6v6hazqilh1hdwjrd71hlxa6s3"))))
26176 (build-system pyproject-build-system)
26177 (propagated-inputs (list python-rapidfuzz))
26178 (native-inputs
26179 (list python-cython
26180 python-pytest
26181 python-scikit-build-core
26182 rapidfuzz-cpp))
26183 (home-page "https://github.com/rapidfuzz/Levenshtein")
26184 (synopsis "Fast computation of Levenshtein distance and string similarity")
26185 (description
26186 "The Levenshtein Python C extension module contains functions for fast computation of
26187@enumerate
26188@item Levenshtein (edit) distance, and edit operations
26189@item string similarity
26190@item approximate median strings, and generally string averaging
26191@item string sequence and set similarity
26192@end enumerate
26193It supports both normal and Unicode strings.")
26194 (license license:gpl2+)))
26195
26196(define-public python-factory-boy
26197 (package
26198 (name "python-factory-boy")
26199 (version "3.3.3")
26200 (source
26201 (origin
26202 (method url-fetch)
26203 (uri (pypi-uri "factory_boy" version))
26204 (sha256
26205 (base32 "00rx3v5y5l03vlkq6xqj4r7zbnlrx23h45mlyb3zm38j4v964s46"))))
26206 (build-system pyproject-build-system)
26207 (arguments
26208 ;; Tests are not included in the tarball.
26209 `(#:tests? #f))
26210 (native-inputs (list python-setuptools))
26211 (propagated-inputs (list python-faker))
26212 (home-page "https://github.com/FactoryBoy/factory_boy")
26213 (synopsis "Versatile test fixtures replacement")
26214 (description "Factory_boy is a fixtures replacement based on thoughtbot’s
26215factory_girl. As a fixtures replacement tool, it aims to replace static, hard
26216to maintain fixtures with easy-to-use factories for complex object. Instead
26217of building an exhaustive test setup with every possible combination of corner
26218cases, factory_boy allows you to use objects customized for the current test,
26219while only declaring the test-specific fields.")
26220 (license license:expat)))
26221
26222(define-public python-gtts
26223 (package
26224 (name "python-gtts")
26225 (version "2.5.4")
26226 (source
26227 (origin
26228 (method git-fetch)
26229 (uri (git-reference
26230 (url "https://github.com/pndurette/gTTS")
26231 (commit (string-append "v" version))))
26232 (file-name (git-file-name name version))
26233 (sha256
26234 (base32 "0s1039c94lpijxidiprb8hq8v6z8zqf19xls3xlyy30jq7nx295g"))))
26235 (build-system pyproject-build-system)
26236 (arguments
26237 ;; Disable tests that require internet.
26238 (list #:test-flags '(list "-k" "not net")))
26239 (native-inputs
26240 (list python-pytest python-setuptools python-testfixtures))
26241 (propagated-inputs
26242 (list python-click-8.1 python-requests))
26243 (home-page "https://github.com/pndurette/gTTS")
26244 (synopsis "Google Translate text-to-speech interface")
26245 (description
26246 "Google Text-to-Speech (gTTS) is a Python library and CLI tool to
26247interface with the Google Translate text-to-speech API. It lets you write
26248spoken MP3 data to a file, a file-like object (bytestring) for further audio
26249manipulation, or @code{stdout}.")
26250 (license license:expat)))
26251
26252(define-public python-packaging-legacy
26253 (package
26254 (name "python-packaging-legacy")
26255 (version "23.0.post0")
26256 (source
26257 (origin
26258 (method url-fetch)
26259 (uri (pypi-uri "packaging_legacy" version))
26260 (sha256
26261 (base32 "1nyryxlc7fd4c0jmfp99az1s61vfv5xbi6017wqi4wd7j4ia8x69"))))
26262 (build-system pyproject-build-system)
26263 (propagated-inputs (list python-packaging))
26264 (native-inputs
26265 (list python-pretend
26266 python-pytest
26267 python-setuptools
26268 python-wheel))
26269 (home-page "https://pypi.org/project/packaging-legacy/")
26270 (synopsis "Core utilities for legacy Python packages")
26271 (description "This library provides support for legacy Python Packaging
26272functionality removed from @code{packaging}.")
26273 (license license:asl2.0)))
26274
26275(define-public python-relatorio
26276 (package
26277 (name "python-relatorio")
26278 (version "0.11.1")
26279 (source
26280 (origin
26281 (method url-fetch)
26282 (uri (pypi-uri "relatorio" version))
26283 (sha256
26284 (base32 "0qa8f9xvvc60i41vpf386jqx65379dnn9xpjwp8zaibba5raz83v"))))
26285 (build-system pyproject-build-system)
26286 (native-inputs
26287 (list python-pytest
26288 python-setuptools))
26289 (propagated-inputs
26290 (list python-genshi
26291 python-lxml
26292 python-magic))
26293 (home-page "https://relatorio.tryton.org/")
26294 (synopsis "Templating library able to output ODT and PDF files")
26295 (description
26296 "Relatorio is a templating library which provides a way to easily output
26297ODT, ODS, PNG, SVG and several other kinds of files. Support for more
26298filetypes can be easily added by creating plugins for them.")
26299 (license license:gpl3+)))
26300
26301(define-public python-radon
26302 (package
26303 (name "python-radon")
26304 (version "6.0.1")
26305 (source
26306 (origin
26307 (method git-fetch)
26308 (uri (git-reference
26309 (url "https://github.com/rubik/radon")
26310 (commit (string-append "v" version))))
26311 (file-name (git-file-name name version))
26312 (sha256
26313 (base32 "01n3idnrglgbjgwvvgs7yg9amjda3zs2659sp2zqpllp9gva73y9"))))
26314 (build-system pyproject-build-system)
26315 (arguments
26316 (list
26317 #:phases
26318 #~(modify-phases %standard-phases
26319 (add-after 'unpack 'relax-requirements
26320 (lambda _
26321 (substitute* (list "pyproject.toml" "requirements.txt")
26322 (("(mando.*>=0\\.6),<0\\.8" _ mando-lower-bound)
26323 mando-lower-bound)))))))
26324 (propagated-inputs (list python-colorama python-mando))
26325 (native-inputs (list python-poetry-core python-pytest python-pytest-mock
26326 python-setuptools))
26327 (home-page "https://radon.readthedocs.org/")
26328 (synopsis "Code Metrics in Python")
26329 (description
26330 "Radon is a Python tool which computes various code metrics. Supported
26331metrics are:
26332@itemize @bullet
26333@item raw metrics: SLOC, comment lines, blank lines, &c.
26334@item Cyclomatic Complexity (i.e., McCabe’s Complexity)
26335@item Halstead metrics (all of them)
26336@item the Maintainability Index (a Visual Studio metric)
26337@end itemize")
26338 (license license:expat)))
26339
26340(define-public python-rgbxy
26341 (package
26342 (name "python-rgbxy")
26343 (version "0.5")
26344 (source
26345 (origin
26346 (method url-fetch)
26347 (uri (pypi-uri "rgbxy" version))
26348 (sha256
26349 (base32 "0c3dgm1rf7ih79pgkj7adffn8hlyqh5qah8rbzlq436kz3srk83q"))))
26350 (build-system pyproject-build-system)
26351 (arguments
26352 (list #:tests? #f)) ;no tests in PyPI or Git
26353 (native-inputs
26354 (list python-setuptools))
26355 (home-page "https://github.com/benknight/hue-python-rgb-converter")
26356 (synopsis "RGB conversion tool in Python")
26357 (description
26358 "This package implements functionality of RGB/CIE1931 'xy' gammuts
26359conversion: Gamut A, B, and C.")
26360 (license license:expat)))
26361
26362(define-public python-jsonpointer
26363 (package
26364 (name "python-jsonpointer")
26365 (version "3.1.1")
26366 (source
26367 (origin
26368 (method git-fetch)
26369 (uri (git-reference
26370 (url "https://github.com/stefankoegl/python-json-pointer")
26371 (commit (string-append "v" version))))
26372 (file-name (git-file-name name version))
26373 (sha256
26374 (base32 "1k7szx4k2h3zidw01i96fg9x5gnir5fdvlnpgb48xhg0si12ly1y"))))
26375 (build-system pyproject-build-system)
26376 (arguments (list #:test-backend #~'unittest))
26377 (native-inputs
26378 (list python-setuptools))
26379 (home-page "https://github.com/stefankoegl/python-json-pointer")
26380 (synopsis "Identify specific nodes in a JSON document")
26381 (description
26382 "@code{jsonpointer} allows you to access specific nodes by path in a JSON
26383document (see RFC 6901).")
26384 (license license:bsd-3)))
26385
26386(define-public python-jsonpatch
26387 (package
26388 (name "python-jsonpatch")
26389 (version "1.33")
26390 (source
26391 (origin
26392 (method git-fetch)
26393 ;; pypi version lacks tests.js
26394 (uri (git-reference
26395 (url "https://github.com/stefankoegl/python-json-patch")
26396 (commit (string-append "v" version))))
26397 (file-name (git-file-name name version))
26398 (sha256
26399 (base32 "0qidj3vrklygsid40y6qgxclssd85hbxnic1av833iy4hbml2w14"))))
26400 (build-system pyproject-build-system)
26401 (arguments
26402 (list #:test-backend #~'custom
26403 #:test-flags #~(list "tests.py")))
26404 (native-inputs
26405 (list python-setuptools))
26406 (propagated-inputs
26407 (list python-jsonpointer))
26408 (home-page "https://github.com/stefankoegl/python-json-patch")
26409 (synopsis "Applying JSON Patches in Python 2.6+ and 3.x")
26410 (description "@code{jsonpatch} is a library and program that allows
26411 applying JSON Patches according to RFC 6902.")
26412 (license license:bsd-3)))
26413
26414(define-public python-rfc3987-syntax
26415 (package
26416 (name "python-rfc3987-syntax")
26417 (version "1.1.0")
26418 (source
26419 (origin
26420 (method git-fetch)
26421 (uri (git-reference
26422 (url "https://github.com/willynilly/rfc3987-syntax")
26423 (commit (string-append "v" version))))
26424 (file-name (git-file-name name version))
26425 (sha256
26426 (base32 "13nmzq1ra5660c3k29c937q4kwq7qj7z6dv9bgr1ph57qb3kyc7a"))))
26427 (build-system pyproject-build-system)
26428 (native-inputs
26429 (list python-hatchling
26430 python-pytest))
26431 (propagated-inputs
26432 (list python-lark))
26433 (home-page "https://github.com/willynilly/rfc3987-syntax")
26434 (synopsis "RFC 3987 IRI validation built on a Lark grammar")
26435 (description
26436 "This package validates Internationalized Resource Identifiers (IRIs) and
26437their components against the ABNF grammar from RFC 3987. Built on the Lark
26438parser, it is an MIT-licensed alternative to the GPL-licensed @code{rfc3987}
26439package, and provides the @code{format-nongpl} extra required by recent
26440@code{jsonschema} releases.")
26441 (license license:expat)))
26442
26443(define-public python-rfc3986
26444 (package
26445 (name "python-rfc3986")
26446 (version "2.0.0")
26447 (source
26448 (origin
26449 (method url-fetch)
26450 (uri (pypi-uri "rfc3986" version))
26451 (sha256
26452 (base32 "0716rg74cpmhi9f77ypnwcdsyfjplsgk1rnnmadq5zabpnfwzalp"))))
26453 (build-system pyproject-build-system)
26454 (native-inputs
26455 (list python-pytest python-setuptools))
26456 (home-page "https://rfc3986.readthedocs.io/")
26457 (synopsis "Parse and validate URI references")
26458 (description
26459 "@code{rfc3986} is a Python implementation of RFC@tie{}3986 including
26460validation and authority parsing. This module also supports RFC@tie{}6874
26461which adds support for zone identifiers to IPv6 addresses.")
26462 (license license:asl2.0)))
26463
26464(define-public python-rfc3986-validator
26465 (package
26466 (name "python-rfc3986-validator")
26467 (version "0.1.1")
26468 (source
26469 (origin
26470 (method url-fetch)
26471 (uri (pypi-uri "rfc3986_validator" version))
26472 (sha256
26473 (base32 "0mfh82r37ma5n54n8ibnqvmwr3j3f2ixqfjfmv1rwfqvjbkvsi1x"))))
26474 (build-system pyproject-build-system)
26475 (native-inputs
26476 (list python-pytest
26477 python-rfc3987
26478 python-setuptools))
26479 (home-page "https://github.com/naimetti/rfc3986-validator")
26480 (synopsis "Pure python rfc3986 validator")
26481 (description "This package implements a URI validator according to RFC3986
26482in pure Python.")
26483 (license license:expat)))
26484
26485(define-public python-rfc3987
26486 (package
26487 (name "python-rfc3987")
26488 (version "1.3.8")
26489 (source
26490 (origin
26491 (method url-fetch)
26492 (uri (pypi-uri "rfc3987" version))
26493 (sha256
26494 (base32
26495 "0cx7bhyjaylwnf9armxrkb3r0s37vf0vqf3bhbll9mb0lmbx5i6k"))))
26496 (build-system pyproject-build-system)
26497 (arguments
26498 (list #:test-backend #~'custom
26499 #:test-flags #~(list "-m" "doctest" "rfc3987.py")))
26500 (native-inputs
26501 (list python-setuptools))
26502 ;; Source: <https://codeberg.org/atufi/rfc3987>.
26503 (home-page "https://pypi.org/project/rfc3987/")
26504 (synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)")
26505 (description "@code{rfc3987} provides routines for parsing and
26506 validation of URIs (see RFC 3986) and IRIs (see RFC 3987).")
26507 (license license:gpl3+)))
26508
26509;; The latest commit contains fixes for building with both python3 and python2.
26510(define-public python-rfc6555
26511 (package
26512 (name "python-rfc6555")
26513 (version "0.1.0")
26514 (source
26515 (origin
26516 (method git-fetch)
26517 (uri (git-reference
26518 (url "https://github.com/sethmlarson/rfc6555")
26519 (commit (string-append "v" version))))
26520 (file-name (git-file-name name version))
26521 (sha256
26522 (base32 "0cynzrs3l6ywmkpcpx9m36604dav64sk3rk1s12hj49qqyx20v1f"))))
26523 (build-system pyproject-build-system)
26524 (arguments
26525 (list
26526 ;; Other tests require network access.
26527 #:test-flags #~(list "tests/test_ipv6.py")))
26528 (native-inputs (list python-pytest python-setuptools))
26529 (home-page "https://pypi.org/project/rfc6555/")
26530 (synopsis "Python implementation of RFC 6555")
26531 (description
26532 "Python implementation of the Happy Eyeballs Algorithm described in RFC
265336555. Provided with a single file and dead-simple API to allow easy vendoring
26534and integration into other projects.")
26535 (license license:asl2.0)))
26536
26537(define-public python-sacn
26538 (package
26539 (name "python-sacn")
26540 (version "1.11.0")
26541 (source
26542 (origin
26543 (method url-fetch)
26544 (uri (pypi-uri "sacn" version))
26545 (sha256
26546 (base32 "1sp0jmrjsd9g62kgi177fw4hi56h21s2p9khia3idmixgz53k2ql"))))
26547 (build-system pyproject-build-system)
26548 (native-inputs (list python-pytest python-setuptools python-wheel))
26549 (home-page "https://github.com/Hundemeier/sacn")
26550 (synopsis "Python library for sending and receiving sACN data")
26551 (description
26552 "This package provides a Python library for sending and receiving
26553 sACN (Streaming Architecture for Control Networks) data, a standard
26554 protocol used for controlling lighting and other devices over
26555 a network.")
26556 (license license:expat)))
26557
26558(define-public python-bagit
26559 (package
26560 (name "python-bagit")
26561 (version "1.9.0")
26562 (source
26563 (origin
26564 (method git-fetch) ; no tests in PyPI
26565 (uri (git-reference
26566 (url "https://github.com/LibraryOfCongress/bagit-python")
26567 (commit (string-append "v" version))))
26568 (file-name (git-file-name name version))
26569 (sha256
26570 (base32
26571 "12qfqha70vhc8pclq0kzv7xk0i44ramnlkphybv7419vdl4aay40"))))
26572 (build-system pyproject-build-system)
26573 (arguments
26574 (list #:test-flags #~(list "test.py")))
26575 (native-inputs
26576 (list python-pytest python-setuptools python-setuptools-scm python-wheel))
26577 (home-page "https://libraryofcongress.github.io/bagit-python/")
26578 (synopsis "Create and validate BagIt packages")
26579 (description "Bagit is a Python library and command line utility for working
26580 with BagIt style packages. BagIt is a minimalist packaging format for digital
26581 preservation.")
26582 (license license:cc0)))
26583
26584(define-public python-prov
26585 (package
26586 (name "python-prov")
26587 (version "2.1.1")
26588 (source
26589 (origin
26590 (method git-fetch)
26591 (uri (git-reference
26592 (url "https://github.com/trungdong/prov")
26593 (commit version)))
26594 (file-name (git-file-name name version))
26595 (sha256
26596 (base32 "14y58x4gqc4lyhgy6iamzxamwj02sqf2bkma6p5ddiqsnilc4wx7"))))
26597 (build-system pyproject-build-system)
26598 (arguments
26599 (list
26600 #:test-backend #~'unittest
26601 #:test-flags #~(list "discover" "-s" "src")
26602 #:phases
26603 #~(modify-phases %standard-phases
26604 (add-before 'check 'disable-tests
26605 (lambda _
26606 ;; prov.model.ProvException: The provided identifier
26607 ;; "http://www.example.org/bundle" is not valid
26608 (substitute* "src/prov/tests/qnames.py"
26609 (("test_namespace_inheritance")
26610 "disabled_test_namespace_inheritance")
26611 (("test_default_namespace_inheritance")
26612 "disabled_test_default_namespace_inheritance")))))))
26613 (native-inputs
26614 (list python-setuptools))
26615 (propagated-inputs
26616 (list graphviz
26617 python-dateutil
26618 python-networkx
26619 python-pydot
26620 ;; optional dependencies, also needed for tests
26621 python-lxml
26622 python-rdflib))
26623 (home-page "https://github.com/trungdong/prov")
26624 (synopsis
26625 "W3C Provenance Data Model supporting PROV-JSON, PROV-XML and PROV-O (RDF)")
26626 (description
26627 "This package provides a library for W3C Provenance Data Model supporting
26628 PROV-O (RDF), PROV-XML, PROV-JSON import/export.")
26629 (license license:expat)))
26630
26631(define-public python-arcp
26632 (package
26633 (name "python-arcp")
26634 (version "0.2.1")
26635 (source
26636 (origin
26637 (method git-fetch)
26638 (uri (git-reference
26639 (url "https://github.com/stain/arcp-py")
26640 (commit version)))
26641 (file-name (git-file-name name version))
26642 (sha256
26643 (base32 "1wjygci60nmcdrgrhb0vwqmhspzdv3g69x2b92vjxq709ifrpgqp"))))
26644 (build-system pyproject-build-system)
26645 (arguments
26646 (list
26647 #:phases
26648 #~(modify-phases %standard-phases
26649 (add-after 'unpack 'patch-tests
26650 (lambda _
26651 (substitute* "tests/test_parse.py"
26652 (("ni:///")
26653 "ni:")))))))
26654 (native-inputs (list python-pytest python-setuptools))
26655 (home-page "https://arcp.readthedocs.io/")
26656 (synopsis "Archive and Package URI parser and generator")
26657 (description
26658 "@acronym{arcp, Archive and Package} provides functions for creating
26659@code{arcp_} URIs, which can be used for identifying or parsing hypermedia
26660files packaged in an archive or package, like a ZIP file. arcp URIs can be
26661used to consume or reference hypermedia resources bundled inside a file
26662archive or an application package, as well as to resolve URIs for archive
26663resources within a programmatic framework. This URI scheme provides
26664mechanisms to generate a unique base URI to represent the root of the archive,
26665so that relative URI references in a bundled resource can be resolved within
26666the archive without having to extract the archive content on the local file
26667system. An arcp URI can be used for purposes of isolation (e.g. when
26668consuming multiple archives), security constraints (avoiding \"climb out\"
26669from the archive), or for externally identiyfing sub-resources referenced by
26670hypermedia formats.")
26671 (license license:asl2.0)))
26672
26673;; XXX: Project has no updates since 2019, consider to remove when nothing
26674;; depends on it in the next refresh cycle.
26675;; See: <https://github.com/pipermerriam/flex/issues/237>.
26676(define-public python-flex
26677 (package
26678 (name "python-flex")
26679 (version "6.14.1")
26680 (source
26681 (origin
26682 (method url-fetch)
26683 (uri (pypi-uri "flex" version))
26684 (sha256
26685 (base32
26686 "1sr91f5sqywj4040jm3cq4333fp8hbmmr7v6v05a3h0sgyixcbi9"))))
26687 (build-system pyproject-build-system)
26688 (arguments (list #:tests? #f)) ;no tests in PyPI archive
26689 (native-inputs
26690 (list python-setuptools))
26691 (propagated-inputs
26692 (list python-click
26693 python-jsonpointer
26694 python-pyyaml
26695 python-requests
26696 python-rfc3987
26697 python-six
26698 python-strict-rfc3339
26699 python-validate-email))
26700 (home-page "https://github.com/pipermerriam/flex")
26701 (synopsis "Validates Swagger schemata")
26702 (description "@code{flex} can be used to validate Swagger schemata.")
26703 (license license:bsd-3)))
26704
26705(define-public python-marshmallow
26706 (package
26707 (name "python-marshmallow")
26708 (version "4.0.0")
26709 (source
26710 (origin
26711 (method url-fetch)
26712 (uri (pypi-uri "marshmallow" version))
26713 (sha256
26714 (base32 "0mcd5aqs33hijapnj2a3g580pfaghp8h3vcpzdf979wrqam80viv"))))
26715 (build-system pyproject-build-system)
26716 (arguments
26717 (list
26718 ;; tests: x86_64 1117 passed
26719 ;; i686-linux 1116 passed, 1 deselected
26720 #:test-flags
26721 #~(list #$@(if (target-64bit?)
26722 '()
26723 ;; OverflowError
26724 '((string-append "--deselect=tests/test_utils.py"
26725 "::test_from_timestamp_with_overflow_value"))))))
26726 (native-inputs
26727 (list python-flit-core
26728 python-pytest
26729 python-simplejson
26730 tzdata-for-tests))
26731 (home-page "https://github.com/marshmallow-code/marshmallow")
26732 (synopsis "Convert complex datatypes to and from native Python datatypes")
26733 (description
26734 "@code{marshmallow} provides a library for converting complex datatypes
26735to and from native Python datatypes.")
26736 (license license:expat)))
26737
26738(define-public python-marshmallow-3
26739 (package
26740 (inherit python-marshmallow)
26741 (version "3.22.0")
26742 (source
26743 (origin
26744 (method url-fetch)
26745 (uri (pypi-uri "marshmallow" version))
26746 (sha256
26747 (base32 "0gl2qmq5sqf1b3f84zd7yzkznaknr6j5lnbxcfw0n8ja20lzawj9"))))
26748 (arguments '())
26749 (native-inputs
26750 (list python-pytest
26751 python-pytz
26752 python-simplejson
26753 python-flit-core))
26754 (propagated-inputs
26755 (list python-packaging))))
26756
26757
26758(define-public python-apispec
26759 (package
26760 (name "python-apispec")
26761 (version "6.8.2")
26762 (source
26763 (origin
26764 (method url-fetch)
26765 (uri (pypi-uri "apispec" version))
26766 (sha256
26767 (base32 "09lza66036a3i1blwrc6qpvw48pzflmabhd0dfshq9ghzjwnjnyf"))))
26768 (build-system pyproject-build-system)
26769 (native-inputs
26770 (list python-flit-core
26771 python-openapi-spec-validator
26772 python-pytest))
26773 (propagated-inputs
26774 (list python-marshmallow
26775 python-packaging
26776 python-pyyaml))
26777 (home-page "https://github.com/marshmallow-code/apispec")
26778 (synopsis "Swagger/OpenAPI specification generator")
26779 (description
26780 "@code{python-apispec} is a pluggable API specification generator. It
26781currently supports the OpenAPI specification, formerly known as Swagger.")
26782 (license license:expat)))
26783
26784(define-public python-apispec-webframeworks
26785 (package
26786 (name "python-apispec-webframeworks")
26787 (version "1.2.0")
26788 (source
26789 (origin
26790 (method url-fetch)
26791 (uri (pypi-uri "apispec_webframeworks" version))
26792 (sha256
26793 (base32 "10gxjwmk8w67b7vcivcky4hrpv1gx8acrshnyp1169va4s62i2an"))))
26794 (build-system pyproject-build-system)
26795 (native-inputs
26796 (list python-aiohttp
26797 python-flit-core
26798 python-bottle
26799 python-flask
26800 python-pytest
26801 python-pyyaml
26802 python-tornado
26803 python-wheel))
26804 (propagated-inputs
26805 (list python-apispec))
26806 (home-page "https://github.com/marshmallow-code/apispec-webframeworks")
26807 (synopsis "Web framework plugins for apispec")
26808 (description "This package provides plugins for using @code{apispec} with
26809web frameworks.")
26810 (license license:expat)))
26811
26812(define-public python-flasgger
26813 (package
26814 (name "python-flasgger")
26815 (version "0.9.7.1")
26816 (source
26817 (origin
26818 (method git-fetch)
26819 (uri (git-reference
26820 (url "https://github.com/rochacbruno/flasgger")
26821 (commit (string-append "v" version))))
26822 (file-name (git-file-name name version))
26823 (sha256
26824 (base32 "08dnn19swfa5lsscj38hil41b3xnqvwgwnx9q2vg9kv26bs1zcah"))
26825 (patches
26826 (list
26827 (origin
26828 (method url-fetch)
26829 (uri
26830 (string-append "https://github.com/flasgger/flasgger/commit/"
26831 "08591b60e988c0002fcf1b1e9f98b78e041d2732.patch"))
26832 (sha256
26833 (base32 "0a9gprhbm4xjc5pg01agh6i99alkknah7z6281f0z8amjyss91rg")))))))
26834 (build-system pyproject-build-system)
26835 (arguments
26836 (list
26837 #:test-flags
26838 #~(list "--ignore=tests/test_examples.py"
26839 "tests")))
26840 (propagated-inputs
26841 (list python-flask
26842 python-pyyaml
26843 python-jsonschema
26844 python-mistune
26845 python-six))
26846 (native-inputs
26847 (list python-pytest
26848 python-setuptools))
26849 (home-page "https://github.com/rochacbruno/flasgger/")
26850 (synopsis "Extract Swagger specs from your Flask project")
26851 (description "@code{python-flasgger} allows extracting Swagger specs
26852 from your Flask project. It is a fork of Flask-Swagger.")
26853 (license license:expat)))
26854
26855(define-public python-apache-libcloud
26856 (package
26857 (name "python-apache-libcloud")
26858 (version "3.8.0")
26859 (source
26860 (origin
26861 (method url-fetch)
26862 (uri (pypi-uri "apache-libcloud" version))
26863 (sha256
26864 (base32 "14bc4z246ka0h6kywpxqdfgb2c5y6lfclpx99ki2bhiv285lrgvm"))))
26865 (build-system pyproject-build-system)
26866 (arguments
26867 (list
26868 #:tests? #f ; XXX: all tests fail requiring additional credentials
26869 #:phases
26870 #~(modify-phases %standard-phases
26871 (add-after 'unpack 'patch-ssh
26872 (lambda* (#:key inputs #:allow-other-keys)
26873 (substitute* "libcloud/compute/ssh.py"
26874 (("'ssh'")
26875 (format #f "~s" (search-input-file inputs "/bin/ssh"))))))
26876 (add-after 'unpack 'patch-tests
26877 (lambda _
26878 (substitute* "libcloud/test/compute/test_ssh_client.py"
26879 (("^class ShellOutSSHClientTests")
26880 "@unittest.skip(\"Guix container doesn't have ssh service\")
26881class ShellOutSSHClientTests"))))
26882 (add-before 'check 'copy-secret
26883 (lambda _
26884 (copy-file "libcloud/test/secrets.py-dist"
26885 "libcloud/test/secrets.py"))))))
26886 (inputs
26887 (list openssh))
26888 (propagated-inputs
26889 (list python-requests))
26890 (native-inputs
26891 (list python-pytest python-requests-mock python-setuptools))
26892 (home-page "https://libcloud.apache.org/")
26893 (synopsis "Unified Cloud API")
26894 (description
26895 "@code{libcloud} is a Python library for interacting with many of the
26896popular cloud service providers using a unified API.")
26897 (license license:asl2.0)))
26898
26899(define-public python-smmap
26900 (package
26901 (name "python-smmap")
26902 (version "5.0.2")
26903 (source
26904 (origin
26905 (method url-fetch)
26906 (uri (pypi-uri "smmap" version))
26907 (sha256
26908 (base32 "1mcai5vf9bgz389y4sqgj6w22wn7zmc7m33y3j50ryjq76h6bsi6"))))
26909 (build-system pyproject-build-system)
26910 (native-inputs
26911 (list python-pytest
26912 python-setuptools
26913 python-wheel))
26914 (home-page "https://github.com/Byron/smmap")
26915 (synopsis "Python sliding window memory map manager")
26916 (description "@code{smmap} is a pure Python implementation of a sliding
26917 window memory map manager.")
26918 (license license:bsd-3)))
26919
26920(define-public python-regex
26921 (package
26922 (name "python-regex")
26923 (version "2026.2.28")
26924 (source
26925 (origin
26926 (method git-fetch)
26927 (uri (git-reference
26928 (url "https://github.com/mrabarnett/mrab-regex")
26929 (commit version)))
26930 (file-name (git-file-name name version))
26931 (sha256
26932 (base32 "10pyq4b2a0qbvmfn0ip6h51lqf4g59kgca4zn3g8hg62ha5kwf13"))))
26933 (build-system pyproject-build-system)
26934 (arguments
26935 (list
26936 #:test-backend #~'unittest
26937 #:test-flags #~(list "-v" "regex.tests.test_regex")
26938 #:phases
26939 #~(modify-phases %standard-phases
26940 (add-before 'check 'remove-local-source
26941 (lambda _
26942 (delete-file-recursively "regex"))))))
26943 (native-inputs
26944 (list python-setuptools))
26945 (home-page "https://github.com/mrabarnett/mrab-regex")
26946 (synopsis "Alternative regular expression module")
26947 (description
26948 "This regular expression implementation is backwards-compatible with the
26949standard @code{re} module, but offers additional functionality like full
26950case-folding for case-insensitive matches in Unicode.")
26951 (license license:psfl)))
26952
26953(define-public python-pysocks
26954 (package
26955 (name "python-pysocks")
26956 (version "1.7.1")
26957 (source
26958 (origin
26959 (method url-fetch)
26960 (uri (pypi-uri "PySocks" version))
26961 (sha256
26962 (base32
26963 "184sg65mbmih6ljblfsxcmq5js5l7dj3gpn618w9q5dy3rbh921z"))))
26964 (build-system pyproject-build-system)
26965 (arguments `(#:tests? #f))
26966 (native-inputs
26967 (list python-setuptools))
26968 (home-page "https://github.com/Anorov/PySocks")
26969 (synopsis "SOCKS client module")
26970 (description "@code{pysocks} is an updated and semi-actively maintained
26971version of @code{SocksiPy} with bug fixes and extra features.")
26972 (license license:bsd-3)))
26973
26974(define-public python-pydub
26975 ;; TODO: Move to (gnu packages audio)
26976 (package
26977 (name "python-pydub")
26978 (version "0.25.1")
26979 (source
26980 (origin
26981 (method git-fetch)
26982 (uri (git-reference
26983 (url "https://github.com/jiaaro/pydub")
26984 (commit (string-append "v" version))))
26985 (file-name (git-file-name name version))
26986 (sha256
26987 (base32 "0xskllq66wqndjfmvp58k26cv3w480sqsil6ifwp4gghir7hqc8m"))
26988 (patches
26989 (list
26990 ;; See: <https://github.com/jiaaro/pydub/pull/769>.
26991 (origin
26992 (method url-fetch)
26993 (uri
26994 (string-append "https://github.com/jiaaro/pydub/commit/"
26995 "66c1bf7813ae8621a71484fdcdf609734c0d8efd.patch"))
26996 (sha256
26997 (base32 "17nlbw79gv9mag6xpd46al5f1bgqcncffh151znn0fmhj8i9rgz3")))))))
26998 (build-system pyproject-build-system)
26999 (arguments
27000 (list
27001 #:test-backend ''unittest
27002 #:phases
27003 #~(modify-phases %standard-phases
27004 (add-after 'unpack 'fix-ffmpeg-path
27005 (lambda* (#:key inputs #:allow-other-keys)
27006 (let ((bin (dirname (search-input-file inputs "bin/ffmpeg"))))
27007 (substitute* "pydub/utils.py"
27008 (("return \"ffmpeg\"")
27009 (string-append "return \"" bin "/ffmpeg\""))
27010 (("return \"ffplay\"")
27011 (string-append "return \"" bin "/ffplay\""))
27012 (("return \"ffprobe\"")
27013 (string-append "return \"" bin "/ffprobe\""))
27014 (("warn\\(\"Couldn't find ff")
27015 "# warn\\(\"Couldn't find ff"))))))))
27016 (native-inputs (list python-setuptools))
27017 (home-page "https://pydub.com")
27018 (inputs (list ffmpeg))
27019 (propagated-inputs (list python-scipy))
27020 (synopsis "Manipulate audio with a high level interface in Python")
27021 (description
27022 "@code{pydub} makes it easy to manipulate audio in Python. It relies on
27023@code{ffmpeg} to open various audio formats.")
27024 (license license:expat))) ; MIT license
27025
27026(define-public python-pkginfo
27027 (package
27028 (name "python-pkginfo")
27029 (version "1.12.1.2")
27030 (source
27031 (origin
27032 (method url-fetch)
27033 (uri (pypi-uri "pkginfo" version))
27034 (sha256
27035 (base32
27036 "0ysbl0rhy8chvx58zi5qb61jli76dcyblklnc0118vy39a15gnaw"))))
27037 (build-system pyproject-build-system)
27038 (arguments
27039 ;; Wheel metatda version mismatched: AssertionError: assert '2.4' == '2.3'
27040 (list #:test-flags #~(list "-k" "not test_installed_ctor_w_dist_info")))
27041 (native-inputs
27042 (list python-pytest
27043 python-setuptools
27044 python-wheel))
27045 (home-page "https://code.launchpad.net/~tseaver/pkginfo/trunk")
27046 (synopsis "Query metadatdata from sdists, bdists, and installed packages")
27047 (description
27048 "API to query the distutils metadata written in @file{PKG-INFO} inside a
27049source distriubtion (an sdist) or a binary distribution (e.g., created by
27050running bdist_egg). It can also query the EGG-INFO directory of an installed
27051distribution, and the *.egg-info stored in a \"development checkout\" (e.g,
27052created by running @code{python setup.py develop}).")
27053 (license license:expat)))
27054
27055(define-public python-rbfly
27056 (package
27057 (name "python-rbfly")
27058 (version "0.11.0")
27059 (source
27060 (origin
27061 (method url-fetch)
27062 (uri (pypi-uri "rbfly" version))
27063 (sha256
27064 (base32 "12xwf8zdvc5pf4nlpblml3jbn3gksgkyw9zw6jfsrvddv3hsm1b0"))))
27065 (build-system pyproject-build-system)
27066 (arguments
27067 (list
27068 #:test-flags
27069 #~(list "--pyargs" "rbfly"
27070 #$@(if (target-64bit?)
27071 '()
27072 '((string-append "--deselect=tests/amqp/test_message.py"
27073 "::test_encode_amqp_string_too_long"))))
27074 #:phases
27075 #~(modify-phases %standard-phases
27076 (add-before 'check 'remove-local-source
27077 (lambda _
27078 (delete-file-recursively "rbfly"))))))
27079 (native-inputs
27080 (list python-cython
27081 python-pytest
27082 python-pytest-asyncio
27083 python-pytest-timeout
27084 python-setuptools))
27085 (home-page "https://wrobell.dcmod.org/rbfly/")
27086 (synopsis "Work with RabbitMQ Streams in Python")
27087 (description
27088 "This package implements a functionality to deal with
27089@url{https://www.rabbitmq.com/streams.html, RabbitMQ Streams} using
27090@url{https://docs.python.org/3/library/asyncio.html, @code{asyncio}}.
27091
27092It is designed and implemented with the following qualities in mind:
27093@itemize
27094@item asynchronous Pythonic API with type annotations
27095@item use of
27096@url{https://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol, AMQP}
270971.0 message format to enable interoperability between RabbitMQ Stream. clients
27098@item auto reconnection to RabbitMQ broker with lazily created connection
27099objects
27100@end itemize
27101
27102Support of many RabbitMQ Streams broker features:
27103@itemize
27104@item publishing single messages, or in batches, with confirmation
27105@item subscribing to a stream at a specific point in time, from a specific
27106offset, or using offset reference
27107@item stream message filtering
27108@item writing stream offset reference
27109@item message deduplication
27110@item integration with AMQP 1.0 ecosystem at message format level
27111@end itemize")
27112 (license license:gpl3+)))
27113
27114(define-public python-jsonrpclib-pelix
27115 (package
27116 (name "python-jsonrpclib-pelix")
27117 (version "0.3.2")
27118 (source
27119 (origin
27120 (method git-fetch)
27121 (uri (git-reference
27122 (url "https://github.com/tcalmant/jsonrpclib")
27123 (commit (string-append "v" version))))
27124 (file-name (git-file-name name version))
27125 (sha256
27126 (base32 "1mhnqmgcplsxc4zygxy4hm99si7p2rpyl4bpmilzqc51k2r3khzl"))))
27127 (build-system pyproject-build-system)
27128 (arguments
27129 (list
27130 #:test-flags #~(list "--deselect=\
27131tests/test_internal.py::InternalTests::test_multicall_success")))
27132 (native-inputs (list python-pytest python-setuptools))
27133 (home-page "https://github.com/tcalmant/jsonrpclib")
27134 (synopsis "JSON-RPC 2.0 client library for Python")
27135 (description
27136 "This library implements the JSON-RPC v2.0 specification
27137(backwards-compatible) as a client library for Python. This version is a fork
27138of jsonrpclib by Josh Marshall, usable with Pelix remote services.")
27139 (license license:asl2.0)))
27140
27141(define-public python-setuptools-git
27142 ;; XXX: The project is abandoned since 2018, consider to remove in the next
27143 ;; refresh cycle.
27144 (package
27145 (name "python-setuptools-git")
27146 (version "1.2")
27147 (source
27148 (origin
27149 (method url-fetch)
27150 (uri (pypi-uri "setuptools-git" version))
27151 (sha256
27152 (base32 "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
27153 (build-system pyproject-build-system)
27154 (arguments
27155 (list
27156 #:tests? #f ;no tests in PyPI
27157 #:phases
27158 #~(modify-phases %standard-phases
27159 ;; This is needed for tests.
27160 (add-after 'unpack 'configure-git
27161 (lambda _
27162 (setenv "HOME" "/tmp")
27163 (invoke "git" "config" "--global" "user.email" "guix")
27164 (invoke "git" "config" "--global" "user.name" "guix"))))))
27165 (native-inputs
27166 (list git-minimal/pinned python-setuptools python-wheel))
27167 (home-page "https://github.com/msabramo/setuptools-git")
27168 (synopsis "Setuptools revision control system plugin for Git")
27169 (description
27170 "This package provides a plugin for Setuptools for revision control with
27171Git.")
27172 (license license:bsd-3)))
27173
27174(define-public python-setuptools-rust
27175 (package
27176 (name "python-setuptools-rust")
27177 (version "1.11.1")
27178 (source
27179 (origin
27180 (method url-fetch)
27181 (uri (pypi-uri "setuptools_rust" version))
27182 (sha256
27183 (base32 "1h3nbg1nlshzrqy7vz4q4g9wbz85dqkn6385p0ad7kjj48ww9avx"))))
27184 (build-system pyproject-build-system)
27185 (arguments
27186 (list #:tests? #f)) ;tests require Cargo
27187 (propagated-inputs
27188 (list python-semantic-version
27189 python-setuptools))
27190 (home-page "https://github.com/PyO3/setuptools-rust")
27191 (synopsis "Setuptools plugin for Rust extensions")
27192 (description
27193 "@code{setuptools-rust} is a plugin for @code{setuptools} to build
27194Rust Python extensions implemented with @code{PyO3} or @code{rust-cpython}.")
27195 (license license:expat)))
27196
27197(define-public python-setuptools-gettext
27198 (package
27199 (name "python-setuptools-gettext")
27200 (version "0.1.14")
27201 (source
27202 (origin
27203 (method git-fetch)
27204 (uri (git-reference
27205 (url "https://github.com/breezy-team/setuptools-gettext")
27206 (commit (string-append "v" version))))
27207 (file-name (git-file-name name version))
27208 (sha256
27209 (base32 "1m6a3qjwvqbvlzwqap7050rqsxb7nwibl38iklnqz8363iclm76k"))))
27210 (build-system pyproject-build-system)
27211 (native-inputs (list python-pytest python-tomli python-setuptools))
27212 (home-page "https://github.com/breezy-team/setuptools-gettext")
27213 (synopsis "Setuptools plugin for gettext")
27214 (description "This package provides a plugin for Setuptools for gettext.")
27215 (license license:gpl2+)))
27216
27217(define-public python-pyclibrary
27218 ;; XXX: https://github.com/MatthieuDartiailh/pyclibrary/issues/82
27219 (let ((commit "4e1e243a0bdfefa188d93ebdf3b60c6861244855")
27220 (revision "0"))
27221 (package
27222 (name "python-pyclibrary")
27223 (version (git-version "0.2.2" revision commit))
27224 (source
27225 (origin
27226 (method git-fetch)
27227 (uri (git-reference
27228 (url "https://github.com/MatthieuDartiailh/pyclibrary")
27229 (commit commit)))
27230 (file-name (git-file-name name version))
27231 (sha256
27232 (base32 "1sza6n2fg8zml0v1s5zwzrlsb79s2abn1n4pr1l8r15al4g9z0c6"))))
27233 (build-system pyproject-build-system)
27234 (native-inputs
27235 (list python-pytest
27236 python-setuptools
27237 python-setuptools-scm))
27238 (propagated-inputs
27239 (list python-pyparsing))
27240 (home-page "https://github.com/MatthieuDartiailh/pyclibrary")
27241 (synopsis "Wrap dynamic libraries in Python")
27242 (description
27243 "This package helps wrapping dynamic libraries in Python. It includes
27244a pure-Python C parser and an automation library that uses C header file
27245definitions to simplify the use of C bindings.")
27246 (license license:expat))))
27247
27248(define-public python-pyclipper
27249 (package
27250 (name "python-pyclipper")
27251 (version "1.3.0.post6")
27252 (source
27253 (origin
27254 (method git-fetch)
27255 (uri (git-reference
27256 (url "https://github.com/greginvm/pyclipper")
27257 (commit version)))
27258 (file-name (git-file-name name version))
27259 (sha256
27260 (base32 "1ijr7sx3203b3ppvsn1zyy8nfz93nbi60l8dxj2hdd6sj25g8q5k"))))
27261 (build-system pyproject-build-system)
27262 (arguments
27263 (list
27264 #:phases
27265 #~(modify-phases %standard-phases
27266 (add-before 'build 'cythonize-sources
27267 (lambda _
27268 (with-directory-excursion "src/pyclipper"
27269 (invoke "cython" "--cplus" "_pyclipper.pyx")))))))
27270 (native-inputs
27271 (list python-cython
27272 python-pytest
27273 python-setuptools
27274 python-setuptools-scm))
27275 (home-page "https://github.com/greginvm/pyclipper")
27276 (synopsis "Wrapper for Angus Johnson's Clipper library")
27277 (description
27278 "Pyclipper is a Cython wrapper for the C++ translation of the
27279Angus Johnson's polygon clipping Clipper library (ver. 6.4.2).")
27280 (license license:expat)))
27281
27282(define-public python-semver
27283 (package
27284 (name "python-semver")
27285 (version "3.0.4")
27286 (source
27287 (origin
27288 (method url-fetch)
27289 (uri (pypi-uri "semver" version))
27290 (sha256
27291 (base32 "00lnb1mpppgq041kwcbg405rqsi2mzl8dw1s0c8hmvd5hk2xiixg"))))
27292 (build-system pyproject-build-system)
27293 (native-inputs (list python-pytest python-setuptools))
27294 (home-page "https://github.com/k-bx/python-semver")
27295 (synopsis "Python helper for Semantic Versioning")
27296 (description
27297 "This package provides a Python library for @url{Semantic Versioning,
27298http://semver.org/}.")
27299 (license license:bsd-3)))
27300
27301(define-public python-phonenumbers
27302 (package
27303 (name "python-phonenumbers")
27304 (version "8.13.37")
27305 (source
27306 (origin
27307 (method git-fetch)
27308 (uri (git-reference
27309 (url "https://github.com/daviddrysdale/python-phonenumbers")
27310 (commit (string-append "v" version))))
27311 (file-name (git-file-name name version))
27312 (sha256
27313 (base32 "1bgab6s7l2bqg671sns138c9qr9f8ndvjr4ig8l3ik9q054l9k9n"))))
27314 (build-system pyproject-build-system)
27315 (arguments
27316 (list
27317 #:test-backend #~'custom
27318 #:test-flags #~(list "-m" "testwrapper")
27319 #:phases
27320 #~(modify-phases %standard-phases
27321 (add-after 'unpack 'chdir
27322 (lambda _
27323 (chdir "python"))))))
27324 (propagated-inputs (list python-protobuf))
27325 (native-inputs (list python-setuptools))
27326 (home-page "https://github.com/daviddrysdale/python-phonenumbers")
27327 (synopsis "Python library for dealing with international phone numbers")
27328 (description
27329 "This package provides a Python port of Google's libphonenumber library.")
27330 (license license:asl2.0)))
27331
27332(define-public python-heapdict
27333 (package
27334 (name "python-heapdict")
27335 (version "1.0.1")
27336 (source
27337 (origin
27338 (method url-fetch)
27339 (uri (pypi-uri "HeapDict" version))
27340 (sha256
27341 (base32
27342 "1dnd7v9adqd21bf4ih2wzn9a7b41m0nccb0vbxny9n037rxzb5c4"))))
27343 (build-system pyproject-build-system)
27344 (arguments (list #:test-backend #~'unittest))
27345 (native-inputs (list python-setuptools))
27346 (home-page "http://stutzbachenterprises.com/")
27347 (synopsis "Heap with decrease-key and increase-key operations")
27348 (description
27349 "heapdict implements the MutableMapping ABC, meaning it works pretty much
27350like a regular Python @code{dict}. It’s designed to be used as a priority
27351queue.")
27352 (license license:bsd-3)))
27353
27354(define-public python-send2trash
27355 (package
27356 (name "python-send2trash")
27357 (version "1.8.2")
27358 (source
27359 (origin (method git-fetch)
27360 ;; Source tarball on PyPI doesn't include tests.
27361 (uri (git-reference
27362 (url "https://github.com/arsenetar/send2trash")
27363 (commit version)))
27364 (file-name (git-file-name name version))
27365 (sha256
27366 (base32
27367 "0dl9nv3h3kkcavwiswzg76pksqczq448gbdvlbz88bm71zvdshx7"))))
27368 (build-system pyproject-build-system)
27369 (arguments
27370 (list
27371 #:phases
27372 '(modify-phases %standard-phases
27373 (add-before 'check 'pre-check
27374 (lambda _ (setenv "HOME" "/tmp"))))))
27375 (native-inputs (list python-pytest python-setuptools python-wheel))
27376 (home-page "https://github.com/arsenetar/send2trash")
27377 (synopsis "Send files to the user's @file{~/Trash} directory")
27378 (description "This package provides a Python library to send files to the
27379user's @file{~/Trash} directory.")
27380 (license license:bsd-3)))
27381
27382(define-public python-pyfavicon
27383 (package
27384 (name "python-pyfavicon")
27385 (version "0.1.1")
27386 (source
27387 (origin
27388 (method git-fetch)
27389 (uri (git-reference
27390 (url "https://github.com/bilelmoussaoui/pyfavicon")
27391 (commit version)))
27392 (file-name (git-file-name name version))
27393 (sha256
27394 (base32 "04mx8vbi6j9l8daqa18sv0kkcyqv4wbc9z4ma77w68baq6ss0jzf"))))
27395 (build-system pyproject-build-system)
27396 (arguments
27397 (list
27398 #:test-flags
27399 #~(list "-k" (string-join (list
27400 ;; Socket name resolution fails.
27401 "not test_url_icon_link_type"
27402 "test_icon_sizes"
27403 ;; Tuples differ.
27404 "test_largest_icon")
27405 " and not "))))
27406 (native-inputs (list python-pytest python-setuptools))
27407 (propagated-inputs
27408 (list python-aiohttp python-beautifulsoup4 python-pillow))
27409 (home-page "https://github.com/bilelmoussaoui/pyfavicon")
27410 (synopsis "Async favicon fetcher")
27411 (description
27412 "@code{pyfavicon} is an async favicon fetcher.")
27413 (license license:expat)))
27414
27415(define-public python-funcy
27416 (package
27417 (name "python-funcy")
27418 (version "1.11")
27419 (source
27420 (origin
27421 (method git-fetch)
27422 (uri (git-reference
27423 (url "https://github.com/Suor/funcy")
27424 (commit version)))
27425 (sha256
27426 (base32 "1s98vkjnq3zq71737hn8xa15kssvmy1sfzsll3vrlv53902418mw"))
27427 (file-name (git-file-name name version))))
27428 (build-system pyproject-build-system)
27429 (native-inputs
27430 (list python-pytest python-whatever python-setuptools python-wheel))
27431 (home-page "https://github.com/Suor/funcy")
27432 (synopsis "Functional tools")
27433 (description "@code{funcy} is a library that provides functional tools.
27434Examples are:
27435@enumerate
27436@item merge - Merges collections of the same type
27437@item walk - Type-preserving map
27438@item select - Selects a part of a collection
27439@item take - Takes the first n items of a collection
27440@item first - Takes the first item of a collection
27441@item remove - Predicated-removes items of a collection
27442@item concat - Concatenates two collections
27443@item flatten - Flattens a collection with subcollections
27444@item distinct - Returns only distinct items
27445@item split - Predicated-splits a collection
27446@item split_at - Splits a collection at a given item
27447@item group_by - Groups items by group
27448@item pairwise - Pairs off adjacent items
27449@item partial - Partially-applies a function
27450@item curry - Curries a function
27451@item compose - Composes functions
27452@item complement - Complements a predicate
27453@item all_fn - \"all\" with predicate
27454@end enumerate")
27455 (license license:bsd-3)))
27456
27457(define-public python-funcy-1.14
27458 (package/inherit python-funcy
27459 (name "python-funcy")
27460 (version "1.14")
27461 (source
27462 (origin
27463 (method git-fetch)
27464 (uri (git-reference
27465 (url "https://github.com/Suor/funcy")
27466 (commit version)))
27467 (sha256
27468 (base32 "1chgi60z3c97m9l23vf5cpyp0nidkqlpxc55q5k5pz41ms3d0440"))
27469 (file-name (git-file-name name version))))))
27470
27471(define-public python-isoweek
27472 (package
27473 (name "python-isoweek")
27474 (version "1.3.3")
27475 (source
27476 (origin
27477 (method url-fetch)
27478 (uri (pypi-uri "isoweek" version))
27479 (sha256
27480 (base32 "1s7zsf0pab0l9gn6456qadnz5i5h90hafcjwnhx5mq23qjxggwvk"))))
27481 (build-system pyproject-build-system)
27482 (arguments (list #:test-backend #~'unittest))
27483 (native-inputs (list python-setuptools))
27484 (home-page "https://github.com/gisle/isoweek")
27485 (synopsis "Objects representing a week")
27486 (description "The @code{isoweek} module provide the class Week that
27487implements the week definition of ISO 8601. This standard also defines
27488a notation for identifying weeks; yyyyWww (where the W is a literal).
27489Week instances stringify to this form.")
27490 (license license:bsd-3)))
27491
27492(define-public bpython
27493 (package
27494 (name "bpython")
27495 (version "0.25")
27496 (source
27497 (origin
27498 (method url-fetch)
27499 (uri (pypi-uri "bpython" version))
27500 (sha256
27501 (base32 "0ny6cqhpil7z36djc4ixakri65kb1rdn3d4ckmpc5p7nks8gqin2"))))
27502 (build-system pyproject-build-system)
27503 (arguments
27504 (list
27505 #:test-flags
27506 ;; Tests can't import curtsies, pygments and urwid.
27507 #~(list "-k" (string-join
27508 (list "not test_issue108"
27509 "test_issue133")
27510 " and not " ))
27511 #:phases
27512 #~(modify-phases %standard-phases
27513 (add-after 'wrap 'add-aliases
27514 ;; For symmetry to bpython2, add symlinks bypthon3, bpdb3, etc.
27515 (lambda _
27516 (for-each
27517 (lambda (old new)
27518 (symlink old (string-append #$output "/bin/" new)))
27519 '("bpython" "bpython-urwid" "bpdb")
27520 '("bpython3" "bpython3-urwid" "bpdb3")))))))
27521 (native-inputs
27522 (list python-mock
27523 python-pytest
27524 python-setuptools))
27525 (propagated-inputs
27526 (list python-curtsies
27527 python-cwcwidth
27528 python-greenlet
27529 python-pygments
27530 python-pyxdg
27531 python-requests
27532 ;; [optional]
27533 python-pyperclip
27534 python-jedi
27535 python-urwid-2
27536 python-watchdog))
27537 (home-page "https://bpython-interpreter.org/")
27538 (synopsis "Fancy interface to the Python interpreter")
27539 (description "Bpython is a fancy interface to the Python
27540interpreter. bpython's main features are
27541
27542@enumerate
27543@item in-line syntax highlighting,
27544@item readline-like autocomplete with suggestions displayed as you type,
27545@item expected parameter list for any Python function,
27546@item \"rewind\" function to pop the last line of code from memory and
27547 re-evaluate,
27548@item send the code you've entered off to a pastebin,
27549@item save the code you've entered to a file, and
27550@item auto-indentation.
27551@end enumerate")
27552 (license license:expat)))
27553
27554(define-public python-pyinotify
27555 (package
27556 (name "python-pyinotify")
27557 (version "0.9.6")
27558 (source
27559 (origin
27560 (method git-fetch)
27561 (uri (git-reference
27562 (url "https://github.com/seb-m/pyinotify")
27563 (commit version)))
27564 (file-name (git-file-name name version))
27565 (sha256
27566 (base32 "0qfvs1sfvlpfb10rxlivwa96mg0ibczis554s2rx32s11nynzvbk"))))
27567 (build-system pyproject-build-system)
27568 (arguments
27569 (list
27570 #:tests? #f ;no tests
27571 #:phases
27572 #~(modify-phases %standard-phases
27573 (add-after 'unpack 'drop-shebang
27574 (lambda _
27575 ;; Dropping this shebang prevents the build system from adding
27576 ;; python-wrapper as an input, reducing package closure size from
27577 ;; ~200 MiB to ~0.2 MiB.
27578 (substitute* "python3/pyinotify.py"
27579 (("#!/usr/bin/env python") "")))))))
27580 (native-inputs
27581 (list python-setuptools))
27582 (propagated-inputs
27583 (list python-pyasyncore))
27584 (home-page "https://github.com/seb-m/pyinotify")
27585 (synopsis "Python library for monitoring inotify events")
27586 (description
27587 "@code{pyinotify} provides a Python interface for monitoring file system
27588events on Linux.")
27589 (license license:expat)))
27590
27591(define-public python-pyinotify-cli
27592 (package
27593 (inherit python-pyinotify)
27594 (name "python-pyinotify-cli")
27595 (arguments
27596 (substitute-keyword-arguments arguments
27597 ((#:phases phases #~%standard-phases)
27598 #~(modify-phases #$phases
27599 (delete 'drop-shebang)
27600 (add-after 'install 'install-entrypoint
27601 (lambda _
27602 (let ((entrypoint
27603 (string-append #$output "/lib/python"
27604 (python-version (which "python"))
27605 "/site-packages/pyinotify.py"))
27606 (bin (string-append #$output "/bin")))
27607 (mkdir-p bin)
27608 (invoke "chmod" "+x" entrypoint)
27609 (symlink
27610 entrypoint (string-append #$output "/bin/pyinotify")))))))))
27611 (description
27612 "This package provides, in addition to the @code{pyinotify} Python library,
27613a command line application exposing the same functionality.")))
27614
27615(define-public python-latex2pydata
27616 (package
27617 (name "python-latex2pydata")
27618 (version "0.5.0")
27619 (source
27620 (origin
27621 (method url-fetch)
27622 (uri (pypi-uri "latex2pydata" version))
27623 (sha256
27624 (base32 "12a2ayhgp5plxkdikhy3myin14ydkj0msgb5j82dfvis7h4d5jmw"))))
27625 (build-system pyproject-build-system)
27626 (native-inputs (list python-setuptools python-wheel python-pytest))
27627 (home-page "https://github.com/gpoore/latex2pydata")
27628 (synopsis "Load data from LaTeX in Python literal format")
27629 (description
27630 "This package is designed to load data in Python literal format that was
27631saved to file by the @code{latex2pydata} LaTeX package. This allows data to be
27632passed from LaTeX to Python.")
27633 (license license:bsd-3)))
27634
27635(define-public python-latexcodec
27636 (package
27637 (name "python-latexcodec")
27638 (version "3.0.1")
27639 (source
27640 (origin
27641 (method git-fetch)
27642 (uri (git-reference
27643 (url "https://github.com/mcmtroffaes/latexcodec/")
27644 (commit version)))
27645 (file-name (git-file-name name version))
27646 (sha256
27647 (base32 "0j4hkn161h0hsx3ixs85dqnsaya27ck9c2ri1lv8cayc5a9kqvcp"))))
27648 (build-system pyproject-build-system)
27649 (native-inputs (list python-pytest python-setuptools))
27650 (home-page "https://readthedocs.org/projects/latexcodec/")
27651 (synopsis "Work with LaTeX code in Python")
27652 (description "Lexer and codec to work with LaTeX code in Python.")
27653 (license license:expat)))
27654
27655(define-public python-latexminted
27656 (package
27657 (name "python-latexminted")
27658 (version "0.7.1")
27659 (source
27660 (origin
27661 (method url-fetch)
27662 (uri (pypi-uri "latexminted" version))
27663 (sha256
27664 (base32 "1yj08q1bpy0lk3gk6zs9b7ik83mwn9d7s85fpvyj1wk06iphj96p"))))
27665 (build-system pyproject-build-system)
27666 (arguments (list #:tests? #f)) ; No tests upstream.
27667 (propagated-inputs (list python-latex2pydata
27668 python-latexrestricted
27669 python-pygments))
27670 (native-inputs (list texlive-kpathsea python-setuptools))
27671 (home-page "https://github.com/gpoore/minted")
27672 (synopsis "Python library for the LaTeX minted package")
27673 (description "This Python package provides the Python side of the
27674@code{texlive-minted} LaTeX package. It performs syntax highlighting using the
27675@code{python-pygments} library. It also provides several code formatting and
27676manipulation features implemented in Python that would be difficult to perform
27677in LaTeX, such as dedenting code and extracting code snippets from source files
27678using regular expressions.")
27679 (license license:lppl1.3c+)))
27680
27681(define-public python-latexrestricted
27682 (package
27683 (name "python-latexrestricted")
27684 (version "0.6.2")
27685 (source
27686 (origin
27687 (method url-fetch)
27688 (uri (pypi-uri "latexrestricted" version))
27689 (sha256
27690 (base32 "0q5alxifggf0k9wjkyfyj1l0xyhn3xaiiy6057zq39cp26j227fm"))))
27691 (build-system pyproject-build-system)
27692 (arguments
27693 (list
27694 #:tests? #f ;no test
27695 #:phases
27696 #~(modify-phases %standard-phases
27697 (add-after 'unpack 'fix-paths
27698 (lambda* (#:key inputs #:allow-other-keys)
27699 (let ((pystr (lambda (s) (string-append "'" s "'")))
27700 (kpse (search-input-file inputs "/bin/kpsewhich")))
27701 (substitute* "latexrestricted/_latex_config.py"
27702 ;; `latexminted' relies on SELFAUTOLOC to locate `kpsewhich', but
27703 ;; this variable is bogus in Guix because binaries are scattered
27704 ;; across multiple directories. This phase sets SELFAUTOLOC to
27705 ;; the specific directory containing `kpsewhich'.
27706 (("os\\.getenv\\('SELFAUTOLOC'\\)")
27707 (pystr (dirname kpse)))
27708 ;; Refer to kpse by store path instead of looking it upein $PATH.
27709 (("shutil.which\\('kpse'.*$")
27710 (string-append (pystr kpse) "\n")))))))))
27711 (native-inputs (list python-setuptools python-wheel))
27712 (inputs (list texlive-kpathsea))
27713 (home-page "https://github.com/gpoore/latexrestricted")
27714 (synopsis
27715 "Library for creating executables compatible with LaTeX's shell escape")
27716 (description
27717 "This Python package is designed to simplify the process of creating Python
27718executables compatible with LaTeX restricted shell escape. Restricted shell
27719escape allows LaTeX to run trusted executables as part of compiling documents.
27720These executables have restricted access to the file system and restricted
27721ability to launch subprocesses.")
27722 (license license:lppl1.3+)))
27723
27724(define-public python-pybloom-live
27725 (package
27726 (name "python-pybloom-live")
27727 (version "4.0.0")
27728 (source (origin
27729 (method url-fetch)
27730 (uri (pypi-uri "pybloom_live" version))
27731 (sha256
27732 (base32
27733 "040i6bjqvl33j30v865shsk30s3h7f16pqwiaj5kig857dfmqm4r"))))
27734 (build-system pyproject-build-system)
27735 (propagated-inputs (list python-bitarray python-xxhash))
27736 (native-inputs (list python-pytest python-setuptools python-wheel))
27737 (home-page "https://github.com/joseph-fox/python-bloomfilter")
27738 (synopsis "Bloom filter")
27739 (description "This package provides a scalable Bloom filter implemented in
27740Python.")
27741 (license license:expat)))
27742
27743;; XXX: Not maintained since 2020.
27744(define-public python-pybktree
27745 (package
27746 (name "python-pybktree")
27747 (version "1.1")
27748 (source
27749 (origin
27750 (method url-fetch)
27751 (uri (pypi-uri "pybktree" version))
27752 (sha256
27753 (base32 "0asd2lw9c5l5wi4z24k7gkhlprpdkcvs8d94szk56x9xvmy07h7f"))))
27754 (build-system pyproject-build-system)
27755 (arguments
27756 (list #:tests? #f)) ;no tests provided
27757 (native-inputs (list python-setuptools))
27758 (home-page "https://github.com/Jetsetter/pybktree")
27759 (synopsis "Pythonic BK-tree data structure")
27760 (description
27761 "This package provides a BK-tree data structure to allow fast querying of
27762close matches in Python.")
27763 (license license:expat)))
27764
27765(define-public python-pybtex
27766 (package
27767 (name "python-pybtex")
27768 (version "0.25.0")
27769 (source
27770 (origin
27771 (method git-fetch)
27772 (uri (git-reference
27773 (url "https://codeberg.org/pybtex/pybtex")
27774 (commit version)))
27775 (file-name (git-file-name name version))
27776 (sha256
27777 (base32 "12rixrciizlvdxxja7qm6c02yzyslzd0jcv07niaii1ly0dg1fq4"))))
27778 (build-system pyproject-build-system)
27779 (native-inputs (list python-pytest python-setuptools))
27780 (propagated-inputs (list python-latexcodec python-pyyaml))
27781 (home-page "https://pybtex.org/")
27782 (synopsis "BibTeX-compatible bibliography processor")
27783 (description
27784 "Pybtex is a BibTeX-compatible bibliography processor written in Python.
27785You can simply type pybtex instead of bibtex.")
27786 (license license:expat)))
27787
27788(define-public python-pybtex-apa-style
27789 (package
27790 (name "python-pybtex-apa-style")
27791 (version "1.3")
27792 (source
27793 (origin
27794 (method url-fetch)
27795 (uri (pypi-uri "pybtex-apa-style" version))
27796 (sha256
27797 (base32 "1cmgcpcvs9jcw4yxhiy217hdngp9p9nlp5x6s2qmkwj0iwgd39iq"))))
27798 (build-system pyproject-build-system)
27799 (arguments
27800 (list
27801 #:test-backend #~'custom
27802 #:test-flags
27803 #~(list "-c" (string-append "import sys, pybtex.plugin;"
27804 " sys.exit('apa' not"
27805 " in pybtex.plugin.enumerate_plugin_names"
27806 "('pybtex.style.labels'))"))))
27807 (native-inputs (list python-pybtex python-setuptools))
27808 (home-page "https://github.com/naeka/pybtex-apa-style")
27809 (synopsis "APA style for pybtex")
27810 (description
27811 "This package provides support for the APA style within pybtex.")
27812 (license license:expat)))
27813
27814(define-public python-pybtex-docutils
27815 (package
27816 (name "python-pybtex-docutils")
27817 (version "1.0.3")
27818 (source
27819 (origin
27820 (method git-fetch)
27821 (uri (git-reference
27822 (url "https://github.com/mcmtroffaes/pybtex-docutils")
27823 (commit version)))
27824 (file-name (git-file-name name version))
27825 (sha256
27826 (base32 "0s21ik0ql7qi3cf6v5fdmlwbzidwdqpsswwsh1vihhz066n2ycps"))))
27827 (build-system pyproject-build-system)
27828 (propagated-inputs (list python-docutils python-pybtex))
27829 (native-inputs (list python-setuptools python-pytest))
27830 (home-page "https://github.com/mcmtroffaes/pybtex-docutils")
27831 (synopsis "Docutils backend for pybtex")
27832 (description "The pybtex docutils backend allows bibtex citations to be
27833inserted into documentation generated by docutils.")
27834 (license license:expat)))
27835
27836(define-public python-onetimepass
27837 (package
27838 (name "python-onetimepass")
27839 (version "1.0.1")
27840 (source
27841 (origin
27842 (method git-fetch)
27843 (uri (git-reference
27844 (url "https://github.com/tadeck/onetimepass/")
27845 (commit (string-append "v" version))))
27846 (file-name (git-file-name name version))
27847 (sha256
27848 (base32 "0wmv62l3r8r4428gdzyj80lhgadfqvj220khz1wnm9alyzg60wkh"))))
27849 (build-system pyproject-build-system)
27850 (arguments (list #:tests? #f)) ; Requires unpackaged timecop.
27851 (native-inputs (list python-setuptools))
27852 (propagated-inputs (list python-six))
27853 (home-page "https://github.com/tadeck/onetimepass/")
27854 (synopsis "One-time password library")
27855 (description
27856 "Python one-time password library for HMAC-based (HOTP) and time-based
27857(TOTP) passwords.")
27858 (license license:expat)))
27859
27860(define-public python-online-judge-api-client
27861 (package
27862 (name "python-online-judge-api-client")
27863 (properties '((commit . "615c345f169e2603e0b907287559a4535fc3c6f9")
27864 (revision . "0")))
27865 (version (git-version "10.10.1"
27866 (assoc-ref properties 'revision)
27867 (assoc-ref properties 'commit)))
27868 (source
27869 (origin
27870 (method git-fetch)
27871 (uri (git-reference
27872 (url "https://github.com/online-judge-tools/api-client")
27873 (commit (assoc-ref properties 'commit))))
27874 (file-name (git-file-name name version))
27875 (sha256
27876 (base32 "13m3cxv6bd3igj6649149xb27ljmzqzpli6hpfrywvgbm238hbws"))
27877 (patches
27878 (search-patches "python-online-judge-api-client-tests.patch"))
27879 ))
27880 (build-system pyproject-build-system)
27881 (arguments
27882 (list
27883 #:test-flags
27884 #~(list "--ignore-glob=tests/get_contest_*.py"
27885 "--ignore-glob=tests/get_problem_*.py")
27886 #:phases
27887 #~(modify-phases %standard-phases
27888 (add-before 'check 'configure-tests
27889 (lambda* (#:key inputs outputs #:allow-other-keys)
27890 (delete-file-recursively
27891 (string-append (site-packages inputs outputs)
27892 "/tests"))
27893 (call-with-output-file "pytest.ini"
27894 (lambda (port)
27895 (format port "\
27896[pytest]
27897python_files = tests/*.py"))))))))
27898 (native-inputs (list python-pytest python-setuptools))
27899 (propagated-inputs
27900 (list python-appdirs
27901 python-beautifulsoup4
27902 python-colorlog
27903 python-lxml
27904 python-requests
27905 python-toml
27906 python-jsonschema))
27907 (home-page "https://github.com/online-judge-tools/api-client")
27908 (synopsis "API client for various online judges")
27909 (description
27910 "This is an API client for various online judges, used as the backend
27911library of @code{oj} command. You can use the Python library
27912(@code{onlinejudge} module) and the command-line interface (@command{oj-api}
27913command) which talks JSON compatible with jmerle/competitive-companion.")
27914 (license license:expat)))
27915
27916(define-public online-judge-tools
27917 (package
27918 (name "online-judge-tools")
27919 (version "11.5.1")
27920 ;; Source distributions are not uploaded to PyPI.
27921 ;; https://pypi.org/project/online-judge-tools/11.5.1/#files
27922 (source
27923 (origin
27924 (method git-fetch)
27925 (uri (git-reference
27926 (url "https://github.com/online-judge-tools/oj")
27927 (commit (string-append "v" version))))
27928 (file-name (git-file-name name version))
27929 (sha256
27930 (base32 "0zkzmmjgjb6lyrzq1ip54cpnp7al9a7mcyjyi5vx58bvnx3q0c6m"))
27931 (patches (search-patches "online-judge-tools.patch"))))
27932 (build-system pyproject-build-system)
27933 (arguments
27934 (list
27935 #:test-flags
27936 ;; These tests require network connections
27937 #~(list "--ignore=tests/command_version.py")))
27938 (native-inputs (list python-pytest python-setuptools))
27939 (inputs (list time))
27940 (propagated-inputs (list python-online-judge-api-client python-colorama
27941 python-requests))
27942 (home-page "https://github.com/online-judge-tools/oj")
27943 (synopsis "Command to help solving problems on various online judges")
27944 (description
27945 "@command{oj} is a command line tool to help solving problems on
27946various online judges. This command automates downloading sample
27947cases, generating additional test cases, testing for your code, and
27948submitting it.")
27949 (license license:expat)))
27950
27951(define-public python-mpv-jsonipc
27952 (package
27953 (name "python-mpv-jsonipc")
27954 (version "1.2.0")
27955 (source
27956 (origin
27957 (method url-fetch)
27958 (uri (pypi-uri "python-mpv-jsonipc" version))
27959 (sha256
27960 (base32 "0ymdwrx544a6gn6wm9dixpgzbfrbpxvcj5ys7m41cgb4lvpvx691"))))
27961 (build-system pyproject-build-system)
27962 (arguments (list #:tests? #f)) ;No test suite.
27963 (native-inputs (list python-setuptools python-wheel))
27964 (home-page "https://github.com/iwalton3/python-mpv-jsonipc")
27965 (synopsis "Python API to control MPV using JSON IPC")
27966 (description "Python MPV JSONIPC implements an interface similar to
27967python-mpv, but it uses the JSON IPC protocol instead of the C API.")
27968 (license license:asl2.0)))
27969
27970(define-public python-jellyfin-apiclient
27971 (package
27972 (name "python-jellyfin-apiclient")
27973 (version "1.11.0")
27974 (source
27975 (origin
27976 (method git-fetch)
27977 (uri
27978 (git-reference
27979 (url "https://github.com/jellyfin/jellyfin-apiclient-python.git")
27980 (commit (string-append "v" version))))
27981 (sha256
27982 (base32 "1l30r7s4djvcsnf342af8mvh4c68v9b37j5y47k6cpaj8fj78lac"))))
27983 (build-system pyproject-build-system)
27984 (native-inputs (list python-setuptools python-pytest python-wheel))
27985 (propagated-inputs (list python-certifi python-requests python-urllib3
27986 python-websocket-client))
27987 (home-page "https://github.com/jellyfin/jellyfin-apiclient-python")
27988 (synopsis "Python API client for Jellyfin")
27989 (description "The Jellyfin ApiClient Python package makes it possible
27990to use the Jellyfin API from Python. It was extracted from the Jellyfin
27991Kodi plugin.")
27992 (license license:gpl3+)))
27993
27994(define-public python-parso
27995 (package
27996 (name "python-parso")
27997 (version "0.8.5")
27998 (source
27999 (origin
28000 (method url-fetch)
28001 (uri (pypi-uri "parso" version))
28002 (sha256
28003 (base32 "0npyvabbvdp9ci3vhpg8dsfmxw2hljlb4j1g6p7bs650m5a76k83"))))
28004 (build-system pyproject-build-system)
28005 (native-inputs
28006 (list python-pytest
28007 python-setuptools))
28008 (home-page "https://github.com/davidhalter/parso")
28009 (synopsis "Python Parser")
28010 (description "Parso is a Python parser that supports error recovery and
28011round-trip parsing for different Python versions (in multiple Python versions).
28012Parso is also able to list multiple syntax errors in your Python file.")
28013 (license license:expat)))
28014
28015(define-public python-async-generator
28016 (package
28017 (name "python-async-generator")
28018 (version "1.10")
28019 (source
28020 (origin
28021 (method url-fetch)
28022 (uri (pypi-uri "async_generator" version))
28023 (sha256
28024 (base32
28025 "0i11f6z6lix8ixi3vsk6s76zvvpmgrw6zjrcwjm0m4hjdh83vfvf"))))
28026 (build-system pyproject-build-system)
28027 (native-inputs
28028 (list python-pytest python-setuptools))
28029 (home-page "https://github.com/python-trio/async_generator")
28030 (synopsis "Async generators and context managers for Python 3.5+")
28031 (description "@code{async_generator} back-ports Python 3.6's native async
28032generators and Python 3.7's context managers into Python 3.5.")
28033 ;; Dual licensed.
28034 (license (list license:expat license:asl2.0))))
28035
28036(define-public python-async-timeout
28037 (package
28038 (name "python-async-timeout")
28039 (version "5.0.1")
28040 (source
28041 (origin
28042 (method url-fetch)
28043 (uri (pypi-uri "async_timeout" version))
28044 (sha256
28045 (base32 "1lvparrx5sfnapaq4mwk0ai7kqrwg6h2ykc2gqc5wsjs7mx1lcnr"))))
28046 (build-system pyproject-build-system)
28047 (native-inputs
28048 (list python-pytest
28049 python-pytest-asyncio
28050 python-setuptools
28051 python-wheel))
28052 (home-page "https://github.com/aio-libs/async-timeout")
28053 (synopsis "Timeout context manager for asyncio programs")
28054 (description
28055 "@code{async-timeout} provides a timeout timeout context manager
28056compatible with @code{asyncio}.")
28057 (license license:asl2.0)))
28058
28059(define-public python-async-timeout-4
28060 (package
28061 (inherit python-async-timeout)
28062 (name "python-async-timeout")
28063 (version "4.0.3")
28064 (source
28065 (origin
28066 (method url-fetch)
28067 (uri (pypi-uri "async-timeout" version))
28068 (sha256
28069 (base32 "0bsj4z28ggxh1b6h6dvhx2mk6yqgb88bg8lyslpd10jdx1mxjh26"))))))
28070
28071(define-public python-glob2
28072 (package
28073 (name "python-glob2")
28074 (version "0.7")
28075 (source
28076 (origin
28077 (method git-fetch)
28078 (uri (git-reference
28079 (url "https://github.com/miracle2k/python-glob2")
28080 (commit (string-append "v" version))))
28081 (file-name (git-file-name name version))
28082 (sha256
28083 (base32 "160nh2ay9lw2hi0rixpzb2k87r6ql56k0j2cm87lqz8xc8zbw919"))))
28084 (build-system pyproject-build-system)
28085 (arguments
28086 (list
28087 #:phases
28088 #~(modify-phases %standard-phases
28089 (add-after 'unpack 'patch-tests-for-pytest8
28090 ;; See: <https://github.com/miracle2k/python-glob2/issues/30>.
28091 (lambda _
28092 (substitute* "test.py"
28093 (("setup\\(") "setup_method(")
28094 (("teardown\\(") "teardown_method("))
28095 (rename-file "test.py" "glob2_test.py"))))))
28096 (native-inputs (list python-pytest python-setuptools))
28097 (home-page "https://github.com/miracle2k/python-glob2/")
28098 (synopsis "Extended Version of the python buildin glob module")
28099 (description "This is an extended version of the Python
28100@url{http://docs.python.org/library/glob.html, built-in glob module} which
28101adds:
28102
28103@itemize
28104@item The ability to capture the text matched by glob patterns, and return
28105those matches alongside the file names.
28106@item A recursive @code{**} globbing syntax, akin for example to the
28107@code{globstar} option of Bash.
28108@item The ability to replace the file system functions used, in order to glob
28109on virtual file systems.
28110@item Compatible with Python 2 and Python 3 (tested with 3.3).
28111@end itemize
28112
28113Glob2 currently based on the glob code from Python 3.3.1.")
28114 (license license:bsd-2)))
28115
28116(define-public python-gipc
28117 (package
28118 (name "python-gipc")
28119 (version "1.8.0")
28120 (source
28121 (origin
28122 (method git-fetch)
28123 (uri (git-reference
28124 (url "https://github.com/jgehrcke/gipc")
28125 (commit version)))
28126 (file-name (git-file-name name version))
28127 (sha256
28128 (base32 "18w1fi3gh8i3kl58n6jpixzc2w42znxqhb3lj6hwn1641wq2hyrz"))))
28129 (build-system pyproject-build-system)
28130 (arguments
28131 (list
28132 #:phases
28133 #~(modify-phases %standard-phases
28134 (add-after 'unpack 'adjust-for-pytest-8
28135 (lambda _
28136 (substitute* "test/test_gipc.py"
28137 (("def setup") "def setup_method")
28138 (("def teardown") "def teardown_method")))))))
28139 (native-inputs
28140 (list python-pytest
28141 python-setuptools))
28142 (propagated-inputs
28143 (list python-gevent))
28144 (home-page "https://gehrcke.de/gipc/")
28145 (synopsis "Child process management in the context of gevent")
28146 (description
28147 "Usage of Python's multiprocessing package in a gevent-powered
28148application may raise problems. With @code{gipc}, process-based child
28149processes can safely be created anywhere within a gevent-powered
28150application.")
28151 (license license:expat)))
28152
28153(define-public python-beautifultable
28154 (package
28155 (name "python-beautifultable")
28156 (version "1.1.0")
28157 (source
28158 (origin
28159 (method git-fetch)
28160 (uri (git-reference
28161 (url "https://github.com/pri22296/beautifultable")
28162 (commit (string-append "v" version))))
28163 (file-name (git-file-name name version))
28164 (sha256
28165 (base32 "0b6c7dpc45sm3vn65qm00q20sdgpi78xxzwc0rij7hnj9c45w97x"))))
28166 (build-system pyproject-build-system)
28167 (arguments
28168 (list
28169 ;; Fails because a None is converted to nan, probably due to Pandas 3.
28170 #:test-flags
28171 #~(list "-k" "not test_df_export_scenario2" "test.py")))
28172 (native-inputs (list python-pandas
28173 python-pytest
28174 python-setuptools))
28175 (propagated-inputs (list python-wcwidth))
28176 (home-page "https://github.com/pri22296/beautifultable")
28177 (synopsis "Print ASCII tables for terminals")
28178 (description
28179 "@code{python-beautifultable} provides a class for easily printing
28180tabular data in a visually appealing ASCII format to a terminal.
28181
28182Features include, but are not limited to:
28183@itemize
28184@item Full customization of the look and feel of the table
28185@item Row and column accessors.
28186@item Full support for colors using ANSI sequences or any library.
28187@item Plenty of predefined styles and option to create custom ones.
28188@item Support for Unicode characters.
28189@item Supports streaming table when data is slow to retrieve.
28190@end itemize")
28191 (license license:expat)))
28192
28193(define-public python-globber
28194 (package
28195 (name "python-globber")
28196 (version "0.2.1")
28197 (source
28198 (origin
28199 (method git-fetch)
28200 (uri (git-reference
28201 (url "https://github.com/asharov/globber")
28202 (commit version)))
28203 (file-name (git-file-name name version))
28204 (sha256
28205 (base32 "055xf7ja7zjhxis0ab5fnfsx16fsvr5fvc6mixqybanwxh8sgfjk"))))
28206 (build-system pyproject-build-system)
28207 (native-inputs (list python-pytest python-setuptools))
28208 (home-page "https://github.com/asharov/globber")
28209 (synopsis "Library for string matching with glob patterns")
28210 (description
28211 "Globber is a Python library for matching file names against glob patterns.
28212In contrast to other glob-matching libraries, it matches arbitrary strings and
28213doesn't require the matched names to be existing files. In addition, it
28214supports the globstar @code{**} operator to match an arbitrary number of
28215path components.")
28216 (license license:asl2.0)))
28217
28218;; XXX: Not maintained since 2021.
28219(define-public python-git-hammer
28220 (package
28221 (name "python-git-hammer")
28222 (version "0.3.2")
28223 (source
28224 (origin
28225 (method git-fetch)
28226 (uri (git-reference
28227 (url "https://github.com/asharov/git-hammer")
28228 (commit version)))
28229 (file-name (git-file-name name version))
28230 (sha256
28231 (base32 "0j0skpbhi7js45hp1w2n87093yz1hjdg5y3kicwvm84fb8i38gvx"))))
28232 (build-system pyproject-build-system)
28233 (arguments
28234 (list
28235 #:phases
28236 #~(modify-phases %standard-phases
28237 (add-after 'unpack 'relax-requirements
28238 (lambda _
28239 (substitute* "setup.py"
28240 (("matplotlib <3.1") "matplotlib")))))))
28241 (native-inputs
28242 (list python-pytest
28243 python-setuptools))
28244 (propagated-inputs
28245 (list python-beautifultable
28246 python-dateutil
28247 python-gitpython
28248 python-globber
28249 python-matplotlib
28250 python-sqlalchemy
28251 python-sqlalchemy-utils))
28252 (home-page "https://github.com/asharov/git-hammer")
28253 (synopsis "Provide statistics for git repositories")
28254 (description
28255 "Git Hammer is a statistics tool for projects in git repositories. Its major
28256feature is tracking the number of lines authored by each person for every
28257commit, but it also includes some other useful statistics.")
28258 (license license:asl2.0)))
28259
28260(define-public python-gitignore-parser
28261 (package
28262 (name "python-gitignore-parser")
28263 (version "0.1.13")
28264 (source
28265 (origin
28266 (method git-fetch)
28267 (uri (git-reference
28268 (url "https://github.com/mherrmann/gitignore_parser")
28269 (commit (string-append "v" version))))
28270 (file-name (git-file-name name version))
28271 (sha256
28272 (base32 "0lx1lip9p70my7z77szxc6izg3dj3000r6z71f2bnx2z13rl5pld"))))
28273 (build-system pyproject-build-system)
28274 (arguments (list #:test-backend #~'unittest))
28275 (native-inputs (list python-setuptools))
28276 (home-page "https://github.com/mherrmann/gitignore_parser")
28277 (synopsis "Spec-compliant gitignore parser for Python")
28278 (description
28279 "This package provides a spec-compliant gitignore parser for Python.")
28280 (license license:expat)))
28281
28282(define-public python-fusepy
28283 (package
28284 (name "python-fusepy")
28285 (version "2.0.4")
28286 (source
28287 (origin
28288 (method git-fetch)
28289 (uri (git-reference
28290 (url "https://github.com/fusepy/fusepy")
28291 (commit (string-append "v" version))))
28292 (file-name (git-file-name name version))
28293 (sha256
28294 (base32 "10smh49lzmqam6ddxcnp1dajy4s9hi5ri3qp1rhwdyfsaq3pay81"))))
28295 (build-system pyproject-build-system)
28296 (arguments
28297 (list
28298 #:tests? #f ; No formalized tests.
28299 #:phases
28300 #~(modify-phases %standard-phases
28301 (add-before 'build 'set-library-file-name
28302 (lambda* (#:key inputs #:allow-other-keys)
28303 (substitute* "fuse.py"
28304 (("find_library\\('fuse'\\)")
28305 (format #f "~s"
28306 (search-input-file inputs "lib/libfuse.so")))))))))
28307 (native-inputs (list python-setuptools))
28308 (propagated-inputs (list fuse-2))
28309 (home-page "https://github.com/fusepy/fusepy")
28310 (synopsis "Simple ctypes bindings for FUSE")
28311 (description
28312 "Python module that provides a simple interface to FUSE and MacFUSE. The
28313binding is created using the standard @code{ctypes} library.")
28314 (license license:isc)))
28315
28316(define-public pybind11
28317 (package
28318 (name "pybind11")
28319 (version "3.0.4")
28320 (source (origin
28321 (method git-fetch)
28322 (uri (git-reference
28323 (url "https://github.com/pybind/pybind11")
28324 (commit (string-append "v" version))))
28325 (sha256
28326 (base32
28327 "1ad9215jz078al84h43f6fhwg80d7sjdc72r8hi3n419x8hag4j1"))
28328 (file-name (git-file-name name version))))
28329 (build-system cmake-build-system)
28330 (arguments
28331 (list
28332 ;; TODO: Rewrite package definition with pyproject, I had issues to
28333 ;; enable tests and install includes, see the discussion in
28334 ;; guix/guix!4696 where it was initially proposed.
28335 #:configure-flags
28336 #~(list "-DPYBIND11_NOPYTHON=OFF"
28337 "-DPYBIND11_PYTEST_ARGS=-v"
28338 "-DPYBIND11_TEST_SMART_HOLDER=ON")
28339 #:phases
28340 #~(modify-phases %standard-phases
28341 (add-after 'install 'build-python-library
28342 (lambda _
28343 (with-directory-excursion "../source"
28344 (setenv "PYBIND11_USE_CMAKE" "yes")
28345 (invoke "pip" "install" "--no-deps" "--no-build-isolation"
28346 "--prefix" #$output "."))))
28347 (replace 'check
28348 (lambda* (#:key tests? #:allow-other-keys)
28349 (when tests?
28350 ;; Steps are taken from <.github/workflows/ci.yml>.
28351 (invoke "cmake" "--build" "."
28352 "--target" "pytest")
28353 (invoke "cmake" "--build" "."
28354 "--target" "cpptest")
28355 (invoke "cmake" "--build" "."
28356 "--target" "test_cmake_build")
28357 (invoke "cmake" "--build" "."
28358 "--target" "test_cross_module_rtti")))))))
28359 (inputs (list boost))
28360 (native-inputs
28361 (list catch2-2
28362 eigen
28363 python-pytest
28364 python-wrapper
28365 python-scikit-build-core-bootstrap))
28366 (home-page "https://github.com/pybind/pybind11/")
28367 (synopsis "Seamless operability between C++11 and Python")
28368 (description
28369 "@code{pybind11} is a lightweight header-only library that exposes C++
28370types in Python and vice versa, mainly to create Python bindings of existing
28371C++ code. Its goals and syntax are similar to the @code{Boost.Python}
28372library: to minimize boilerplate code in traditional extension modules by
28373inferring type information using compile-time introspection.")
28374 (license license:bsd-3)))
28375
28376(define-public pybind11-2
28377 (package
28378 (inherit pybind11)
28379 (name "pybind11")
28380 (version "2.13.6")
28381 (source
28382 (origin
28383 (method git-fetch)
28384 (uri (git-reference
28385 (url "https://github.com/pybind/pybind11")
28386 (commit (string-append "v" version))))
28387 (file-name (git-file-name name version))
28388 (sha256
28389 (base32 "1dbnki0pnky39kr04afd9ks597bzjc530zbk33jjss53nfvdvlj8"))))
28390 (build-system cmake-build-system)
28391 (arguments
28392 (list
28393 #:configure-flags
28394 #~(list (string-append "-DCATCH_INCLUDE_DIR="
28395 (assoc-ref %build-inputs "catch2")
28396 "/include/catch"))
28397 #:modules '((guix build cmake-build-system)
28398 ((guix build gnu-build-system) #:prefix gnu:)
28399 (guix build utils))
28400 #:phases
28401 #~(modify-phases %standard-phases
28402 (replace 'check
28403 (lambda args
28404 (apply (assoc-ref gnu:%standard-phases 'check) args)))
28405 (add-after 'install 'install-python
28406 (lambda _
28407 (with-directory-excursion "../source"
28408 (setenv "PYBIND11_USE_CMAKE" "yes")
28409 (invoke "python" "setup.py" "install"
28410 "--single-version-externally-managed"
28411 "--root=/"
28412 (string-append "--prefix=" #$output))))))))
28413 (native-inputs
28414 (list catch2-1
28415 eigen
28416 python-pytest
28417 python-setuptools
28418 python-wrapper))
28419 (inputs '())))
28420
28421(define-public python-pooch
28422 (package
28423 (name "python-pooch")
28424 (version "1.9.0")
28425 (source
28426 (origin
28427 (method git-fetch)
28428 (uri (git-reference
28429 (url "https://github.com/fatiando/pooch")
28430 (commit (string-append "v" version))))
28431 (file-name (git-file-name name version))
28432 (sha256
28433 (base32 "0k8s9npjym80wpac77fvf1vnx5qm5c2pr7x39j8hh0cglfxmgii8"))))
28434 (build-system pyproject-build-system)
28435 (arguments
28436 (list
28437 #:test-flags #~(list "-m" "not network")))
28438 (native-inputs
28439 (list python-pytest
28440 python-pytest-httpserver
28441 python-pytest-localftpserver
28442 python-setuptools
28443 python-setuptools-scm))
28444 (propagated-inputs
28445 (list python-packaging
28446 python-platformdirs
28447 python-requests))
28448 (home-page "https://github.com/fatiando/pooch")
28449 (synopsis "Manage your Python library's sample data files")
28450 (description
28451 "Pooch manages your Python library's sample data files: it automatically
28452downloads and stores them in a local directory, with support for versioning
28453and corruption checks.")
28454 (license license:bsd-3)))
28455
28456(define-public python-fasteners
28457 (package
28458 (name "python-fasteners")
28459 (version "0.20")
28460 (source (origin
28461 ;; No tests in the pypi tarball
28462 (method git-fetch)
28463 (uri (git-reference
28464 (url "https://github.com/harlowja/fasteners")
28465 (commit version)))
28466 (file-name (git-file-name name version))
28467 (sha256
28468 (base32
28469 "0zf28x5n3svkxan97r89331s7dy0prix7111m0hf3mx5gk3nbj47"))))
28470 (build-system pyproject-build-system)
28471 (native-inputs (list python-diskcache python-eventlet python-more-itertools
28472 python-setuptools python-pytest))
28473 (home-page "https://github.com/harlowja/fasteners")
28474 (synopsis "Python package that provides useful locks")
28475 (description
28476 "This package provides a Python program that provides following locks:
28477
28478@itemize
28479@item Locking decorator
28480@item Reader-writer locks
28481@item Inter-process locks
28482@item Generic helpers
28483@end itemize\n")
28484 (license license:asl2.0)))
28485
28486(define-public python-requests-file
28487 (package
28488 (name "python-requests-file")
28489 (version "3.0.1")
28490 (source
28491 (origin
28492 (method git-fetch)
28493 (uri (git-reference
28494 (url "https://codeberg.org/dashea/requests-file")
28495 (commit version)))
28496 (file-name (git-file-name name version))
28497 (sha256
28498 (base32 "0wvz2fkx01libz731a9pfx0l5p44cd33ba8gs7kw5dksfzfwvark"))))
28499 (build-system pyproject-build-system)
28500 (native-inputs (list python-pytest python-setuptools))
28501 (propagated-inputs (list python-requests))
28502 (home-page "https://codeberg.org/dashea/requests-file")
28503 (synopsis "File transport adapter for Requests")
28504 (description
28505 "Requests-File is a transport adapter for use with the Requests Python
28506library to allow local file system access via @code{file://} URLs.")
28507 (license license:asl2.0)))
28508
28509(define-public python-identify
28510 (package
28511 (name "python-identify")
28512 (version "2.6.14")
28513 (source
28514 (origin
28515 ;; There are no tests in the PyPI tarball.
28516 (method git-fetch)
28517 (uri (git-reference
28518 (url "https://github.com/chriskuehl/identify")
28519 (commit (string-append "v" version))))
28520 (file-name (git-file-name name version))
28521 (sha256
28522 (base32 "1fbl7wvhky4rlv37p0531xnl037lq58d8wsxgyylj371bfz3m3wp"))))
28523 (build-system pyproject-build-system)
28524 (native-inputs
28525 (list python-pytest
28526 python-setuptools
28527 python-ukkonen))
28528 (home-page "https://github.com/chriskuehl/identify")
28529 (synopsis "File identification library for Python")
28530 (description
28531 "@code{identify} is a file identification library for Python. Given
28532a file (or some information about a file), return a set of standardized tags
28533identifying what the file is.")
28534 (license license:expat)))
28535
28536(define-public python-nodeenv
28537 (package
28538 (name "python-nodeenv")
28539 (version "1.8.0")
28540 (source
28541 (origin
28542 ;; There's no tarball in PyPI.
28543 (method git-fetch)
28544 (uri (git-reference
28545 (url "https://github.com/ekalinin/nodeenv")
28546 (commit version)))
28547 (file-name (git-file-name name version))
28548 (sha256
28549 (base32 "0g8zp8zw5nnfc14ml0sil9yh7lnpz3xrdkazdkwg6pf5jqsxlvv9"))))
28550 (build-system pyproject-build-system)
28551 (arguments
28552 (list #:test-flags
28553 #~(list "-k" (string-append
28554 "not test_smoke"
28555 " and not test_smoke_n_system_special_chars"))))
28556 (native-inputs
28557 (list python-mock
28558 python-pytest
28559 python-setuptools
28560 python-wheel))
28561 (home-page "https://ekalinin.github.io/nodeenv/")
28562 (synopsis "Create isolated node.js environments")
28563 (description
28564 "Nodeenv (node.js virtual environment) is a tool to create isolated
28565node.js environments. It creates an environment that has its own installation
28566directories, that doesn't share libraries with other node.js virtual
28567environments.")
28568 (license license:bsd-3)))
28569
28570(define-public python-pynamecheap
28571 (package
28572 (name "python-pynamecheap")
28573 (version "0.0.3")
28574 (source
28575 (origin
28576 (method url-fetch)
28577 (uri (pypi-uri "PyNamecheap" version))
28578 (sha256
28579 (base32 "0wkbwz208j8nfrsmzmclvxg22ymknn0mlz76wbdza9k2bx2zja6l"))))
28580 (build-system pyproject-build-system)
28581 (arguments (list #:tests? #f)) ; No tests.
28582 (native-inputs (list python-setuptools))
28583 (propagated-inputs (list python-requests))
28584 (home-page "https://github.com/Bemmu/PyNamecheap")
28585 (synopsis "Namecheap API client in Python")
28586 (description
28587 "PyNamecheap is a Namecheap API client in Python.")
28588 (license license:expat)))
28589
28590(define-public python-pynput
28591 (package
28592 (name "python-pynput")
28593 (version "1.8.1")
28594 (source
28595 (origin
28596 (method git-fetch)
28597 (uri (git-reference
28598 (url "https://github.com/moses-palmer/pynput")
28599 (commit (string-append "v" version))))
28600 (file-name (git-file-name name version))
28601 (sha256
28602 (base32 "00lnram5rm0amp5c1cjsw476bzi59g9m3l76ra29mp4jnz519sdc"))))
28603 (build-system pyproject-build-system)
28604 (arguments
28605 (list
28606 #:tests? #f ;XXX: tests can't be found with pytest or unittest
28607 #:phases
28608 #~(modify-phases %standard-phases
28609 (add-after 'unpack 'relax-requirements
28610 (lambda _
28611 (substitute* "setup.py"
28612 (("RUNTIME_PACKAGES \\+ SETUP_PACKAGES")
28613 "RUNTIME_PACKAGES"))))
28614 (add-before 'sanity-check 'start-xserver
28615 (lambda* (#:key inputs #:allow-other-keys)
28616 (let ((Xvfb (search-input-file inputs "/bin/Xvfb")))
28617 (system (format #f "~a :1 -screen 0 640x480x24 &"
28618 Xvfb))
28619 (setenv "DISPLAY" ":1")))))))
28620 (propagated-inputs
28621 (list python-evdev python-xlib))
28622 (native-inputs
28623 (list python-setuptools xorg-server-for-tests))
28624 (home-page "https://github.com/moses-palmer/pynput")
28625 (synopsis "Send virtual input commands")
28626 (description
28627 "This package provides tools to monitor and control user input devices in
28628Python.")
28629 (license license:lgpl3)))
28630
28631(define-public python-pynixutil
28632 (package
28633 (name "python-pynixutil")
28634 (version "0.5.0")
28635 (source
28636 (origin
28637 (method git-fetch)
28638 (uri (git-reference
28639 (url "https://github.com/nix-community/pynixutil")
28640 (commit version)))
28641 (file-name (git-file-name name version))
28642 (sha256
28643 (base32 "1lnspcai7mqpv73bbd8kgyw63fxwgkwvfkl09b2bl5y2g2v7np6m"))))
28644 (build-system pyproject-build-system)
28645 (arguments
28646 (list
28647 #:test-flags
28648 ;; Tests require nix in the PATH.
28649 #~(list "--ignore=tests/test_drv.py")
28650 #:phases
28651 #~(modify-phases %standard-phases
28652 (add-after 'unpack 'use-poetry-core
28653 (lambda _
28654 ;; Patch to use the core poetry API.
28655 (substitute* "pyproject.toml"
28656 (("poetry.masonry.api") "poetry.core.masonry.api")))))))
28657 (native-inputs
28658 (list python-poetry-core
28659 python-pytest))
28660 (home-page "https://github.com/nix-community/pynixutil")
28661 (synopsis "Utility functions for working with data from Nix in Python")
28662 (description
28663 "@code{pynixutil} provides functions for base32 encoding/decoding and
28664derivation parsing, namingly @code{b32decode()}, @code{b32encode()} and
28665@code{drvparse()}.")
28666 (license license:expat)))
28667
28668(define-public python-dns-lexicon
28669 (package
28670 (name "python-dns-lexicon")
28671 (version "3.21.1")
28672 (source
28673 (origin
28674 (method git-fetch)
28675 (uri (git-reference
28676 (url "https://github.com/dns-lexicon/dns-lexicon")
28677 (commit (string-append "v" version))))
28678 (file-name (git-file-name name version))
28679 (sha256
28680 (base32 "138j8nrkrisn7kh5rqi2wz130p6vr4bkaw1pmbfpjkdjk118ng8c"))))
28681 (build-system pyproject-build-system)
28682 (arguments
28683 (list
28684 ;; Integration tests require network access.
28685 #:test-flags #~(list "--ignore-glob=tests/providers/*.py")
28686 #:phases
28687 #~(modify-phases %standard-phases
28688 (add-before 'check 'configure-tests
28689 (lambda _
28690 (setenv "HOME" (getcwd)))))))
28691 (native-inputs (list nss-certs-for-test python-hatchling python-pytest))
28692 (propagated-inputs
28693 (list python-beautifulsoup4
28694 python-cryptography
28695 python-dnspython
28696 python-pyotp
28697 python-pyyaml
28698 python-requests
28699 python-tldextract))
28700 (home-page "https://github.com/dns-lexicon/dns-lexicon")
28701 (synopsis "Manipulate DNS records on various DNS providers")
28702 (description
28703 "Lexicon provides a way to manipulate DNS records on multiple DNS
28704providers in a standardized way. It has a CLI but it can also be used as a
28705Python library. It was designed to be used in automation, specifically with
28706Let's Encrypt.")
28707 (license license:expat)))
28708
28709(define-public python-cfgv
28710 (package
28711 (name "python-cfgv")
28712 (version "3.4.0")
28713 (source
28714 (origin
28715 ;; There are no tests in the PyPI tarball.
28716 (method git-fetch)
28717 (uri (git-reference
28718 (url "https://github.com/asottile/cfgv")
28719 (commit (string-append "v" version))))
28720 (file-name (git-file-name name version))
28721 (sha256
28722 (base32 "0g7jg6dssyax6k85lk8afs8qdzgq138g6ij0jmmhgdv5fzks6k9z"))))
28723 (build-system pyproject-build-system)
28724 (native-inputs
28725 (list python-pytest python-setuptools python-wheel))
28726 (home-page "https://github.com/asottile/cfgv")
28727 (synopsis "Configuration validation library")
28728 (description
28729 "This library helps to validate configuration files and produce human
28730readable error messages.")
28731 (license license:expat)))
28732
28733(define-public python-commandlines
28734 (package
28735 (name "python-commandlines")
28736 (version "0.4.1")
28737 (source
28738 (origin
28739 (method git-fetch)
28740 (uri (git-reference
28741 (url "https://github.com/chrissimpkins/commandlines")
28742 (commit (string-append "v" version))))
28743 (file-name (git-file-name name version))
28744 (sha256
28745 (base32 "03mxsknqbiwdl4cydnmr3dbid5rh1y1pwfcnbf6k4sf0wiw98y67"))))
28746 (build-system pyproject-build-system)
28747 (native-inputs (list python-pytest python-setuptools))
28748 (home-page "https://github.com/chrissimpkins/commandlines")
28749 (synopsis "Command line argument to object parsing library")
28750 (description
28751 "@code{Commandlines} is a Python library for command line application
28752development that supports command line argument parsing, command string
28753validation testing and application logic.")
28754 (license license:expat)))
28755
28756;; Make sure to upgrade python-llvmlite in (gnu packages llvm) together with
28757;; python-numba. They have a very inflexible relationship.
28758(define-public python-numba
28759 (package
28760 (name "python-numba")
28761 (version "0.66.0")
28762 (source
28763 (origin
28764 (method url-fetch)
28765 (uri (pypi-uri "numba" version))
28766 (sha256
28767 (base32
28768 "0qyk70nfvhxqxm1vz1qq072n9jvpl6hab8ymlslmxh161qxfc05r"))))
28769 (build-system pyproject-build-system)
28770 (arguments
28771 (list
28772 ;; tests: 10743 tests (skipped=699, expected failures=23)
28773 #:test-backend #~'custom
28774 #:test-flags
28775 ;; Check <buildscripts> directory for more build/tests examples.
28776 #~(list "-m" "numba.runtests"
28777 "--exclude-tags='long_running'"
28778 "--multiprocess" (number->string (min 8 (parallel-job-count)))
28779 "-b"
28780 "-v"
28781 "--"
28782 "numba.tests")
28783 #:phases
28784 #~(modify-phases %standard-phases
28785 (add-after 'unpack 'disable-failing-tests
28786 (lambda _
28787 ;; This expects to be able to run pip.
28788 (delete-file "numba/tests/test_sysinfo.py")
28789 ;; This fails nondeterministically, possibly depending on CPU.
28790 ;; https://github.com/numba/numba/issues/8282.
28791 (substitute* "numba/tests/test_function_type.py"
28792 (("def test_wrapper_address_protocol_libm")
28793 "def disabled_test_wrapper_address_protocol_libm"))
28794 (substitute* "numba/tests/test_caching.py"
28795 ;; RuntimeError: cannot cache function 'simple_usecase': no
28796 ;; locator available for file
28797 (("def test_non_creatable_pycache")
28798 "def __off_test_non_creatable_pycache")
28799 (("def test_non_writable_pycache")
28800 "def __off_test_non_writable_pycache")
28801 ;; AssertionError: None is not an instance of <class
28802 ;; 'numba.core.caching.UserWideCacheLocator'>
28803 (("def test_frozen")
28804 "def __off_test_frozen"))))
28805 (add-before 'build 'disable-proprietary-features
28806 (lambda _
28807 (setenv "NUMBA_DISABLE_HSA" "1")
28808 (setenv "NUMBA_DISABLE_CUDA" "1")))
28809 (add-before 'check 'pre-check
28810 (lambda _
28811 (setenv "HOME" "/tmp")
28812 ;; XXX: Something is wrong with the PYTHONPATH when running the
28813 ;; tests from the build directory, as it complains about not
28814 ;; being able to import certain modules.
28815 (delete-file-recursively "numba"))))))
28816 (native-inputs
28817 (list python-setuptools))
28818 (propagated-inputs
28819 (list python-llvmlite
28820 python-numpy))
28821 (home-page "https://numba.pydata.org")
28822 (synopsis "Compile Python code using LLVM")
28823 (description "Numba gives you the power to speed up your applications with
28824high performance functions written directly in Python. With a few
28825annotations, array-oriented and math-heavy Python code can be just-in-time
28826compiled to native machine instructions, similar in performance to C, C++ and
28827Fortran, without having to switch languages or Python interpreters.
28828
28829Numba works by generating optimized machine code using the LLVM compiler
28830infrastructure at import time, runtime, or statically (using the included pycc
28831tool).")
28832 (license license:bsd-3)))
28833
28834(define-public python-numcodecs
28835 (package
28836 (name "python-numcodecs")
28837 (version "0.15.1") ;newer version needs c-blosc 1.26+
28838 (source
28839 (origin
28840 (method git-fetch)
28841 (uri (git-reference
28842 (url "https://github.com/zarr-developers/numcodecs")
28843 (commit (string-append "v" version))))
28844 (file-name (git-file-name name version))
28845 (sha256
28846 (base32 "19i30k4zn6rjqlrfk20yh75r1di3j7mli2mn9n3pyxmwaq7hiasz"))
28847 (modules '((guix build utils)))
28848 (snippet
28849 '(begin
28850 ;; Only add CFLAGS on architectures where they are supported
28851 (substitute* "setup.py"
28852 (("import sys")
28853 "import sys\nimport platform")
28854 (("os\\.name == 'posix'")
28855 (string-append "os.name + platform.machine() == 'posixx86_64' or"
28856 " os.name + platform.machine() == 'posixx86'")))
28857 (delete-file-recursively "c-blosc")))))
28858 (build-system pyproject-build-system)
28859 (arguments
28860 (list
28861 ;; tests: 714 passed, 39 skipped, 36 xfailed, 20 warnings
28862 #:phases
28863 #~(modify-phases %standard-phases
28864 (add-after 'unpack 'disable-avx2
28865 (lambda _
28866 (setenv "DISABLE_NUMCODECS_AVX2" "1")))
28867 (add-after 'unpack 'unbundle
28868 (lambda _
28869 (substitute* "setup.py"
28870 (("sources=sources \\+ blosc_sources,")
28871 "sources=sources,")
28872 (("extra_compile_args=extra_compile_args")
28873 "extra_compile_args=list(base_compile_args)")
28874 (("'numcodecs.zstd',")
28875 "'numcodecs.zstd', libraries=['zstd'], ")
28876 (("'numcodecs.lz4',")
28877 "'numcodecs.lz4', libraries=['lz4'], ")
28878 (("'numcodecs.blosc',")
28879 "'numcodecs.blosc', libraries=['blosc'], "))))
28880 (add-before 'build 'substitute-git-submodules
28881 (lambda _
28882 (symlink #$(package-source (this-package-input "c-blosc"))
28883 "c-blosc")))
28884 (replace 'check
28885 (lambda* (#:key tests? test-flags #:allow-other-keys)
28886 (with-directory-excursion #$output
28887 (apply invoke "pytest" "-vv" test-flags)
28888 (delete-file-recursively ".pytest_cache")))))))
28889 (native-inputs
28890 (list python-cython
28891 python-py-cpuinfo
28892 python-pytest
28893 python-setuptools
28894 python-setuptools-scm))
28895 (inputs
28896 (list c-blosc
28897 lz4
28898 zlib
28899 (list zstd "lib")))
28900 (propagated-inputs
28901 (list python-deprecated
28902 python-numpy
28903 ;; [optional]
28904 python-msgpack))
28905 (home-page "https://github.com/zarr-developers/numcodecs")
28906 (synopsis "Buffer compression and transformation codecs")
28907 (description
28908 "This Python package provides buffer compression and transformation
28909codecs for use in data storage and communication applications.")
28910 (license license:expat)))
28911
28912(define-public python-asciitree
28913 (package
28914 (name "python-asciitree")
28915 (version "0.3.3")
28916 (source
28917 (origin
28918 (method git-fetch)
28919 (uri (git-reference
28920 (url "https://github.com/mbr/asciitree")
28921 (commit version)))
28922 (file-name (git-file-name name version))
28923 (sha256
28924 (base32 "071wlpyi8pa262sj9xdy0zbj163z84dasxad363z3sfndqxw78h1"))))
28925 (build-system pyproject-build-system)
28926 (native-inputs (list python-pytest python-setuptools))
28927 (home-page "https://github.com/mbr/asciitree")
28928 (synopsis "Draws ASCII trees")
28929 (description "This package draws tree structures using characters.")
28930 (license license:expat)))
28931
28932(define-public python-dill
28933 (package
28934 (name "python-dill")
28935 (version "0.4.1")
28936 (source
28937 (origin
28938 (method git-fetch)
28939 (uri (git-reference
28940 (url "https://github.com/uqfoundation/dill")
28941 (commit version)))
28942 (file-name (git-file-name name version))
28943 (sha256
28944 (base32 "09ig6820sd68cjixl5vkwkwvvgdii8qhaikc1rxhabhwxfymc7v2"))))
28945 (build-system pyproject-build-system)
28946 (arguments
28947 (list #:test-backend #~'custom
28948 #:test-flags #~(list "dill/tests/__main__.py")))
28949 (native-inputs
28950 (list python-setuptools))
28951 (home-page "http://dill.rtfd.io/")
28952 (synopsis "Serialize all of Python")
28953 (description "Dill extends Python's @code{pickle} module for serializing
28954and de-serializing Python objects to the majority of the built-in Python
28955types. Dill provides the user the same interface as the @code{pickle} module,
28956and also includes some additional features. In addition to pickling Python
28957objects, @code{dill} provides the ability to save the state of an interpreter
28958session in a single command. Hence, it would be feasible to save a
28959interpreter session, close the interpreter, ship the pickled file to another
28960computer, open a new interpreter, unpickle the session and thus continue from
28961the saved state of the original interpreter session.")
28962 (license license:bsd-3)))
28963
28964(define-public python-multiprocess
28965 (package
28966 (name "python-multiprocess")
28967 (version "0.70.18")
28968 (source
28969 (origin
28970 (method url-fetch)
28971 (uri (pypi-uri "multiprocess" version))
28972 (sha256
28973 (base32
28974 "03bdxiincqq3g66vl3sf5ygagjz5sbrpr83djlipprmkwql72ngr"))))
28975 (build-system pyproject-build-system)
28976 (arguments
28977 (list
28978 #:phases
28979 #~(modify-phases %standard-phases
28980 (add-after 'unpack 'disable-broken-tests
28981 (lambda* (#:key inputs #:allow-other-keys)
28982 ;; The "wait_result" and "shared_memory..." tests are broken as
28983 ;; there is no keyboard interrupt.
28984 ;;
28985 ;; The "preload_resources" test fails as it cannot find
28986 ;; mp_preload.py.
28987 (substitute*
28988 (string-append "py" (python-version
28989 (assoc-ref inputs "python"))
28990 "/multiprocess/tests/__init__.py")
28991 (("^(.*)def test_(\
28992wait_result|\
28993shared_memory_SharedMemoryServer_ignores_sigint|\
28994preload_resources\
28995)" line indent)
28996 (string-append indent
28997 "@unittest.skip(\"Disabled by Guix\")\n"
28998 line)))))
28999 (replace 'check
29000 (lambda* (#:key tests? #:allow-other-keys)
29001 (if tests?
29002 (invoke "python" "-m" "multiprocess.tests")
29003 (format #t "test suite not run~%")))))))
29004 (propagated-inputs
29005 (list python-dill))
29006 (native-inputs (list python-setuptools))
29007 (home-page "https://pypi.org/project/multiprocess/")
29008 (synopsis "Multiprocessing and multithreading in Python")
29009 (description
29010 "This package is a fork of the multiprocessing Python package, a package
29011which supports the spawning of processes using the API of the standard
29012library's @code{threading} module.")
29013 (license license:bsd-3)))
29014
29015(define-public python-multiprocessing-on-dill
29016 (package
29017 (name "python-multiprocessing-on-dill")
29018 (version "3.5.0a4")
29019 (source (origin
29020 (method url-fetch)
29021 (uri (pypi-uri "multiprocessing_on_dill" version))
29022 (sha256
29023 (base32
29024 "1rs5a3hx1fcpfsxxkl5kx6g06c82wqjqgdqyny5l1ggl1wq0rmfn"))))
29025 (build-system pyproject-build-system)
29026 (propagated-inputs (list python-dill))
29027 (native-inputs (list python-pytest python-setuptools python-wheel))
29028 (home-page "https://github.com/sixty-north/multiprocessing_on_dill")
29029 (synopsis "Multiprocessing using dill instead of pickle")
29030 (description
29031 "This package provides a friendly fork of multiprocessing which uses dill
29032instead of pickle.")
29033 (license license:psfl)))
29034
29035(define-public python-cytoolz
29036 (package
29037 (name "python-cytoolz")
29038 (version "1.0.1")
29039 (source
29040 (origin
29041 (method url-fetch)
29042 (uri (pypi-uri "cytoolz" version))
29043 (sha256
29044 (base32 "1mn7n916w8dfij3zq139a4szv12rwp94xxrnfvnv66wyp1hk3k49"))
29045 (modules '((guix build utils)))
29046 (snippet
29047 '(for-each delete-file (find-files "cytoolz" "\\.c$")))))
29048 (build-system pyproject-build-system)
29049 (arguments
29050 (list #:test-flags #~(list "--pyargs" "cytoolz")))
29051 (native-inputs
29052 (list python-cython
29053 python-pytest
29054 python-setuptools
29055 python-wheel))
29056 (propagated-inputs
29057 (list python-toolz))
29058 (home-page "https://github.com/pytoolz/cytoolz")
29059 (synopsis "High performance functional utilities")
29060 (description
29061 "The cytoolz package implements the same API as provided by toolz. The
29062main differences are that @code{cytoolz} is faster and cytoolz offers a C API
29063that is accessible to other projects developed in Cython.")
29064 (license license:bsd-3)))
29065
29066(define-public python-cloudpickle
29067 (package
29068 (name "python-cloudpickle")
29069 (version "3.1.0")
29070 (source
29071 (origin
29072 ;; Archive on pypi does not include test infrastructure.
29073 (method git-fetch)
29074 (uri (git-reference
29075 (url "https://github.com/cloudpipe/cloudpickle")
29076 (commit (string-append "v" version))))
29077 (file-name (git-file-name name version))
29078 (sha256
29079 (base32 "16z0jdg5b1r23vw1l0bwsg40zcmnrbznr4frjac9kq5j6jm4fw6d"))))
29080 (build-system pyproject-build-system)
29081 (native-inputs
29082 (list python-flit-core
29083 python-psutil
29084 python-pytest))
29085 (home-page "https://github.com/cloudpipe/cloudpickle")
29086 (synopsis "Extended pickling support for Python objects")
29087 (description
29088 "Cloudpickle makes it possible to serialize Python constructs not
29089supported by the default pickle module from the Python standard library. It
29090is especially useful for cluster computing where Python expressions are
29091shipped over the network to execute on remote hosts, possibly close to the
29092data.")
29093 (license license:bsd-3)))
29094
29095(define-public python-locket
29096 (package
29097 (name "python-locket")
29098 (version "1.0.0")
29099 (source
29100 (origin
29101 (method git-fetch)
29102 (uri (git-reference
29103 (url "https://github.com/mwilliamson/locket.py")
29104 (commit version)))
29105 (file-name (git-file-name name version))
29106 (sha256
29107 (base32 "0xx57gq5r7x58yd2mq6zxlr2kpzbyb0b5y5hiprgvkib948jxx0p"))))
29108 (build-system pyproject-build-system)
29109 ;; XXX: Requires python-spur, which requires another version of
29110 ;; python-paramiko.
29111 (arguments (list #:tests? #f))
29112 (native-inputs (list python-setuptools))
29113 (home-page "https://github.com/mwilliamson/locket.py")
29114 (synopsis "File-based locks for Python")
29115 (description
29116 "Locket implements a lock that can be used by multiple processes provided
29117they use the same path.")
29118 (license license:bsd-2)))
29119
29120(define-public python-loky
29121 (package
29122 (name "python-loky")
29123 (version "3.5.6")
29124 (source
29125 (origin
29126 (method git-fetch)
29127 (uri (git-reference
29128 (url "https://github.com/joblib/loky")
29129 (commit version)))
29130 (file-name (git-file-name name version))
29131 (sha256
29132 (base32 "02za5z0hcy2mhinl1449ws6z475ydgm1mjxwj345f4kc7x7hj9jz"))))
29133 (build-system pyproject-build-system)
29134 (arguments
29135 (list
29136 #:test-flags
29137 #~(list "-k" (string-join
29138 (list
29139 ;; Requires process control.
29140 "not (test_kill_process_tree"
29141 ;; Hardware dependent tests.
29142 "test_only_physical_cores_error"
29143 ;; Depends on previous results.
29144 "test_wait_result)")
29145 " or "))))
29146 (native-inputs
29147 (list python-packaging
29148 python-psutil
29149 python-pytest
29150 python-setuptools))
29151 (propagated-inputs
29152 (list python-cloudpickle))
29153 (home-page "https://loky.readthedocs.io")
29154 (synopsis "Robust and reusable Executor for joblib")
29155 (description
29156 "This package provides a robust implementation of
29157@code{concurrent.futures.ProcessPoolExecutor}.")
29158 (license license:bsd-3)))
29159
29160(define-public python-partd
29161 (package
29162 (name "python-partd")
29163 (version "1.4.2")
29164 (source
29165 (origin
29166 (method git-fetch)
29167 (uri (git-reference
29168 (url "https://github.com/dask/partd/")
29169 (commit version)))
29170 (file-name (git-file-name name version))
29171 (sha256
29172 (base32 "0mwcr2cy0j5j8c9n2wlrlpc5v4za2cdh8jwhm7vpai53lqyvfjlf"))
29173 (patches
29174 (list
29175 (origin
29176 (method url-fetch)
29177 (uri
29178 ;; Fix PandasColumns compatibility with pandas 3.0 StringDtype,
29179 ;; from: <https://github.com/dask/partd/pull/83>.
29180 (string-append "https://github.com/dask/partd/commit/"
29181 "3efd8ec7e35a7c0aa1ba15ba2cf0766af99d3c21.patch"))
29182 (file-name (string-append name "-PR-83-pandas-3-support.patch"))
29183 (sha256
29184 (base32
29185 "1sc6vmrqgqjl4rnw9gv8ymdfaqdi5razww8b322f7hpwhpdydnhk")))))))
29186 (build-system pyproject-build-system)
29187 (native-inputs
29188 (list python-pytest
29189 python-setuptools
29190 python-versioneer
29191 tzdata-for-tests))
29192 (propagated-inputs
29193 (list python-locket
29194 python-toolz
29195 ;; [complete]
29196 python-blosc
29197 python-numpy
29198 python-pandas
29199 python-pyzmq))
29200 (home-page "https://github.com/dask/partd/")
29201 (synopsis "Appendable key-value storage")
29202 (description
29203 "Partd stores key-value pairs. Values are raw bytes. We append on old
29204values. Partd excels at shuffling operations.")
29205 (license license:bsd-3)))
29206
29207(define-public python-fsspec
29208 (package
29209 (name "python-fsspec")
29210 (version "2026.1.0")
29211 (source
29212 (origin
29213 (method git-fetch)
29214 (uri (git-reference
29215 (url "https://github.com/fsspec/filesystem_spec")
29216 (commit version)))
29217 (file-name (git-file-name name version))
29218 (sha256
29219 (base32 "049ybsinlvaa0br8ijm58jbrwbvaffbdv4gpxjcb2rc06qb4a2wg"))))
29220 (build-system pyproject-build-system)
29221 (arguments
29222 (list
29223 ;; tests: 1500 passed, 267 skipped, 3 deselected, 2 xfailed, 2 warnings
29224 #:test-flags
29225 #~(list "--ignore=fsspec/implementations/tests/test_github.py"
29226 "-k" (string-join
29227 ;; Test requires nentwork access
29228 (list "not test_async_cat_file_ranges"
29229 "test_gist_public_all_files"
29230 "test_gist_public_missing_file"
29231 "test_gist_public_one_file"
29232 ;; Test hangs
29233 "test_processes")
29234 " and not "))))
29235 ;; The most of the inputs are optional, project does not force to include
29236 ;; any dependencies according to pyproject.toml.
29237 (propagated-inputs
29238 (list python-aiohttp python-libarchive-c python-requests python-tqdm))
29239 (native-inputs
29240 (list nss-certs-for-test
29241 python-hatch-vcs
29242 python-hatchling
29243 python-numpy
29244 python-pytest
29245 python-pytest-asyncio
29246 python-pytest-mock
29247 python-pytest-rerunfailures))
29248 (home-page "https://github.com/fsspec/filesystem_spec")
29249 (synopsis "File-system specification")
29250 (description "The purpose of this package is to produce a template or
29251specification for a file-system interface, that specific implementations
29252should follow, so that applications making use of them can rely on a common
29253behavior and not have to worry about the specific internal implementation
29254decisions with any given backend.")
29255 (license license:bsd-3)))
29256
29257(define-public python-ilinkedlist
29258 (package
29259 (name "python-ilinkedlist")
29260 (properties '((commit . "b5ea3f67833071c2e0aba2eac35e82496f469238")
29261 (revision . "0")))
29262 (version (git-version "0.4.0"
29263 (assoc-ref properties 'revision)
29264 (assoc-ref properties 'commit)))
29265 (home-page "https://github.com/luther9/ilinkedlist-py")
29266 (source
29267 (origin
29268 (method git-fetch)
29269 (uri (git-reference
29270 (url home-page)
29271 (commit (assoc-ref properties 'commit))))
29272 (file-name (git-file-name name version))
29273 (sha256
29274 (base32 "0lrs6arzm7dg70ny4ri06alhi40s03n71jsx5hsi0fimvwyvfhch"))))
29275 (build-system pyproject-build-system)
29276 (native-inputs (list python-pytest python-setuptools))
29277 (synopsis "Immutable linked list library")
29278 (description
29279 "This is a implementation of immutable linked lists for Python. It
29280contains @code{nil} (the empty linked list) and a @code{Pair} class for nodes.
29281Since a linked list is treated as immutable, it is hashable, and its length
29282can be retrieved in constant time. Some of the terminology is inspired by
29283LISP. It is possible to create an improper list by creating a @code{Pair}
29284with a non-list @code{cdr}.")
29285 (license license:gpl3+)))
29286
29287(define-public python-readlike
29288 (package
29289 (name "python-readlike")
29290 (version "0.1.3")
29291 (source
29292 (origin
29293 (method git-fetch)
29294 (uri (git-reference
29295 (url "https://github.com/jangler/readlike")
29296 (commit version)))
29297 (file-name (git-file-name name version))
29298 (sha256
29299 (base32 "1mw8j8ads8hqdbz42siwpffi4wi5s33z9g14a5c2i7vxp8m68qc1"))))
29300 (build-system pyproject-build-system)
29301 (native-inputs (list python-pytest python-setuptools))
29302 (home-page "https://github.com/jangler/readlike")
29303 (synopsis "GNU Readline-like line editing module")
29304 (description
29305 "This Python module provides line editing functions similar to the default
29306Emacs-style ones of GNU Readline. Unlike the Python standard library's
29307@code{readline} package, this one allows access to those capabilities in settings
29308outside of a standard command-line interface. It is especially well-suited to
29309interfacing with Urwid, due to a shared syntax for describing key inputs.
29310
29311Currently, all stateless Readline commands are implemented. Yanking and history
29312are not supported.")
29313 (license license:expat)))
29314
29315(define-public python-reparser
29316 (package
29317 (name "python-reparser")
29318 (version "1.4.3")
29319 (source
29320 (origin
29321 (method git-fetch)
29322 (uri (git-reference
29323 (url "https://github.com/xmikos/reparser")
29324 (commit (string-append "v" version))))
29325 (file-name (git-file-name name version))
29326 (sha256
29327 (base32 "04v7h52wny0j2qj37501nk33j0s4amm134kagdicx2is49zylzq1"))))
29328 (build-system pyproject-build-system)
29329 (arguments (list #:tests? #f)) ; No tests.
29330 (native-inputs (list python-setuptools))
29331 (home-page "https://github.com/xmikos/reparser")
29332 (synopsis "Lexer/parser for inline markup based on regular expressions")
29333 (description
29334 "This Python library provides a simple lexer/parser for inline markup based
29335on regular expressions.")
29336 (license license:expat)))
29337
29338(define-public python-retrying
29339 (package
29340 (name "python-retrying")
29341 (version "1.4.1")
29342 (source
29343 (origin
29344 (method git-fetch)
29345 (uri (git-reference
29346 (url "https://github.com/groodt/retrying")
29347 (commit (string-append "v" version))))
29348 (file-name (git-file-name name version))
29349 (sha256
29350 (base32 "0m1kf6mxmxzlf3sldzm50c3hq1hkh6fz1g97pdwyvbwdazb7blw9"))))
29351 (build-system pyproject-build-system)
29352 (native-inputs (list python-pytest python-setuptools))
29353 (home-page "https://github.com/groodt/retrying")
29354 (synopsis "Library for adding retry behavior")
29355 (description "Retrying is a general-purpose retrying library to simplify
29356the task of adding retry behavior to just about anything.
29357
29358Features:
29359
29360@itemize
29361@item Generic Decorator API.
29362@item Specify stop condition (i.e. limit by number of attempts).
29363@item Specify wait condition (i.e. exponential backoff sleeping between attempts).
29364@item Customize retrying on Exceptions.
29365@item Customize retrying on expected returned result.
29366@end itemize")
29367 (license license:asl2.0)))
29368
29369(define-public python-precis-i18n
29370 (package
29371 (name "python-precis-i18n")
29372 (version "1.1.1")
29373 (source
29374 (origin
29375 (method url-fetch)
29376 (uri (pypi-uri "precis_i18n" version))
29377 (sha256
29378 (base32 "0cdv2vbn0kwfq0pxj4l52s2xiaqablb2cgk0nph6r9cyqayf77rn"))))
29379 (build-system pyproject-build-system)
29380 (native-inputs
29381 (list python-pytest
29382 python-setuptools
29383 python-wheel))
29384 (home-page "https://github.com/byllyfish/precis_i18n")
29385 (synopsis "Implementation of the PRECIS framework")
29386 (description
29387 "This module implements the PRECIS Framework as described in RFC 8264,
29388RFC 8265 and RFC 8266.")
29389 (license license:expat)))
29390
29391(define-public python-absl-py
29392 (package
29393 (name "python-absl-py")
29394 (version "2.3.1")
29395 (source
29396 (origin
29397 (method url-fetch)
29398 (uri (pypi-uri "absl_py" version))
29399 (sha256
29400 (base32 "1jbzyyrmvmqwnyh053hdmh6q851sbvrg70yf3gnd5gvzdx920y59"))))
29401 (build-system pyproject-build-system)
29402 (arguments
29403 (list #:tests? #f)) ;tests require bazel
29404 (native-inputs
29405 (list python-hatchling))
29406 (home-page "https://github.com/abseil/abseil-py")
29407 (synopsis "Abseil Python common libraries")
29408 (description
29409 "This package provides the Abseil Python Common Libraries, a collection
29410of Python libraries for building Python applications.")
29411 (license license:asl2.0)))
29412
29413(define-public python-astor
29414 (package
29415 (name "python-astor")
29416 (properties '((commit . "df09001112f079db54e7c5358fa143e1e63e74c4")
29417 (revision . "0")))
29418 (version (git-version "0.8.1"
29419 (assoc-ref properties 'revision)
29420 (assoc-ref properties 'commit)))
29421 (source
29422 (origin
29423 (method git-fetch)
29424 (uri (git-reference
29425 (url "https://github.com/berkerpeksag/astor")
29426 (commit (assoc-ref properties 'commit))))
29427 (file-name (git-file-name name version))
29428 (sha256
29429 (base32 "0ymj0n23b6b4qc6x8ycysh2dipdry5a3gakcaf8nravzp5ma2psl"))))
29430 (build-system pyproject-build-system)
29431 (arguments
29432 (list
29433 ;; FIXME: Unclear why this test fails.
29434 #:test-flags #~(list "--deselect=\
29435tests/test_rtrip.py::RtripTestCase::test_convert_stdlib")))
29436 (native-inputs (list python-pytest python-setuptools))
29437 (home-page "https://github.com/berkerpeksag/astor")
29438 (synopsis "Read and write Python ASTs")
29439 (description
29440 "Astor is designed to allow easy manipulation of Python source via the
29441Abstract Syntax Tree.")
29442 (license license:bsd-3)))
29443
29444(define-public python-astunparse
29445 ;; XXX: No updates since 2019, consider to remove when python-pytorch is
29446 ;; updated.
29447 (package
29448 (name "python-astunparse")
29449 (version "1.6.3")
29450 (source
29451 (origin
29452 (method url-fetch)
29453 (uri (pypi-uri "astunparse" version))
29454 (sha256
29455 (base32 "0wh8jjvwafxc7rvbyb13cdwndkicm7cry1bd8p1q9l7has23mnas"))))
29456 (build-system pyproject-build-system)
29457 (arguments '(#:tests? #f)) ; there are none
29458 (native-inputs
29459 (list python-setuptools))
29460 (propagated-inputs
29461 (list python-six))
29462 (home-page "https://github.com/simonpercivall/astunparse")
29463 (synopsis "AST unparser for Python")
29464 (description "This package provides an AST unparser for Python. It is a
29465factored out version of @code{unparse} found in the Python source
29466distribution.")
29467 (license license:bsd-3)))
29468
29469(define-public python-gast
29470 (package
29471 (name "python-gast")
29472 (version "0.7.0")
29473 (source
29474 (origin
29475 (method git-fetch)
29476 (uri (git-reference
29477 (url "https://github.com/serge-sans-paille/gast/")
29478 (commit version)))
29479 (file-name (git-file-name name version))
29480 (sha256
29481 (base32 "05sxx7ixkchxvgrzpkqmklhzvsqydnyzrvzwfd5xkd3cv1arg9m5"))))
29482 (build-system pyproject-build-system)
29483 (native-inputs
29484 (list python-pytest
29485 python-setuptools))
29486 (home-page "https://github.com/serge-sans-paille/gast/")
29487 (synopsis "Generic Python AST that abstracts the underlying Python version")
29488 (description
29489 "GAST provides a compatibility layer between the AST of various Python
29490versions, as produced by @code{ast.parse} from the standard @code{ast}
29491module.")
29492 (license license:bsd-3)))
29493
29494;; XXX: Not maintained since 2022, leaf package.
29495(define-public python-attr
29496 (package
29497 (name "python-attr")
29498 (version "0.3.2")
29499 (source
29500 (origin
29501 (method url-fetch)
29502 (uri (pypi-uri "attr" version))
29503 (sha256
29504 (base32 "1x2627x0n2rxx8wib4cksbjjnncff8finq97k37dq70qd2kvrvhw"))))
29505 (build-system pyproject-build-system)
29506 (arguments
29507 (list #:test-backend #~'custom
29508 #:test-flags #~(list "-c" "import dry_attr; dry_attr.test()")))
29509 (native-inputs
29510 (list python-setuptools))
29511 (home-page "https://github.com/denis-ryzhkov/attr")
29512 (synopsis "Decorator for attributes of target function or class")
29513 (description "Simple decorator to set attributes of target function or
29514class in a @acronym{DRY, Don't Repeat Yourself} way.")
29515 (license license:expat)))
29516
29517(define-public python-construct
29518 ;; Fixes not in a release yet.
29519 (let ((commit "c1171b16bda1d213ba4858f3e0e4d4003e4aae90")
29520 (revision "1"))
29521 (package
29522 (name "python-construct")
29523 (version (git-version "2.10.70" revision commit))
29524 (source
29525 (origin
29526 (method git-fetch)
29527 (uri (git-reference
29528 (url "https://github.com/construct/construct")
29529 (commit commit)))
29530 (file-name (git-file-name name version))
29531 (sha256
29532 (base32 "03f6nvyzrq50nhqqwmmws983wwjg78yd9j09pl94vkmyjph33da5"))))
29533 (build-system pyproject-build-system)
29534 (arguments
29535 (list
29536 #:test-flags #~(list "--ignore=tests/test_benchmarks.py")))
29537 (native-inputs
29538 (list python-pytest python-setuptools))
29539 (propagated-inputs
29540 (list python-arrow
29541 python-cloudpickle
29542 python-cryptography
29543 python-lz4
29544 python-numpy
29545 python-ruamel.yaml))
29546 (home-page "https://construct.readthedocs.io")
29547 (synopsis "Declarative and symmetrical parser and builder for binary data")
29548 (description
29549 "This package provides both simple, atomic constructs (such as
29550integers of various sizes), as well as composite ones which allow you
29551form hierarchical and sequential structures of increasing complexity.
29552It features bit and byte granularity, easy debugging and testing, an
29553easy-to-extend subclass system, and lots of primitive constructs to
29554make your work easier.")
29555 (license license:expat))))
29556
29557(define-public python-outcome
29558 (package
29559 (name "python-outcome")
29560 (version "1.3.0.post0")
29561 (source
29562 (origin
29563 (method url-fetch)
29564 (uri (pypi-uri "outcome" version))
29565 (sha256
29566 (base32 "1f2327wzf57zwqw15kzk19ff2s52fa74cxxk8w0bhw99bzk05kwx"))))
29567 (build-system pyproject-build-system)
29568 (native-inputs
29569 (list python-pytest
29570 python-pytest-asyncio
29571 python-setuptools))
29572 (propagated-inputs
29573 (list python-attrs))
29574 (home-page "https://github.com/python-trio/outcome")
29575 (synopsis "Capture the outcome of Python function calls")
29576 (description
29577 "Capture the outcome of Python function calls. Extracted from the Trio
29578project.")
29579 ;; Either license applies.
29580 (license (list license:expat license:asl2.0))))
29581
29582(define-public python-humanize
29583 (package
29584 (name "python-humanize")
29585 (version "4.14.0")
29586 (source
29587 (origin
29588 (method url-fetch)
29589 (uri (pypi-uri "humanize" version))
29590 (sha256
29591 (base32
29592 "03d9xdashy8bsxvg15nz3ih1nsl6na1cmc9mqh2xch56brq9581g"))))
29593 (build-system pyproject-build-system)
29594 (native-inputs
29595 (list python-freezegun
29596 python-hatch-vcs
29597 python-hatchling
29598 python-pytest))
29599 (home-page "https://github.com/jmoiron/humanize")
29600 (synopsis "Print numerical information in a human-readable form")
29601 (description "This package provides a Python module that displays numbers
29602and dates in \"human readable\" forms. For example, it would display
29603\"12345591313\" as \"12.3 billion\".")
29604 (license license:expat)))
29605
29606(define-public python-annoy
29607 (package
29608 (name "python-annoy")
29609 (version "1.17.3")
29610 (source
29611 (origin
29612 (method git-fetch)
29613 (uri (git-reference
29614 (url "https://github.com/spotify/annoy")
29615 (commit (string-append "v" version))))
29616 (file-name (git-file-name name version))
29617 (sha256
29618 (base32 "1zmdp1dws3i35a0psb10k6rkh3iaiq8s9ybxibvfjihbapidd4d0"))))
29619 (build-system pyproject-build-system)
29620 (arguments
29621 (list
29622 #:test-flags
29623 ;; urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in
29624 ;; name resolution>
29625 #~(list "--deselect=test/accuracy_test.py::test_glove_25"
29626 "--deselect=test/accuracy_test.py::test_nytimes_16"
29627 "--deselect=test/accuracy_test.py::test_fashion_mnist")))
29628 (native-inputs
29629 (list python-h5py
29630 python-numpy
29631 python-pytest
29632 python-setuptools))
29633 (home-page "https://github.com/spotify/annoy/")
29634 (synopsis "Approximate nearest neighbors library")
29635 (description
29636 "Annoy is a C++ library with Python bindings to search for points in
29637space that are close to a given query point. It also creates large read-only
29638file-based data structures that are @code{mmap}ped into memory so that many
29639processes may share the same data.")
29640 (license license:asl2.0)))
29641
29642(define-public python-croniter
29643 (package
29644 (name "python-croniter")
29645 (version "5.0.1")
29646 (source
29647 (origin
29648 (method git-fetch)
29649 (uri (git-reference
29650 (url "https://github.com/kiorky/croniter")
29651 (commit version)))
29652 (file-name (git-file-name name version))
29653 (sha256
29654 (base32 "146v641wicx2ipfdpqg1vysikbbhrhndmrnjj1hnv03fjvhqknq9"))))
29655 (build-system pyproject-build-system)
29656 (native-inputs (list python-pytest python-setuptools))
29657 (propagated-inputs (list python-dateutil python-pytz))
29658 (home-page "https://github.com/kiorky/croniter")
29659 (synopsis "Iterate datetime objects with cron-like syntax")
29660 (description
29661 "@code{croniter} provides iteration for datetime object with cron-like
29662format.")
29663 (license license:expat)))
29664
29665(define-public python-crontab
29666 (package
29667 (name "python-crontab")
29668 (version "3.3.0")
29669 (source
29670 (origin
29671 (method url-fetch)
29672 (uri (pypi-uri "python_crontab" version))
29673 (sha256
29674 (base32 "06r9vqaplqd9saazqw3lprlbv4sb2an0zkjdxh23xpyxd3p8lz00"))))
29675 (build-system pyproject-build-system)
29676 (arguments
29677 (list #:test-flags
29678 ;; This test is made for Windows.
29679 #~(list "-k" "not test_07_non_posix_shell")
29680 #:phases
29681 #~(modify-phases %standard-phases
29682 (add-after 'unpack 'defaults-to-mcron
29683 (lambda* (#:key inputs #:allow-other-keys)
29684 (substitute* "crontab.py"
29685 (("/usr/bin/crontab")
29686 (search-input-file inputs "bin/crontab"))))))))
29687 (inputs
29688 (list mcron python-dateutil))
29689 (native-inputs
29690 (list python-pytest python-setuptools))
29691 (home-page "https://gitlab.com/doctormo/python-crontab/")
29692 (synopsis "Module for reading and writing crontab files")
29693 (description "This Python module can read, write crontab files, and
29694access the system cron automatically and simply using a direct API.")
29695 (license license:lgpl3+)))
29696
29697(define-public python-apscheduler
29698 (package
29699 (name "python-apscheduler")
29700 (version "3.11.2")
29701 (source (origin
29702 (method url-fetch)
29703 (uri (pypi-uri "apscheduler" version))
29704 (sha256
29705 (base32
29706 "0hgg7r3s1k6qj4fy3whrpyqj8vm0wvk3lk4c1h15z07caaq6d69a"))))
29707 (build-system pyproject-build-system)
29708 (arguments
29709 (list
29710 ;; tests: 701 passed, 252 skipped, 13 deselected, 201 warnings
29711 #:test-flags
29712 ;; XXX: Some tests hang or fail with verity of errors:
29713 ;; E RuntimeError: There is no current event loop in thread 'MainThread'.
29714 #~(list #$@(map (lambda (test) (string-append "--deselect="
29715 "tests/test_executors.py::"
29716 test))
29717 (list "test_broken_pool"
29718 "test_max_instances[processpool-pytz]"
29719 "test_max_instances[processpool-zoneinfo]"
29720 "test_run_coroutine_job_tornado"
29721 "test_run_job_error[processpool-pytz]"
29722 "test_run_job_error[processpool-zoneinfo]"
29723 "test_submit_job[processpool-pytz-error]"
29724 "test_submit_job[processpool-pytz-executed]"
29725 "test_submit_job[processpool-pytz-missed]"
29726 "test_submit_job[processpool-zoneinfo-error]"
29727 "test_submit_job[processpool-zoneinfo-executed]"
29728 "test_submit_job[processpool-zoneinfo-missed]")))))
29729 (native-inputs
29730 (list python-anyio
29731 python-gevent
29732 python-pyside-6
29733 python-pytest
29734 python-pytest-asyncio
29735 python-pytz
29736 python-setuptools
29737 python-setuptools-scm
29738 python-sqlalchemy
29739 python-tornado
29740 python-twisted))
29741 (propagated-inputs
29742 (list python-tzlocal))
29743 (home-page "https://github.com/agronholm/apscheduler")
29744 (synopsis "Task scheduling library for Python")
29745 (description "Advanced Python Scheduler (APScheduler) is a Python library
29746that lets you schedule your Python code to be executed later, either just once
29747or periodically.
29748
29749You can add new jobs or remove old ones on the fly as you please. If you store
29750your jobs in a database, they will also survive scheduler restarts and maintain
29751their state. When the scheduler is restarted, it will then run all the jobs it
29752should have run while it was offline.")
29753 (license license:expat)))
29754
29755(define-public python-ifaddr
29756 (package
29757 (name "python-ifaddr")
29758 (version "0.2.0")
29759 (source
29760 (origin
29761 (method url-fetch)
29762 (uri (pypi-uri "ifaddr" version))
29763 (sha256
29764 (base32 "1m5fqjqf53m31qrl8fxp2sbwf4mvk5mbjpw2jm2x8rgpmg5by36c"))
29765 (snippet #~(delete-file "ifaddr/_win32.py"))))
29766 (build-system pyproject-build-system)
29767 (native-inputs
29768 (list python-pytest python-setuptools python-wheel))
29769 (home-page "https://github.com/pydron/ifaddr")
29770 (synopsis "Network interface and IP address enumeration library")
29771 (description
29772 "This package provides a network interface and IP address enumeration
29773library in Python.")
29774 (license license:expat)))
29775
29776(define-public python-berkeleydb
29777 (package
29778 (name "python-berkeleydb")
29779 (version "18.1.15")
29780 (source
29781 (origin
29782 (method url-fetch)
29783 (uri (pypi-uri "berkeleydb" version))
29784 (sha256
29785 (base32 "13kmvy6viay27khmj6ydryniirdsbqrc2mjnr2r6nk3m7la57yks"))))
29786 (build-system pyproject-build-system)
29787 (arguments
29788 (list
29789 #:test-backend #~'custom
29790 #:test-flags #~(list "test.py" "-v")
29791 #:phases
29792 #~(modify-phases %standard-phases
29793 (add-after 'unpack 'configure-locations
29794 (lambda* (#:key inputs #:allow-other-keys)
29795 (setenv "BERKELEYDB_DIR"
29796 (assoc-ref inputs "bdb"))
29797 (setenv "YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION"
29798 "1")))
29799 (add-after 'unpack 'remove-legacy
29800 (lambda _
29801 (substitute* "pyproject.toml"
29802 ((":__legacy__") "")))))))
29803 (native-inputs (list python-setuptools))
29804 (inputs (list bdb))
29805 (home-page "https://www.jcea.es/programacion/pybsddb.htm")
29806 (synopsis "Python bindings for Oracle Berkeley DB")
29807 (description
29808 "This module provides a nearly complete wrapping of the Oracle/Sleepycat
29809C API for the Database Environment, Database, Cursor, Log Cursor, Sequence and
29810Transaction objects, and each of these is exposed as a Python type in the
29811bsddb3.db module. The database objects can use various access methods: btree,
29812hash, recno, and queue. Complete support of Berkeley DB distributed
29813transactions. Complete support for Berkeley DB Replication Manager.
29814Complete support for Berkeley DB Base Replication. Support for RPC.")
29815 (license license:bsd-3)))
29816
29817;; Last version before rename to python-berkeleydb.
29818;; This package is close to deprecation.
29819(define-public python-bsddb3
29820 (package
29821 (inherit python-berkeleydb)
29822 (name "python-bsddb3")
29823 (version "6.2.9")
29824 (source
29825 (origin
29826 (method url-fetch)
29827 (uri (pypi-uri "bsddb3" version))
29828 (sha256
29829 (base32 "00bqdsfx8jgmfz5bgkx10nlw5bfsw11a86f91zkl53snvk45xl3h"))))
29830 (arguments
29831 (substitute-keyword-arguments arguments
29832 ;; Tests started failing from [email protected].
29833 ;; The package is in a pre-deprecation phase, so I didn't bother
29834 ;; to try and patch them, but sanity-check passes so the package
29835 ;; itself is likely fine.
29836 ((#:tests? tests? #t)
29837 #f)
29838 ((#:phases phases #~%standard-phases)
29839 #~(modify-phases #$phases
29840 (delete 'remove-legacy)))
29841 ((#:test-flags test-flags #~(list))
29842 #~(list "test3.py" "-v"))))))
29843
29844(define-public python-dbfread
29845 (package
29846 (name "python-dbfread")
29847 (properties '((commit . "dce544641065d966c76a97864b4e9908ec922ce8")
29848 (revision . "0")))
29849 (version (git-version "2.0.7"
29850 (assoc-ref properties 'revision)
29851 (assoc-ref properties 'commit)))
29852 (source
29853 (origin
29854 (method git-fetch)
29855 (uri (git-reference
29856 (url "https://github.com/olemb/dbfread")
29857 (commit (assoc-ref properties 'commit))))
29858 (file-name (git-file-name name version))
29859 (sha256
29860 (base32 "1m7dbgyf8yl6qhilzx41vzhcmkqmc36897wfqs2jngp4bnda64vd"))))
29861 (build-system pyproject-build-system)
29862 (arguments
29863 (list
29864 #:phases
29865 #~(modify-phases %standard-phases
29866 (add-after 'unpack 'relax-setup.py
29867 (lambda _
29868 (substitute* "setup.py"
29869 (("python_requires.*")
29870 "")))))))
29871 (native-inputs (list python-pytest python-setuptools))
29872 (home-page "https://dbfread.readthedocs.io")
29873 (synopsis "Read DBF Files with Python")
29874 (description
29875 "This library reads DBF files and returns the data as native Python data
29876types for further processing. It is primarily intended for batch jobs and
29877one-off scripts.")
29878 (license license:expat)))
29879
29880(define-public python-cached-property
29881 (package
29882 (name "python-cached-property")
29883 (version "2.0.1")
29884 (source
29885 (origin
29886 (method url-fetch)
29887 (uri (pypi-uri "cached_property" version))
29888 (sha256
29889 (base32 "0hbni4q15n8wspdj48j6xvg977pgm1r5wwjq3x7hxvp30mqn2ka8"))))
29890 (build-system pyproject-build-system)
29891 (native-inputs
29892 (list python-freezegun
29893 python-pytest
29894 python-setuptools
29895 python-wheel))
29896 (home-page "https://github.com/pydanny/cached-property")
29897 (synopsis "Decorator for caching properties in classes")
29898 (description
29899 "This package provides a decorator which makes caching
29900time-or-computationally-expensive properties quick and easy and works in
29901Python 2 or 3.")
29902 (license license:bsd-3)))
29903
29904(define-public python-folium
29905 (package
29906 (name "python-folium")
29907 (version "0.19.4")
29908 (source
29909 (origin
29910 ;; PyPI has a ".whl" file but not a proper source release.
29911 ;; Thus, fetch code from Git.
29912 (method git-fetch)
29913 (uri (git-reference
29914 (url "https://github.com/python-visualization/folium")
29915 (commit (string-append "v" version))))
29916 (file-name (git-file-name name version))
29917 (sha256
29918 (base32 "1659hvvraax7npgsfi93l7vsd191ysvf5vj369f8h757blmwjd59"))))
29919 (build-system pyproject-build-system)
29920 (arguments
29921 (list #:test-flags
29922 ;; This file requires Selenium.
29923 #~(list "--ignore" "tests/selenium/test_selenium.py"
29924 "-k" (string-append
29925 ;; The tests below also require Selenium.
29926 "not test__repr_png_is_bytes"
29927 " and not test_valid_png"
29928 " and not test_valid_png_size"
29929 " and not test_geojson"
29930 " and not test_heat_map_with_weights"
29931 ;; This performs an online request.
29932 " and not test_json_request"
29933 ;; Requires geodatasets package.
29934 " and not test_timedynamic_geo_json"
29935 ;; AssertionError.
29936 " and not test_minimap"))))
29937 (propagated-inputs
29938 (list python-branca
29939 python-jinja2
29940 python-numpy
29941 python-requests
29942 python-xyzservices))
29943 (native-inputs
29944 (list python-geopandas
29945 python-nbconvert
29946 python-pandas
29947 python-pillow
29948 python-pytest
29949 python-selenium
29950 python-setuptools
29951 python-setuptools-scm
29952 python-wheel))
29953 (home-page "https://github.com/python-visualization/folium")
29954 (synopsis "Make beautiful maps with Leaflet.js & Python")
29955 (description "@code{folium} makes it easy to visualize data that’s been
29956manipulated in Python on an interactive leaflet map. It enables both the
29957binding of data to a map for @code{choropleth} visualizations as well as
29958passing rich vector/raster/HTML visualizations as markers on the map.
29959
29960The library has a number of built-in tilesets from OpenStreetMap, Mapbox, and
29961Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys. It
29962supports Image, Video, GeoJSON and TopoJSON overlays.")
29963 (license license:expat)))
29964
29965(define-public python-mercantile
29966 (package
29967 (name "python-mercantile")
29968 (version "1.2.1")
29969 (source
29970 (origin
29971 (method git-fetch)
29972 (uri (git-reference
29973 (url "https://github.com/mapbox/mercantile")
29974 (commit version)))
29975 (file-name (git-file-name name version))
29976 (sha256
29977 (base32 "1b7kglzkjz1gmgjgk2y3n4gg70b8zdfg6kyqx2g7a3z7clxxf80f"))))
29978 (build-system pyproject-build-system)
29979 (propagated-inputs (list python-click))
29980 (native-inputs (list python-check-manifest python-hypothesis python-pytest
29981 python-setuptools))
29982 (home-page "https://github.com/mapbox/mercantile")
29983 (synopsis "Web mercator XYZ tile utilities")
29984 (description
29985 "The mercantile module provides @code{ul(xtile, ytile, zoom)} and
29986@code{bounds(xtile, ytile, zoom)} functions that respectively return the upper
29987left corner and bounding longitudes and latitudes for XYZ tiles, a
29988@code{xy(lng, lat)} function that returns spherical mercator x and y
29989coordinates, a @code{tile(lng, lat, zoom)} function that returns the tile
29990containing a given point, and quadkey conversion functions
29991@code{quadkey(xtile, ytile, zoom)} and @code{quadkey_to_tile(quadkey)} for
29992translating between quadkey and tile coordinates.")
29993 (license license:bsd-3)))
29994
29995(define-public jube
29996 (package
29997 ;; This is a command-line tool, so no "python-" prefix.
29998 (name "jube")
29999 (version "2.7.1")
30000 (source
30001 (origin
30002 (method url-fetch)
30003 (uri (string-append
30004 "http://apps.fz-juelich.de/jsc/jube/jube2/download.php?version="
30005 version))
30006 (sha256
30007 (base32 "1z7cz7z2awwc1mq18whs9p9n7476l4sg2nk6vy2xf97jidd512zy"))
30008 (file-name (string-append "jube-" version ".tar.gz"))))
30009 (build-system pyproject-build-system)
30010 (arguments
30011 (list
30012 #:tests? #f)) ; No tests.
30013 (propagated-inputs (list python-pyyaml))
30014 (native-inputs (list python-setuptools))
30015 (home-page "https://apps.fz-juelich.de/jsc/jube/jube2/docu/index.html")
30016 (synopsis "Benchmarking environment")
30017 (description
30018 "JUBE helps perform and analyze benchmarks in a systematic way. For each
30019benchmarked application, benchmark data is stored in a format that allows JUBE
30020to deduct the desired information. This data can be parsed by automatic pre-
30021and post-processing scripts that draw information and store it more densely
30022for manual interpretation.")
30023 (license license:gpl3+)))
30024
30025(define-public python-pyroutelib3
30026 (package
30027 (name "python-pyroutelib3")
30028 (version "2.0.0")
30029 (source
30030 (origin
30031 (method git-fetch)
30032 (uri (git-reference
30033 (url "https://github.com/MKuranowski/pyroutelib3")
30034 (commit (string-append "v" version))))
30035 (file-name (git-file-name name version))
30036 (sha256
30037 (base32 "18a86fggs9pjib97x47acqgccrsra1h7dkz21r94vsyrdindchns"))))
30038 (build-system pyproject-build-system)
30039 (propagated-inputs (list python-dateutil python-protobuf-5))
30040 (native-inputs (list python-filelock python-flit-core python-pytest))
30041 (home-page "https://github.com/MKuranowski/pyroutelib3")
30042 (synopsis "Library for simple routing on OSM data")
30043 (description "Library for simple routing on OSM data")
30044 (license license:gpl3+)))
30045
30046(define-public python-bibtexparser
30047 (package
30048 (name "python-bibtexparser")
30049 (version "2.0.1")
30050 (source
30051 (origin
30052 (method git-fetch)
30053 (uri (git-reference
30054 (url "https://github.com/sciunto-org/python-bibtexparser")
30055 (commit (string-append "v" version))))
30056 (file-name (git-file-name name version))
30057 (sha256
30058 (base32 "1ww9vlc9x7svhd6ww62c7bfikyqv5qwgingc2s5rjizl9nai5wlv"))))
30059 (build-system pyproject-build-system)
30060 (propagated-inputs (list python-pylatexenc python-pyparsing))
30061 (native-inputs
30062 (list python-pylatexenc python-pytest python-setuptools))
30063 (home-page "https://github.com/sciunto-org/python-bibtexparser")
30064 (synopsis "Python library to parse BibTeX files")
30065 (description "BibtexParser is a Python library to parse BibTeX files.")
30066 (license (list license:bsd-3 license:lgpl3))))
30067
30068(define-public python-bibtexparser-for-cobib
30069 (hidden-package
30070 (package
30071 (inherit python-bibtexparser)
30072 (name "python-bibtexparser")
30073 (version "1.4.0")
30074 (source
30075 (origin
30076 (method git-fetch)
30077 (uri (git-reference
30078 (url "https://github.com/sciunto-org/python-bibtexparser")
30079 (commit (string-append "v" version))))
30080 (file-name (git-file-name name version))
30081 (sha256
30082 (base32 "0zrgfgmh37m9frq528vy66p2fhlxzrxyhj0inc6qwg0m717w9zbl")))))))
30083
30084(define-public python-distro
30085 (package
30086 (name "python-distro")
30087 (version "1.9.0")
30088 (source
30089 (origin
30090 (method url-fetch)
30091 (uri (pypi-uri "distro" version))
30092 (sha256
30093 (base32 "1vfvkgfvrjpxpb48pf8rs2l5wfxij0plmffnw5p123wlv1ppr9rg"))))
30094 (build-system pyproject-build-system)
30095 (arguments
30096 (list
30097 #:test-flags
30098 #~(list "-k" (string-join
30099 ;; We are not on Ubunto distro:
30100 ;; AssertionError: assert '' == 'ubuntu'.
30101 (list "not test_ubuntu14normal_lsb_release"
30102 "test_trailingblanks_lsb_release"
30103 "test_ubuntu14nomodules_lsb_release")
30104 " and not "))))
30105 (native-inputs
30106 (list python-pytest
30107 python-setuptools))
30108 (home-page "https://github.com/python-distro/distro")
30109 (synopsis "OS platform information API")
30110 (description
30111 "@code{distro} provides information about the OS distribution it runs on,
30112such as a reliable machine-readable ID, or version information.
30113
30114It is the recommended replacement for Python's original
30115`platform.linux_distribution` function (which will be removed in Python 3.8).
30116@code{distro} also provides a command-line interface to output the platform
30117information in various formats.")
30118 (license license:asl2.0)))
30119
30120(define-public python-cairosvg
30121 (package
30122 (name "python-cairosvg")
30123 (version "2.8.2")
30124 (source
30125 (origin
30126 (method url-fetch)
30127 (uri (pypi-uri "cairosvg" version))
30128 (sha256
30129 (base32 "17zgbgw24jw70rfka9wa3ff5wymk9cmaqk4a6697mchpcglg9jq7"))))
30130 (build-system pyproject-build-system)
30131 (arguments
30132 (list #:test-flags #~(list "cairosvg/test_api.py")))
30133 (native-inputs
30134 (list python-pytest
30135 python-setuptools))
30136 (propagated-inputs
30137 (list python-cairocffi
30138 python-cssselect2
30139 python-defusedxml
30140 python-pillow
30141 python-tinycss2))
30142 (home-page "https://cairosvg.org/")
30143 (synopsis "SVG to PDF/PS/PNG converter based on Cairo")
30144 (description "CairoSVG is a SVG converter based on Cairo. It can export
30145SVG files to PDF, PostScript and PNG files. The main part of CairoSVG is a
30146SVG parser, trying to follow the SVG 1.1 recommendation from the W3C. Once
30147parsed, the result is drawn to a Cairo surface that can be exported to
30148qvarious formats: PDF, PostScript, PNG and even SVG.")
30149 (license license:lgpl3+)))
30150
30151(define-public python-pyphen
30152 (package
30153 (name "python-pyphen")
30154 (version "0.17.2")
30155 (source
30156 (origin
30157 (method git-fetch)
30158 (uri (git-reference
30159 (url "https://github.com/Kozea/Pyphen")
30160 (commit version)))
30161 (file-name (git-file-name name version))
30162 (sha256
30163 (base32 "1fqxc50vqj884b7f6d8qfvnvw34477lhsdznvpxsljjg9j2v4ipv"))))
30164 (build-system pyproject-build-system)
30165 (native-inputs (list python-flit-core python-pytest))
30166 ;; TODO: Use the Guix system hyphenation packages hyphen-* rather than the
30167 ;; embedded set provided by upstream - like Debian does.
30168 (home-page "https://github.com/Kozea/Pyphen")
30169 (synopsis "Pure Python module to hyphenate text")
30170 (description "Pyphen is a pure Python module to hyphenate text using
30171existing Hunspell hyphenation dictionaries.")
30172 (license (list license:gpl2 license:lgpl2.1 license:mpl1.1))))
30173
30174(define-public python-intelhex
30175 (package
30176 (name "python-intelhex")
30177 (version "2.3.0")
30178 (source
30179 (origin
30180 (method git-fetch)
30181 (uri (git-reference
30182 (url "https://github.com/python-intelhex/intelhex")
30183 (commit version)))
30184 (file-name (git-file-name name version))
30185 (sha256
30186 (base32 "13p7x4ygfgqn27q3c8lam7a0z09764iymgs7lcvjvxgq52nqwf9c"))))
30187 (build-system pyproject-build-system)
30188 (arguments (list #:test-backend #~'unittest))
30189 (native-inputs (list python-setuptools))
30190 (home-page "https://github.com/python-intelhex/intelhex")
30191 (synopsis "Python library for Intel HEX files manipulations")
30192 (description
30193 "The Intel HEX file format is widely used in microprocessors and
30194microcontrollers area (embedded systems etc.) as the de facto standard for
30195representation of code to be programmed into microelectronic devices. This
30196package provides an intelhex Python library to read, write, create from
30197scratch and manipulate data from Intel HEX file format. It also includes
30198several convenience Python scripts, including \"classic\" hex2bin and bin2hex
30199converters and more, those based on the library itself.")
30200 (license license:bsd-3)))
30201
30202(define-public python-interlap
30203 (package
30204 (name "python-interlap")
30205 (version "0.2.7")
30206 (source
30207 (origin
30208 (method git-fetch)
30209 (uri (git-reference
30210 (url "https://github.com/brentp/interlap")
30211 (commit (string-append "v" version))))
30212 (file-name (git-file-name name version))
30213 (sha256
30214 (base32 "0kmw72ilhsfx7piikl92b1s0rnax49qc7idjxsbwhvpklyjiylfm"))))
30215 (build-system pyproject-build-system)
30216 (arguments
30217 (list
30218 #:test-backend #~'custom
30219 #:test-flags #~(list "interlap.py")))
30220 (native-inputs (list python-setuptools))
30221 (home-page "https://brentp.github.io/interlap")
30222 (synopsis "Fast, simple interval overlap testing")
30223 (description
30224 "InterLap does fast interval overlap testing with a simple Python data
30225structure.")
30226 (license license:expat)))
30227
30228(define-public python-pykwalify
30229 (package
30230 (name "python-pykwalify")
30231 (version "1.8.0")
30232 (source
30233 (origin
30234 (method git-fetch)
30235 (uri (git-reference
30236 (url "https://github.com/grokzen/pykwalify")
30237 (commit version)))
30238 (file-name (git-file-name name version))
30239 (sha256
30240 (base32 "1x46ray74hzqmsicq2qikxhdihyyz9himjmc5gvlvd8vzqr1gi8p"))))
30241 (build-system pyproject-build-system)
30242 (arguments
30243 (list
30244 #:test-flags
30245 ;; XXX: yaml safe_dump() has been removed.
30246 #~(list "--ignore=tests/test_unicode.py"
30247 "--deselect=tests/test_core.py::TestCore::test_core_files")))
30248 (native-inputs
30249 (list python-pytest python-setuptools python-testfixtures))
30250 (propagated-inputs
30251 (list python-dateutil python-docopt python-pyyaml python-ruamel.yaml))
30252 (home-page "https://github.com/grokzen/pykwalify")
30253 (synopsis "Python lib/cli for JSON/YAML schema validation")
30254 (description
30255 "This package provides a parser, schema validator, and data binding tool
30256for YAML and JSON.")
30257 (license license:expat)))
30258
30259(define-public python-pykakasi
30260 (package
30261 (name "python-pykakasi")
30262 (version "2.3.0")
30263 (source
30264 (origin
30265 (method url-fetch)
30266 (uri (pypi-uri "pykakasi" version))
30267 (sha256
30268 (base32 "18dhcw7myw5idajnfynjbvqxmyf9m0cygfwsavbbi7zmcf72l1gs"))))
30269 (build-system pyproject-build-system)
30270 (arguments (list #:test-flags ''("-k" "not test_aozora")))
30271 (propagated-inputs (list python-deprecated python-importlib-resources
30272 python-jaconv))
30273 (native-inputs (list python-coverage
30274 python-py-cpuinfo
30275 python-pytest
30276 python-pytest-benchmark
30277 python-setuptools
30278 python-setuptools-scm
30279 python-wheel))
30280 (home-page "https://codeberg.org/miurahr/pykakasi")
30281 (synopsis "Kana kanji simple inversion library")
30282 (description
30283 "pykakasi is a Python Natural Language Processing @acronym{NLP, Natural
30284Language Processing} library to transliterate hiragana, katakana and
30285kanji (Japanese text) into rōmaji (Latin/Roman alphabet). It can handle
30286characters in NFC form.
30287
30288Its algorithms are based on the kakasi library, which is written in C.")
30289 (license license:gpl3+)))
30290
30291(define-public python-dbus
30292 (package
30293 (name "python-dbus")
30294 (version "1.3.2")
30295 (source
30296 (origin
30297 (method url-fetch)
30298 (uri (pypi-uri "dbus-python" version))
30299 (sha256
30300 (base32 "1y28h90v2ib8zqhs3r2yr7ycg8ccwvw3gqkvadlm12v1129q2rxd"))))
30301 (build-system pyproject-build-system)
30302 (arguments
30303 (list
30304 #:tests? #f ;XXX: Tests require setup
30305 #:phases
30306 #~(modify-phases %standard-phases
30307 (add-after 'unpack 'patch-requirements
30308 (lambda _
30309 (substitute* (list "pyproject.toml" "setup.py")
30310 (("'(ninja|patchelf)',?") ""))
30311 (substitute* "setup.cfg"
30312 (("(ninja|patchelf)") "")))))))
30313 (native-inputs
30314 (list pkg-config
30315 meson
30316 ninja/pinned
30317 patchelf
30318 python-meson
30319 python-setuptools
30320 python-tappy))
30321 (inputs
30322 (list dbus glib))
30323 (propagated-inputs
30324 (list python-pygobject))
30325 (home-page "https://dbus.freedesktop.org/doc/dbus-python/")
30326 (synopsis "Python bindings for libdbus")
30327 (description
30328 "This package provides Python bindings to libdbus, the reference
30329implementation of the D-Bus protocol.")
30330 (license license:expat)))
30331
30332;; Added on 2026-01-05
30333(define-deprecated-package python-dbus-python python-dbus)
30334
30335(define python-dbusmock-patch-paths-phase
30336 #~(lambda* (#:key inputs #:allow-other-keys)
30337 (substitute* "tests/test_api.py"
30338 (("/usr/bin/python3")
30339 (which "python3")))
30340 (substitute* "dbusmock/testcase.py"
30341 (("\"dbus-daemon\"")
30342 (object->string
30343 (search-input-file inputs "/bin/dbus-daemon"))))))
30344
30345(define-public python-dbusmock
30346 (package
30347 (name "python-dbusmock")
30348 (version "0.37.2")
30349 (source
30350 (origin
30351 (method git-fetch)
30352 (uri (git-reference
30353 (url "https://github.com/martinpitt/python-dbusmock")
30354 (commit version)))
30355 (file-name (git-file-name name version))
30356 (sha256
30357 (base32 "1a70gi3qgjblg9z9id9z0fy3vlhb1cqbmmny14bqhv79qqskspj3"))))
30358 (build-system pyproject-build-system)
30359 (arguments
30360 (list
30361 #:modules `((guix build pyproject-build-system)
30362 (guix build utils)
30363 (ice-9 match))
30364 #:phases
30365 #~(modify-phases %standard-phases
30366 (add-after 'unpack 'patch-paths
30367 #$python-dbusmock-patch-paths-phase)
30368 (replace 'check
30369 (lambda* (#:key tests? #:allow-other-keys)
30370 (when tests?
30371 (match (primitive-fork)
30372 (0 ;child process
30373 (execlp "pytest" "pytest" "-vv"))
30374 (pytest-pid
30375 (let loop ()
30376 ;; Reap child processes; otherwise, python-dbusmock
30377 ;; would waste time polling for the dbus processes
30378 ;; it spawns to be reaped, in vain.
30379 (match (waitpid WAIT_ANY)
30380 ((pid . status)
30381 (if (= pid pytest-pid)
30382 (unless (zero? status)
30383 (error "`pytest' exited with status"
30384 status))
30385 (loop)))))))))))))
30386 (native-inputs (list python-pytest python-setuptools upower which))
30387 (inputs (list dbus))
30388 (propagated-inputs (list python-dbus python-pygobject))
30389 (home-page "https://github.com/martinpitt/python-dbusmock")
30390 (synopsis "Python library for mock D-Bus objects")
30391 (description
30392 "python-dbusmock allows for the easy creation of mock objects on D-Bus.
30393This is useful for writing tests for software which talks to D-Bus services
30394such as upower, systemd, logind, gnome-session or others, and it is hard (or
30395impossible without root privileges) to set the state of the real services to
30396what you expect in your tests.")
30397 (license license:lgpl3+)))
30398
30399(define-public python-dbusmock-for-tests
30400 (package
30401 (inherit python-dbusmock)
30402 (name "python-dbusmock-for-tests")
30403 (version "0.37.2")
30404 (source
30405 (origin
30406 (method git-fetch)
30407 (uri (git-reference
30408 (url "https://github.com/martinpitt/python-dbusmock")
30409 (commit version)))
30410 (file-name (git-file-name name version))
30411 (sha256
30412 (base32 "1a70gi3qgjblg9z9id9z0fy3vlhb1cqbmmny14bqhv79qqskspj3"))))
30413 (arguments
30414 (list
30415 #:tests? #f
30416 #:phases
30417 #~(modify-phases %standard-phases
30418 (add-after 'unpack 'patch-paths
30419 #$python-dbusmock-patch-paths-phase))))
30420 (native-inputs (list python-setuptools which))
30421 (properties '((hidden? . #t)))))
30422
30423(define-public python-jsonplus
30424 (package
30425 (name "python-jsonplus")
30426 (home-page "https://github.com/randomir/jsonplus")
30427 (properties '((commit . "a4450ce73a4464fcee9b08d96be3e13152b0cb3b")
30428 (revision . "0")))
30429 (version (git-version "0.8.0"
30430 (assoc-ref properties 'revision)
30431 (assoc-ref properties 'commit)))
30432 (source
30433 (origin
30434 (method git-fetch)
30435 (uri (git-reference
30436 (url home-page)
30437 (commit (assoc-ref properties 'commit))))
30438 (file-name (git-file-name name version))
30439 (sha256
30440 (base32 "1n7rr7fgy2g972si6zhindia362w34d696xjdicx25f39n88jcvk"))))
30441 (build-system pyproject-build-system)
30442 (arguments
30443 (list
30444 ;; XXX: Tests require the additional package moneyed.
30445 #:tests? #f
30446 #:phases
30447 #~(modify-phases %standard-phases
30448 (add-after 'unpack 'chdir
30449 (lambda _
30450 (chdir "python"))))))
30451 (native-inputs (list python-setuptools))
30452 (propagated-inputs
30453 (list python-dateutil python-simplejson python-sortedcontainers))
30454 (synopsis "Serialize Python types to/from JSON")
30455 (description
30456 "This package provides functionality to serialize arbitrary data types
30457to and from JSON. Common data types are implemented and it is easy to
30458register custom encoders and decoders.")
30459 (license license:expat)))
30460
30461(define-public python-ioctl-opt
30462 (package
30463 (name "python-ioctl-opt")
30464 (version "1.3")
30465 (source
30466 (origin
30467 (method url-fetch)
30468 (uri (pypi-uri "ioctl-opt" version))
30469 (sha256
30470 (base32 "1ygjgkzn0i61zk2yr27aqnma08c8xpblhdixli9f20if1nlgkm2y"))))
30471 (build-system pyproject-build-system)
30472 (arguments
30473 (list #:tests? #f)) ;no tests
30474 (native-inputs (list python-setuptools))
30475 (home-page "http://github.com/vpelletier/python-ioctl-opt")
30476 (synopsis "Functions to compute fnctl.ioctl's opt argument")
30477 (description
30478 "This package provides functions to compute fnctl.ioctl's opt argument.")
30479 (license license:gpl2+)))
30480
30481(define-public python-anyio
30482 (package
30483 (name "python-anyio")
30484 (version "4.12.1")
30485 (source
30486 (origin
30487 (method url-fetch)
30488 (uri (pypi-uri "anyio" version))
30489 (sha256
30490 (base32
30491 "00ypzqzllinhj2x3ai5x5bvkdb0109nw59rdjdfg1lw59hxcrks1"))
30492 (patches
30493 ;; Patch uses Python 3.11 except* syntax so can yet be upstreamed.
30494 (search-patches "python-anyio-unuse-exceptiongroup-in-test.patch"))))
30495 (build-system pyproject-build-system)
30496 (arguments
30497 (list
30498 ;; tests:
30499 ;; - x86_64-linux: 1393 passed, 70 skipped, 2 deselected, 4 xfailed
30500 ;; - aarch64-linux: 1378 passed, 70 skipped, 17 deselected, 4 xfailed
30501 #:test-flags
30502 #~(list "-m" "not network"
30503 ;; Tests are shaky with a lot of DNS lookups.
30504 "--ignore=tests/test_sockets.py"
30505 #$@(map (lambda (ls)
30506 (string-append "--deselect=" (string-join ls "::")))
30507 (append
30508 ;; _pytest.pytester.Pytester.TimeoutExpired: 3 second
30509 ;; timeout expired running: <...>
30510 '(("tests/test_pytest_plugin.py"
30511 "test_keyboardinterrupt_during_test"))
30512 (if (target-aarch64?)
30513 ;; Assertions are not equal on ARM.
30514 '(("tests/streams/test_tls.py"
30515 "TestTLSListener"
30516 "test_handshake_fail")
30517 ("tests/test_taskgroups.py"
30518 "test_shielded_cancel_sleep_time")
30519 ("tests/test_to_thread.py"
30520 "test_run_in_custom_limiter")
30521 ("tests/test_to_thread.py"
30522 "TestBlockingPortalProvider"
30523 "test_single_thread"))
30524 '()))))))
30525 (propagated-inputs
30526 (list python-idna
30527 python-sniffio
30528 python-typing-extensions))
30529 (native-inputs
30530 (list python-blockbuster
30531 python-psutil
30532 python-pytest
30533 python-pytest-mock
30534 python-setuptools
30535 python-setuptools-scm
30536 python-trio
30537 python-trustme
30538 python-truststore
30539 python-uvloop))
30540 (home-page "https://anyio.readthedocs.io")
30541 (synopsis "Compatibility layer for multiple asynchronous event loops")
30542 (description
30543 "AnyIO is an asynchronous networking and concurrency library that works
30544on top of either asyncio or trio. It implements trio-like structured
30545concurrency on top of asyncio, and works in harmony with the native SC of trio
30546itself.")
30547 (license license:expat)))
30548
30549(define-public python-argh
30550 (package
30551 (name "python-argh")
30552 (version "0.31.3")
30553 (source
30554 (origin
30555 (method url-fetch)
30556 (uri (pypi-uri "argh" version))
30557 (sha256
30558 (base32 "1ycjb2f92iskvp27vq2a8vdbpmsij61apvmkn7k5xjhlpvc2607k"))))
30559 (build-system pyproject-build-system)
30560 (native-inputs (list python-flit-core python-pytest))
30561 (home-page "https://github.com/neithere/argh/")
30562 (synopsis "Argparse wrapper with natural syntax")
30563 (description
30564 "Argh is a small library that provides several layers of abstraction
30565on top of @code{python-argparse}. The layers can be mixed. It is always
30566possible to declare a command with the highest possible (and least flexible)
30567layer and then tune the behaviour with any of the lower layers including the
30568native API of @code{python-argparse}.")
30569 (license license:lgpl3+)))
30570
30571(define-public python-pox
30572 (package
30573 (name "python-pox")
30574 (version "0.3.6")
30575 (source
30576 (origin
30577 (method url-fetch)
30578 (uri (pypi-uri "pox" version))
30579 (sha256
30580 (base32
30581 "01gnsgz6wfmpmb57qr4cgpkampiy6l7c1kxa0hlacn81c0wyvvl4"))))
30582 (build-system pyproject-build-system)
30583 (arguments
30584 (list
30585 #:phases
30586 #~(modify-phases %standard-phases
30587 (replace 'check
30588 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
30589 (when tests?
30590 (mkdir-p "/tmp/guix")
30591 (setenv "SHELL" "bash")
30592 (setenv "USERNAME" "guix")
30593 (setenv "HOME" "/tmp/guix") ; must end on USERNAME...
30594 (invoke "python" "./pox/tests/__main__.py")))))))
30595 (native-inputs
30596 (list python-setuptools
30597 which)) ;pox/tests/test_shutils.py
30598 (home-page "https://pypi.org/project/pox/")
30599 (synopsis "Python utilities for file system exploration and automated builds")
30600 (description
30601 "Pox provides a collection of utilities for navigating and manipulating
30602file systems. This module is designed to facilitate some of the low-level
30603operating system interactions that are useful when exploring a file system on a
30604remote host. Pox provides Python equivalents of several shell commands such
30605as @command{which} and @command{find}. These commands allow automated
30606discovery of what has been installed on an operating system, and where the
30607essential tools are located.")
30608 (license license:bsd-3)))
30609
30610(define-public python-flit
30611 (package
30612 (name "python-flit")
30613 (version "3.12.0") ;same as python-flit-core
30614 (source
30615 (origin
30616 (method url-fetch)
30617 (uri (pypi-uri "flit" version))
30618 (sha256
30619 (base32 "0h1pxi2hgr95321bgl45l86693zl14l3shj0idsyg4k9v56z700w"))))
30620 (build-system pyproject-build-system)
30621 (arguments
30622 (list
30623 #:test-flags
30624 ;; These tests fail when FLIT_NO_NETWORK is set
30625 '(list "-k" "not test_invalid_classifier \
30626and not test_install_requires \
30627and not test_install_requires_extra \
30628and not test_validate_classifiers_private")
30629 #:phases
30630 #~(modify-phases %standard-phases
30631 (add-after 'unpack 'relax-pip-requirement
30632 ;; python -m pip is available by default, no need to
30633 ;; propagate pip.
30634 (lambda _
30635 (substitute* "pyproject.toml"
30636 (("\"pip\",")
30637 ""))))
30638 (add-before 'check 'pre-check
30639 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
30640 (when tests?
30641 (setenv "HOME" "/tmp")
30642 (setenv "FLIT_NO_NETWORK" "1")))))))
30643 (propagated-inputs
30644 (list python-tomli-w
30645 python-flit-core
30646 python-docutils
30647 python-requests))
30648 (native-inputs
30649 (list python-responses
30650 python-pytest
30651 python-testpath))
30652 (home-page "https://flit.readthedocs.io/")
30653 (synopsis "Simple packaging tool for simple packages")
30654 (description "Flit is a simple way to put Python packages and modules on
30655PyPI. Flit packages a single importable module or package at a time, using
30656the import name as the name on PyPI. All subpackages and data files within a
30657package are included automatically.")
30658 (license license:bsd-3)))
30659
30660(define-public python-fastentrypoints
30661 (package
30662 (name "python-fastentrypoints")
30663 (home-page "https://github.com/ninjaaron/fast-entry_points")
30664 (properties '((commit . "a3a26f320c7ae2191fde71b79d4f4bf325d162f3")
30665 (revision . "0")))
30666 (version (git-version "0.12"
30667 (assoc-ref properties 'revision)
30668 (assoc-ref properties 'commit)))
30669 (source
30670 (origin
30671 (method git-fetch)
30672 (uri (git-reference
30673 (url home-page)
30674 (commit (assoc-ref properties 'commit))))
30675 (file-name (git-file-name name version))
30676 (sha256
30677 (base32 "0d4xx9zz2xrdxgap8lbrc1mvslvdvddxk3s27zqv918iykkm70d0"))))
30678 (build-system pyproject-build-system)
30679 (arguments
30680 (list
30681 ;; XXX: Testing is non-standard and hardly configurable.
30682 #:tests? #f
30683 #:test-backend #~'custom
30684 #:test-flags #~(list "test/runtest.py")))
30685 (native-inputs (list python-setuptools))
30686 (synopsis "Makes entry_points specified in setup.py load more quickly")
30687 (description
30688 "Using entry_points in your setup.py makes scripts that start really
30689slowly because it imports pkg_resources. This package allows such setup
30690scripts to load entry points more quickly.")
30691 (license license:bsd-3)))
30692
30693(define-public python-funcparserlib
30694 (package
30695 (name "python-funcparserlib")
30696 (version "1.0.1")
30697 (source
30698 (origin
30699 ;; Source tarball on PyPi lacks tests.
30700 (method git-fetch)
30701 (uri (git-reference
30702 (url "https://github.com/vlasovskikh/funcparserlib")
30703 (commit version)))
30704 (file-name (git-file-name name version))
30705 (sha256
30706 (base32 "0dw3i4fyf3j9h1l7xfgs99fc2w2axk6xqk0sdag43k444ss4hkrc"))))
30707 (build-system pyproject-build-system)
30708 (arguments
30709 '(#:phases
30710 (modify-phases %standard-phases
30711 (replace 'check
30712 (lambda* (#:key tests? #:allow-other-keys)
30713 (when tests?
30714 (invoke "python" "-m" "unittest" "discover" "-v")))))))
30715 ;; ModuleNotFoundError: No module named 'poetry'
30716 (native-inputs (list python-poetry-core python-six))
30717 (home-page "https://github.com/vlasovskikh/funcparserlib")
30718 (synopsis
30719 "Recursive descent parsing library based on functional combinators")
30720 (description
30721 "This package is a recursive descent parsing library for Python based on
30722functional combinators. Parser combinators are just higher-order functions
30723that take parsers as their arguments and return them as result values.")
30724 (license license:expat)))
30725
30726(define-public python-cson
30727 (package
30728 (name "python-cson")
30729 (version "0.8")
30730 (source
30731 (origin
30732 (method git-fetch)
30733 (uri (git-reference
30734 (url "https://github.com/avakar/pycson")
30735 (commit version)))
30736 (file-name (git-file-name name version))
30737 (sha256
30738 (base32 "0d2zbmak0hzsl1w71dgc8x4q4vdfbpk46vwyi9vvvqv7gdqj59fn"))))
30739 (build-system pyproject-build-system)
30740 (native-inputs (list python-pytest python-setuptools python-wheel))
30741 (propagated-inputs (list python-speg))
30742 (home-page "https://github.com/avakar/pycson")
30743 (synopsis "Parser for Coffeescript Object Notation (CSON)")
30744 (description
30745 "This package is a parser for Coffeescript Object Notation (CSON).")
30746 (license license:expat)))
30747
30748(define-public python-aionotify
30749 (package
30750 (name "python-aionotify")
30751 (version "0.3.1")
30752 (source
30753 (origin
30754 ;; Source tarball on PyPi lacks tests
30755 (method git-fetch)
30756 (uri (git-reference
30757 (url "https://github.com/rbarrois/aionotify")
30758 (commit version)))
30759 (file-name (git-file-name name version))
30760 (sha256
30761 (base32 "1p08g0h4bjlra25cwysag7gifsrm35d5vkjfv845w1rig8b57q9s"))))
30762 (build-system pyproject-build-system)
30763 (native-inputs
30764 (list python-pytest
30765 python-setuptools
30766 python-wheel))
30767 (home-page "https://github.com/rbarrois/aionotify")
30768 (synopsis "inotify library for Python")
30769 (description
30770 "@code{python-aionotify} is a simple, asyncio-based inotify library.")
30771 (license license:bsd-3)))
30772
30773(define-public python-forbiddenfruit
30774 (package
30775 (name "python-forbiddenfruit")
30776 (version "0.1.4")
30777 (source
30778 (origin
30779 (method git-fetch)
30780 (uri (git-reference
30781 (url "https://github.com/clarete/forbiddenfruit")
30782 (commit version)))
30783 (file-name (git-file-name name version))
30784 (sha256
30785 (base32 "16chhrxbbmg6lfbzm532fq0v00z8qihcsj0kg2b5jlgnb6qijwn8"))))
30786 (build-system pyproject-build-system)
30787 (arguments
30788 (list
30789 #:phases
30790 #~(modify-phases %standard-phases
30791 (replace 'check
30792 (lambda* (#:key tests? #:allow-other-keys)
30793 (when tests?
30794 (invoke "make" "prepare" "SKIP_DEPS=1")
30795 (invoke "nosetests")))))))
30796 (native-inputs (list python-pynose python-setuptools))
30797 (home-page "https://github.com/clarete/forbiddenfruit")
30798 (synopsis "Patch python built-in objects")
30799 (description "This project allows Python code to extend built-in types.")
30800 (license (list license:gpl3+ license:expat))))
30801
30802(define-public python-k5test
30803 (package
30804 (name "python-k5test")
30805 (version "0.10.4")
30806 (source
30807 (origin
30808 (method url-fetch)
30809 (uri (pypi-uri "k5test" version))
30810 (sha256
30811 (base32 "0c7g9gk3vfgh1wbl4s1v15v283srsixkhgak7lxskxh2cqg4jlp1"))))
30812 (build-system pyproject-build-system)
30813 (arguments
30814 (list #:tests? #f)) ;no tests
30815 (native-inputs
30816 (list python-setuptools))
30817 (inputs
30818 (list mit-krb5))
30819 (home-page "https://github.com/pythongssapi/k5test")
30820 (synopsis "Library for setting up self-contained Kerberos 5 environments")
30821 (description
30822 "@code{k5test} is a library for setting up self-contained Kerberos 5
30823environments, and running Python unit tests inside those environments. It is
30824based on the file of the same name found alongside the MIT Kerberos 5 unit
30825tests.")
30826 (license license:isc)))
30827
30828(define-public python-gssapi
30829 (package
30830 (name "python-gssapi")
30831 (version "1.10.0")
30832 (source
30833 (origin
30834 (method url-fetch)
30835 (uri (pypi-uri "gssapi" version))
30836 (sha256
30837 (base32 "0qvpsx5kq746gixa7phxikkxmir3wy5dj94phg93mvhbq86mwjgi"))))
30838 (build-system pyproject-build-system)
30839 (arguments
30840 (list #:test-flags #~(list "--pyargs" "gssapi")))
30841 (native-inputs
30842 (list python-cython
30843 python-k5test
30844 python-parameterized
30845 python-pytest
30846 python-setuptools))
30847 (inputs
30848 (list mit-krb5))
30849 (propagated-inputs
30850 (list python-decorator))
30851 (home-page "https://github.com/pythongssapi/python-gssapi")
30852 (synopsis "Python GSSAPI Wrapper")
30853 (description
30854 "Python-GSSAPI provides both low-level and high level wrappers around the
30855GSSAPI C libraries. While it focuses on the Kerberos mechanism, it should
30856also be usable with other GSSAPI mechanisms.")
30857 (license license:isc)))
30858
30859(define-public python-check-manifest
30860 (package
30861 (name "python-check-manifest")
30862 (version "0.51")
30863 (source
30864 (origin
30865 (method url-fetch)
30866 (uri (pypi-uri "check_manifest" version))
30867 (sha256
30868 (base32 "0rvdkddnrh8hr42pqabpfrxb6ncswn7c9qrk7xb5lxbmfriwf0cq"))))
30869 (build-system pyproject-build-system)
30870 (arguments
30871 (list
30872 ;; tests: 127 passed, 20 skipped, 2 deselected
30873 #:test-flags
30874 ;; This tests requires setting up a venv which does not work
30875 ;; properly in the build environment.
30876 #~(list "--deselect=tests.py::Tests::test_build_sdist_pep517_no_isolation"
30877 "--deselect=tests.py::Tests::test_build_sdist_pep517_isolated")))
30878 (native-inputs
30879 (list git-minimal/pinned python-pytest))
30880 (propagated-inputs
30881 (list python-pypa-build python-setuptools))
30882 (home-page "https://github.com/mgedmin/check-manifest")
30883 (synopsis "Check MANIFEST.in in a Python source package for completeness")
30884 (description "Python package can include a MANIFEST.in file to help with
30885sending package files to the Python Package Index. This package checks that
30886file to ensure it completely and accurately describes your project.")
30887 (license license:expat)))
30888
30889(define-public python-android-stringslib
30890 (package
30891 (name "python-android-stringslib")
30892 (version "0.1.2")
30893 (source
30894 (origin
30895 (method git-fetch)
30896 (uri (git-reference
30897 (url "https://framagit.org/tyreunom/python-android-strings-lib")
30898 (commit (string-append "v" version))))
30899 (file-name (git-file-name name version))
30900 (sha256
30901 (base32
30902 "0gij55qzzq1h83kfpvhai1vf78kkhyvxa6l17m2nl24454lhfin4"))))
30903 (build-system pyproject-build-system)
30904 (arguments (list #:tests? #f)) ; No tests.
30905 (native-inputs (list python-setuptools))
30906 (home-page "https://framagit.org/tyreunom/python-android-strings-lib")
30907 (synopsis "Android strings.xml support")
30908 (description
30909 "Android Strings Lib provides support for android's strings.xml files.
30910These files are used to translate strings in android apps.")
30911 (license license:expat)))
30912
30913(define-public python-pypng
30914 (package
30915 (name "python-pypng")
30916 (version "0.20220715.0")
30917 (source
30918 (origin
30919 (method url-fetch)
30920 (uri (pypi-uri "pypng" version))
30921 (sha256
30922 (base32 "1hg24zja235bkbny82hx7sy7qlzfbabxph2lvqaq61vgm4xl773k"))))
30923 (build-system pyproject-build-system)
30924 (arguments
30925 (list
30926 #:phases
30927 '(modify-phases %standard-phases
30928 (add-before 'check 'pre-check
30929 (lambda _
30930 (setenv "PYTHONPATH"
30931 (string-append (getcwd) "/code:"
30932 (getenv "GUIX_PYTHONPATH"))))))))
30933 (native-inputs (list python-pytest python-setuptools python-wheel))
30934 (home-page "https://github.com/drj11/pypng")
30935 (synopsis "Pure Python PNG image encoder/decoder")
30936 (description
30937 "The PyPNG module implements support for PNG images. It reads and writes
30938PNG files with all allowable bit depths (1/2/4/8/16/24/32/48/64 bits per
30939pixel) and colour combinations: greyscale (1/2/4/8/16 bit); RGB, RGBA,
30940LA (greyscale with alpha) with 8/16 bits per channel; colour mapped
30941images (1/2/4/8 bit). Adam7 interlacing is supported for reading and writing.
30942A number of optional chunks can be specified (when writing) and
30943understood (when reading): tRNS, bKGD, gAMA.
30944
30945PyPNG is not a high level toolkit for image processing (like PIL) and does not
30946aim at being a replacement or competitor. Its strength lies in fine-grained
30947extensive support of PNG features. It can also read and write Netpbm PAM
30948files, with a focus on its use as an intermediate format for implementing
30949custom PNG processing.")
30950 (license license:expat)))
30951
30952(define-public python-fuzzywuzzy
30953 (package
30954 (name "python-fuzzywuzzy")
30955 (version "0.18.0")
30956 (source
30957 (origin
30958 (method git-fetch)
30959 (uri (git-reference
30960 (url "https://github.com/seatgeek/fuzzywuzzy")
30961 (commit version)))
30962 (file-name (git-file-name name version))
30963 (sha256
30964 (base32 "0zh8xd9k95waipsdz516rn51ya9xxlxbd7ivbka4gnkqm9ah79mc"))))
30965 (build-system pyproject-build-system)
30966 (arguments
30967 (list
30968 #:test-flags
30969 #~(list "--deselect=test_fuzzywuzzy_pytest.py::test_process_warning")))
30970 (native-inputs
30971 (list python-hypothesis
30972 python-pycodestyle
30973 python-pytest
30974 python-setuptools))
30975 (propagated-inputs (list python-levenshtein))
30976 (home-page "https://github.com/seatgeek/fuzzywuzzy")
30977 (synopsis "Fuzzy string matching in Python")
30978 (description
30979 "Approximate string matching using @emph{Levenshtein Distance} to
30980calculate the differences between sequences.")
30981 (license license:gpl2)))
30982
30983(define-public python-block-tracing
30984 (package
30985 (name "python-block-tracing")
30986 (version "1.0.1")
30987 (source
30988 (origin
30989 (method url-fetch)
30990 (uri (pypi-uri "block_tracing" version))
30991 (sha256
30992 (base32 "0s2y729qr5rs7n506qfh8cssk8m2bi6k2y5vbrh2z3raf2d01alz"))))
30993 (build-system pyproject-build-system)
30994 (arguments (list #:tests? #f)) ; No tests.
30995 (native-inputs (list python-setuptools))
30996 (home-page "https://github.com/rianhunter/block_tracing")
30997 (synopsis "Protect process memory")
30998 (description
30999 "@code{block_tracing} is a tiny Python library that can be used to
31000prevent debuggers and other applications from inspecting the memory within
31001your process.")
31002 (license license:expat)))
31003
31004(define-public python-json-e
31005 (package
31006 (name "python-json-e")
31007 (version "4.8.0")
31008 (source
31009 (origin
31010 (method git-fetch) ; no tests in PyPI release
31011 (uri (git-reference
31012 (url "https://github.com/json-e/json-e")
31013 (commit (string-append "v" version))))
31014 (file-name (git-file-name name version))
31015 (sha256
31016 (base32 "1zsx17jjhvan1ziq5aaqwids3b9kzx3j8czf9qznqqqvb1n133g8"))))
31017 (build-system pyproject-build-system)
31018 (arguments
31019 (list
31020 #:phases
31021 #~(modify-phases %standard-phases
31022 ;; Git repository provides implementations for JavaScript, Golang,
31023 ;; Python and Rust, pick "py".
31024 (add-before 'build 'chdir-to-py
31025 (lambda _
31026 (chdir "py"))))))
31027 (native-inputs
31028 (list python-freezegun
31029 python-pytest
31030 python-pyyaml
31031 python-setuptools
31032 python-wheel))
31033 (home-page "https://json-e.js.org")
31034 (synopsis "Data-structure parameterizer for embedding context in JSON objects")
31035 (description
31036 "This package provides a data-structure parameterization system written
31037for embedding context in JSON objects.")
31038 (license license:mpl2.0)))
31039
31040(define-public python-json-logger
31041 (package
31042 (name "python-json-logger")
31043 (version "4.0.0")
31044 (source
31045 (origin
31046 (method git-fetch)
31047 (uri (git-reference
31048 (url "https://github.com/nhairs/python-json-logger")
31049 (commit (string-append "v" version))))
31050 (file-name (git-file-name name version))
31051 (sha256
31052 (base32 "0m64kh446q38lngw2p5rcfcx6rkq8vbrwl58lsi2c34phpwlqnv0"))))
31053 (build-system pyproject-build-system)
31054 (native-inputs
31055 (list python-freezegun
31056 python-mike
31057 python-msgspec
31058 python-orjson
31059 python-pypa-build
31060 python-pytest
31061 python-setuptools
31062 python-tzdata
31063 python-validate-pyproject
31064 python-typing-extensions))
31065 (home-page "https://github.com/nhairs/python-json-logger")
31066 (synopsis "JSON log formatter in Python")
31067 (description "This library allows standard Python logging to output log data
31068as JSON objects. With JSON we can make our logs more readable by machines and
31069we can stop writing custom parsers for syslog-type records.")
31070 (license license:bsd-3)))
31071
31072(define-public python-daiquiri
31073 (package
31074 (name "python-daiquiri")
31075 (version "3.0.1")
31076 (source
31077 (origin
31078 (method git-fetch)
31079 (uri (git-reference
31080 (url "https://github.com/jd/daiquiri")
31081 (commit version)))
31082 (file-name (git-file-name name version))
31083 (sha256
31084 (base32 "0vfakncq87s6g67mqihjf32xarphd75c03ammvgavladz0pqhlg4"))))
31085 (build-system pyproject-build-system)
31086 (propagated-inputs (list python-json-logger))
31087 (native-inputs (list python-mock python-pytest python-setuptools
31088 python-setuptools-scm))
31089 (home-page "https://github.com/jd/daiquiri")
31090 (synopsis "Library to configure Python logging easily")
31091 (description
31092 "The daiquiri library provides an easy way to configure logging in
31093Python. It also provides some custom formatters and handlers.")
31094 (license license:asl2.0)))
31095
31096(define-public python-pifpaf
31097 (package
31098 (name "python-pifpaf")
31099 (version "3.4.0")
31100 (source
31101 (origin
31102 (method git-fetch)
31103 (uri (git-reference
31104 (url "https://github.com/jd/pifpaf")
31105 (commit version)))
31106 (file-name (git-file-name name version))
31107 (sha256
31108 (base32 "1mj41h5xrkx71d7g5di3ykd4bsbgr7x432zbp63majgjci86gmm9"))))
31109 (build-system pyproject-build-system)
31110 (arguments
31111 (list
31112 #:phases
31113 #~(modify-phases %standard-phases
31114 (add-after 'install 'install-drivers
31115 (lambda* (#:key inputs outputs #:allow-other-keys)
31116 (let ((site (site-packages inputs outputs)))
31117 (copy-recursively "pifpaf/drivers"
31118 (string-append site "/pifpaf/drivers/"))))))))
31119 (propagated-inputs
31120 (list python-click
31121 python-daiquiri
31122 python-fixtures
31123 python-jinja2
31124 python-pbr
31125 python-psutil
31126 python-xattr))
31127 (native-inputs
31128 (list python-mock
31129 python-stestr
31130 python-packaging
31131 python-requests
31132 python-testrepository
31133 python-testtools
31134 python-setuptools))
31135 (home-page "https://github.com/jd/pifpaf")
31136 (synopsis "Tools and fixtures to manage daemons for testing in Python")
31137 (description
31138 "Pifpaf is a suite of fixtures and a command-line tool that starts and
31139stops daemons for a quick throw-away usage. This is typically useful when
31140needing these daemons to run integration testing. It originally evolved from
31141its precursor @code{overtest}.")
31142 (license license:asl2.0)))
31143
31144(define-public python-pytest-check-links
31145 (package
31146 (name "python-pytest-check-links")
31147 (version "0.10.1")
31148 (source
31149 (origin
31150 (method url-fetch)
31151 (uri (pypi-uri "pytest_check_links" version))
31152 (sha256
31153 (base32 "0vbp9nis2iwjz1rjc623bm2908y34xd7zj4yfk43giz6r29dsn3k"))))
31154 (build-system pyproject-build-system)
31155 (arguments
31156 (list #:tests? #f)) ;XXX: 12 failed, 4 passed, 2 skipped
31157 (native-inputs
31158 (list python-hatchling))
31159 (propagated-inputs
31160 (list python-docutils
31161 python-html5lib
31162 python-nbconvert
31163 python-nbformat
31164 python-requests))
31165 (home-page "https://github.com/jupyterlab/pytest-check-links")
31166 (synopsis "Check links in files")
31167 (description "This package provides a pytest plugin that checks URLs for
31168HTML-containing files.")
31169 (license license:bsd-3)))
31170
31171(define-public python-json5
31172 (package
31173 (name "python-json5")
31174 (version "0.9.25")
31175 (source
31176 (origin
31177 ;; sample.json5 is missing from PyPi source tarball
31178 (method git-fetch)
31179 (uri (git-reference
31180 (url "https://github.com/dpranke/pyjson5")
31181 (commit (string-append "v" version))))
31182 (file-name (git-file-name name version))
31183 (sha256
31184 (base32 "1c96dqc8hn8c82q89rr7ix8d4da07ls3iac64f8jvjlgmhfik46q"))))
31185 (build-system pyproject-build-system)
31186 (native-inputs (list python-pytest python-setuptools python-wheel))
31187 (home-page "https://github.com/dpranke/pyjson5")
31188 (synopsis "Python implementation of the JSON5 data format")
31189 (description
31190 "JSON5 extends the JSON data interchange format to make it slightly more
31191usable as a configuration language. This Python package implements parsing and
31192dumping of JSON5 data structures.")
31193 (license license:asl2.0)))
31194
31195(define-public python-farama-notifications
31196 (package
31197 (name "python-farama-notifications")
31198 (version "0.0.4")
31199 (source
31200 ;; The version on pypi does not include tests.
31201 (origin
31202 (method git-fetch)
31203 (uri (git-reference
31204 (url "https://github.com/Farama-Foundation/Farama-Notifications")
31205 (commit version)))
31206 (file-name (git-file-name name version))
31207 (sha256
31208 (base32 "1k1x48xpvhankw7vbjp20ljwran247aphc2qncqrxivrkgzwjjji"))))
31209 (build-system pyproject-build-system)
31210 (arguments
31211 (list
31212 #:phases
31213 '(modify-phases %standard-phases
31214 (replace 'check
31215 (lambda* (#:key tests? #:allow-other-keys)
31216 (when tests?
31217 (invoke "python3" "tests/ci-test.py")))))))
31218 (native-inputs (list python-pytest python-setuptools python-wheel))
31219 (home-page "https://github.com/Farama-Foundation/Farama-Notifications")
31220 (synopsis "Notifications for all Farama Foundation maintained libraries")
31221 (description
31222 "This package allows for providing notifications for all Farama
31223Foundation maintained libraries.")
31224 (license license:expat)))
31225
31226(define-public python-frontmatter
31227 (package
31228 (name "python-frontmatter")
31229 (version "1.3.0")
31230 (source
31231 (origin
31232 (method git-fetch)
31233 (uri (git-reference
31234 (url "https://github.com/eyeseast/python-frontmatter")
31235 (commit (string-append "v" version))))
31236 (file-name (git-file-name name version))
31237 (sha256
31238 (base32 "09kgl9kw96f1pyszqnm7slq1lw5nh4c8f59p6brz0ap2ydcfxykg"))))
31239 (build-system pyproject-build-system)
31240 (native-inputs
31241 (list python-hatchling
31242 python-pyaml
31243 python-pytest
31244 python-toml
31245 python-types-pyyaml
31246 python-types-toml
31247 python-uv-build))
31248 (propagated-inputs (list python-pyyaml))
31249 (home-page "https://github.com/eyeseast/python-frontmatter")
31250 (synopsis "Parse and manage posts with YAML (or other) frontmatter")
31251 (description
31252 "This package offers a useful way to add arbitrary, structured metadata
31253to text documents, regardless of type. This is a small package to load and
31254parse files (or just text) with YAML (or JSON, TOML or other) front matter.")
31255 (license license:expat)))
31256
31257(define-public python-frozendict
31258 (package
31259 (name "python-frozendict")
31260 (version "2.4.6")
31261 (source
31262 (origin
31263 (method url-fetch)
31264 (uri (pypi-uri "frozendict" version))
31265 (sha256
31266 (base32 "13ib358v66c9ykfz3plpxcs96ca6vkx8w84sjv26zlpvf1jd2z6z"))))
31267 (build-system pyproject-build-system)
31268 (native-inputs
31269 (list python-pytest
31270 python-setuptools
31271 python-wheel))
31272 (home-page "https://github.com/Marco-Sulla/python-frozendict")
31273 (synopsis "Simple immutable mapping for Python")
31274 (description
31275 "@dfn{frozendict} is an immutable wrapper around dictionaries that
31276implements the complete mapping interface. It can be used as a drop-in
31277replacement for dictionaries where immutability is desired.")
31278 (license license:expat)))
31279
31280(define-public python-py-cpuinfo
31281 (package
31282 (name "python-py-cpuinfo")
31283 (version "9.0.0")
31284 (source
31285 (origin
31286 (method git-fetch)
31287 (uri (git-reference
31288 (url "https://github.com/workhorsy/py-cpuinfo")
31289 (commit (string-append "v" version))))
31290 (file-name (git-file-name name version))
31291 (sha256
31292 (base32
31293 "112gzmwbj3ndxv20ii7i70irp58adwrlzjdvx5gmh39aw21b96s3"))))
31294 (build-system pyproject-build-system)
31295 (arguments
31296 (list #:test-backend #~'custom
31297 #:test-flags #~(list "test_suite.py")))
31298 (native-inputs
31299 (list python-setuptools))
31300 (home-page "https://github.com/workhorsy/py-cpuinfo")
31301 (synopsis "Get CPU info with Python")
31302 (description
31303 "This Python module returns the CPU info by using the best sources of
31304information for your operating system.")
31305 (license license:expat)))
31306
31307(define-public python-canonicaljson
31308 (package
31309 (name "python-canonicaljson")
31310 (version "2.0.0")
31311 (source
31312 (origin
31313 (method url-fetch)
31314 (uri (pypi-uri "canonicaljson" version))
31315 (sha256
31316 (base32 "0gqi5z8j3myfblrc96l0jykdsk863gad1lwvnnf5vp7sszqsxzg2"))))
31317 (build-system pyproject-build-system)
31318 (arguments
31319 (list #:test-backend #~'unittest))
31320 (native-inputs
31321 (list python-setuptools))
31322 (home-page "https://github.com/matrix-org/python-canonicaljson")
31323 (synopsis "Canonical JSON")
31324 (description
31325 "Deterministically encode JSON.
31326
31327@itemize
31328@item Encodes objects and arrays as RFC 7159 JSON.
31329@item Sorts object keys so that you get the same result each time.
31330@item Has no insignificant whitespace to make the output as small as possible.
31331@item Escapes only the characters that must be escaped, U+0000 to
31332 U+0019 / U+0022 / U+0056, to keep the output as small as possible.
31333@item Uses the shortest escape sequence for each escaped character.
31334@item Encodes the JSON as UTF-8.
31335@item Can encode frozendict immutable dictionaries.
31336@end itemize")
31337 (license license:asl2.0)))
31338
31339(define-public python-signedjson
31340 (package
31341 (name "python-signedjson")
31342 (version "1.1.4")
31343 (source
31344 (origin
31345 (method git-fetch)
31346 (uri (git-reference
31347 (url "https://github.com/matrix-org/python-signedjson")
31348 (commit (string-append "v" version))))
31349 (file-name (git-file-name name version))
31350 (sha256
31351 (base32 "1wkgbwr0hdvafbhbqjibca06rxqbp95gg6rfd3ba6rkgl4g85i5z"))))
31352 (build-system pyproject-build-system)
31353 (propagated-inputs
31354 (list python-canonicaljson
31355 python-pynacl
31356 python-typing-extensions
31357 python-unpaddedbase64))
31358 (native-inputs
31359 (list python-pytest python-setuptools-scm python-setuptools))
31360 (home-page "https://github.com/matrix-org/python-signedjson")
31361 (synopsis "Sign JSON objects with ED25519 signatures")
31362 (description
31363 "Sign JSON objects with ED25519 signatures.
31364
31365@itemize
31366@item More than one entity can sign the same object.
31367@item Each entity can sign the object with more than one key making it easier to
31368rotate keys
31369@item ED25519 can be replaced with a different algorithm.
31370@item Unprotected data can be added to the object under the @dfn{\"unsigned\"}
31371key.
31372@end itemize")
31373 (license license:asl2.0)))
31374
31375(define-public python-daemonize
31376 (package
31377 (name "python-daemonize")
31378 (version "2.5.0")
31379 (source
31380 (origin
31381 (method git-fetch)
31382 (uri (git-reference
31383 (url "https://github.com/thesharp/daemonize")
31384 (commit (string-append "v" version))))
31385 (file-name (git-file-name name version))
31386 (sha256
31387 (base32 "0pz914x6dfq133nfv0y8q8fss4zr52ip8mq3ds50rx0ddlbb0k2x"))))
31388 (build-system pyproject-build-system)
31389 (arguments
31390 (list
31391 #:test-backend #~'custom
31392 #:test-flags #~(list "tests/test.py")
31393 #:phases
31394 #~(modify-phases %standard-phases
31395 (add-before 'check 'fix-tests
31396 (lambda _
31397 ;; XXX: nobody has group nogroup on Guix.
31398 (substitute* "tests/test.py"
31399 (("grp\\.getgrnam\\(\"nobody\"\\)\\.gr_gid")
31400 (number->string (passwd:gid (getpw "nobody"))))))))))
31401 (native-inputs (list coreutils-minimal procps python-setuptools))
31402 (home-page "https://github.com/thesharp/daemonize")
31403 (synopsis "Library for writing system daemons in Python")
31404 (description
31405 "Daemonize is a library for writing system daemons in Python.")
31406 (license license:expat)))
31407
31408(define-public python-pymacaroons
31409 (package
31410 (name "python-pymacaroons")
31411 (properties '((commit . "78c55c1d33a0b23ddc71140a9c999f957d79e9dd")
31412 (revision . "0")))
31413 (version (git-version "0.13.0"
31414 (assoc-ref properties 'revision)
31415 (assoc-ref properties 'commit)))
31416 (source
31417 (origin
31418 (method git-fetch)
31419 (uri (git-reference
31420 (url "https://github.com/ecordell/pymacaroons")
31421 (commit (assoc-ref properties 'commit))))
31422 (file-name (git-file-name name version))
31423 (sha256
31424 (base32 "0ybdxlx6crb7l850dzz50arqrm4d4dl5dvzlf8f7sdhdcn2lgr7m"))))
31425 (build-system pyproject-build-system)
31426 (arguments
31427 (list
31428 #:test-flags
31429 ;; XXX: Despite python-hypothesis, ModuleNotFoundError:
31430 ;; No module named 'hypothesis.specifiers'
31431 #~(list "--ignore=tests/property_tests/macaroon_property_tests.py")))
31432 (native-inputs
31433 (list python-hypothesis
31434 python-mock
31435 python-pytest
31436 python-setuptools))
31437 (propagated-inputs (list python-pynacl))
31438 (home-page "https://github.com/ecordell/pymacaroons")
31439 (synopsis "Python Macaroon Library")
31440 (description
31441 "Macaroons, like cookies, are a form of bearer credential. Unlike opaque
31442tokens, macaroons embed caveats that define specific authorization
31443requirements for the target service, the service that issued the root macaroon
31444and which is capable of verifying the integrity of macaroons it receives.
31445
31446Macaroons allow for delegation and attenuation of authorization. They are
31447simple and fast to verify, and decouple authorization policy from the
31448enforcement of that policy.")
31449 (license license:expat)))
31450
31451(define-public python-ldap3
31452 (package
31453 (name "python-ldap3")
31454 (version "2.9.1")
31455 (home-page "https://github.com/cannatag/ldap3")
31456 (source
31457 (origin
31458 (method git-fetch)
31459 (uri (git-reference (url home-page)
31460 (commit (string-append "v" version))))
31461 (file-name (git-file-name name version))
31462 (sha256
31463 (base32 "07nxbv41wpg5567r07yvm4chgs761drsvn53gn548zi26gmrpr07"))))
31464 (build-system pyproject-build-system)
31465 (arguments
31466 (list
31467 #:tests? #f ;TODO: Tests need a real LDAP server to run
31468 #:test-backend #~'nose))
31469 (native-inputs
31470 (list python-pynose python-setuptools))
31471 (propagated-inputs
31472 (list python-gssapi python-pyasn1))
31473 (synopsis "Python LDAP client")
31474 (description
31475 "LDAP3 is a strictly RFC 4510 conforming LDAP V3 pure Python client
31476library.")
31477 (license license:lgpl3+)))
31478
31479(define-public python-boltons
31480 (package
31481 (name "python-boltons")
31482 (version "25.0.0")
31483 (source
31484 (origin
31485 (method git-fetch)
31486 (uri (git-reference
31487 (url "https://github.com/mahmoud/boltons")
31488 (commit version)))
31489 (file-name (git-file-name name version))
31490 (sha256
31491 (base32 "0j061hd1iwcyz1rvasprjwwgb39x6h36n1l3dw310ig3pzbr84wh"))))
31492 (build-system pyproject-build-system)
31493 (native-inputs (list python-flit-core python-pytest-8 python-setuptools))
31494 (home-page "https://github.com/mahmoud/boltons")
31495 (synopsis "Extensions to the Python standard library")
31496 (description
31497 "Boltons is a set of over 230 pure-Python utilities in the same spirit
31498as — and yet conspicuously missing from — the standard library, including:
31499
31500@itemize
31501@item Atomic file saving, bolted on with fileutils
31502@item A highly-optimized OrderedMultiDict, in dictutils
31503@item Two types of PriorityQueue, in queueutils
31504@item Chunked and windowed iteration, in iterutils
31505@item Recursive data structure iteration and merging, with iterutils.remap
31506@item Exponential backoff functionality, including jitter, through
31507iterutils.backoff
31508@item A full-featured TracebackInfo type, for representing stack traces, in
31509tbutils
31510@end itemize")
31511 (license license:bsd-3)))
31512
31513(define-public python-eliot
31514 (package
31515 (name "python-eliot")
31516 (version "1.17.5")
31517 (source
31518 (origin
31519 (method url-fetch)
31520 (uri (pypi-uri "eliot" version))
31521 (sha256
31522 (base32 "0rx7isb3h5fvraycfgqm781asjjmqldn0qcv6s2r5fwc1p31ffvb"))))
31523 (build-system pyproject-build-system)
31524 (arguments
31525 (list
31526 ;; tests: 407 passed, 21 skipped, 2 deselected, 5479 warnings
31527 ;; Two tests fail with error: TypeError: Unsupported type.
31528 #:test-flags #~(list "-k" "not test_basic_types and not test_dataclass")
31529 #:phases
31530 #~(modify-phases %standard-phases
31531 (add-after 'unpack 'remove-journald-support
31532 (lambda _
31533 (for-each delete-file
31534 '("eliot/tests/test_journald.py"
31535 "eliot/journald.py")))))))
31536 (native-inputs
31537 (list python-pytest
31538 python-setuptools
31539 python-testtools))
31540 (propagated-inputs
31541 (list python-boltons
31542 python-orjson
31543 python-pyrsistent
31544 python-zope-interface))
31545 (home-page "https://github.com/itamarst/eliot/")
31546 (synopsis "Eliot: the logging system that tells you why it happened")
31547 (description
31548 "@dfn{eliot} is a Python logging system that outputs causal chains of
31549actions: actions can spawn other actions, and eventually they either succeed
31550or fail. The resulting logs tell you the story of what your software did: what
31551happened, and what caused it.")
31552 (license license:asl2.0)))
31553
31554(define-public python-pem
31555 (package
31556 (name "python-pem")
31557 (version "23.1.0")
31558 (source
31559 (origin
31560 (method git-fetch)
31561 (uri (git-reference
31562 (url "https://github.com/hynek/pem")
31563 (commit version)))
31564 (file-name (git-file-name name version))
31565 (sha256
31566 (base32 "01x14j1pliyxvcx8hlwlwfchn893ddkxxpxbyqhyh6hjyag2ammd"))))
31567 (build-system pyproject-build-system)
31568 (native-inputs
31569 (list nss-certs-for-test
31570 python-certifi
31571 python-hatch-fancy-pypi-readme
31572 python-hatch-vcs
31573 python-hatchling
31574 python-pretend
31575 python-pyopenssl
31576 python-pytest
31577 python-twisted))
31578 (home-page "https://pem.readthedocs.io/")
31579 (synopsis "Easy PEM file parsing in Python")
31580 (description
31581 "This package provides a Python module for parsing and splitting PEM files.")
31582 (license license:expat)))
31583
31584(define-public python-pysaml2
31585 (package
31586 (name "python-pysaml2")
31587 (version "7.5.4")
31588 (source
31589 (origin
31590 (method git-fetch)
31591 (uri (git-reference
31592 (url "https://github.com/IdentityPython/pysaml2")
31593 (commit (string-append "v" version))))
31594 (file-name (git-file-name name version))
31595 (sha256
31596 (base32 "1vxi6kmckaj0djn79xw8f0gdd569i2y6sywsywyvyrwdcf6k8fqc"))))
31597 (build-system pyproject-build-system)
31598 (arguments
31599 (list
31600 #:test-flags
31601 #~(list "-k"
31602 (string-join
31603 ;; XXX: encryption failures
31604 (list "not test_encrypted_response_6"
31605 "test_validate_cert_chains"
31606 "test_validate_with_root_cert"
31607 ;; XXX: xml parsing error
31608 "test_namespace_processing") " and not "))
31609 #:phases
31610 #~(modify-phases %standard-phases
31611 (add-after 'unpack 'relax-requirements
31612 (lambda _
31613 (substitute* "pyproject.toml"
31614 (("\"(pyopenssl|xmlschema).*\"" _ dep)
31615 (format #f "~s" dep))))))))
31616 (native-inputs (list python-poetry-core python-pytest))
31617 (propagated-inputs
31618 (list python-cryptography
31619 python-dateutil
31620 python-defusedxml
31621 python-pymongo
31622 python-pyopenssl
31623 python-responses
31624 python-requests
31625 python-xmlschema
31626 python-xmlsec))
31627 (home-page "https://idpy.org")
31628 (synopsis "Python implementation of SAML Version 2 Standard")
31629 (description
31630 "PySAML2 is a pure python implementation of SAML Version 2 Standard.
31631It contains all necessary pieces for building a SAML2 service provider or
31632an identity provider. The distribution contains examples of both.
31633
31634This package was originally written to work in a WSGI environment, but
31635there are extensions that allow you to use it with other frameworks.")
31636 (license license:asl2.0)))
31637
31638;; XXX: Upstream note: Final PyPI release to mark the project as inactive.
31639;; This PyPI package is no longer actively maintained, but the underlying
31640;; library can be vendored.
31641;;
31642;; Version 2.0 lacks packaging instructions (setup.py, setup.pkg or
31643;; pyproject.toml) and can't be used as a common input, do not update this
31644;; package.
31645(define-public python-click-plugins
31646 (package
31647 (name "python-click-plugins")
31648 (version "1.1.1.2")
31649 (source
31650 (origin
31651 (method git-fetch)
31652 (uri (git-reference
31653 (url "https://github.com/click-contrib/click-plugins")
31654 (commit version)))
31655 (file-name (git-file-name name version))
31656 (sha256
31657 (base32 "11i93dxb6vvlqb79p8qdbcxvcsb2bb2b9lbkqhv5hs93nry02gxl"))))
31658 (build-system pyproject-build-system)
31659 (arguments
31660 (list #:tests? #f)) ;5 failed, 2 passed, 1 warning
31661 (native-inputs
31662 (list python-setuptools))
31663 (propagated-inputs
31664 (list python-click))
31665 (synopsis "Extension for Click to register external CLI commands")
31666 (description
31667 "This package provides n extension module for Click to register external
31668CLI commands via setuptools entry-points.")
31669 (home-page "https://github.com/click-contrib/click-plugins")
31670 (license license:bsd-3)))
31671
31672;; XXX: Deprecated on <2026-03-23>.
31673(define-deprecated-package python-click-plugins-1 python-click-plugins)
31674
31675(define-public python-diceware
31676 (package
31677 (name "python-diceware")
31678 (version "1.0.1")
31679 (source
31680 (origin
31681 (method url-fetch)
31682 (uri (pypi-uri "diceware" version))
31683 (sha256
31684 (base32
31685 "0fb61yfqapygnpqawf3z286llkc0qfh1b3m1hlqanmhcky091djl"))))
31686 (build-system pyproject-build-system)
31687 (native-inputs
31688 (list python-pytest python-setuptools python-wheel))
31689 (home-page "https://github.com/ulif/diceware/")
31690 (synopsis "Generates memorable passphrases")
31691 (description "This package generates passphrases by concatenating words
31692randomly picked from wordlists. It supports several sources of
31693randomness (including real life dice) and different wordlists (including
31694cryptographically signed ones).")
31695 (license license:gpl3+)))
31696
31697(define-public python-dictdiffer
31698 (package
31699 (name "python-dictdiffer")
31700 (version "0.9.0")
31701 (source
31702 (origin
31703 (method git-fetch)
31704 (uri (git-reference
31705 (url "https://github.com/inveniosoftware/dictdiffer")
31706 (commit (string-append "v" version))))
31707 (file-name (git-file-name name version))
31708 (sha256
31709 (base32 "1rc5jhjxzphip43frrlplcayng2cah1bzbzv6hpxnnjhg6rqy34m"))))
31710 (build-system pyproject-build-system)
31711 (arguments
31712 (list
31713 #:phases
31714 #~(modify-phases %standard-phases
31715 (add-after 'unpack 'relax-requirements
31716 (lambda _
31717 (delete-file "pytest.ini")
31718 (substitute* "setup.py"
31719 (("'pytest-runner.*',")
31720 "'pytest',")))))))
31721 (native-inputs
31722 (list python-pytest python-setuptools python-setuptools-scm))
31723 (home-page "https://github.com/inveniosoftware/dictdiffer")
31724 (synopsis "Diff and patch Python dictionary objects")
31725 (description
31726 "Dictdiffer is a Python module that helps you to diff and patch
31727dictionaries.")
31728 (license license:expat)))
31729
31730(define-public python-osc
31731 (package
31732 (name "python-osc")
31733 (version "1.9.3")
31734 (source
31735 (origin
31736 (method git-fetch)
31737 (uri (git-reference
31738 (url "https://github.com/attwad/python-osc")
31739 (commit (string-append "v" version))))
31740 (file-name (git-file-name name version))
31741 (sha256
31742 (base32 "1d99q9ww278cjqbfdzahg17rhbkgk2rw6ixxm5z5iwnxnsrhfdwa"))))
31743 (build-system pyproject-build-system)
31744 (native-inputs (list python-setuptools))
31745 (home-page "https://github.com/attwad/python-osc")
31746 (synopsis "Open Sound Control server and client implementations")
31747 (description
31748 "@code{python-osc} is a pure Python library with no external
31749dependencies. It implements the @uref{http://opensoundcontrol.org/spec-1_0,
31750Open Sound Control 1.0} specification.")
31751 (license license:unlicense)))
31752
31753(define-public python-cmd2
31754 (package
31755 (name "python-cmd2")
31756 (version "2.5.11")
31757 (source
31758 (origin
31759 (method url-fetch)
31760 (uri (pypi-uri "cmd2" version))
31761 (sha256
31762 (base32
31763 "0abl9aalyfbncw39d41gd3mmdgjvd7jlaa372r0lmghz0a2x781h"))))
31764 (build-system pyproject-build-system)
31765 (arguments
31766 (list #:test-flags '(list "-k" "not test_find_editor_not_specified \
31767and not test_transcript")))
31768 (propagated-inputs
31769 (list python-pyperclip python-wcwidth))
31770 (native-inputs
31771 (list python-pytest
31772 python-pytest-mock
31773 python-setuptools
31774 python-setuptools-scm
31775 python-wheel))
31776 (home-page "https://github.com/python-cmd2/cmd2")
31777 (synopsis "Tool for building interactive command line applications")
31778 (description
31779 "Cmd2 is a tool for building interactive command line applications in
31780Python. Its goal is to make it quick and easy for developers to build
31781feature-rich and user-friendly interactive command line applications. It
31782provides a simple API which is an extension of Python's built-in @code{cmd}
31783module. @code{cmd2} provides a wealth of features on top of @code{cmd} to
31784make your life easier and eliminates much of the boilerplate code which would
31785be necessary when using @code{cmd}.")
31786 (license license:expat)))
31787
31788(define-public python-pytidylib
31789 (package
31790 (name "python-pytidylib")
31791 (version "0.3.2")
31792 (source
31793 (origin
31794 (method git-fetch)
31795 (uri (git-reference
31796 (url "https://github.com/countergram/pytidylib")
31797 (commit version)))
31798 (file-name (git-file-name name version))
31799 (sha256
31800 (base32 "0h5kx99ka47yan9xsh2pyi19mhhbixqpbqn6rgciskfr5m1csji0"))))
31801 (build-system pyproject-build-system)
31802 (arguments
31803 (list
31804 #:phases
31805 #~(modify-phases %standard-phases
31806 (add-after 'unpack 'fix-queue-import
31807 (lambda _
31808 ;; Adjust Queue import for Python 3. Remove for versions >=0.4.0.
31809 (substitute* "tests/threadsafety.py"
31810 (("from Queue import Queue")
31811 "from queue import Queue"))))
31812 (add-before 'build 'qualify-libtidy
31813 (lambda* (#:key inputs #:allow-other-keys)
31814 (let ((libtidy (search-input-file inputs "/lib/libtidy.so")))
31815 (substitute* "tidylib/tidy.py"
31816 (("ctypes\\.util\\.find_library\\('tidy'\\)")
31817 (format #f "'~a'" libtidy)))))))))
31818 (native-inputs (list python-pytest python-setuptools))
31819 (inputs (list tidy-html))
31820 (home-page "https://github.com/countergram/pytidylib")
31821 (synopsis "Python wrapper for HTML Tidy library")
31822 (description
31823 "PyTidyLib is a Python package that wraps the HTML Tidy library. This
31824allows you, from Python code, to “fix” invalid (X)HTML markup.")
31825 (license license:expat)))
31826
31827(define-public python-mujson
31828 (package
31829 (name "python-mujson")
31830 (version "1.4")
31831 (source
31832 (origin
31833 (method git-fetch)
31834 (uri (git-reference
31835 (url "https://github.com/mattgiles/mujson")
31836 (commit version)))
31837 (file-name (git-file-name name version))
31838 (sha256
31839 (base32 "1j0pcqyxpivk8nn7xx5d0pj40g22psd6v2r7l4m8b6h4hrdn9cij"))))
31840 (build-system pyproject-build-system)
31841 (arguments (list #:tests? #f)) ;No tests.
31842 (native-inputs (list python-setuptools))
31843 (home-page "https://github.com/mattgiles/mujson")
31844 (synopsis "Use the fastest JSON functions available at import time")
31845 (description
31846 "This module selects the fastest JSON functions available at import time
31847in Python.")
31848 (license license:expat)))
31849
31850(define-public python-bashlex
31851 (package
31852 (name "python-bashlex")
31853 (version "0.18")
31854 (source
31855 (origin
31856 (method git-fetch)
31857 (uri (git-reference
31858 (url "https://github.com/idank/bashlex")
31859 (commit version)))
31860 (file-name (git-file-name name version))
31861 (sha256
31862 (base32 "00idgf9153jvp0g5ajbcfgpb6ffl2a8rcy3w5n9iirgxa7vlvmkm"))))
31863 (build-system pyproject-build-system)
31864 (arguments
31865 (list
31866 #:phases
31867 #~(modify-phases %standard-phases
31868 (add-before 'build 'pregenerate-yacc-tables
31869 (lambda _
31870 ;; parser.py caches tables, which attempts to write to site lib
31871 ;; see https://github.com/idank/bashlex/issues/51
31872 (invoke "python" "-c" "import bashlex"))))))
31873 (native-inputs (list python-pytest python-setuptools))
31874 (home-page "https://github.com/idank/bashlex")
31875 (synopsis "Python parser for bash")
31876 (description
31877 "@code{bashlex} is a Python port of the parser used internally by GNU
31878bash.
31879
31880For the most part it's transliterated from C, the major differences are:
31881
31882@itemize
31883@item it does not execute anything
31884@item it is reentrant
31885@item it generates a complete AST
31886@end itemize
31887")
31888 (license license:gpl3+)))
31889
31890(define-public python-jinxed
31891 (package
31892 (name "python-jinxed")
31893 (version "1.3.0")
31894 (source
31895 (origin
31896 (method git-fetch)
31897 (uri (git-reference
31898 (url "https://github.com/Rockhopper-Technologies/jinxed")
31899 (commit version)))
31900 (file-name (git-file-name name version))
31901 (sha256
31902 (base32 "1cssqc5fvy3nx0q94ia79vhldfi0r2pq5nkagdvnkhmlnz26a3n8"))))
31903 (build-system pyproject-build-system)
31904 (arguments
31905 (list
31906 #:tests? #f ;_curses.error: setupterm: could not find terminal
31907 #:phases
31908 #~(modify-phases %standard-phases
31909 (add-before 'check 'set-environment-variables
31910 (lambda* (#:key inputs #:allow-other-keys)
31911 (setenv "TERM" "LINUX")
31912 (setenv "TERMINFO"
31913 (search-input-directory inputs "share/terminfo")))))))
31914 (native-inputs (list ncurses python-setuptools))
31915 (home-page "https://github.com/Rockhopper-Technologies/jinxed")
31916 (synopsis "Jinxed Terminal Library")
31917 (description
31918 "Jinxed is an implementation of a subset of the Python curses library.")
31919 (license license:mpl2.0)))
31920
31921(define-public python-blessed
31922 (package
31923 (name "python-blessed")
31924 (version "1.20.0")
31925 (source
31926 (origin
31927 (method url-fetch)
31928 (uri (pypi-uri "blessed" version))
31929 (sha256
31930 (base32
31931 "103ng3ap33xs6i7606q3k6rwvjva9l7qi8j7vw08y13ffkw6gp9c"))
31932 (snippet
31933 ;; Don't get hung up on Windows test failures.
31934 '(delete-file "blessed/win_terminal.py"))))
31935 (build-system pyproject-build-system)
31936 (propagated-inputs (list python-six python-wcwidth))
31937 (native-inputs (list python-pytest python-setuptools python-wheel))
31938 (home-page "https://github.com/jquast/blessed")
31939 (synopsis "Wrapper around terminal capabilities")
31940 (description
31941 "Blessed is a thin, practical wrapper around terminal styling, screen
31942positioning, and keyboard input.")
31943 (license license:expat)))
31944
31945(define-public python-readme-renderer
31946 (package
31947 (name "python-readme-renderer")
31948 (version "45.0")
31949 (source
31950 (origin
31951 (method git-fetch)
31952 (uri (git-reference
31953 (url "https://github.com/pypa/readme_renderer")
31954 (commit version)))
31955 (file-name (git-file-name name version))
31956 (sha256
31957 (base32 "15ald40v4vv7sb2as8z7jggcwdy0nbx5m0icqv4ii9wriqrzf7kx"))))
31958 (build-system pyproject-build-system)
31959 (arguments
31960 (list
31961 ;; tests: 99 passed, 2 skipped, 1 deselected, 1 warning
31962 #:test-flags
31963 ;; Assertion error in one test.
31964 #~(list (string-append "--deselect=tests/test_markdown.py"
31965 "::test_md_fixtures[test_GFM_headings.md]"))))
31966 (propagated-inputs
31967 (list python-docutils
31968 python-nh3
31969 python-pygments
31970 ;; [optional]
31971 python-comrak))
31972 (native-inputs
31973 (list python-pytest
31974 python-setuptools))
31975 (home-page "https://github.com/pypa/readme_renderer")
31976 (synopsis "Render README files in Warehouse")
31977 (description
31978 "Readme Renderer is a library that will safely render arbitrary README
31979files into HTML. It is designed to be used in Warehouse to render the
31980@code{long_description} for packages. It can handle Markdown,
31981reStructuredText, and plain text.")
31982 (license license:asl2.0)))
31983
31984(define-public python-lazr-delegates
31985 (package
31986 (name "python-lazr-delegates")
31987 (version "2.1.1")
31988 (source
31989 (origin
31990 (method url-fetch)
31991 (uri (pypi-uri "lazr_delegates" version))
31992 (sha256
31993 (base32 "1p02diwzn58jhpvf9m8bhb5p0xkx5gnc84mzgwr3zdsidrhv5kmf"))))
31994 (build-system pyproject-build-system)
31995 (arguments
31996 (list
31997 #:test-flags #~(list "-v" #$output)
31998 #:phases
31999 #~(modify-phases %standard-phases
32000 (add-after 'check 'check-cleanup
32001 (lambda* (#:key tests? #:allow-other-keys)
32002 (when tests?
32003 (for-each
32004 delete-file-recursively
32005 (find-files #$output
32006 (lambda (file stat)
32007 (or (member (basename file)
32008 '("tests" ".pytest_cache"))))
32009 #:directories? #t))))))))
32010 (native-inputs
32011 (list python-pytest python-setuptools python-wheel))
32012 (propagated-inputs
32013 (list python-zope-interface))
32014 (home-page "https://launchpad.net/lazr.delegates")
32015 (synopsis "Easily write objects that delegate behavior")
32016 (description
32017 "The @code{lazr.delegates} package makes it easy to write objects that
32018delegate behavior to another object. The new object adds some property or
32019behavior on to the other object, while still providing the underlying interface,
32020and delegating behavior.")
32021 (license license:lgpl3)))
32022
32023(define-public python-lazr-config
32024 (package
32025 (name "python-lazr-config")
32026 (version "3.1")
32027 (source
32028 (origin
32029 (method url-fetch)
32030 (uri (pypi-uri "lazr_config" version))
32031 (sha256
32032 (base32 "02xb4fs9rm6bf3f00qkq8pihgqvrvn2wfnvydn2vg9p73ddhcmvw"))))
32033 (build-system pyproject-build-system)
32034 (arguments
32035 (list
32036 #:test-flags #~(list "-v" #$output)
32037 #:phases
32038 #~(modify-phases %standard-phases
32039 (add-after 'check 'check-cleanup
32040 (lambda* (#:key tests? #:allow-other-keys)
32041 (when tests?
32042 (for-each
32043 delete-file-recursively
32044 (find-files #$output
32045 (lambda (file stat)
32046 (or (member (basename file)
32047 '("tests" ".pytest_cache"))))
32048 #:directories? #t))))))))
32049 (native-inputs
32050 (list python-pytest python-setuptools python-wheel))
32051 (propagated-inputs
32052 (list python-lazr-delegates python-zope-interface))
32053 (home-page "https://launchpad.net/lazr.config")
32054 (synopsis "Create configuration schemas and process and validate configurations")
32055 (description
32056 "The LAZR config system is typically used to manage process configuration.
32057Process configuration is for saying how things change when we run systems on
32058different machines, or under different circumstances. This system uses ini-like
32059file format of section, keys, and values. The config file supports inheritance
32060to minimize duplication of information across files. The format supports schema
32061validation.")
32062 (license license:lgpl3)))
32063
32064(define-public python-flufl-bounce
32065 (package
32066 (name "python-flufl-bounce")
32067 (properties '((commit . "e7d37db46149795f355eab4dca68e670267885f6")
32068 (revision . "0")))
32069 (version (git-version "4.0"
32070 (assoc-ref properties 'revision)
32071 (assoc-ref properties 'commit)))
32072 (source
32073 (origin
32074 (method git-fetch)
32075 (uri (git-reference
32076 (url "https://gitlab.com/flufl/flufl.bounce")
32077 (commit (assoc-ref properties 'commit))))
32078 (file-name (git-file-name name version))
32079 (sha256
32080 (base32 "0i1a2jns0ahls23m0261v1wd429b37xrqdv5pxdlmpyd7if0r1mi"))))
32081 (build-system pyproject-build-system)
32082 (arguments
32083 (list
32084 #:phases
32085 #~(modify-phases %standard-phases
32086 (replace 'check
32087 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
32088 (when tests?
32089 (with-directory-excursion
32090 (string-append (site-packages inputs outputs) "/flufl")
32091 (invoke "python" "-m" "nose2" "-v"))))))))
32092 (propagated-inputs
32093 (list python-atpublic python-zope-interface))
32094 (native-inputs
32095 (list python-flufl-testing python-nose2 python-setuptools))
32096 (home-page "https://fluflbounce.readthedocs.io/en/latest/")
32097 (synopsis "Email bounce detectors")
32098 (description "The @code{flufl.bounce} library provides a set of heuristics
32099and an API for detecting the original bouncing email addresses from a bounce
32100message. Many formats found in the wild are supported, as are VERP and
32101RFC 3464.")
32102 (license (list license:asl2.0
32103 license:lgpl3)))) ; only for setup_headers.py
32104
32105(define-public python-flufl-i18n
32106 (package
32107 (name "python-flufl-i18n")
32108 (version "5.1.0")
32109 (source
32110 (origin
32111 (method url-fetch)
32112 (uri (pypi-uri "flufl_i18n" version))
32113 (sha256
32114 (base32
32115 "0bm4kmi04gm164y5nmadmrg79y1l1cs9iwxcv9y7gq0dgyr20xms"))))
32116 (build-system pyproject-build-system)
32117 (arguments
32118 (list #:test-flags
32119 #~(list "--no-cov" "--ignore-glob=docs/*")
32120 #:phases
32121 #~(modify-phases %standard-phases
32122 ;; This phase add a symlink of dist-info dir for packages
32123 ;; expecting flufl.i18n rather than flufl_i18n (mailman).
32124 (add-after 'install 'add-custom-dist-info
32125 (lambda _
32126 (for-each
32127 (lambda (dir)
32128 (with-directory-excursion (dirname dir)
32129 (let ((base (basename dir)))
32130 (symlink base
32131 (string-join (string-split base #\_) ".")))))
32132 (find-files #$output
32133 (lambda (file stat)
32134 (string-suffix? ".dist-info" file))
32135 #:directories? #t)))))))
32136 (propagated-inputs
32137 (list python-atpublic))
32138 (native-inputs
32139 (list python-hatchling python-pytest python-sybil))
32140 (home-page "https://flufli18n.readthedocs.io")
32141 (synopsis "API for Python internationalization")
32142 (description
32143 "This package provides a high-level, convenient API for managing
32144internationalization/translation contexts in Python applications. There is a
32145simple API for single-context applications, such as command line scripts which
32146only need to translate into one language during the entire course of their
32147execution. There is a more flexible, but still convenient API for multi-context
32148applications, such as servers, which may need to switch language contexts for
32149different tasks.")
32150 (license license:asl2.0)))
32151
32152(define-public python-flufl-lock
32153 (package
32154 (name "python-flufl-lock")
32155 (version "8.1.0")
32156 (source
32157 (origin
32158 (method url-fetch)
32159 (uri (pypi-uri "flufl.lock" version))
32160 (sha256
32161 (base32 "1jz7vipjga4x803gfsb9mvnfb6q8my7ib000nsc3v9ljaq0050yq"))))
32162 (build-system pyproject-build-system)
32163 (arguments
32164 (list #:test-flags
32165 #~(list "--no-cov" "--ignore-glob=docs/*")
32166 #:phases
32167 #~(modify-phases %standard-phases
32168 ;; This phase add a symlink of dist-info dir for packages
32169 ;; expecting flufl.lock rather than flufl_lock (mailman).
32170 (add-after 'install 'add-custom-dist-info
32171 (lambda _
32172 (for-each
32173 (lambda (dir)
32174 (with-directory-excursion (dirname dir)
32175 (let ((base (basename dir)))
32176 (symlink base
32177 (string-join (string-split base #\_) ".")))))
32178 (find-files #$output
32179 (lambda (file stat)
32180 (string-suffix? ".dist-info" file))
32181 #:directories? #t)))))))
32182 (native-inputs
32183 (list python-hatchling python-pytest python-sybil))
32184 (propagated-inputs
32185 (list python-atpublic python-psutil))
32186 (home-page "https://flufllock.readthedocs.io")
32187 (synopsis "NFS-safe file locking with timeouts for POSIX systems")
32188 (description
32189 "The @dfn{flufl.lock} package provides NFS-safe file locking with
32190timeouts for POSIX systems. It is similar to the @code{O_EXCL} option of the
32191@code{open} system call but uses a lockfile. Lock objects support lock-breaking
32192and have a maximum lifetime built-in.")
32193 (license (list license:asl2.0
32194 license:lgpl3)))) ; only for setup_helpers.py
32195
32196(define-public python-flufl-testing
32197 (package
32198 (name "python-flufl-testing")
32199 (version "0.8")
32200 (source
32201 (origin
32202 (method git-fetch)
32203 (uri (git-reference
32204 (url "https://gitlab.com/warsaw/flufl.testing")
32205 (commit version)))
32206 (file-name (git-file-name name version))
32207 (sha256
32208 (base32 "0dl2dl4wdrqklkhqcdbwchpqrpm6lwic4qk961zi6b2f8agis35i"))))
32209 (build-system pyproject-build-system)
32210 (arguments (list #:tests? #f)) ;no tests
32211 (native-inputs (list python-setuptools))
32212 (home-page "https://gitlab.com/warsaw/flufl.testing")
32213 (synopsis "Collection of test tool plugins")
32214 (description
32215 "This package contains a small collection of test tool plugins for
32216@code{nose2} and @code{flake8}.")
32217 (license license:asl2.0)))
32218
32219(define-public python-devtools
32220 (package
32221 (name "python-devtools")
32222 (version "0.12.2")
32223 (source
32224 (origin
32225 (method git-fetch)
32226 (uri (git-reference
32227 (url "https://github.com/samuelcolvin/python-devtools")
32228 (commit (string-append "v" version))))
32229 (file-name (git-file-name name version))
32230 (sha256
32231 (base32 "0snmx7f0s44rzzx8advzmgj5av9dlpz1kx05f7ysya8xrhv5nwfl"))))
32232 (build-system pyproject-build-system)
32233 (arguments
32234 (list
32235 #:test-flags
32236 ;; Disable some failing tests.
32237 ;;
32238 ;; test_print_subprocess seems to inherit wrong environment, fails with
32239 ;; E + ModuleNotFoundError: No module named 'executing'
32240 ;; Test runs fine from local clone.
32241 ;;
32242 ;; test_executing_failure fails with
32243 ;; E - [1, 2] (list) len=2
32244 ;; E + [x, y]: [1, 2] (list) len=2
32245 ;; unclear why, probably due to a dependency.
32246 '(list "-k" "not test_print_subprocess and not test_executing_failure"
32247 ;; test_insert_assert.py also seems to inherit a bad environment:
32248 ;; E fixture 'pytester_pretty' not found
32249 ;; Test runs fine from local clone.
32250 "--ignore=tests/test_insert_assert.py")))
32251 (native-inputs
32252 (list python-hatchling python-pytest python-pytest-mock))
32253 (propagated-inputs
32254 (list python-asttokens python-executing python-pygments))
32255 (home-page "https://github.com/samuelcolvin/python-devtools")
32256 (synopsis "Debug command and development tools")
32257 (description
32258 "This package provides a debug print command and other development tools.
32259It adds a simple and readable way to print stuff during development.")
32260 (license license:expat)))
32261
32262(define-public python-dateparser
32263 (package
32264 (name "python-dateparser")
32265 (version "1.2.2")
32266 (source
32267 (origin
32268 (method url-fetch)
32269 (uri (pypi-uri "dateparser" version))
32270 (sha256
32271 (base32
32272 "1xzcqmvqg82cq4vx3cbgbdrgq4pgqlkk0mnfm0zc5kdqgkqicqwq"))))
32273 (build-system pyproject-build-system)
32274 (arguments
32275 (list
32276 ;; tests: 23811 passed, 18 skipped, 1 deselected, 1 warning
32277 #:test-flags
32278 #~(list (string-join '("--deselect=tests/test_search.py"
32279 "TestTranslateSearch"
32280 "test_search_dates_with_prepositions")
32281 "::"))))
32282 (propagated-inputs
32283 (list python-dateutil
32284 python-pytz
32285 python-regex
32286 python-tzlocal))
32287 (native-inputs
32288 (list python-parameterized
32289 python-pytest
32290 python-setuptools
32291 tzdata-for-tests))
32292 (home-page "https://github.com/scrapinghub/dateparser")
32293 (synopsis
32294 "Date parsing library designed to parse dates from HTML pages")
32295 (description
32296 "@code{python-dateparser} provides modules to easily parse localized
32297dates in almost any string formats commonly found on web pages.")
32298 (license license:bsd-3)))
32299
32300(define-public python-dparse
32301 (package
32302 (name "python-dparse")
32303 (version "0.6.4")
32304 (source
32305 (origin
32306 (method url-fetch)
32307 (uri (pypi-uri "dparse" version))
32308 (sha256
32309 (base32 "06i069hij4i53hikrsv332h2ibwfchr42b68hii6rhzdwcwrrclh"))))
32310 (build-system pyproject-build-system)
32311 (native-inputs (list python-hatchling python-pytest))
32312 (propagated-inputs (list python-packaging python-toml))
32313 (home-page "https://github.com/pyupio/dparse")
32314 (synopsis "Parser for Python dependency files")
32315 (description "This package provides a parser for Python dependency files.")
32316 (license license:expat)))
32317
32318(define-public python-dpath
32319 (package
32320 (name "python-dpath")
32321 (version "2.2.0")
32322 (source
32323 (origin
32324 (method url-fetch)
32325 (uri (pypi-uri "dpath" version))
32326 (sha256
32327 (base32
32328 "0gkavmc44f9cj3kch68343r2ajsbvbsjcmsmkqhkzsjmvhqfdxrl"))))
32329 (build-system pyproject-build-system)
32330 (native-inputs
32331 (list python-hypothesis python-nose2 python-setuptools python-wheel))
32332 (home-page "https://github.com/akesterson/dpath-python")
32333 (synopsis "File-system-like pathing and searching for dictionaries")
32334 (description
32335 "@code{python-dpath} is a library for accessing and searching
32336dictionaries via /slashed/paths ala xpath.
32337
32338Basically it lets you glob over a dictionary as if it were a file system. It
32339allows you to specify globs (ala the bash eglob syntax, through some advanced
32340fnmatch.fnmatch magic) to access dictionary elements, and provides some
32341facility for filtering those results.")
32342 (license license:expat)))
32343
32344(define-public python-safety
32345 (package
32346 (name "python-safety")
32347 (version "3.8.1")
32348 (source
32349 (origin
32350 (method git-fetch)
32351 (uri (git-reference
32352 (url "https://github.com/pyupio/safety")
32353 (commit version)))
32354 (file-name (git-file-name name version))
32355 (sha256
32356 (base32 "00i0jgv89kwbp130ykrfp2754k06agqs9sflsjpafcrf3jx7r9n4"))
32357 (patches
32358 (list
32359 (origin
32360 (method url-fetch)
32361 (uri (string-append
32362 "https://github.com/pyupio/safety/commit/"
32363 "145a3956007a01e57a8e05d111633c2309ad3374.patch"))
32364 (sha256
32365 (base32
32366 "00bsqhbvvpiycdz01vvxkp02i10rn3h5xaffib20h8yxnvx2xjbj")))))))
32367 (build-system pyproject-build-system)
32368 (arguments
32369 (list
32370 #:phases
32371 #~(modify-phases %standard-phases
32372 (add-after 'unpack 'disable-telemetry
32373 (lambda _
32374 (substitute* (find-files "." "\\.py$")
32375 (("telemetry: bool = True")
32376 "telemetry: bool = False")
32377 (("telemetry=True")
32378 "telemetry=False"))))
32379 (add-before 'check 'set-home ; some tests run mkdir
32380 (lambda _
32381 (setenv "HOME" "/tmp"))))))
32382 (native-inputs (list nss-certs-for-test python-hatchling python-pytest))
32383 (propagated-inputs (list python-authlib
32384 python-certifi
32385 python-click
32386 python-dparse
32387 python-filelock
32388 python-httpx
32389 python-jinja2
32390 python-marshmallow
32391 python-nltk
32392 python-packaging
32393 python-pydantic
32394 python-safety-schemas
32395 python-tenacity
32396 python-tomli
32397 python-tomlkit
32398 python-truststore
32399 ;; XXX: python-safety subclasses click.Context
32400 ;; in a way that assumes Typer still delegates
32401 ;; to the standalone python-click package.
32402 python-typer-without-click
32403 python-typing-extensions))
32404 (home-page "https://github.com/pyupio/safety")
32405 (synopsis "Check installed dependencies for known vulnerabilities")
32406 (description
32407 "Safety checks installed dependencies for known vulnerabilities.
32408By default it uses the open Python vulnerability database Safety DB.")
32409 (license license:expat)))
32410
32411(define-public python-pypandoc
32412 (package
32413 (name "python-pypandoc")
32414 (version "1.15")
32415 (source
32416 (origin
32417 (method git-fetch)
32418 (uri (git-reference
32419 (url "https://github.com/JessicaTegner/pypandoc")
32420 (commit (string-append "v" version))))
32421 (file-name (git-file-name name version))
32422 (sha256
32423 (base32 "0jqr380xpg1n93dagxv7zfakhdravw0nc81rc4pnmjzkj360l5nr"))))
32424 (build-system pyproject-build-system)
32425 (arguments
32426 (list
32427 #:test-backend #~'unittest
32428 #:phases
32429 #~(modify-phases %standard-phases
32430 (add-before 'check 'disable-tests
32431 (lambda _
32432 (substitute* "tests.py"
32433 ;; Disable test requiring network access
32434 (("test_basic_conversion_from_http_url")
32435 "skip_test_basic_conversion_from_http_url")
32436 ;; Disable tests with missing files
32437 (("test_basic_conversion_from_file_pattern")
32438 "skip_test_basic_conversion_from_file_pattern")
32439 (("test_conversion_with_data_files")
32440 "skip_test_conversion_with_data_files")))))))
32441 ;; Ideally, we would supersede texlive-xpatch with texlive-regexpatch once
32442 ;; the missing etoolbox.sty file is added
32443 (native-inputs
32444 (list (texlive-local-tree
32445 (list texlive-etoolbox
32446 texlive-lm
32447 texlive-regexpatch
32448 texlive-xcolor))
32449 python-poetry-core
32450 python-setuptools))
32451 (inputs (list pandoc python-pandocfilters))
32452 (propagated-inputs (list python-wheel))
32453 (home-page "https://github.com/JessicaTegner/pypandoc")
32454 (synopsis "Python wrapper for pandoc")
32455 (description
32456 "pypandoc is a thin Python wrapper around pandoc and pandoc-citeproc.")
32457 (license license:expat)))
32458
32459(define-public python-rnc2rng
32460 (package
32461 (name "python-rnc2rng")
32462 (version "2.7.0")
32463 (source
32464 (origin
32465 (method git-fetch)
32466 (uri (git-reference
32467 (url "https://github.com/djc/rnc2rng")
32468 (commit version)))
32469 (file-name (git-file-name name version))
32470 (sha256
32471 (base32 "1wbd8936vs4rinjfmjd8dav6sdz6wrsc0jppqidzzcnzwfp146pf"))))
32472 (build-system pyproject-build-system)
32473 (arguments
32474 (list
32475 #:test-backend #~'custom
32476 #:test-flags #~(list "test.py")))
32477 (native-inputs (list python-setuptools))
32478 (propagated-inputs (list python-rply))
32479 (home-page "https://github.com/djc/rnc2rng")
32480 (synopsis "Convert RELAX NG Compact to regular syntax")
32481 (description
32482 "This package provides the @command{rnc2rng} command-line tool as well as
32483a Python library to convert RELAX NG schemata in Compact syntax (rnc) to
32484equivalent schemata in the XML-based default RELAX NG syntax.")
32485 (license license:expat)))
32486
32487(define-public python-citeproc-py
32488 (package
32489 (name "python-citeproc-py")
32490 (version "0.9.0")
32491 (source
32492 (origin
32493 (method git-fetch)
32494 (uri (git-reference
32495 (url "https://github.com/brechtm/citeproc-py")
32496 (commit (string-append "v" version))
32497 (recursive? #t))) ; TODO Unbundle.
32498 (file-name (git-file-name name version))
32499 (sha256
32500 (base32 "0wn1mfn7r4ffbmh529baqa4a798xwa34z0ij1jkmzal9i1na1i61"))))
32501 (build-system pyproject-build-system)
32502 (arguments
32503 (list
32504 #:phases
32505 #~(modify-phases %standard-phases
32506 (add-after 'unpack 'set-version
32507 (lambda _
32508 (delete-file "citeproc/_version.py")
32509 (substitute* "citeproc/__init__.py"
32510 (("from \\. import version")
32511 "")
32512 (("__version__ =.*")
32513 (format #f "__version__ = ~s" #$version))))))))
32514 (native-inputs (list python-pytest python-setuptools))
32515 (propagated-inputs (list python-lxml python-rnc2rng))
32516 (home-page "https://github.com/brechtm/citeproc-py")
32517 (synopsis "Citations and bibliography formatter")
32518 (description
32519 "Citeproc-py is a CSL processor for Python. It aims to implement the
32520CSL 1.0.1 specification. citeproc-py can output styled citations and
32521bibliographies in a number of different output formats. Currently supported
32522are plain text, reStructuredText and HTML.")
32523 (license license:bsd-2)))
32524
32525(define-public python-inform
32526 (package
32527 (name "python-inform")
32528 (version "1.34")
32529 (source
32530 (origin
32531 (method git-fetch) ; no tests in PyPI release
32532 (uri (git-reference
32533 (url "https://github.com/kenkundert/inform")
32534 (commit (string-append "v" version))))
32535 (file-name (git-file-name name version))
32536 (sha256
32537 (base32 "19ck1x8jplgq1lsy8cdv6hsygdbx310k92w4mkzl40bh4h49m1mk"))))
32538 (build-system pyproject-build-system)
32539 (arguments
32540 (list
32541 #:test-flags #~(list "-k" (string-append
32542 ;; Test below needs the num2words package
32543 "not test_plural_words"
32544 ;; These last two failed with AssertionError
32545 " and not test_inform"
32546 " and not test_manual"))))
32547 (native-inputs
32548 (list python-flit-core python-pytest))
32549 (propagated-inputs
32550 (list python-arrow))
32551 (home-page "https://inform.readthedocs.io")
32552 (synopsis "Print & logging utilities for communicating with user")
32553 (description
32554 "Inform is designed to display messages from programs that are typically run from
32555a console. It provides a collection of ‘print’ functions that allow you to simply and
32556cleanly print different types of messages.")
32557 (license license:gpl3+)))
32558
32559(define-public python-nestedtext
32560 (package
32561 (name "python-nestedtext")
32562 (version "3.7")
32563 (source
32564 (origin
32565 (method git-fetch) ; no tests in PyPI release
32566 (uri (git-reference
32567 (url "https://github.com/KenKundert/nestedtext")
32568 (commit (string-append "v" version))))
32569 (file-name (git-file-name name version))
32570 (sha256
32571 (base32 "0yqarfv6jzl41i44mjn0g4c87g47j819py6gbsfi3fdk96c95nll"))))
32572 (build-system pyproject-build-system)
32573 (arguments
32574 (list
32575 ;; XXX: Tests below need some not yet packaged Python libraries.
32576 #:test-flags #~(list "--ignore" "examples/"
32577 "--ignore" "tests/test_nestedtext.py"
32578 "-k" (string-append
32579 "not techniques.rst"
32580 " and not nestedtext.nestedtext.dumps"))))
32581 (native-inputs (list python-flit-core python-pytest))
32582 (propagated-inputs
32583 (list python-inform))
32584 (home-page "https://nestedtext.org")
32585 (synopsis "Human readable and writable data interchange format")
32586 (description
32587 "NestedText is a file format for holding data that is to be entered, edited, or
32588viewed by people. It allows data to be organized into a nested collection of
32589dictionaries, lists, and strings. In this way it is similar to JSON and YAML, but
32590without the complexity and risk of YAML and without the syntactic clutter of JSON.
32591NestedText is both simple and natural. Only a small number of concepts and rules must
32592be kept in mind when creating it. It is easily created, modified, or viewed with
32593a text editor and easily understood and used by both programmers and non-programmers.")
32594 (license license:expat))) ; MIT license
32595
32596(define-public python-nest-asyncio
32597 (package
32598 (name "python-nest-asyncio")
32599 (version "1.6.0")
32600 (source
32601 (origin
32602 (method url-fetch)
32603 (uri (pypi-uri "nest_asyncio" version))
32604 (sha256
32605 (base32
32606 "1zjmxk7rgadgiking9jksncca0hywgs52s34dkymm8dc95a2s5vg"))))
32607 (build-system pyproject-build-system)
32608 (native-inputs
32609 (list python-pytest python-setuptools))
32610 (home-page "https://github.com/erdewit/nest_asyncio")
32611 (synopsis "Patch asyncio to allow nested event loops")
32612 (description
32613 "By design @code{asyncio} does not allow its event loop to be nested.
32614This presents a practical problem: when in an environment where the event loop
32615is already running it's impossible to run tasks and wait for the result. This
32616module patches @code{asyncio} to allow nested use of @code{asyncio.run} and
32617@code{loop.run_until_complete}.")
32618 (license license:bsd-3)))
32619
32620(define-public python-simpervisor
32621 (package
32622 (name "python-simpervisor")
32623 (version "1.0.0")
32624 (source
32625 (origin
32626 ;; Tests not included in release.
32627 (method git-fetch)
32628 (uri (git-reference
32629 (url "https://github.com/yuvipanda/simpervisor")
32630 (commit (string-append "v" version))))
32631 (file-name (git-file-name name version))
32632 (sha256
32633 (base32 "0drvqxbr6fpydb4d7z5dhn97d578gf39sd8cawyl6ksf1f4y8yzg"))))
32634 (build-system pyproject-build-system)
32635 (arguments
32636 ;; See <https://github.com/jupyterhub/simpervisor/issues/57>
32637 (list #:test-flags #~(list "--deselect=tests/test_ready.py::test_ready")))
32638 (native-inputs
32639 (list python-aiohttp
32640 python-hatchling
32641 python-psutil
32642 python-pytest
32643 python-pytest-asyncio))
32644 (home-page "https://github.com/yuvipanda/simpervisor")
32645 (synopsis "Simple async process supervisor")
32646 (description
32647 "This package provides a simple async process supervisor in Python.")
32648 (license license:bsd-3)))
32649
32650(define-public python-parallel
32651 (package
32652 (name "python-parallel")
32653 (version "1.6.4.4")
32654 (source
32655 (origin
32656 (method url-fetch)
32657 (uri (string-append "https://www.parallelpython.com/downloads/pp/pp-"
32658 version ".zip"))
32659 (sha256
32660 (base32 "1mzk4yabxj6r149fswhis18hd8dnag5sj8i4wb06450zq3pi8dh7"))))
32661 (build-system pyproject-build-system)
32662 (arguments (list #:tests? #f)) ;No test suite.
32663 (native-inputs (list python-setuptools unzip))
32664 (propagated-inputs (list python-six))
32665 (home-page "https://www.parallelpython.com")
32666 (synopsis "Parallel and distributed programming for Python")
32667 (description
32668 "Parallel Python module (PP) provides an easy and efficient way to create
32669parallel-enabled applications for SMP computers and clusters. PP module
32670features cross-platform portability and dynamic load balancing. Thus
32671applications written with PP will parallelize efficiently even on
32672heterogeneous and multi-platform clusters (including clusters running other
32673applications with variable CPU loads).")
32674 (license license:bsd-3)))
32675
32676(define-public python-param
32677 (package
32678 (name "python-param")
32679 (version "2.3.3")
32680 (source
32681 (origin
32682 (method git-fetch)
32683 (uri (git-reference
32684 (url "https://github.com/holoviz/param")
32685 (commit (string-append "v" version))))
32686 (file-name (git-file-name name version))
32687 (sha256
32688 (base32 "0cs550plb10ghhn0w5bdnq0i0bkh12996kv3lfibsbzy4dcc7qc7"))))
32689 (build-system pyproject-build-system)
32690 ;; tests: 1448 passed, 5 skipped, 2 xfailed
32691 (native-inputs
32692 ;; Project does not require any dependencies, all of the listed
32693 ;; native-inputs are for build/test only.
32694 (list python-cloudpickle
32695 python-hatch-vcs
32696 python-hatchling
32697 python-ipython-minimal
32698 python-jsonschema
32699 python-nbval
32700 python-nest-asyncio
32701 python-numpy
32702 python-odfpy
32703 python-openpyxl
32704 python-pandas
32705 python-pyarrow
32706 python-pytest
32707 python-pytest-asyncio
32708 python-tables
32709 python-xlrd))
32710 (home-page "https://param.holoviz.org/")
32711 (synopsis
32712 "Make your Python code clearer and more reliable by declaring Parameters")
32713 (description
32714 "Param is a library for handling all the user-modifiable parameters,
32715arguments, and attributes that control your code. It provides automatic,
32716robust error-checking while dramatically reducing boilerplate code, letting
32717you focus on what you want your code to do rather than on checking for all the
32718possible ways users could supply inappropriate values to a function or
32719class.")
32720 (license license:bsd-3)))
32721
32722(define-public python-djitellopy
32723 (package
32724 (name "python-djitellopy")
32725 (version "2.5.0")
32726 (source
32727 (origin
32728 (method url-fetch)
32729 (uri (pypi-uri "djitellopy" version))
32730 (sha256
32731 (base32 "1kc0syb4hpn7fay0rxpazmczag6jw3pncrrc6v762jj0afiwkrps"))))
32732 (build-system pyproject-build-system)
32733 (arguments
32734 (list
32735 #:tests? #f ;no test suite
32736 #:phases
32737 #~(modify-phases %standard-phases
32738 ;; OpenCV does not ship metadata files for its Python library, which
32739 ;; makes it invisible to the sanity_check script (see:
32740 ;; https://github.com/opencv/opencv/issues/24810).
32741 (delete 'sanity-check))))
32742 (propagated-inputs
32743 (list opencv ;for opencv-python
32744 python-av
32745 python-numpy
32746 python-pillow))
32747 (native-inputs (list python-setuptools python-wheel))
32748 (home-page "https://github.com/damiafuentes/DJITelloPy")
32749 (synopsis
32750 "DJI Tello drone video streaming, swarms and state packets library")
32751 (description
32752 "DJI Tello drone Python interface using the official Tello SDK and Tello
32753EDU SDK. This library has the following features:
32754@itemize
32755@item Implementation of all tello commands
32756@item Retrieve a video stream easily
32757@item Receive and parse state packets
32758@item Control a swarm of drones.
32759@end itemize")
32760 (license license:expat)))
32761
32762(define-public python-djvulibre
32763 ;; The original git repository of python-djvulibre is hosted at
32764 ;; <https://jwilk.net/software/python-djvulibre>. However, that repository
32765 ;; has been archived by its owner in 2022. The most active fork is
32766 ;; <https://github.com/FriedrichFroebel/python-djvulibre>, and that is the
32767 ;; version packaged here (its "python3" branch, the default).
32768 ;;
32769 ;; However, the python-djvulibre PyPI project still refers to the old
32770 ;; repository. The new repository is published as djvulibre-python on PyPI;
32771 ;; that is, with the name in reversed order.The original package name is
32772 ;; used in Guix because it best adheres to the Guix naming scheme.
32773 (package
32774 (name "python-djvulibre")
32775 (version "0.9.3")
32776 (source
32777 (origin
32778 (method git-fetch)
32779 (uri (git-reference
32780 (url "https://github.com/FriedrichFroebel/python-djvulibre")
32781 (commit version)))
32782 (file-name (git-file-name name version))
32783 (sha256
32784 (base32 "0cwda210dgkqyjkwha2if80wfmv6w8baigp8kdcwhmbisfgd3l4y"))))
32785 (build-system pyproject-build-system)
32786 (arguments
32787 (list
32788 #:phases
32789 #~(modify-phases %standard-phases
32790 (replace 'check
32791 (lambda* (#:key tests? #:allow-other-keys)
32792 (when tests?
32793 ;; The tests get confused by the djvu directory.
32794 (delete-file-recursively "djvu")
32795 ;; Tests can't find tools.py otherwise.
32796 (with-directory-excursion "tests"
32797 (invoke "python" "-m" "pytest"))))))))
32798 (native-inputs
32799 (list ghostscript
32800 pkg-config
32801 python-cython
32802 python-pytest
32803 python-setuptools))
32804 (inputs
32805 (list djvulibre))
32806 (synopsis "Python bindings for DjVuLibre")
32807 (description "This is a set of Python bindings for the DjVuLibre library.")
32808 (home-page "https://github.com/FriedrichFroebel/python-djvulibre")
32809 (license license:gpl2)))
32810
32811(define-public python-gamera
32812 (package
32813 (name "python-gamera")
32814 (version "4.1.0")
32815 (source
32816 (origin
32817 (method git-fetch)
32818 (uri (git-reference
32819 (url "https://github.com/hsnr-gamera/gamera-4")
32820 (commit (string-append "v" version))))
32821 (file-name (git-file-name name version))
32822 (sha256
32823 (base32 "0l3w3wvi1ina6r3adc4wikz47wai8cjci0i5k8dxqv8p629dihrn"))))
32824 (build-system pyproject-build-system)
32825 (arguments
32826 (list
32827 #:phases
32828 #~(modify-phases %standard-phases
32829 (add-after 'unpack 'fix-build
32830 (lambda _
32831 ;; The script to make daily build artifacts fails to compile,
32832 ;; but users don't need that, so ignore it.
32833 (delete-file "misc/daily_build.py")
32834 ;; Prepare tests
32835 (mkdir-p "tmp")
32836 (setenv "HOME" (string-append (getcwd) "/tmp")))))))
32837 (native-inputs (list python-docutils python-pytest python-setuptools))
32838 (inputs (list libpng libtiff zlib))
32839 (synopsis "Framework for building document analysis applications")
32840 (description
32841 "Gamera is a toolkit for building document image recognition systems.")
32842 (home-page "https://gamera.informatik.hsnr.de/")
32843 (license license:gpl2+)))
32844
32845(define-public python-aiofiles
32846 (package
32847 (name "python-aiofiles")
32848 (version "24.1.0")
32849 (source
32850 (origin
32851 (method url-fetch)
32852 (uri (pypi-uri "aiofiles" version))
32853 (sha256
32854 (base32 "0v0namryb6acj9bkic5rcgbnb36njj601ws85q60z0d3wp4pb812"))))
32855 (build-system pyproject-build-system)
32856 (native-inputs
32857 (list python-hatch-vcs
32858 python-hatchling
32859 python-pytest
32860 python-pytest-asyncio))
32861 (home-page "https://github.com/Tinche/aiofiles")
32862 (synopsis "File support for @code{asyncio}")
32863 (description
32864 "@code{python-aiofiles} is a library for handling local disk files in
32865asyncio applications.")
32866 (license license:asl2.0)))
32867
32868(define-public python-pyre-extensions
32869 (package
32870 (name "python-pyre-extensions")
32871 (version "0.0.32")
32872 (source
32873 (origin
32874 (method url-fetch)
32875 (uri (pypi-uri "pyre_extensions" version))
32876 (sha256
32877 (base32
32878 "0mayv07djjnysznhjnchix3alkz4lxycb20azpaw8mpa2igp35jk"))))
32879 (build-system pyproject-build-system)
32880 (native-inputs (list python-pytest python-setuptools python-wheel))
32881 (propagated-inputs
32882 (list python-typing-extensions python-typing-inspect))
32883 (home-page "https://pyre-check.org")
32884 (synopsis
32885 "Type system extensions for use with @code{python-pyre}")
32886 (description
32887 "@code{python-pyre-extensions} defines extensions to the standard
32888@code{typing} module that are supported by the Pyre typechecker.")
32889 (license license:expat)))
32890
32891(define-public python-pywatchman
32892 (package
32893 (name "python-pywatchman")
32894 (version "3.0.0")
32895 (source
32896 (origin
32897 (method url-fetch)
32898 (uri (pypi-uri "pywatchman" version))
32899 (sha256
32900 (base32 "07lix9z2ib7g4h648wsbp930x5i03akis12mih8p4n0s74bjmlzg"))))
32901 (build-system pyproject-build-system)
32902 (arguments
32903 (list
32904 #:test-backend #~'custom
32905 #:test-flags #~(list "tests/tests.py")))
32906 (native-inputs (list python-setuptools))
32907 (home-page "https://facebook.github.io/watchman/")
32908 (synopsis "Watchman client for python")
32909 (description
32910 "@code{python-pywatchman} is a library to connect and query Watchman to
32911discover file changes.")
32912 (license license:bsd-3)))
32913
32914(define-public python-roundrobin
32915 (package
32916 (name "python-roundrobin")
32917 (version "0.0.4")
32918 (source
32919 (origin
32920 (method git-fetch)
32921 (uri (git-reference
32922 (url "https://github.com/linnik/roundrobin")
32923 (commit version)))
32924 (file-name (git-file-name name version))
32925 (sha256
32926 (base32 "0hdgwavrfj23c61142mnlxz5sd9ayp6svbgj2g4wdpiqy7h49rvr"))))
32927 (build-system pyproject-build-system)
32928 (arguments
32929 (list #:test-backend #~'unittest))
32930 (native-inputs (list python-setuptools))
32931 (home-page "https://github.com/linnik/roundrobin")
32932 (synopsis "Collection of roundrobin utilities")
32933 (description
32934 "This package provides a collection of utilities for round-robin
32935distribution in Python.")
32936 (license license:expat)))
32937
32938(define-public python-helpdev
32939 (package
32940 (name "python-helpdev")
32941 (version "0.7.1")
32942 (source
32943 (origin
32944 (method git-fetch)
32945 (uri (git-reference
32946 (url "https://gitlab.com/dpizetta/helpdev")
32947 (commit (string-append "v" version))))
32948 (file-name (git-file-name name version))
32949 (sha256
32950 (base32 "0mzf0sdgxzn3x56qxgi6kbsx3cydl8h0bdpyn4xyfkw6pyi9g2bd"))))
32951 (build-system pyproject-build-system)
32952 (native-inputs (list python-pip python-pytest python-setuptools))
32953 (home-page "https://gitlab.com/dpizetta/helpdev")
32954 (synopsis "Extract information about the Python environment easily")
32955 (description
32956 "Helpdev is a library to easily extract information about the Python
32957environment.")
32958 (license license:expat)))
32959
32960(define-public python-loguru
32961 (package
32962 (name "python-loguru")
32963 ;; 0.7.3 (2024-12-06); latest changes provide test clean up for MyPy,
32964 ;; covert to git tag when released.
32965 (properties '((commit . "75b920160d0655c1631a2739b4470fc12317a155")
32966 (revision . "0")))
32967 (version (git-version "0.7.3"
32968 (assoc-ref properties 'revision)
32969 (assoc-ref properties 'commit)))
32970 (source
32971 (origin
32972 (method git-fetch)
32973 (uri (git-reference
32974 (url "https://github.com/Delgan/loguru")
32975 (commit (assoc-ref properties 'commit))))
32976 (file-name (git-file-name name version))
32977 (sha256
32978 (base32 "1ypx3dgdfi6fpr7mmg8bqg7bgbwaqrm13l9d50xmd8j2b7zb13bi"))))
32979 (build-system pyproject-build-system)
32980 ;; tests: x86_64-linux 1598 passed, 28 skipped
32981 ;; i686-linux 1562 passed, 28 skipped, 36 deselected
32982 (arguments
32983 (list
32984 #:test-flags
32985 #~(list #$@(if (target-64bit?)
32986 '()
32987 ;; OverflowError
32988 '("--deselect=tests/test_datetime.py::test_formatting"
32989 (string-append "--deselect=tests/test_datetime.py"
32990 "::test_value_of_gmtoff_is_invalid"))))))
32991 (native-inputs
32992 (list python-flit-core
32993 python-freezegun
32994 python-mypy-for-tests
32995 python-pytest
32996 python-setuptools
32997 tzdata-for-tests))
32998 (propagated-inputs
32999 (list python-colorama))
33000 (home-page "https://github.com/Delgan/loguru")
33001 (synopsis "Python logging made (stupidly) simple")
33002 (description "Python logging made (stupidly) simple.")
33003 (license license:expat)))
33004
33005(define-public python-qtsass
33006 (package
33007 (name "python-qtsass")
33008 (version "0.4.0")
33009 (source
33010 (origin
33011 ;; There are no tests in the PyPI tarball.
33012 (method git-fetch)
33013 (uri (git-reference
33014 (url "https://github.com/spyder-ide/qtsass/")
33015 (commit (string-append "v" version))))
33016 (file-name (git-file-name name version))
33017 (sha256
33018 (base32 "1skdihfby2f41zxgwa5zv44vdxjrw301rh88rjmzj4xbdlix6cig"))))
33019 (build-system pyproject-build-system)
33020 (native-inputs
33021 (list python-flaky python-pytest python-setuptools python-wheel))
33022 (propagated-inputs
33023 (list python-libsass))
33024 (home-page "https://github.com/spyder-ide/qtsass")
33025 (synopsis "Compile SCSS files to valid Qt stylesheets")
33026 (description
33027 "Besides being used in web development, CSS is also the way to stylize
33028Qt-based desktop applications. However, Qt's CSS has a few variations that
33029prevent the direct use of SASS compiler.
33030
33031The purpose of this tool is to fill the gap between SASS and Qt-CSS by
33032handling those variations.")
33033 (license license:expat)))
33034
33035(define-public python-qdarkstyle
33036 (package
33037 (name "python-qdarkstyle")
33038 (version "3.2.3")
33039 (source
33040 (origin
33041 (method url-fetch)
33042 (uri (pypi-uri "QDarkStyle" version))
33043 (sha256
33044 (base32
33045 "1bpi0asa7sd5ch6x6b60n5yias04nsx6kcwji40228g9lrs7y2qc"))))
33046 (build-system pyproject-build-system)
33047 (native-inputs (list python-pytest
33048 python-qtsass
33049 python-setuptools
33050 python-watchdog
33051 python-wheel))
33052 (propagated-inputs
33053 (list python-qtpy python-pyqt-6))
33054 (home-page "https://github.com/ColinDuquesnoy/QDarkStyleSheet")
33055 (synopsis
33056 "Complete dark stylesheet for Python and Qt applications")
33057 (description "QDarkStyle is the most complete dark stylesheet for Python and
33058Qt applications.")
33059 (license license:expat)))
33060
33061(define-public python-pystray
33062 (package
33063 (name "python-pystray")
33064 (version "0.19.5")
33065 (source
33066 (origin
33067 (method git-fetch)
33068 (uri (git-reference
33069 (url "https://github.com/moses-palmer/pystray")
33070 (commit "1907f8681d6d421517c63d94f425f9cdd74d0034")))
33071 (file-name (git-file-name name version))
33072 (sha256
33073 (base32 "1vj6c8s7rbc7xc4bi5brx5629ls1ri9prcw9290v85hagilmp609"))))
33074 (build-system pyproject-build-system)
33075 (arguments
33076 (list
33077 ;; The test suite requires user interaction, there are no automated
33078 ;; tests.
33079 #:tests? #false
33080 #:phases #~(modify-phases %standard-phases
33081 (add-before 'sanity-check 'use-dummy-backend
33082 (lambda _
33083 ;; Without setting this, pystray tries to connect to
33084 ;; X11 on import.
33085 (setenv "PYSTRAY_BACKEND" "dummy"))))))
33086 (native-inputs (list python-sphinx python-setuptools))
33087 (propagated-inputs (list python-pillow python-six python-xlib))
33088 (home-page "https://github.com/moses-palmer/pystray")
33089 (synopsis "Create a system tray icon")
33090 (description "This library allows you to create a system tray icon.
33091It makes it possible to specify an icon, a title and a callback for when
33092the icon is activated. The icon and title can be changed after the icon
33093has been created, and the visibility of the icon can be toggled.")
33094 (license license:lgpl3+)))
33095
33096(define-public python-bitstring
33097 (package
33098 (name "python-bitstring")
33099 (version "4.3.1")
33100 (source
33101 (origin
33102 (method url-fetch)
33103 (uri (pypi-uri "bitstring" version))
33104 (sha256
33105 (base32 "0nm9l77sgyqai8ggnm6j9yvc473g0l8icaj11x66s8ap72fw12x0"))))
33106 (build-system pyproject-build-system)
33107 (arguments
33108 (list
33109 #:test-flags #~(list "--ignore=tests/test_benchmarks.py"
33110 "--ignore=tests/test_fp8.py"
33111 "--ignore=tests/test_mxfp.py")))
33112 (native-inputs
33113 (list python-gfloat python-pytest python-setuptools python-wheel))
33114 (propagated-inputs
33115 (list python-bitarray))
33116 (home-page "https://github.com/scott-griffiths/bitstring")
33117 (synopsis
33118 "Simple construction, analysis and modification of binary data")
33119 (description
33120 "Bitstring is a library for simple construction, analysis and modification
33121 of binary data.")
33122 (license license:expat)))
33123
33124(define-public python-confuse
33125 (package
33126 (name "python-confuse")
33127 (version "2.0.1")
33128 (source
33129 (origin
33130 (method url-fetch)
33131 (uri (pypi-uri "confuse" version))
33132 (sha256
33133 (base32
33134 "07v1s16nryls3zhaakwz6i6rgdy1c010gk00jsvn5a5a96ns4ybk"))))
33135 (build-system pyproject-build-system)
33136 (native-inputs (list python-flit-core python-pytest))
33137 (propagated-inputs (list python-pyyaml))
33138 (home-page "https://github.com/beetbox/confuse")
33139 (synopsis "Painless YAML configuration")
33140 (description "Confuse is a configuration library for Python that uses
33141YAML. It takes care of defaults, overrides, type checking, command-line
33142integration, human-readable errors, and standard OS-specific locations.")
33143 (license license:expat)))
33144
33145(define-public python-referencing
33146 (package
33147 (name "python-referencing")
33148 (version "0.37.0")
33149 (source
33150 (origin
33151 (method git-fetch)
33152 (uri (git-reference
33153 (url "https://github.com/python-jsonschema/referencing")
33154 (commit (string-append "v" version))))
33155 (file-name (git-file-name name version))
33156 (sha256
33157 (base32 "1h9mlzpgqy3grby4f57qxhlmxy25qvz84g9w5r4g1d8g5qsvvv3j"))))
33158 (build-system pyproject-build-system)
33159 (arguments
33160 (list
33161 #:phases
33162 #~(modify-phases %standard-phases
33163 (add-before 'check 'pre-check
33164 (lambda _
33165 (setenv "REFERENCING_SUITE"
33166 (string-append #$(this-package-native-input
33167 "specification-referencing-suite")
33168 "/share")))))))
33169 (native-inputs
33170 (list python-hatchling
33171 python-hatch-vcs
33172 python-pytest
33173 specification-referencing-suite))
33174 (propagated-inputs
33175 (list python-attrs
33176 python-rpds-py
33177 python-typing-extensions)) ;Python version < 3.13
33178 (home-page "https://github.com/python-jsonschema/referencing")
33179 (synopsis "JSON Referencing + Python")
33180 (description "This package provides an implementation-agnostic
33181implementation of JSON reference resolution.")
33182 (license license:expat)))
33183
33184(define-public python-referencing-bootstrap
33185 (package
33186 (inherit python-referencing)
33187 (name "python-referencing-bootstrap")
33188 (arguments
33189 (list
33190 #:tests? #false
33191 #:phases
33192 '(modify-phases %standard-phases
33193 (add-after 'unpack 'patch-pyproject
33194 (lambda _
33195 ;; The build system does not like this.
33196 (substitute* "pyproject.toml"
33197 ((" \"Topic :: File Formats.*") "")))))))
33198 (native-inputs (list python-hatchling python-hatch-vcs))))
33199
33200(define-public python-reflink
33201 (package
33202 (name "python-reflink")
33203 (version "0.2.2")
33204 (source
33205 (origin
33206 (method git-fetch)
33207 (uri (git-reference
33208 (url "https://gitlab.com/rubdos/pyreflink")
33209 (commit version)))
33210 (file-name (git-file-name name version))
33211 (sha256
33212 (base32 "1ch3n7m1f5nvx9i0jv1fj1i5w1jsl1ga8dxzixg71m34gf4kg3s6"))))
33213 (build-system pyproject-build-system)
33214 (arguments
33215 (list #:tests? #f)) ;almost all tests want to run mkfs.btrfs
33216 (propagated-inputs (list python-cffi))
33217 (native-inputs (list python-pytest python-setuptools))
33218 (home-page "https://gitlab.com/rubdos/pyreflink")
33219 (synopsis "Python wrapper around reflink system call")
33220 (description
33221 "Python reflink wraps around platform specific @code{reflink}
33222implementations.")
33223 (license license:expat)))
33224
33225(define-public python-retry
33226 ;; XXX: The project is abandoned upstream for 11y, remove when python-locust
33227 ;; drops it or we can find a way to avoid it.
33228 (package
33229 (name "python-retry")
33230 (version "0.9.2")
33231 (source
33232 (origin
33233 (method git-fetch)
33234 (uri (git-reference
33235 (url "https://github.com/invl/retry")
33236 (commit version)))
33237 (file-name (git-file-name name version))
33238 (sha256
33239 (base32 "1a35ihsn082626592bkjc41fywylzp603j0cxpkbm2f7l1k332xv"))))
33240 (build-system pyproject-build-system)
33241 (arguments
33242 (list
33243 #:phases
33244 #~(modify-phases %standard-phases
33245 (add-after 'unpack 'relax-requirements
33246 (lambda _
33247 (substitute* "requirements.txt"
33248 (("py>=1.4.26,<2.0.0")
33249 "")))))))
33250 (native-inputs (list python-pbr python-pytest))
33251 (propagated-inputs (list python-decorator))
33252 (home-page "https://github.com/invl/retry")
33253 (synopsis "Retry decorator")
33254 (description
33255 "@code{retry} is an easy to use retry decorator for Python. It can be
33256used to retry a function a given number of times.")
33257 (license license:asl2.0)))
33258
33259(define-public python-crayons
33260 (package
33261 (name "python-crayons")
33262 (version "0.4.0")
33263 (source
33264 (origin
33265 (method git-fetch)
33266 (uri (git-reference
33267 (url "https://github.com/MasterOdin/crayons")
33268 (commit (string-append "v" version))))
33269 (file-name (git-file-name name version))
33270 (sha256
33271 (base32 "0zmls5c67mxyxzlwvagiidlrxy1f6f8kwm5afjsydhn19h4rd7za"))))
33272 (build-system pyproject-build-system)
33273 (arguments
33274 (list
33275 #:test-backend #~'custom
33276 #:test-flags #~(list "test_crayons.py")))
33277 (native-inputs (list python-setuptools))
33278 (propagated-inputs (list python-colorama))
33279 (home-page "https://github.com/MasterOdin/crayons")
33280 (synopsis "TextUI colors for Python")
33281 (description
33282 "This package gives you colored strings for the terminal. Crayons
33283automatically wraps a given string in the foreground color and restores the
33284original state after the string is printed.")
33285 (license license:expat)))
33286
33287(define-public python-sane
33288 (package
33289 (name "python-sane")
33290 (version "2.9.2")
33291 (source
33292 (origin
33293 (method git-fetch)
33294 (uri (git-reference
33295 (url "https://github.com/python-pillow/Sane")
33296 (commit (string-append "v" version))))
33297 (file-name (git-file-name name version))
33298 (sha256
33299 (base32 "0ldc17n1h8awd0flhwhvb5fj0izy5vy18c128saqnm5isq273y9r"))))
33300 (build-system pyproject-build-system)
33301 (arguments (list #:tests? #f)) ; No tests.
33302 (native-inputs (list python-setuptools))
33303 (inputs (list sane))
33304 (home-page "https://github.com/python-pillow/Sane")
33305 (synopsis "Python interface to the SANE scanner")
33306 (description
33307 "This package provides Python interface to the SANE scanner and frame
33308grabber interface.")
33309 (license (license:non-copyleft
33310 ;; Yet another variant of the X/MIT license.
33311 "https://github.com/python-pillow/Sane/blob/master/COPYING"))))
33312
33313(define-public python-scikit-build
33314 (package
33315 (name "python-scikit-build")
33316 (version "0.18.1")
33317 (source
33318 (origin
33319 (method url-fetch)
33320 (uri (pypi-uri "scikit_build" version))
33321 (sha256
33322 (base32 "1rxqzigfacpbcfhf3c1gdqrnqdnq503bx5vpib19km44l32jl5d4"))
33323 (patches
33324 (search-patches "python-scikit-build-setuptools-compat.patch"))))
33325 (build-system pyproject-build-system)
33326 (arguments
33327 (list
33328 #:phases
33329 #~(modify-phases %standard-phases
33330 (add-after 'unpack 'patch-cmake-executable
33331 (lambda* (#:key inputs #:allow-other-keys)
33332 (substitute* "skbuild/constants.py"
33333 (("^(CMAKE_DEFAULT_EXECUTABLE = ).*" _ head)
33334 (format #f "~a ~s~%" head
33335 (search-input-file inputs "bin/cmake"))))))
33336 (add-before 'check 'pre-check
33337 (lambda _
33338 ;; Some tests try to access the network before being skipped.
33339 ;; Skip them by default.
33340 (substitute* "tests/test_setup.py"
33341 (("pytest\\.mark\\.skipif\\(not is_site_reachable.*")
33342 "pytest.mark.isolated()\n"))))
33343 (replace 'check
33344 (lambda* (#:key tests? #:allow-other-keys)
33345 (when tests?
33346 ;; These tests attempt to pull dependencies from the Internet.
33347 (delete-file "tests/test_distribution.py")
33348 (delete-file "tests/test_pep518.py")
33349 ;; The tests marked as "isolate" are tests that require access
33350 ;; to the network.
33351 (invoke "pytest" "-vv" "-m" "not isolated"
33352 "-n" (number->string (parallel-job-count))
33353 "-k" (string-append
33354 ;; These tests attempt to write to read-only
33355 ;; Python install directory.
33356 "not test_install_command "
33357 "and not test_test_command "
33358 "and not test_hello_develop "
33359 ;; These sdist-related tests fail for unknown
33360 ;; reasons (see:
33361 ;; https://github.com/scikit-build/scikit-build/issues/689).
33362 "and not test_hello_sdist_with_base "
33363 "and not test_manifest_in_sdist "
33364 "and not test_hello_sdist "
33365 "and not test_sdist_with_symlinks "
33366 ;; These are not parallel safe and fail
33367 ;; nondeterministically (see:
33368 ;; https://github.com/scikit-build/scikit-build/issues/711).
33369 "and not test_generator_cleanup "
33370 "and not test_generator_selection "
33371 ;; … and there's more of them
33372 "and not test_cxx_compiler "
33373 "and not test_fortran_compiler ")))))
33374 (add-after 'install 'install-cmake
33375 (lambda* (#:key outputs #:allow-other-keys)
33376 (let ((lib (string-append (assoc-ref outputs "out")
33377 "/lib/cmake/modules")))
33378 (mkdir-p lib)
33379 (with-directory-excursion "skbuild/resources/cmake"
33380 (for-each (lambda (file) (install-file file lib))
33381 (find-files "." "\\.cmake")))))))))
33382 (native-inputs
33383 (list cmake-minimal
33384 gfortran
33385 git-minimal/pinned ;for tests
33386 ninja/pinned
33387 python-cython
33388 python-hatch-fancy-pypi-readme
33389 python-hatch-vcs
33390 python-hatchling
33391 python-pytest
33392 python-pytest-mock
33393 python-pytest-xdist
33394 python-requests
33395 python-virtualenv))
33396 (propagated-inputs
33397 (list python-distro
33398 python-packaging
33399 python-wheel))
33400 (home-page "https://github.com/scikit-build/scikit-build")
33401 (synopsis "Build system generator for Python C/C++/Fortran/Cython extensions")
33402 (description "Scikit-build is an improved build system generator for
33403CPython C/C++/Fortran/Cython extensions. It has support for additional
33404compilers, build systems, cross compilation, and locating dependencies and
33405determining their build requirements. The scikit-build package is
33406fundamentally just glue between the @code{setuptools} Python module and
33407CMake.")
33408 (license license:expat)))
33409
33410(define-public python-screeninfo
33411 (package
33412 (name "python-screeninfo")
33413 (version "0.8.1")
33414 (source
33415 (origin
33416 (method git-fetch)
33417 (uri (git-reference
33418 (url "https://github.com/rr-/screeninfo")
33419 (commit version)))
33420 (file-name (git-file-name name version))
33421 (sha256
33422 (base32 "0q0nvj2ghbyjfymsbsl6dr7ggpg177fjncnzbxj18yglyz0vhk2c"))))
33423 (build-system pyproject-build-system)
33424 (native-inputs
33425 (list libdrm
33426 python-poetry-core
33427 python-pytest))
33428 (home-page "https://github.com/rr-/screeninfo")
33429 (synopsis "Fetch location and size of physical screens")
33430 (description
33431 "Fetch location and size of physical screens. GNU/Linux has support on
33432following enviroments: X11 (thought Xinerama) and DRM (experimental).")
33433 (license license:expat)))
33434
33435;; Deprecated on <2026-07-23>.
33436(define-deprecated/public-alias python-screenkey
33437 (@ (gnu packages video) python-screenkey))
33438
33439(define-public python-jinja2-cli
33440 (package
33441 (name "python-jinja2-cli")
33442 (version "0.8.2")
33443 (source
33444 (origin
33445 (method git-fetch)
33446 (uri (git-reference
33447 (url "https://github.com/mattrobenolt/jinja2-cli")
33448 (commit version)))
33449 (file-name (git-file-name name version))
33450 (sha256
33451 (base32
33452 "03ap7rxc1g302m0wacn47rf65d6dqrawa4maam9yapyr96viif7b"))))
33453 (build-system pyproject-build-system)
33454 (propagated-inputs
33455 (list python-jinja2))
33456 (native-inputs
33457 (list python-jinja2
33458 python-pytest
33459 python-setuptools
33460 python-wheel))
33461 (home-page "https://github.com/mattrobenolt/jinja2-cli")
33462 (synopsis "Command-line interface to Jinja2")
33463 (description
33464 "This package provides a command-line interface (CLI) to the Jinja2
33465template engine.")
33466 (license license:bsd-3)))
33467
33468(define-public python-readability
33469 (package
33470 (name "python-readability")
33471 (version "0.3.1")
33472 (source
33473 (origin
33474 (method git-fetch)
33475 (uri (git-reference
33476 (url "https://github.com/andreasvc/readability/")
33477 (commit (string-append "v" version))))
33478 (file-name (git-file-name name version))
33479 (sha256
33480 (base32 "0m2v4ysy2a7k6j9d85i4n9z6k48rmgmbj1v7r6l2cb5qpa3pwrj5"))))
33481 (build-system pyproject-build-system)
33482 (arguments (list #:tests? #f)) ; No tests.
33483 (native-inputs (list python-setuptools))
33484 (home-page "https://github.com/andreasvc/readability/")
33485 (synopsis "Measure text readability using surface characteristics")
33486 (description
33487 "This package provides a Python library that is an implementation of
33488traditional readability measures based on simple surface characteristics.
33489These measures are basically linear regressions based on the number of words,
33490syllables, and sentences.")
33491 (license license:asl2.0)))
33492
33493(define-public python-readability-lxml
33494 (package
33495 (name "python-readability-lxml")
33496 (version "0.9")
33497 (source
33498 (origin
33499 (method git-fetch)
33500 (uri (git-reference
33501 (url "http://github.com/buriy/python-readability")
33502 (commit version)))
33503 (file-name (git-file-name name version))
33504 (sha256
33505 (base32 "05alz7i33m4n7097jl5slxy5k2lnnxwwadqw956gwk1fihyzidrp"))))
33506 (build-system pyproject-build-system)
33507 (native-inputs
33508 (list python-poetry-core
33509 python-pytest))
33510 (propagated-inputs
33511 (list python-chardet
33512 python-cssselect
33513 python-lxml
33514 python-lxml-html-clean)) ;XXX: it should be part of python-lxml lib
33515 (home-page "http://github.com/buriy/python-readability")
33516 (synopsis "HTML to text parser")
33517 (description
33518 "This package provides classes and function that strip gratuitous markup
33519from web pages to make them easier to read.")
33520 (license license:asl2.0)))
33521
33522(define-public python-listparser
33523 (package
33524 (name "python-listparser")
33525 (version "0.20")
33526 (source
33527 (origin
33528 (method git-fetch)
33529 (uri (git-reference
33530 (url "https://github.com/kurtmckee/listparser")
33531 (commit (string-append "v" version))))
33532 (file-name (git-file-name name version))
33533 (sha256
33534 (base32 "0a69cm0inwqwipvnmf5plbf9rqgy1arl62gxnwc7pg7062p563vs"))))
33535 (build-system pyproject-build-system)
33536 (native-inputs (list python-pytest python-poetry-core))
33537 (home-page "https://github.com/kurtmckee/listparser")
33538 (synopsis "Parse subscription lists in Python")
33539 (description
33540 "This package provides a Python library that can parse OPML, FOAF, and
33541iGoogle subscription lists.")
33542 (license license:expat)))
33543
33544(define-public python-smartypants
33545 (package
33546 (name "python-smartypants")
33547 (version "2.0.2")
33548 (source
33549 (origin
33550 (method url-fetch)
33551 (uri (pypi-uri "smartypants" version))
33552 (sha256
33553 (base32 "1ih0z32xfz45bpjyc27nnx8k4b613cwxyyr9k2v68sfcszhlrmir"))))
33554 (build-system pyproject-build-system)
33555 (native-inputs
33556 (list python-docutils python-pygments python-setuptools))
33557 (home-page "https://github.com/justinmayer/smartypants.py")
33558 (synopsis "Translate punctuation characters into smart quotes")
33559 (description
33560 "@command{smartpants} can perform the following transformations:
33561@enumerate
33562@item Straight quotes ( \" and ' ) into \"curly\" quote HTML entities
33563@item Backticks-style quotes (``like this'') into \"curly\" quote HTML
33564entities
33565@item Dashes (-- and ---) into en- and em-dash entities
33566@item Three consecutive dots (... or . . .) into an ellipsis entity
33567@end enumerate")
33568 (license license:bsd-3)))
33569
33570(define-public python-ld
33571 (package
33572 (name "python-ld")
33573 (version "1.9.0")
33574 (source
33575 (origin
33576 (method git-fetch)
33577 (uri (git-reference
33578 (url "https://github.com/nir0s/ld")
33579 (commit (string-append "v" version))))
33580 (file-name (git-file-name name version))
33581 (sha256
33582 (base32 "16yacjfw701n8dhyi26hps3i7fchbvnq9gcrx7v0fn2lbfzzvq00"))))
33583 (build-system pyproject-build-system)
33584 (arguments
33585 (list
33586 ;; XXX: These tests expect ubuntu distro.
33587 #:test-flags
33588 #~(list "-k" (string-join (list "not test_ubuntu14normal_lsb_release"
33589 "test_ubuntu14nomodules_lsb_release"
33590 "test_trailingblanks_lsb_release")
33591 " and not "))))
33592 (native-inputs (list python-pytest python-setuptools))
33593 (home-page "https://github.com/nir0s/ld")
33594 (synopsis "OS platform information API")
33595 (description
33596 "The ld package provides information about the GNU/Linux distribution it
33597runs on, such as a reliable machine-readable ID, or version information.")
33598 (license license:asl2.0)))
33599
33600(define-public python-quicktions
33601 (package
33602 (name "python-quicktions")
33603 (version "1.22")
33604 (source
33605 (origin
33606 (method git-fetch)
33607 (uri (git-reference
33608 (url "https://github.com/scoder/quicktions")
33609 (commit version)))
33610 (file-name (git-file-name name version))
33611 (sha256
33612 (base32
33613 "0kmbhbmz8cjsjp0lqmsi6a2imr4g9wy8rpfdwzghhs8hb6wj5gwy"))))
33614 (build-system pyproject-build-system)
33615 (native-inputs
33616 (list python-cython python-pytest python-setuptools))
33617 (home-page "https://github.com/scoder/quicktions")
33618 (synopsis "Fast fractions data type for rational numbers")
33619 (description
33620 "This package provides fast fractions data type for rational numbers. It
33621is the cythonized version of @code{fractions.Fraction}.")
33622 (license license:psfl)))
33623
33624(define-public python-pathvalidate
33625 (package
33626 (name "python-pathvalidate")
33627 (version "3.3.1")
33628 (source
33629 (origin
33630 (method git-fetch)
33631 (uri (git-reference
33632 (url "https://github.com/thombashi/pathvalidate")
33633 (commit (string-append "v" version))))
33634 (file-name (git-file-name name version))
33635 (sha256
33636 (base32 "14ymgd52v5r0g6yc2l7krg3n4x9bkv1ndvdaahiq503n1zhhs3iv"))))
33637 (build-system pyproject-build-system)
33638 (native-inputs (list python-allpairspy
33639 python-click
33640 python-faker
33641 python-pytest
33642 python-setuptools
33643 python-setuptools-scm
33644 python-tcolorpy))
33645 (home-page "https://github.com/thombashi/pathvalidate")
33646 (synopsis "Sanitize strings representing paths")
33647 (description
33648 "@code{pathvalidate} is a Python library to sanitize/validate strings
33649representing paths or filenames.")
33650 (license license:expat)))
33651
33652(define-public python-escapism
33653 (package
33654 (name "python-escapism")
33655 (version "1.0.1")
33656 (source
33657 (origin
33658 (method git-fetch)
33659 (uri (git-reference
33660 (url "https://github.com/jupyterhub/escapism")
33661 (commit version)))
33662 (file-name (git-file-name name version))
33663 (sha256
33664 (base32 "1447mamrdbyv9v47f9wrc4fyvbwz5qrwl8qrdzqdq3q62q4xrawj"))))
33665 (build-system pyproject-build-system)
33666 (native-inputs (list python-pytest python-setuptools))
33667 (home-page "https://github.com/jupyterhub/escapism")
33668 (synopsis "Simple, generic library for escaping strings")
33669 (description
33670 "This Python library provides a programming interface to, given a set of
33671safe characters and an escape character, escape safe strings and unescape the
33672result.")
33673 (license license:expat)))
33674
33675(define-public python-recommonmark
33676 (package
33677 (name "python-recommonmark")
33678 (version "0.7.1")
33679 (source
33680 (origin
33681 (method url-fetch)
33682 (uri (pypi-uri "recommonmark" version))
33683 (sha256
33684 (base32
33685 "0rvdd2ikdr0yg6cx6594fdzn53cmdc0g0i6qsbcdq8i2kxjdpd5x"))))
33686 (build-system pyproject-build-system)
33687 (arguments
33688 (list
33689 ;; XXX: Some of those fail for no good reason.
33690 #:test-flags #~(list "--ignore=tests/test_sphinx.py")))
33691 (native-inputs (list python-pytest python-setuptools python-wheel))
33692 (propagated-inputs (list python-commonmark python-docutils python-sphinx))
33693 (home-page "https://github.com/readthedocs/recommonmark")
33694 (synopsis "Docutils-compatibility bridge to CommonMark")
33695 (description
33696 "This package provides a docutils-compatibility bridge to CommonMark that
33697lets you write CommonMark inside of Docutils & Sphinx projects.")
33698 (license license:expat)))
33699
33700(define-public python-rectangle-packer
33701 (package
33702 (name "python-rectangle-packer")
33703 (version "2.1.0")
33704 (source
33705 (origin
33706 (method git-fetch)
33707 (uri (git-reference
33708 (url "https://github.com/Penlect/rectangle-packer")
33709 (commit version)))
33710 (file-name (git-file-name name version))
33711 (sha256
33712 (base32 "0pwzfxpdv20v8d8lq844nm01zzgzzvm2rg2h49aj949myqkg5nmd"))))
33713 (build-system pyproject-build-system)
33714 (arguments
33715 (list
33716 #:phases
33717 #~(modify-phases %standard-phases
33718 ;; Cython extensions have to be built before running the tests.
33719 (add-before 'check 'build-ext
33720 (lambda _
33721 (invoke "python" "setup.py" "build_ext" "--inplace"))))))
33722 (native-inputs
33723 (list python-cython python-pytest python-setuptools))
33724 (home-page "https://github.com/Penlect/rectangle-packer")
33725 (synopsis "Pack rectangles into a bounding box")
33726 (description
33727 "Rectangle-packer is a Python library for packing rectangles
33728into a bounding box with minimal wasted space. It is useful for texture
33729atlases, sprite sheets, and bin packing problems.")
33730 (license license:expat)))
33731
33732(define-public python-redo
33733 (package
33734 (name "python-redo")
33735 (version "3.0.0")
33736 (source
33737 (origin
33738 (method git-fetch)
33739 (uri (git-reference
33740 (url "https://github.com/mozilla-releng/redo")
33741 (commit version)))
33742 (file-name (git-file-name name version))
33743 (sha256
33744 (base32 "1sh12f1zbdcafmnqlw25pyirhg78linbb7sxd3vnbdlm92dry0b0"))))
33745 (build-system pyproject-build-system)
33746 (native-inputs
33747 (list python-mock python-pytest python-pytest-asyncio python-setuptools))
33748 (home-page "https://github.com/mozilla-releng/redo")
33749 (synopsis "Utilities to retry Python callables")
33750 (description "Redo provides various means to add seamless ability to
33751retry to any Python callable.")
33752 (license license:mpl2.0)))
33753
33754(define-public python-opcodes
33755 ;; There are no tags in this repo, but 'opcodes/__init__.py' specifies a
33756 ;; version number, which is what we use here.
33757 (let ((commit "0f7c7d63f5e13ce5a89d9acc3934f1b6e247ec1f"))
33758 (package
33759 (name "python-opcodes")
33760 (version "0.3.14") ;from 'opcodes/__init__.py'
33761 (home-page "https://github.com/Maratyszcza/Opcodes")
33762 (source
33763 (origin
33764 (method git-fetch)
33765 (uri (git-reference (url home-page) (commit commit)))
33766 (file-name (git-file-name name version))
33767 (sha256
33768 (base32 "1fvxkr83gfl9f0ikd2wl2lzazzya2qz1hk4yn2a0pq742brbwpys"))))
33769 (build-system pyproject-build-system)
33770 (native-inputs (list python-pytest python-setuptools))
33771 (synopsis "Database of processor instructions and opcodes")
33772 (description
33773 "This project documents instruction sets in a format convenient for
33774tools development. An instruction set is represented by three files:
33775
33776@itemize
33777@item an XML file that describes instructions;
33778@item an XSD file that describes the structure of the XML file;
33779@item a Python module that reads the XML file and represents it as a set of
33780Python objects;
33781@end itemize
33782
33783It currently provides descriptions for most user-mode x86, x86_64, and k1om
33784instructions up to AVX-512 and SHA (including 3dnow!+, XOP, FMA3, FMA4, TBM
33785and BMI2).")
33786 (license license:bsd-2))))
33787
33788(define-public python-cart
33789 (package
33790 (name "python-cart")
33791 (version "1.2.3")
33792 (source
33793 (origin
33794 (method git-fetch)
33795 (uri (git-reference
33796 (url "https://github.com/CybercentreCanada/cart")
33797 (commit (string-append "v" version))))
33798 (file-name (git-file-name name version))
33799 (sha256
33800 (base32 "1064swqylim0nx0msynkqbz6n57n5yy4mmqxl7wd9bsg5mmrxrd1"))))
33801 (build-system pyproject-build-system)
33802 (arguments
33803 (list
33804 #:test-backend #~'unittest))
33805 (native-inputs
33806 (list python-setuptools))
33807 (propagated-inputs
33808 (list python-pycryptodome))
33809 (home-page "https://github.com/CybercentreCanada/cart")
33810 (synopsis "Library for interacting with the CaRT file format")
33811 (description
33812 "This Python library implements the CaRT file format which is commonly
33813used to store and transmit information about computer malware and associated
33814metadata.")
33815 (license license:bsd-2)))
33816
33817(define-public python-cle
33818 (package
33819 (name "python-cle")
33820 ;; Must be the same version as python-angr.
33821 (version "9.2.186")
33822 (source
33823 (origin
33824 (method git-fetch)
33825 (uri (git-reference
33826 (url "https://github.com/angr/cle")
33827 (commit (string-append "v" version))))
33828 (file-name (git-file-name name version))
33829 (sha256
33830 (base32 "1ycrqysvxgm369cwf0zcyykl1xgma71apbxkbq0z9yakpajgli1s"))))
33831 (build-system pyproject-build-system)
33832 (arguments
33833 (list
33834 ;; tests: 112 passed, 12 skipped, 1 warning
33835 #:phases
33836 #~(modify-phases %standard-phases
33837 (add-before 'check 'check-setup
33838 (lambda _
33839 (copy-recursively
33840 (string-append #$(this-package-native-input "angr-binaries") "/share")
33841 "../binaries"))))))
33842 (native-inputs
33843 (list angr-binaries
33844 python-cffi
33845 python-pytest
33846 python-setuptools))
33847 (propagated-inputs
33848 (list python-archinfo
33849 python-cart
33850 python-pefile
33851 python-pyelftools
33852 python-pyvex
33853 python-sortedcontainers))
33854 (home-page "https://github.com/angr/cle")
33855 (synopsis "Python loader for binaries and their associated libraries")
33856 (description
33857 "CLE loads binaries and their associated libraries, resolves
33858imports and provides an abstraction of process memory the same way as if
33859it was loader by the operating system's loader.")
33860 (license license:bsd-2)))
33861
33862(define-public python-pyvex
33863 (package
33864 (name "python-pyvex")
33865 ;; Must be the same version as python-angr.
33866 (version "9.2.186")
33867 (source
33868 (origin
33869 (method git-fetch)
33870 (uri (git-reference
33871 (url "https://github.com/angr/pyvex")
33872 (commit (string-append "v" version))))
33873 (file-name (git-file-name name version))
33874 (sha256
33875 (base32 "1ql6rn5n8jfmz8v2453283qdgpxvjkfgqdxwqsgs005j9lrhqa7z"))))
33876 (build-system pyproject-build-system)
33877 (arguments
33878 (list
33879 ;; tests: 57 passed
33880 #:phases
33881 #~(modify-phases %standard-phases
33882 (add-after 'unpack 'copy-submodule-package
33883 ;; XXX: ensure-no-mtimes-pre-1980 and build phases fail when using
33884 ;; symlink: "Read-only file system".
33885 (lambda _
33886 (copy-recursively
33887 #+(package-source (this-package-native-input "vex"))
33888 (string-append (getcwd) "/vex"))))
33889 (add-before 'build 'set-cc
33890 (lambda _
33891 (setenv "AR" #$(ar-for-target))
33892 (setenv "CC" #$(cc-for-target))
33893 (setenv "CC_NATIVE" "gcc"))))))
33894 (native-inputs
33895 (list cmake-minimal
33896 python-pytest
33897 python-scikit-build-core
33898 vex))
33899 (propagated-inputs
33900 (list python-bitstring
33901 python-cffi))
33902 (home-page "https://github.com/angr/pyvex")
33903 (synopsis "Python interface to libVEX and VEX IR")
33904 (description
33905 "This package provides a Python interface the libVEX and VEX IR.
33906VEX is the intermediate representation (also known as intermediate
33907language) used by the Valgrind analysis tool. As such, VEX is designed
33908to enable all kinds of binary analysis tasks.")
33909 (license (list license:bsd-2
33910 license:gpl2))))
33911
33912(define-public python-claripy
33913 (package
33914 (name "python-claripy")
33915 ;; Must be the same version as python-angr.
33916 (version "9.2.186")
33917 (source
33918 (origin
33919 (method git-fetch)
33920 (uri (git-reference
33921 (url "https://github.com/angr/claripy")
33922 (commit (string-append "v" version))))
33923 (file-name (git-file-name name version))
33924 (sha256
33925 (base32 "1vlvscjn098100i2hfcsxllj19bnzs6vagnkg0fr18ps2gvbzcnv"))))
33926 (build-system pyproject-build-system)
33927 (arguments
33928 (list
33929 ;; tests: 329 passed, 1 skipped
33930 #:phases
33931 #~(modify-phases %standard-phases
33932 (add-after 'unpack 'relax-requirements
33933 (lambda _
33934 (substitute* "pyproject.toml"
33935 ;; Current version of z3 in Guix is 4.13.0 and sanity check
33936 ;; failes to detect it (similar like OpenCV), relax the
33937 ;; version constraint, see:
33938 ;; <https://github.com/angr/claripy/commit/d1fe2df>.
33939 ((", \"z3-solver==4.13.0.0\"")
33940 "")))))))
33941 (native-inputs
33942 (list python-pytest
33943 python-setuptools))
33944 (propagated-inputs
33945 (list python-cachetools
33946 python-decorator
33947 python-pysmt
33948 z3))
33949 (home-page "https://github.com/angr/claripy")
33950 (synopsis "Abstraction layer for constraint solvers")
33951 (description
33952 "This Python module provides an abstraction layer for interacting
33953with constraint solvers. Specifically, it is intended to be used with
33954SMT solvers and is built on top of the Z3 solver.")
33955 (license license:bsd-2)))
33956
33957(define-public python-pysmt
33958 (package
33959 (name "python-pysmt")
33960 (version "0.9.6")
33961 (source
33962 (origin
33963 ;; Fetching from Git as pypi release doesn't include all test files.
33964 (method git-fetch)
33965 (uri (git-reference
33966 (url "https://github.com/pysmt/pysmt")
33967 (commit (string-append "v" version))))
33968 (file-name (git-file-name name version))
33969 (sha256
33970 (base32 "0jiw8pa6hfh9ajr953q187qgpdnk3bvaa3wmrxs8ilw5jc41sq8y"))))
33971 (build-system pyproject-build-system)
33972 (arguments
33973 `(#:phases (modify-phases %standard-phases
33974 (add-before 'check 'set-pysmt-solver
33975 (lambda _
33976 (setenv "PYSMT_SOLVER" "z3"))))))
33977 (native-inputs (list python-pytest python-setuptools python-wheel))
33978 (propagated-inputs (list z3))
33979 (home-page "https://github.com/pysmt/pysmt")
33980 (synopsis
33981 "Solver-agnostic library for SMT formula manipulation and solving")
33982 (description
33983 "This Python module provides a solver-agnostic abstraction for
33984working with @acronym{SMT, Satisfiability Modulo Theory} formulas. For example,
33985it allows manipulation and solving such formulas.")
33986 (license license:asl2.0)))
33987
33988(define-public python-rpyc
33989 (package
33990 (name "python-rpyc")
33991 (version "5.3.1")
33992 (source
33993 (origin
33994 ;; Fetching from Git as pypi release doesn't include all test files.
33995 (method git-fetch)
33996 (uri (git-reference
33997 (url "https://github.com/tomerfiliba-org/rpyc")
33998 (commit version)))
33999 (file-name (git-file-name name version))
34000 (sha256
34001 (base32 "15mnp9qkyw3mmxmr5y4kf3xkvxyp00n892vqaqwznr7al35apgnr"))
34002 (snippet '(begin
34003 ;; Disable deploy tests, these rely on OpenSSH and require
34004 ;; configuring the SSH client manually to accept the host key.
34005 (delete-file "tests/test_deploy.py")
34006 ;; Disable tests requiring network access. These tests
34007 ;; presently fail with the error "Network is unreachable".
34008 (delete-file "tests/test_registry.py")))))
34009 (build-system pyproject-build-system)
34010 (arguments
34011 `(#:phases (modify-phases %standard-phases
34012 (replace 'check
34013 (lambda* (#:key tests? #:allow-other-keys)
34014 (when tests?
34015 (with-directory-excursion "tests"
34016 (invoke "python" "-m" "unittest"))))))))
34017 (propagated-inputs (list python-hatchling python-plumbum))
34018 (home-page "https://github.com/tomerfiliba-org/rpyc")
34019 (synopsis
34020 "Remote Python Call (RPyC) is a symmetric distributed computing library")
34021 (description
34022 "This Python module enables remote procedure calls, clustering, and
34023distributed-computing. For this purpose, it makes use of object-proxying, a technique
34024that employs python's dynamic nature, to overcome the physical boundaries between
34025processes and computers, so that remote objects can be manipulated as if they
34026were local.")
34027 (license license:expat)))
34028
34029(define-public python-nampa
34030 (package
34031 (name "python-nampa")
34032 ;; PyPI version is 0.1.1 from 2017. Tag 1.0 on git is from 2020 and still
34033 ;; has 0.1.1 as version. Latest commit is from 2024.
34034 (properties '((commit . "cb6a63aae64324f57bdc296064bc6aa2b99ff99a")
34035 (revision . "0")))
34036 (version (git-version "1.0.0"
34037 (assoc-ref properties 'revision)
34038 (assoc-ref properties 'commit)))
34039 (source
34040 (origin
34041 (method git-fetch)
34042 (uri (git-reference
34043 (url "https://github.com/thebabush/nampa")
34044 (commit (assoc-ref properties 'commit))))
34045 (file-name (git-file-name name version))
34046 (sha256
34047 (base32 "0a3fx0wpch4il1fwv1nan6nsd7bv84b0bs2xxxjacisw3spizlg0"))))
34048 (build-system pyproject-build-system)
34049 (arguments
34050 (list
34051 #:test-flags
34052 #~(list "-k test_random_values")
34053 #:phases
34054 #~(modify-phases %standard-phases
34055 (add-after 'unpack 'patch-tests
34056 (lambda _
34057 ;; Unclear why this top-level __init__.py is here. It seems to
34058 ;; setup a plugin for binaryninja, which Guix does not package.
34059 (delete-file "__init__.py")
34060 ;; Yields tests, which is not allowed anymore.
34061 (substitute* "tests/test_crc.py"
34062 (("yield") "#yield")))))))
34063 (propagated-inputs (list python-future))
34064 (native-inputs (list python-pytest python-setuptools))
34065 (home-page "https://github.com/thebabush/nampa")
34066 (synopsis "Python implementation of IDA Pro's FLIRT technology")
34067 (description
34068 "This Python module implements the @acronym{FLIRT, Fast Library Identification
34069and Recognition Technology}. This technology is useful for identifying
34070common library subroutines in disassembled binaries.")
34071 (license license:lgpl3)))
34072
34073(define-public python-mulpyplexer
34074 (package
34075 (name "python-mulpyplexer")
34076 (version "0.09")
34077 (source
34078 (origin
34079 (method url-fetch)
34080 (uri (pypi-uri "mulpyplexer" version))
34081 (sha256
34082 (base32 "0c5xzci1djy1yi9hxxh8g67l6ms8r7ad7ja20pv8hfbdysdrwkhl"))))
34083 (build-system pyproject-build-system)
34084 (arguments
34085 (list
34086 #:phases
34087 '(modify-phases %standard-phases
34088 (replace 'check
34089 (lambda* (#:key tests? #:allow-other-keys)
34090 (when tests?
34091 (invoke "python" "mulpyplexer.py")))))))
34092 (native-inputs (list python-setuptools python-wheel))
34093 (home-page "https://github.com/zardus/mulpyplexer/")
34094 (synopsis "Multiplexes interactions with lists of Python objects")
34095 (description "This module provides utilities for multiplexing
34096interactions with lists of Python objects.")
34097 (license license:bsd-2)))
34098
34099(define-public python-itanium-demangler
34100 (package
34101 (name "python-itanium-demangler")
34102 (version "1.1")
34103 (source
34104 (origin
34105 (method git-fetch)
34106 (uri (git-reference
34107 ;; PyPI only provides wheels and no source code.
34108 (url "https://github.com/whitequark/python-itanium_demangler")
34109 (commit (string-append "v" version))))
34110 (file-name (git-file-name name version))
34111 (sha256
34112 (base32 "1q47aqm5z3db6pasdzw05d6236vnb8hnapfy88fcmn9dr5ym98r3"))))
34113 (build-system pyproject-build-system)
34114 (arguments
34115 (list
34116 #:phases
34117 #~(modify-phases %standard-phases
34118 (replace 'check
34119 (lambda* (#:key tests? #:allow-other-keys)
34120 (when tests?
34121 (with-directory-excursion "tests"
34122 (invoke "python" "-m" "unittest"))))))))
34123 (native-inputs (list python-setuptools python-wheel))
34124 (home-page "https://github.com/whitequark/python-itanium_demangler/")
34125 (synopsis "Pure Python Itanium C++ ABI demangler")
34126 (description
34127"This Python module provides an implementation of the Itanium C++ ABI symbol
34128mangling language. The demangler generates an abstract syntax tree from
34129mangled symbols, which can be used for directly extracting type information.")
34130 (license license:bsd-0)))
34131
34132(define-public python-angr
34133 (package
34134 (name "python-angr")
34135 (version "9.2.186")
34136 (source
34137 (origin
34138 (method git-fetch)
34139 (uri (git-reference
34140 (url "https://github.com/angr/angr")
34141 (commit (string-append "v" version))))
34142 (file-name (git-file-name name version))
34143 (sha256
34144 (base32 "1x1vnhgf1p05z2cdjc626jvvk9xqa9qzmg1yk73lq4qn7sa4cnmd"))
34145 (patches (search-patches "python-angr-fix-manyfloat-tests.patch"
34146 "python-angr-check-exec-deps.patch"))))
34147 (build-system pyproject-build-system)
34148 (arguments
34149 (list
34150 #:imported-modules `(,@%cargo-build-system-modules
34151 ,@%pyproject-build-system-modules)
34152 #:modules '(((guix build cargo-build-system) #:prefix cargo:)
34153 (guix build pyproject-build-system)
34154 (guix build utils))
34155 #:test-flags
34156 #~(list "-x"
34157 "--dist" "load"
34158 "--numprocesses" (number->string (parallel-job-count))
34159 "-k"
34160 ;; test_mips32_missing_offset_in_instructions fails
34161 ;; with capstone 5 and passes with capstone 4. Might
34162 ;; be a capstone regressions, needs investigation.
34163 ;;
34164 ;; TODO: test_unsat_core needs investigation.
34165 ;;
34166 ;; test_decompiling_abnormal_switch_case_case3 is broken
34167 ;; when tests modifying global counters are run before it.
34168 ;; See <https://github.com/angr/angr/issues/5715>.
34169 ;;
34170 ;; test_concrete_memset is a non-deterministic benchmark.
34171 ;; test_similarity_fauxware is flaky.
34172 (string-append
34173 "not test_mips32_missing_offset_in_instructions"
34174 " and not test_unsat_core"
34175 " and not test_decompiling_abnormal_switch_case_case3"
34176 " and not test_concrete_memset"
34177 " and not test_similarity_fauxware"))
34178 #:phases
34179 #~(modify-phases %standard-phases
34180 (add-after 'unpack 'use-guix-vendored-dependencies
34181 (lambda _
34182 (substitute* "native/angr/Cargo.toml"
34183 (("^icicle-fuzzing.*$")
34184 "icicle-fuzzing = { version = \"*\" }\n")
34185 (("^icicle-vm.*$")
34186 "icicle-vm = { version = \"*\" }\n")
34187 (("^pcode.*$")
34188 "pcode = { version = \"*\" }\n"))))
34189 (add-after 'unpack 'fix-tests
34190 (lambda _
34191 (substitute* "tests/common.py"
34192 (("\\[\"cc\"\\]")
34193 "[\"gcc\"]"))))
34194 (add-after 'unpack 'relax-protobuf
34195 (lambda _
34196 ;; Relax protobuf constraint, see 'generate-protobuf-files phase below.
34197 (substitute* "pyproject.toml"
34198 (("protobuf>=6.33.0") "protobuf"))))
34199 (add-after 'use-guix-vendored-dependencies 'prepare-cargo-build-system
34200 (lambda args
34201 (for-each (lambda (phase)
34202 (format #t "Running cargo phase: ~a~%" phase)
34203 (apply (assoc-ref cargo:%standard-phases phase)
34204 #:cargo-target #$(cargo-triplet)
34205 args))
34206 '(prepare-rust-crates
34207 unpack-rust-crates
34208 configure
34209 check-for-pregenerated-files
34210 patch-cargo-checksums))))
34211 (add-before 'check 'check-setup
34212 (lambda _
34213 (copy-recursively
34214 (string-append #$(this-package-native-input "angr-binaries") "/share")
34215 "../binaries")))
34216 (add-before 'build 'generate-protobuf-files
34217 ;; Regenerate protobuf files using our utilized protobuf version.
34218 ;; This allows us to relax the version constraint on python-protobuf.
34219 (lambda _
34220 (apply invoke "protoc" "-I=." "--python_out=." (find-files "angr/protos" "\\.proto$"))))
34221 (add-before 'build 'set-cc
34222 (lambda _
34223 (setenv "CC" #$(cc-for-target)))))))
34224 (propagated-inputs (list python-archinfo ;sync version with python-angr
34225 python-cachetools
34226 python-cffi
34227 python-claripy ;sync version with python-angr
34228 python-cle ;sync version with python-angr
34229 python-cxxheaderparser
34230 python-gitpython
34231 python-msgspec
34232 python-mulpyplexer
34233 python-networkx
34234 python-protobuf
34235 python-psutil
34236 python-pycparser
34237 python-pydemumble
34238 python-pyformlang
34239 python-pypcode
34240 python-pyvex ;sync version with python-angr
34241 python-rich
34242 python-sortedcontainers
34243 python-sympy
34244 python-sqlalchemy
34245 python-keystone-engine
34246 python-typing-extensions
34247 python-unique-log-filter
34248 unicorn-2.0))
34249 (native-inputs
34250 (append
34251 (list angr-binaries
34252 protobuf
34253 python-pytest
34254 python-pytest-xdist
34255 python-setuptools
34256 python-setuptools-rust
34257 rust
34258 `(,rust "cargo"))
34259 (or (and=> (%current-target-system)
34260 (compose list make-rust-sysroot))
34261 '())))
34262 (inputs
34263 (cons* (cargo-inputs 'python-angr)))
34264 (home-page "https://github.com/angr/angr")
34265 (synopsis "Multi-architecture binary analysis toolkit")
34266 (description
34267 "This package provides a versatile binary analysis platform with the
34268ability to perform dynamic symbolic execution as well as various
34269static analyses directly on binaries. As such, it can be used for all
34270kinds of reverse engineering, vulnerability discovery, exploit
34271generation, and software testing purposes.")
34272 (license license:bsd-2)))
34273
34274(define-public python-peachpy
34275 ;; There is no tag in this repo.
34276 (let ((commit "349e8f836142b2ed0efeb6bb99b1b715d87202e9")
34277 (version "0.2.0") ;from 'peachpy/__init__.py'
34278 (revision "3"))
34279 (package
34280 (name "python-peachpy")
34281 (version (git-version version revision commit))
34282 (home-page "https://github.com/Maratyszcza/PeachPy")
34283 (source (origin
34284 (method git-fetch)
34285 (uri (git-reference (url home-page) (commit commit)))
34286 (file-name (git-file-name name version))
34287 (sha256
34288 (base32
34289 "16pnkghmqjc7pbws0yhyrwlz43d5pffb5c6v2bb4jk0j537gwzbi"))
34290 (patches (search-patches "python-peachpy-determinism.patch"))))
34291 (build-system pyproject-build-system)
34292 (arguments
34293 ;; The issue is known and the test will probably never be fixed.
34294 ;; https://github.com/Maratyszcza/PeachPy/issues/131
34295 (list #:test-flags ''("--ignore=tests/arm/test_arm.py")))
34296 (native-inputs
34297 (list python-pytest python-setuptools python-wheel))
34298 (propagated-inputs
34299 (list python-six python-opcodes))
34300 (synopsis "Efficient assembly code generation in Python")
34301 (description
34302 "PeachPy is a Python framework for writing high-performance assembly kernels.
34303PeachPy aims to simplify writing optimized assembly kernels while preserving
34304all optimization opportunities of traditional assembly.
34305
34306PeachPy can generate ELF, MS-COFF, Mach-O object files, and assembly listings
34307for the Go language tool chain; it adapts to different calling conventions and
34308application binary interfaces (ABIs); it takes care of register allocation; it
34309supports x86_64 instructions up to AVX-512 and SHA.")
34310 (supported-systems '("x86_64-linux"))
34311 (license license:bsd-2))))
34312
34313(define-public python-sgmllib3k
34314 (let ((commit "799964676f35349ca2dd04503e34c2b3ad522c0d")
34315 (revision "1"))
34316 (package
34317 (name "python-sgmllib3k")
34318 (version
34319 (git-version "1.0.0" revision commit))
34320 (source
34321 (origin
34322 (method git-fetch)
34323 (uri (git-reference
34324 (url "https://github.com/hsoft/sgmllib")
34325 (commit commit)))
34326 (file-name (git-file-name name version))
34327 (sha256
34328 (base32
34329 "0bzf6pv85dzfxfysm6zbj8m40hp0xzr9h8qlk4hp3nmy88rznqvr"))
34330 (patches (search-patches "python-sgmllib3k-assertions.patch"))))
34331 (build-system pyproject-build-system)
34332 (native-inputs (list python-pytest python-setuptools))
34333 (home-page "https://github.com/hsoft/sgmllib")
34334 (synopsis "Python 3 port of sgmllib")
34335 (description "This package provides an unmaintained port of sgmllib to
34336Python 3. It is used to parse text files formatted in @acronym{SGML,Standard
34337Generalized Mark-up Language}.")
34338 (license license:bsd-3))))
34339
34340(define-public python-cwcwidth
34341 (package
34342 (name "python-cwcwidth")
34343 (version "0.1.10")
34344 (source
34345 (origin
34346 (method url-fetch)
34347 (uri (pypi-uri "cwcwidth" version))
34348 (sha256
34349 (base32 "0951lwciwslnzcvfvnk9daiiwh00q15qbcmjw5xi1x61f87pcs3l"))))
34350 (build-system pyproject-build-system)
34351 (arguments
34352 (list
34353 #:phases
34354 #~(modify-phases %standard-phases
34355 (add-before 'check 'remove-local-cwcwidth
34356 (lambda _
34357 ;; This would otherwise interfere with finding the installed
34358 ;; cwcwidth when running tests.
34359 (delete-file-recursively "cwcwidth"))))))
34360 (native-inputs
34361 (list python-cython
34362 python-pytest
34363 python-setuptools
34364 python-setuptools-scm))
34365 (home-page "https://github.com/sebastinas/cwcwidth")
34366 (synopsis "Python bindings for wc(s)width")
34367 (description
34368 "This package provides bindings for wcwidth and wcswidth functions
34369defined in POSIX.1-2001 and POSIX.1-2008.")
34370 (license license:expat)))
34371
34372(define-public python-pyan3
34373 (package
34374 (name "python-pyan3")
34375 (version "1.2.0")
34376 (source
34377 (origin
34378 ;; Source tarball on PyPI lacks tests.
34379 (method git-fetch)
34380 (uri (git-reference
34381 (url "https://github.com/Technologicat/pyan")
34382 (commit (string-append "v" version))))
34383 (file-name (git-file-name name version))
34384 (sha256
34385 (base32
34386 "1367x25rcy2y8f0x9c2dbxl2qgdln3arr7ddyzybz2c28g6jrv5z"))
34387 (patches (search-patches "python-pyan3-fix-positional-arguments.patch"
34388 "python-pyan3-fix-absolute-path-bug.patch"))))
34389 (build-system pyproject-build-system)
34390 (native-inputs
34391 (list python-pytest python-setuptools python-wheel))
34392 (propagated-inputs
34393 (list python-jinja2))
34394 (home-page "https://github.com/Technologicat/pyan")
34395 (synopsis "Offline call graph generator for Python 3")
34396 (description "Pyan takes one or more Python source files, performs
34397a (rather superficial) static analysis, and constructs a directed graph of the
34398objects in the combined source, and how they define or use each other. The
34399graph can be output for rendering by GraphViz or yEd.")
34400 (license license:gpl2)))
34401
34402(define-public python-multipledispatch
34403 (package
34404 (name "python-multipledispatch")
34405 (version "1.0.0")
34406 (source
34407 (origin
34408 (method git-fetch) ;no tests in PyPI archive
34409 (uri (git-reference
34410 (url "https://github.com/mrocklin/multipledispatch")
34411 (commit version)))
34412 (file-name (git-file-name name version))
34413 (sha256
34414 (base32 "0dfnav03bgrp5sxn53gyp4kfagcicm3pz98cj056rf9s6k5006s7"))))
34415 (build-system pyproject-build-system)
34416 (native-inputs
34417 (list python-pytest
34418 python-pytest-benchmark
34419 python-setuptools))
34420 (home-page "https://github.com/mrocklin/multipledispatch/")
34421 (synopsis "Multiple dispatch for Python based on pattern matching")
34422 (description
34423 "This library provides an efficient mechanism for overloading function
34424implementations based on the types of the arguments.")
34425 (license license:bsd-3)))
34426
34427(define-public python-multimethod
34428 (package
34429 (name "python-multimethod")
34430 (version "1.10")
34431 (source
34432 (origin
34433 ;; No tests in the PyPI tarball.
34434 (method git-fetch)
34435 (uri (git-reference
34436 (url "https://github.com/coady/multimethod")
34437 (commit (string-append "v" version))))
34438 (file-name (git-file-name name version))
34439 (sha256
34440 (base32 "07xv92q7f4bkp6dzkqvcv0zxr11729qdak4s3ldmbhdwgsf44g5h"))))
34441 (build-system pyproject-build-system)
34442 (native-inputs (list python-pytest python-setuptools python-wheel))
34443 (home-page "https://github.com/coady/multimethod")
34444 (synopsis "Python support for multiple argument dispatching")
34445 (description
34446 "This package provides a decorator for adding multiple argument
34447dispatching to functions. The decorator creates a multimethod object as
34448needed and registers the function with its annotations.")
34449 (license license:asl2.0)))
34450
34451(define-public python-logical-unification
34452 (package
34453 (name "python-logical-unification")
34454 (version "0.4.7")
34455 (source
34456 (origin
34457 (method git-fetch)
34458 (uri (git-reference
34459 (url "https://github.com/pythological/unification")
34460 (commit (string-append "v" version))))
34461 (file-name (git-file-name name version))
34462 (sha256
34463 (base32 "0y6caigbx32jq2i2hac87vr78j3jxdgpxncyw6lghvw6cgnh2p4v"))))
34464 (build-system pyproject-build-system)
34465 (native-inputs
34466 (list python-pytest
34467 python-pytest-benchmark
34468 python-setuptools
34469 python-setuptools-scm))
34470 (propagated-inputs
34471 (list python-multipledispatch
34472 python-toolz))
34473 (home-page "https://github.com/pythological/unification/")
34474 (synopsis "Logical unification in Python for solving symbolic expressions")
34475 (description "This library provides algorithms and data types for solving
34476symbolic expressions in pure Python using the technique of logical unification.")
34477 (license license:bsd-3)))
34478
34479(define-public python-looseversion
34480 (package
34481 (name "python-looseversion")
34482 (version "1.3.0")
34483 (source
34484 (origin
34485 (method url-fetch)
34486 (uri (pypi-uri "looseversion" version))
34487 (sha256
34488 (base32 "17k625ws83lwksa7yyy4mn0i39lmxgrzxihn22l335dvyvrnbppb"))))
34489 (build-system pyproject-build-system)
34490 (arguments
34491 (list
34492 ;; No tests provided.
34493 #:tests? #f))
34494 (native-inputs
34495 (list python-hatchling))
34496 (home-page "https://github.com/effigies/looseversion")
34497 (synopsis "Version numbering for anarchists and software realists")
34498 (description
34499 "This package provides a drop-in replacement for the original
34500@code{LooseVersion}. It implements an identical interface and comparison
34501logic to @code{LooseVersion}. The only major change is that a
34502@code{looseversion.LooseVersion} is comparable to a
34503@code{distutils.version.LooseVersion}, which means tools should not need to
34504worry whether all dependencies that use LooseVersion have migrated.")
34505 (license license:psfl)))
34506
34507(define-public python-cons
34508 (package
34509 (name "python-cons")
34510 (version "0.4.7")
34511 (source
34512 (origin
34513 (method git-fetch) ;no tests in PyPI archive
34514 (uri (git-reference
34515 (url "https://github.com/pythological/python-cons")
34516 (commit (string-append "v" version))))
34517 (file-name (git-file-name name version))
34518 (sha256
34519 (base32 "07a1gkvc5p3qi55vczhicz3k5bs1c6jdkw6vrrnxrygg357fabh5"))))
34520 (build-system pyproject-build-system)
34521 (native-inputs
34522 (list python-pytest
34523 python-setuptools
34524 python-setuptools-scm
34525 python-wheel))
34526 (propagated-inputs
34527 (list python-logical-unification))
34528 (home-page "https://github.com/pythological/python-cons")
34529 (synopsis "Cons cell data structures and related algorithms for Python")
34530 (description
34531 "This library implements algorithms and data structures for Lisp-style
34532cons cells in Python.")
34533 (license license:lgpl3+)))
34534
34535(define-public python-etuples
34536 (package
34537 (name "python-etuples")
34538 (version "0.3.10")
34539 (source
34540 (origin
34541 (method url-fetch)
34542 (uri (pypi-uri "etuples" version))
34543 (sha256
34544 (base32 "0rqi0ml2az23ly5wanymgrfsnzm6dd6wxgric8a3fa42gqfyiz96"))))
34545 (build-system pyproject-build-system)
34546 (arguments
34547 (list
34548 #:test-flags
34549 ;; assert False == {~_1: <built-in function add>}
34550 #~(list "--deselect=tests/test_dispatch.py::test_unification")))
34551 (native-inputs
34552 (list python-pytest
34553 python-setuptools
34554 python-setuptools-scm))
34555 (propagated-inputs
34556 (list python-cons
34557 python-multipledispatch))
34558 (home-page "https://github.com/pythological/etuples")
34559 (synopsis "S-expressions in Python")
34560 (description
34561 "This library implements eval'able S-expression in Python using tuple-like objects.")
34562 (license license:asl2.0)))
34563
34564(define-public python-minikanren
34565 (package
34566 (name "python-minikanren")
34567 (version "1.0.5")
34568 (source
34569 (origin
34570 (method git-fetch)
34571 (uri (git-reference
34572 (url "https://github.com/pythological/kanren")
34573 (commit (string-append "v" version))))
34574 (file-name (git-file-name name version))
34575 (sha256
34576 (base32 "1fsy5dlkyghz2qvjwc5pv4arxzvczn7s4bmy0fwk5xzxljc3894l"))))
34577 (build-system pyproject-build-system)
34578 (arguments
34579 (list
34580 ;; 60 passed, 3 skipped, 23 deselected
34581 #:test-flags
34582 #~(list "-k" (string-join
34583 ;; XXX: 16 tests fail with assertion not equal, check why.
34584 (list "not test_basics"
34585 "test_eq_assoc"
34586 "test_eq_assoccomm"
34587 "test_eq_comm"
34588 "test_map_anyo"
34589 "test_map_anyo_misc"
34590 "test_map_anyo_reverse"
34591 "test_reduceo"
34592 "test_walko"
34593 "test_walko_reverse")
34594 " and not "))))
34595 (native-inputs
34596 (list python-pytest
34597 python-setuptools))
34598 (propagated-inputs
34599 (list python-cons
34600 python-etuples
34601 python-logical-unification
34602 python-multipledispatch
34603 python-toolz
34604 python-typing-extensions))
34605 (home-page "https://github.com/pythological/kanren")
34606 (synopsis "Relational logic programming in pure Python")
34607 (description
34608 "The minikanren library provides an algorithmic core for computer algebra
34609systems in Python.")
34610 (license license:bsd-3)))
34611
34612(define-public python-dotenv
34613 (package
34614 (name "python-dotenv")
34615 (version "1.2.2")
34616 (source
34617 (origin
34618 (method url-fetch)
34619 (uri (pypi-uri "python_dotenv" version))
34620 (sha256
34621 (base32 "1wwwg7gasqmnv5y2hb3w1155c8nai6zzih8x5hn0ifnpzf8ildrc"))))
34622 (build-system pyproject-build-system)
34623 (arguments
34624 (list
34625 #:test-flags
34626 ;; .dotenv-real instead of dotenv
34627 #~(list "-k not test_run_with_dotenv_and_command_flags")))
34628 (native-inputs
34629 (list python-pytest
34630 python-setuptools))
34631 (propagated-inputs
34632 (list python-click))
34633 (home-page "https://saurabh-kumar.com/python-dotenv/")
34634 (synopsis "Setup environment variables according to .env files")
34635 (description
34636 "This package provides the @code{python-dotenv} Python module to read
34637key-value pairs from a @code{.env} file and set them as environment variables.")
34638 (license license:bsd-3)))
34639
34640;; Old version just for docker-compose; remove once that is updated.
34641(define-public python-dotenv-0.13.0
34642 (package (inherit python-dotenv)
34643 (name "python-dotenv")
34644 (version "0.13.0")
34645 (source
34646 (origin
34647 (method url-fetch)
34648 (uri (pypi-uri "python-dotenv" version))
34649 (sha256
34650 (base32
34651 "0x5dagmfn31phrbxlwacw3s4w5vibv8fxqc62nqcdvdhjsy0k69v"))))
34652 (arguments
34653 `(#:phases
34654 (modify-phases %standard-phases
34655 (replace 'check
34656 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
34657 (when tests?
34658 (add-installed-pythonpath inputs outputs)
34659 (setenv "PATH" (string-append (getenv "PATH") ":"
34660 (assoc-ref outputs "out") "/bin"))
34661 ;; Skip the ipython tests.
34662 (delete-file "tests/test_ipython.py")
34663 (invoke "python" "-m" "pytest")))))))
34664 (native-inputs
34665 (modify-inputs native-inputs
34666 (append python-mock
34667 python-sh-1)))))
34668
34669(define-public python-braintree
34670 (package
34671 (name "python-braintree")
34672 (version "4.40.0")
34673 (source
34674 (origin
34675 (method url-fetch)
34676 (uri (pypi-uri "braintree" version))
34677 (sha256
34678 (base32 "0pjllhyx9ymad9nspaviysda4pb5cbl83c6fq4bhwl6khzyh0bkr"))))
34679 (build-system pyproject-build-system)
34680 (arguments (list #:tests? #f)) ; No tests.
34681 (native-inputs (list python-setuptools))
34682 (propagated-inputs (list python-requests))
34683 (home-page
34684 "https://developers.braintreepayments.com/python/sdk/server/overview")
34685 (synopsis "Braintree Python Library")
34686 (description
34687 "The Braintree Python SDK provides integration access to the Braintree
34688Gateway. Braintree is a US-based payments service provider.")
34689 (license license:expat)))
34690
34691(define-public python-markuppy
34692 (package
34693 (name "python-markuppy")
34694 (version "1.18")
34695 (source
34696 (origin
34697 (method git-fetch)
34698 (uri (git-reference
34699 (url "https://github.com/tylerbakke/MarkupPy")
34700 (commit (string-append "v" version))))
34701 (file-name (git-file-name name version))
34702 (sha256
34703 (base32 "0rbxh7dzrqd1xrxbxxbyjslqfaxxyv17ppr9zcjig8yw631k0a51"))))
34704 (build-system pyproject-build-system)
34705 (native-inputs (list python-pytest python-setuptools))
34706 (home-page "https://github.com/tylerbakke/MarkupPy")
34707 (synopsis "Pythonic HTML/XML generator")
34708 (description
34709 "This Python module attempts to make it easier to generate HTML/XML from
34710a Python program in an customizable and pythonic way.")
34711 (license license:expat)))
34712
34713(define-public python-csb43
34714 (package
34715 (name "python-csb43")
34716 (version "1.0.0")
34717 (source
34718 (origin
34719 (method git-fetch)
34720 (uri (git-reference
34721 (url "https://bitbucket.org/wmj/csb43")
34722 (commit version)))
34723 (file-name (git-file-name name version))
34724 (sha256
34725 (base32 "030lncdmrcvzgp8v1jw04snnplqxlwf3vikzd0a3jbk5sgrp2cih"))))
34726 (build-system pyproject-build-system)
34727 ;; tests: 15102 passed, 36 skipped, 5489 warnings
34728 (arguments
34729 (list
34730 #:phases
34731 #~(modify-phases %standard-phases
34732 (add-after 'unpack 'relax-requirements
34733 (lambda _
34734 (substitute* "pyproject.toml"
34735 (("\"deprecated ~=.*\",")
34736 "\"deprecated\",")))))))
34737 (native-inputs
34738 (list python-lxml
34739 python-pytest
34740 python-setuptools
34741 python-setuptools-scm))
34742 (propagated-inputs
34743 (list python-deprecated
34744 python-pycountry
34745 python-pyyaml
34746 python-tablib))
34747 (home-page "https://bitbucket.org/wmj/csb43")
34748 (synopsis "Tools for converting from the Spanish banks' format CSB norm
3474943 (CSB43)")
34750 (description
34751 "This package provides tools to convert files in the format used by
34752multiple Spanish banks (standard 43 of the Spanish Banking Council [CSB43] /
34753Spanish Banking Association [AEB43]) to other formats.
34754
34755Supported output formats are: OFX, HomeBank CSV, HTML, JSON, ODS (OpenDocument
34756spreadsheet), CSV, TSV, XLS, XLSX (Microsoft Excel spreadsheet), and YAML.")
34757 (license license:lgpl3)))
34758
34759(define-public python-csb43-0.10
34760 ;; XXX: 1.0.0 doesn't provide csb43 module where 0.10.1 contains: aeb43, csb43,
34761 ;; homebank, i18n, ofx, and utils.
34762 (package
34763 (inherit python-csb43)
34764 (name "python-csb43")
34765 (version "0.10.1")
34766 ;; tests: 15493 passed, 37 skipped, 7447 warnings
34767 (source
34768 (origin
34769 (method git-fetch)
34770 (uri (git-reference
34771 (url "https://bitbucket.org/wmj/csb43")
34772 (commit version)))
34773 (file-name (git-file-name name version))
34774 (sha256
34775 (base32 "0frxcclz7scpndrr7ygqy6k41bcwgwam26yk7n1cnwyim2wkaykd"))))))
34776
34777(define-public python-febelfin-coda
34778 (package
34779 (name "python-febelfin-coda")
34780 (version "0.3.0")
34781 (source
34782 (origin
34783 (method hg-fetch)
34784 (uri (hg-reference
34785 (url "https://foss.heptapod.net/tryton/coda")
34786 (changeset version)))
34787 (file-name (string-append name "-" version "-checkout"))
34788 (sha256
34789 (base32 "0rnr2xvwr174dbjixaw5h8bjw5ay5knfbry5qhk7wj8vkh538c13"))))
34790 (build-system pyproject-build-system)
34791 (arguments
34792 (list
34793 #:test-backend #~'unittest
34794 #:phases
34795 #~(modify-phases %standard-phases
34796 (add-after 'install 'remove-installed-tests
34797 (lambda* (#:key inputs outputs #:allow-other-keys)
34798 (with-directory-excursion (site-packages inputs outputs)
34799 (for-each delete-file
34800 (list "coda/test.py"
34801 "coda/test_readme.py"))))))))
34802 (native-inputs (list python-setuptools))
34803 (home-page "https://coda.b2ck.com/")
34804 (synopsis "Module to parse Belgian CODA files")
34805 (description
34806 "This package provides a module to parse Coded statement of account
34807(CODA) files as defined be the Belgian Febelfin bank standard.")
34808 (license license:bsd-3)))
34809
34810(define-public python-ofxparse
34811 (package
34812 (name "python-ofxparse")
34813 (version "0.21")
34814 (source
34815 (origin
34816 (method url-fetch)
34817 (uri (pypi-uri "ofxparse" version))
34818 (sha256
34819 (base32 "19y4sp5l9jqiqzzlbqdfiab42qx7d84n4xm4s7jfq397666vcyh5"))))
34820 (build-system pyproject-build-system)
34821 (native-inputs (list python-pynose python-setuptools))
34822 (propagated-inputs (list python-beautifulsoup4 python-lxml python-six))
34823 (home-page "http://sites.google.com/site/ofxparse")
34824 (synopsis "Tools for working with the OFX (Open Financial Exchange) file
34825format")
34826 (description "@code{ofxparse} is a parser for Open Financial
34827Exchange (.ofx) format files. OFX files are available from almost any online
34828banking site, so they work well if you want to pull together your finances
34829from multiple sources. Online trading accounts also often provide account
34830statements in OFX files.")
34831 (license license:expat)))
34832
34833(define-public python-rfc3339-validator
34834 (package
34835 (name "python-rfc3339-validator")
34836 (version "0.1.4")
34837 (source
34838 (origin
34839 (method url-fetch)
34840 (uri (pypi-uri "rfc3339_validator" version))
34841 (sha256
34842 (base32 "0srg0b89aikzinw72s433994k5gv5lfyarq1adhas11kz6yjm2hk"))))
34843 (build-system pyproject-build-system)
34844 (native-inputs
34845 (list python-pytest
34846 python-setuptools
34847 python-strict-rfc3339))
34848 (propagated-inputs
34849 (list python-six))
34850 (home-page "https://github.com/naimetti/rfc3339-validator")
34851 (synopsis "Python RFC3339 validator")
34852 (description "This package provides a pure Python RFC3339 validator.")
34853 (license license:expat)))
34854
34855(define-public python-platformdirs
34856 ;; Try to update simultaneously with the bootstrap version in
34857 ;; (gnu packages python-build).
34858 (package
34859 (name "python-platformdirs")
34860 (version "4.3.6")
34861 (source
34862 (origin
34863 (method url-fetch)
34864 (uri (pypi-uri "platformdirs" version))
34865 (sha256
34866 (base32 "01xrwajkmxv3jp6n14y8jndkrhb48p9kxknkmwch8nw8pjnb4zrm"))))
34867 (build-system pyproject-build-system)
34868 (native-inputs
34869 (list python-appdirs
34870 python-hatchling
34871 python-hatch-vcs
34872 python-pytest
34873 python-pytest-mock))
34874 (home-page "https://github.com/platformdirs/platformdirs")
34875 (synopsis "Determine the appropriate platform-specific directories")
34876 (description "When writing applications, finding the right location to
34877store user data and configuration varies per platform. Even for
34878single-platform apps, there may by plenty of nuances in figuring out the right
34879location. This small Python module determines the appropriate
34880platform-specific directories, e.g. the ``user data dir''.")
34881 (license license:expat)))
34882
34883(define-public python-json2html
34884 (package
34885 (name "python-json2html")
34886 (version "1.3.0")
34887 (source
34888 (origin
34889 (method git-fetch)
34890 (uri (git-reference
34891 (url "https://github.com/softvar/json2html")
34892 (commit (string-append "v" version))))
34893 (file-name (git-file-name name version))
34894 (sha256
34895 (base32 "1ncypljnl5y8lsxy6ibcqy412kx3mzxl4ajg67568hvq98kv1sb3"))))
34896 (build-system pyproject-build-system)
34897 (arguments
34898 (list
34899 #:test-backend #~'custom
34900 #:test-flags #~(list "test/run_tests.py")))
34901 (native-inputs (list python-setuptools))
34902 (home-page "https://github.com/softvar/json2html")
34903 (synopsis "Convert JSON to HTML table")
34904 (description
34905 "@code{python-json2html} is a python module to convert JSON into a human
34906readable HTML table representation.")
34907 (license license:expat)))
34908
34909(define-public python-face
34910 (package
34911 (name "python-face")
34912 (version "24.0.0")
34913 (source
34914 (origin
34915 (method git-fetch)
34916 (uri (git-reference
34917 (url "https://github.com/mahmoud/face")
34918 (commit (string-append "v" version))))
34919 (file-name (git-file-name name version))
34920 (sha256
34921 (base32 "1ps34r3w93rrviwj8xq7ji9l2z301zzny2gx6nrwvgxr8h6bv0kp"))))
34922 (build-system pyproject-build-system)
34923 (native-inputs (list python-pytest python-setuptools))
34924 (propagated-inputs (list python-boltons))
34925 (home-page "https://github.com/mahmoud/face")
34926 (synopsis "CLI parsing and dispatching microframework")
34927 (description "@code{python-face} is a Pythonic microframework for building
34928command-line applications.
34929
34930@itemize
34931@item First-class subcommand support
34932@item Powerful middleware architecture
34933@item Separate parser layer
34934@item Built-in flagfile support
34935@item Handy testing utilities
34936@item Themeable help display
34937@end itemize")
34938 (license license:bsd-3)))
34939
34940(define-public python-glom
34941 (package
34942 (name "python-glom")
34943 (version "24.11.0")
34944 (source
34945 (origin
34946 (method git-fetch)
34947 (uri (git-reference
34948 (url "https://github.com/mahmoud/glom")
34949 (commit (string-append "v" version))))
34950 (file-name (git-file-name name version))
34951 (sha256
34952 (base32 "0vjj6wjxzms947nvbxrlz2cyn0m6483p1laqvcwr8fc117nzary0"))))
34953 (build-system pyproject-build-system)
34954 (native-inputs
34955 (list python-pytest
34956 python-pyyaml
34957 python-setuptools))
34958 (propagated-inputs
34959 (list python-attrs
34960 python-boltons
34961 python-face))
34962 (home-page "https://github.com/mahmoud/glom")
34963 (synopsis "Declaratively restructure data")
34964 (description "Real applications have real data, and real data
34965nests---objects inside of objects inside of lists of objects. glom is a new
34966and powerful way to handle real-world data, featuring:
34967
34968@itemize
34969@item Path-based access to nested data structures
34970@item Readable, meaningful error messages
34971@item Declarative data transformation, using lightweight, Pythonic specifications
34972@item Built-in data exploration and debugging features
34973@end itemize")
34974 (license license:bsd-3)))
34975
34976(define-public python-box
34977 (package
34978 (name "python-box")
34979 (version "7.3.2")
34980 (source
34981 (origin
34982 (method git-fetch)
34983 (uri
34984 (git-reference
34985 (url "https://github.com/cdgriffith/Box")
34986 (commit version)))
34987 (file-name (git-file-name name version))
34988 (sha256
34989 (base32 "0nr8cajrhdwxm3ac5gclajqck7xywlpqnwvff072va5ki0if6lv9"))))
34990 (build-system pyproject-build-system)
34991 (arguments
34992 (list #:test-flags #~(list "-k" "not test_to_yaml_ruamel")))
34993 (native-inputs
34994 (list python-pytest
34995 python-setuptools))
34996 (propagated-inputs
34997 (list python-msgpack
34998 python-ruamel.yaml
34999 python-tomli-w))
35000 (home-page "https://github.com/cdgriffith/Box")
35001 (synopsis "Advanced Python dictionaries with dot notation access")
35002 (description
35003 "This package provides the @code{python-box} Python module.
35004It implements advanced Python dictionaries with dot notation access.")
35005 (license license:expat)))
35006
35007(define-public python-fields
35008 (let ((commit "cb473d126b926621c4423ecf59387da9f0f26563")
35009 (revision "0"))
35010 (package
35011 (name "python-fields")
35012 (version (git-version "5.0.0" revision commit))
35013 (source
35014 (origin
35015 (method git-fetch)
35016 (uri (git-reference
35017 (url "https://github.com/ionelmc/python-fields")
35018 (commit commit)))
35019 (file-name (git-file-name name version))
35020 (sha256
35021 (base32 "1hc39l7ypwn4n11wfdhr8z0m46c96k99lnvw65bw8yadm2f93s9r"))))
35022 (build-system pyproject-build-system)
35023 (arguments
35024 (list #:test-flags #~(list "--ignore=tests/test_perf.py")))
35025 (native-inputs (list python-pytest-8
35026 python-pytest-benchmark
35027 python-setuptools
35028 python-wheel))
35029 (home-page "https://python-fields.readthedocs.io/")
35030 (synopsis "Python container class boilerplate killer")
35031 (description "Avoid repetitive boilerplate code in Python classes.")
35032 (license license:bsd-3))))
35033
35034(define-public python-aspectlib
35035 (package
35036 (name "python-aspectlib")
35037 (version "2.0.0")
35038 (source
35039 (origin
35040 (method git-fetch)
35041 (uri (git-reference
35042 (url "https://github.com/ionelmc/python-aspectlib")
35043 (commit (string-append "v" version))))
35044 (file-name (git-file-name name version))
35045 (sha256
35046 (base32 "07xwp6gp1h5hcyakx607xbgmciqxm799v2k7c8wnrqqxd410zyis"))))
35047 (build-system pyproject-build-system)
35048 (arguments
35049 (list
35050 #:test-flags
35051 #~(list ;; XXX: Require more dependencies.
35052 "--ignore=tests/test_integrations.py"
35053 "--ignore=tests/test_integrations_py3.py")
35054 #:phases
35055 #~(modify-phases %standard-phases
35056 (add-after 'unpack 'fix-pytest-config
35057 (lambda _
35058 ;; Tests fails with warnings: pytest.PytestRemovedIn9Warning:
35059 ;; The (path: py.path.local) argument is deprecated, please
35060 ;; use (collection_path: pathlib.Path).
35061 (delete-file "pytest.ini"))))))
35062 (native-inputs
35063 (list python-pytest-8
35064 python-setuptools
35065 python-tornado))
35066 (propagated-inputs
35067 (list python-fields))
35068 (home-page "https://github.com/ionelmc/python-aspectlib")
35069 (synopsis "Python monkey-patching and decorators")
35070 (description
35071 "This package provides an aspect-oriented programming, monkey-patch
35072and decorators library. It is useful when changing behavior in existing
35073code is desired. It includes tools for debugging and testing:
35074simple mock/record and a complete capture/replay framework.")
35075 (license license:bsd-2)))
35076
35077(define-public python-ijson
35078 (package
35079 (name "python-ijson")
35080 (version "3.5.0")
35081 (source
35082 (origin
35083 (method url-fetch)
35084 (uri (pypi-uri "ijson" version))
35085 (sha256
35086 (base32 "0cbg4h29aysf4mq3iyrqzd2s1yb70b9vhg0vfc954gqff9h8fs4l"))))
35087 (inputs
35088 ;; yajl is optional, but compiling with it makes faster
35089 ;; backends available to ijson:
35090 (list yajl))
35091 (native-inputs
35092 (list python-pytest
35093 python-setuptools))
35094 (build-system pyproject-build-system)
35095 (home-page "https://github.com/ICRAR/ijson")
35096 (synopsis "Iterative JSON parser with Python iterator interfaces")
35097 (description
35098 "Ijson is an iterative JSON parser with standard Python iterator
35099interfaces.")
35100 (license license:bsd-3)))
35101
35102(define-public python-ordered-set
35103 (package
35104 (name "python-ordered-set")
35105 (version "4.1.0")
35106 (source
35107 (origin
35108 (method url-fetch)
35109 (uri (pypi-uri "ordered-set" version))
35110 (sha256
35111 (base32 "1a34fg3r3480nfm6652kyqql3lwixf8jirzdja9camvnr128wjk9"))))
35112 (build-system pyproject-build-system)
35113 (native-inputs (list python-cython python-flit-core python-pytest))
35114 (home-page "https://github.com/simonpercivall/orderedset")
35115 (synopsis "Ordered Set implementation in Cython")
35116 (description "This library provides an @code{OrderedSet} data type that
35117works like a regular set, but remembers insertion order. It supports the full
35118Python @code{set} interface.")
35119 (license license:asl2.0)))
35120
35121(define-public python-orgparse
35122 (package
35123 (name "python-orgparse")
35124 (version "0.4.20251020")
35125 (source
35126 (origin
35127 (method git-fetch)
35128 (uri (git-reference
35129 (url "https://github.com/karlicoss/orgparse")
35130 (commit (string-append "v" version))))
35131 (file-name (git-file-name name version))
35132 (sha256
35133 (base32 "0f390gxx5pjpjjbmll0gdlqg92s3d4xi6p8wjkr0cfixa8fvb7s4"))))
35134 (build-system pyproject-build-system)
35135 (arguments
35136 (list
35137 #:test-flags
35138 #~(list "--ignore-glob=doc/*"
35139 ;; XXX: Unclear why those tests fail.
35140 "--deselect=src/orgparse/tests/test_data.py::test_data[01_attributes]"
35141 "--deselect=src/orgparse/tests/test_data.py::test_data[03_repeated_tasks]"
35142 "--deselect=src/orgparse/tests/test_data.py::test_data[04_logbook]"
35143 "--deselect=src/orgparse/tests/test_misc.py::test_level_0_timestamps")))
35144 (native-inputs (list python-hatchling python-hatch-vcs python-pytest))
35145 (home-page "https://github.com/karlicoss/orgparse")
35146 (synopsis "Emacs Org mode parser in Python")
35147 (description
35148 "This package is a Python module for reading Emacs Org mode files.")
35149 (license license:bsd-3)))
35150
35151(define-public dynaconf
35152 (package
35153 (name "dynaconf")
35154 (version "3.2.11")
35155 (source
35156 (origin
35157 (method git-fetch)
35158 (uri
35159 (git-reference
35160 (url "https://github.com/dynaconf/dynaconf")
35161 (commit version)))
35162 (file-name (git-file-name name version))
35163 (sha256
35164 (base32 "05122x1bwskfqnzi9hqi86h7407byfjvhgczj74x6lp2m6rnwkzl"))
35165 ;; (patches (search-patches "dynaconf-unvendor-deps.patch"))
35166 (modules '((guix build utils)))
35167 ;; Remove vendored dependencies
35168 (snippet
35169 #~(let ((unvendor '("click" "ruamel" "toml")))
35170 (with-directory-excursion "dynaconf/vendor"
35171 (for-each delete-file-recursively unvendor))
35172 (substitute* (find-files "." "\\.py$")
35173 (("from dynaconf\\.vendor import (click|ruamel|toml)([^l]+.*)$"
35174 _ target rest)
35175 (string-append "import " target rest))
35176 (("dynaconf\\.vendor\\.(click|ruamel|toml)" _ target)
35177 target))))))
35178 (build-system pyproject-build-system)
35179 (arguments
35180 (list
35181 #:test-flags
35182 #~(list "--ignore=tests/test_vault.py" ; depend on hvac and a live Vault
35183 "-k" #$(let ((click-tests '("test_negative_get"
35184 "test_not_found_key_exit_error[get]"
35185 "test_inspect_invalid_format")))
35186 ;; Disable integration tests
35187 (string-append "not integration and not "
35188 ;; These tests fail because we use
35189 ;; Click 8.* instead of Click 7
35190 (string-join click-tests " and not ")))
35191 "tests")
35192 #:phases
35193 #~(modify-phases %standard-phases
35194 (add-after 'unpack 'patch-for-click-8
35195 (lambda _
35196 (substitute* "dynaconf/cli.py"
35197 (("click.get_os_args\\()") ;deprecated from Click 8.1+
35198 "sys.argv[1:]")))))))
35199 (propagated-inputs
35200 (list python-click python-configobj python-ruamel.yaml-0.16
35201 python-toml python-tomli))
35202 (native-inputs
35203 (list python-django
35204 python-flask
35205 python-pytest
35206 python-pytest-mock
35207 python-setuptools))
35208 (home-page "https://www.dynaconf.com/")
35209 (synopsis "The dynamic configurator for your Python project")
35210 (description
35211 "This package provides @code{dynaconf} the dynamic configurator manager for
35212your Python project. It provides features such as:
35213
35214@itemize
35215@item Inspired by the @url{https://12factor.net/config, 12-factor application guide};
35216@item Settings management (default values, validation, parsing, templating);
35217@item Protection of sensitive information (passwords/tokens);
35218@item Multiple file formats @code{toml|yaml|json|ini|py} and also customizable
35219loaders;
35220@item Full support for environment variables to override existing settings
35221(dotenv support included);
35222@item Optional layered system for multiple environments @code{[default,
35223development, testing, production]};
35224@item Built-in support for Hashicorp Vault and Redis as settings and secrets storage;
35225@item Built-in extensions for Django and Flask web frameworks;
35226@item CLI for common operations such as @code{init, list, write, validate, export}.
35227@end itemize")
35228 (license license:expat)))
35229
35230(define-public python-pudb
35231 ;; TODO: Rename to pudb as it's a final program.
35232 (package
35233 (name "python-pudb")
35234 (version "2025.1.3")
35235 (source
35236 (origin
35237 (method url-fetch)
35238 (uri (pypi-uri "pudb" version))
35239 (sha256
35240 (base32 "1x210l6wxpn7k8jbca7ahzgsld938cnb6jlg3nrq8vr6xza75zb9"))))
35241 (build-system pyproject-build-system)
35242 (arguments
35243 (list
35244 #:phases
35245 #~(modify-phases %standard-phases
35246 (add-before 'check 'pre-check
35247 (lambda _
35248 (setenv "HOME" "/tmp"))))))
35249 (native-inputs
35250 (list python-hatchling
35251 python-pytest
35252 python-pytest-mock
35253 python-numpy))
35254 (propagated-inputs
35255 (list python-jedi
35256 python-packaging
35257 python-pygments
35258 python-typing-extensions
35259 python-urwid
35260 python-urwid-readline))
35261 (home-page "https://documen.tician.de/pudb/")
35262 (synopsis "Console-based Python debugger")
35263 (description
35264 "@command{pudb} is a full-screen, console-based Python debugger providing
35265all the niceties of modern GUI-based debuggers in a more lightweight and
35266keyboard-friendly package.")
35267 (license license:expat)))
35268
35269(define-public python-iwlib
35270 (package
35271 (name "python-iwlib")
35272 (version "1.7.0")
35273 (source
35274 (origin
35275 (method git-fetch)
35276 (uri (git-reference
35277 (url "https://github.com/nhoad/python-iwlib")
35278 (commit version)))
35279 (file-name (git-file-name name version))
35280 (sha256
35281 (base32 "0z6bgmzxf849irayzshiw3bvvhrr8j0il6113937x7fdam122gmr"))))
35282 (build-system pyproject-build-system)
35283 (arguments
35284 (list
35285 #:phases
35286 #~(modify-phases %standard-phases
35287 (add-before 'check 'cleanup
35288 (lambda _
35289 (delete-file-recursively "iwlib"))))))
35290 (native-inputs (list python-pytest python-setuptools))
35291 (inputs (list wireless-tools))
35292 (propagated-inputs (list python-cffi))
35293 (home-page "https://github.com/nhoad/python-iwlib")
35294 (synopsis "Python module to interface with iwlib")
35295 (description
35296 "This package provides a Python interface to iw wireless tools.")
35297 (license license:gpl2)))
35298
35299(define-public python-pdoc3
35300 (package
35301 (name "python-pdoc3")
35302 (version "0.11.6")
35303 (source
35304 (origin
35305 (method url-fetch)
35306 (uri (pypi-uri "pdoc3" version))
35307 (sha256
35308 (base32 "11z318lnvd7nxkpw2556hh6hvid6gi8mxgv4zf8x2m57hx5yi98y"))))
35309 (build-system pyproject-build-system)
35310 (arguments
35311 (list #:test-backend #~'unittest
35312 #:test-flags #~(list "-v" "pdoc.test")))
35313 (native-inputs
35314 (list python-setuptools-git
35315 python-setuptools
35316 python-setuptools-scm))
35317 (propagated-inputs
35318 (list python-mako
35319 python-markdown))
35320 (home-page "https://pdoc3.github.io/pdoc/")
35321 (synopsis "Auto-generate API documentation for Python projects")
35322 (description
35323 "This package auto-generates API documentation from Python projects
35324already existing modules and objects docstrings.")
35325 (license license:agpl3+)))
35326
35327(define-public python-piexif
35328 (package
35329 (name "python-piexif")
35330 (version "1.1.3")
35331 (source
35332 (origin
35333 (method git-fetch)
35334 (uri (git-reference
35335 (url "https://github.com/hMatoba/Piexif")
35336 (commit version)))
35337 (file-name (git-file-name name version))
35338 (sha256
35339 (base32 "1akmaxq1cjr8wghwaaql1bd3sajl8psshl58lprgfsigrvnklp8b"))
35340 (patches
35341 (search-patches "python-piexif-fix-tests-with-pillow-7.2.patch"))))
35342 (build-system pyproject-build-system)
35343 (native-inputs (list unzip python-pillow python-pytest python-setuptools))
35344 (home-page "https://github.com/hMatoba/Piexif")
35345 (synopsis "Simplify exif manipulations with Python")
35346 (description
35347 "Piexif simplifies interacting with EXIF data in Python. It includes the
35348tools necessary for extracting, creating, manipulating, converting and writing
35349EXIF data to JPEG, WebP and TIFF files.")
35350 (license license:expat)))
35351
35352(define-public python-pyrss2gen
35353 (package
35354 (name "python-pyrss2gen")
35355 (version "1.1")
35356 (source
35357 (origin
35358 (method url-fetch)
35359 (uri (pypi-uri "PyRSS2Gen" version))
35360 (sha256
35361 (base32 "1rvf5jw9hknqz02rp1vg8abgb1lpa0bc65l7ylmlillqx7bswq3r"))))
35362 (build-system pyproject-build-system)
35363 (arguments (list #:tests? #f)) ; No tests.
35364 (native-inputs (list python-setuptools))
35365 (home-page "http://dalkescientific.com/Python/PyRSS2Gen.html")
35366 (synopsis "Generate RSS 2.0 feeds using a Python data structure")
35367 (description "PyRSS2Gen is the interface to generate RSS 2.0 feeds.
35368PyRSS2Gen builds the feed up by using a XML generator.")
35369 (license license:bsd-3)))
35370
35371(define-public python-doit
35372 (package
35373 (name "python-doit")
35374 (version "0.36.0")
35375 (source
35376 (origin
35377 (method url-fetch)
35378 (uri (pypi-uri "doit" version))
35379 (sha256
35380 (base32 "1g1lwaxb9q3a6c24sr3gw5bspsk5frbrk2frb7z25jqljp67rl3i"))))
35381 (build-system pyproject-build-system)
35382 ;; This is not a serious test failure. It's probably due to the load path
35383 ;; at test time.
35384 (arguments (list #:test-flags '(list "-k" "not test_execute")))
35385 (propagated-inputs
35386 (list python-cloudpickle python-importlib-metadata))
35387 (native-inputs (list python-pytest python-setuptools python-wheel))
35388 (home-page "https://pydoit.org")
35389 (synopsis "Automation tool to execute any kind of task in a build-tools
35390fashion")
35391 (description "doit is an automation tool that brings the power of
35392build-tools to execute any kind of task.
35393
35394A task describes some computation to be done (actions), and contains some
35395extra meta-data. The actions can be external programs or Python functions. A
35396single task may define more than one action. doit uses the task’s meta-data
35397to:
35398
35399@itemize
35400@item cache task results
35401@item correct execution order
35402@item parallel execution
35403@item powerful dependency system
35404@end itemize")
35405 (license license:expat)))
35406
35407(define-public python-phpserialize
35408 (package
35409 (name "python-phpserialize")
35410 (version "1.3")
35411 (source
35412 (origin
35413 (method git-fetch)
35414 (uri (git-reference
35415 (url "https://github.com/mitsuhiko/phpserialize")
35416 (commit version)))
35417 (file-name (git-file-name name version))
35418 (sha256
35419 (base32 "062lpv2zpkn96v8gpskvw2pfgh3mafnb0s6xxa0jwbr7vz78wgdr"))))
35420 (build-system pyproject-build-system)
35421 (arguments
35422 (list
35423 ;; XXX: Unclear why this test fails.
35424 #:test-flags #~(list "-k" "not test_dumps_dict" "tests.py")
35425 #:phases
35426 #~(modify-phases %standard-phases
35427 (add-after 'unpack 'patch-tests
35428 (lambda _
35429 (substitute* "tests.py"
35430 (("assert_\\(b'WP_User' in x\\)")
35431 "assertIn(b'WP_User', x)")))))))
35432 (native-inputs (list python-pytest python-setuptools))
35433 (home-page "https://github.com/mitsuhiko/phpserialize")
35434 (synopsis "Python port of the serialize and unserialize functions of PHP")
35435 (description
35436 "This package provides a port of the @code{serialize} and
35437@code{unserialize} functions of PHP for Python.")
35438 (license license:bsd-3)))
35439
35440(define-public python-pycapnp
35441 (package
35442 (name "python-pycapnp")
35443 (version "2.2.4")
35444 (source
35445 (origin
35446 (method git-fetch)
35447 (uri (git-reference
35448 (url "https://github.com/capnproto/pycapnp")
35449 (commit (string-append "v" version))))
35450 (file-name (git-file-name name version))
35451 (sha256
35452 (base32 "0vzz1s7zrp27dnsrppshrisbn054w56qbva3shbnwpkdcckw411j"))))
35453 (build-system pyproject-build-system)
35454 (arguments
35455 (list
35456 #:phases
35457 #~(modify-phases %standard-phases
35458 (add-before 'build 'set-force-system-capnp
35459 (lambda _
35460 (setenv "PIP_CONFIG_SETTINGS" "force-system-libcapnp=True")))
35461 (add-after 'install 'copy-missing-schemas
35462 (lambda _
35463 (let* ((out #$output)
35464 (capnp-clang #$(this-package-input "capnproto-clang"))
35465 (site-pkgs (car (find-files (string-append out "/lib")
35466 "^site-packages$"
35467 #:directories? #t)))
35468 (target-dir (string-append site-pkgs "/capnp"))
35469 (schema-files (find-files
35470 (string-append capnp-clang
35471 "/include/capnp")
35472 "\\.capnp$")))
35473 (for-each (lambda (file)
35474 (install-file file target-dir)) schema-files))))
35475 ;; The 'sanity-check' phase fails with "ModuleNotFoundError: No
35476 ;; module named 'schema_capnp'". This module is generated
35477 ;; dynamically via import hooks at runtime
35478 (delete 'sanity-check))))
35479 (native-inputs (list pkg-config
35480 python-cython
35481 python-jinja2
35482 python-pkgconfig
35483 python-pytest
35484 python-pytest-asyncio
35485 python-setuptools))
35486 (inputs (list capnproto-clang))
35487 (home-page "https://github.com/capnproto/pycapnp")
35488 (synopsis "Cython wrapping of the C++ Cap'n Proto library")
35489 (description
35490 "This package provides a cython wrapping of the C++ Cap'n Proto library.")
35491 (license license:bsd-2)))
35492
35493(define-public python-pydevtool
35494 (package
35495 (name "python-pydevtool")
35496 (version "0.3.0")
35497 (source
35498 (origin
35499 (method url-fetch)
35500 (uri (pypi-uri "pydevtool" version))
35501 (sha256
35502 (base32 "12pwhvvm4pgvfxj18ylb66drxm28b2cpb5rbxqrsrk1k7m7vmqr5"))))
35503 (build-system pyproject-build-system)
35504 (arguments (list #:tests? #false)) ;no tests
35505 (propagated-inputs (list python-doit python-rich-click))
35506 (native-inputs (list python-setuptools python-wheel))
35507 (home-page "https://github.com/pydoit/pydevtool")
35508 (synopsis "CLI dev tools powered by pydoit")
35509 (description "This package provides command line tools, powered by pydoit.
35510It offers integration with @code{click} and @code{rich} for custom CLI and
35511these linters: @code{pycodestlye}, @code{pyflakes}")
35512 (license license:expat)))
35513
35514(define-public nikola
35515 (package
35516 (name "nikola")
35517 (version "8.3.3")
35518 (source
35519 (origin
35520 (method url-fetch)
35521 (uri (pypi-uri "nikola" version))
35522 (sha256
35523 (base32 "1ixi7bhcmyl6nxh4psjkj4q4wq5midgnks294r64zciazippsvb3"))))
35524 (build-system pyproject-build-system)
35525 (arguments
35526 (list
35527 ;; tests: 506 passed, 16 skipped, 10 deselected, 5 xfailed, 66 warnings
35528 #:test-flags
35529 #~(list "--durations=10"
35530 "--ignore=tests/integration/test_dev_server.py"
35531 "-k" (string-join
35532 ;; Some time difference in example tests.
35533 (list "not test_serves_root_dir[http://example.org/deep/down/a/rabbit/hole]"
35534 "test_serves_root_dir[https://example.org:1234/blog]"
35535 "test_serves_root_dir[https://example.org:3456/blog/]"
35536 "test_serves_root_dir[https://example.org]"
35537 ;; AssertionError: Calls not found.
35538 "test_write_content_does_not_detroy_text"
35539 ;; AssertionError: assert 'January 10, 2006,
35540 ;; 12:34:56\u202fPM -0500' == 'January 10, 2006,
35541 ;; 12:34:56\u202fPM EST'
35542 "test_format_date_timezone")
35543 " and not "))))
35544 (native-inputs
35545 (list nss-certs-for-test
35546 python-feedparser
35547 python-freezegun
35548 python-pytest
35549 python-setuptools))
35550 (inputs
35551 (list python-babel
35552 python-blinker
35553 python-dateutil
35554 python-docutils
35555 python-doit
35556 python-jinja2 ;; for themes
35557 python-lxml
35558 python-mako
35559 python-markdown
35560 python-natsort
35561 python-notebook ;; for ipynb
35562 python-phpserialize ;; for wordpress import
35563 python-piexif
35564 python-pillow
35565 python-pygments
35566 python-pyrss2gen
35567 python-requests
35568 python-ruamel.yaml ;; for YAML metadata
35569 python-toml
35570 python-unidecode
35571 python-yapsy))
35572 (home-page "https://getnikola.com/")
35573 (synopsis "Modular, fast and simple static website and blog generator")
35574 (description "Nikola generates static websites and blogs. Out of the box,
35575it supports reStructuredText, Markdown, IPython (Jupyter) Notebooks and HTML,
35576and has plugins for many other formats.")
35577 (license license:expat)))
35578
35579(define-public nbss-upload
35580 (package
35581 (name "nbss-upload")
35582 (version "0.1")
35583 (source
35584 (origin
35585 (method git-fetch)
35586 (uri (git-reference
35587 (url "https://github.com/notebook-sharing-space/nbss-upload")
35588 (commit (string-append "v" version))))
35589 (file-name (git-file-name name version))
35590 (sha256
35591 (base32 "0cxj4zqcxzi3c5kw649jxmdpnbyrkrwx4licxdg6zc317v8gxw54"))))
35592 (build-system pyproject-build-system)
35593 (arguments (list #:tests? #f)) ;no tests
35594 (native-inputs (list python-setuptools))
35595 (propagated-inputs (list python-requests))
35596 (home-page "https://github.com/notebook-sharing-space/nbss-upload")
35597 (synopsis "Upload notebooks to a notebooksharing.space instance")
35598 (description
35599 "Upload notebooks as @code{.ipynb}, @code{.rmd}, and @code{.html} to a
35600notebooksharing.space instance.")
35601 (license license:bsd-3)))
35602
35603(define-public python-reedsolo
35604 (package
35605 (name "python-reedsolo")
35606 (version "1.7.0")
35607 (source
35608 (origin
35609 (method git-fetch)
35610 (uri (git-reference
35611 (url "https://github.com/tomerfiliba/reedsolomon")
35612 (commit (string-append "v" version))))
35613 (file-name (git-file-name name version))
35614 (sha256
35615 (base32 "078f02cal1nn53v10spx141hd5hi22a3xxrz1j32f7cph7b46dwz"))))
35616 (build-system pyproject-build-system)
35617 (native-inputs (list python-pytest python-setuptools))
35618 (home-page "https://github.com/tomerfiliba/reedsolomon")
35619 (synopsis "Pure-Python Reed Solomon encoder/decoder")
35620 (description
35621 "A pure-python universal errors-and-erasures Reed-Solomon Codec, based on
35622the tutorial at Wikiversity. This is a burst-type implementation, so that it
35623supports any Galois field higher than 2^3, but not binary streams.")
35624 (license license:public-domain)))
35625
35626(define-public python-esprima
35627 (package
35628 (name "python-esprima")
35629 (version "4.0.1")
35630 (source
35631 (origin
35632 (method git-fetch)
35633 (uri (git-reference
35634 (url "https://github.com/Kronuz/esprima-python")
35635 (commit (string-append "v" version))))
35636 (file-name (git-file-name name version))
35637 (sha256
35638 (base32 "0yk80j63mds4qvdjk79yp6a831vl5kc17cwkxamir1wp2w4hznas"))))
35639 (build-system pyproject-build-system)
35640 (arguments
35641 (list
35642 ;; XXX: pytest fails to collect tests, and a few tests are failing
35643 ;; using unittest backend. In particular, offsets with math characters
35644 ;; and uncompiled regexps.
35645 #:tests? #f
35646 #:test-backend #~'unittest
35647 #:test-flags
35648 #~(list "-k"
35649 (string-join (list
35650 ;; XXX: Character offsets with maths.
35651 "not test_math_alef"
35652 "test_math_dal_part"
35653 "test_math_kaf_lam"
35654 "test_math_zain_start"
35655 ;; XXX: Uncompiled regexps.
35656 "test_yield_arg_regexp1"
35657 "test_yield_arg_regexp2"
35658 "test_migrated_0005_source"
35659 "test_u_flag_valid_range"
35660 "test_migrated_0049"
35661 "test_migrated_0050_source")
35662 " and not "))))
35663 (native-inputs (list python-setuptools))
35664 (home-page "https://github.com/Kronuz/esprima-python")
35665 (synopsis "ECMAScript parsing infrastructure for analysis in Python")
35666 (description
35667 "This package provides ECMAScript parsing infrastructure for
35668multipurpose analysis in Python.")
35669 (license license:bsd-3)))
35670
35671(define-public python-psycopg2-binary
35672 (package
35673 (name "python-psycopg2-binary")
35674 (version "2.9.10")
35675 (source
35676 (origin
35677 (method url-fetch)
35678 (uri (pypi-uri "psycopg2-binary" version))
35679 (sha256
35680 (base32 "1qkdl21agnifabk508py6m0q4ggixx13k63xlp6qma8ak7kg0gab"))))
35681 (build-system pyproject-build-system)
35682 (arguments
35683 ;; Tests are disable because they need a live instance of PostgreSQL.
35684 '(#:tests? #f))
35685 (native-inputs (list python-setuptools python-wheel))
35686 (inputs (list postgresql))
35687 (home-page "https://psycopg.org/")
35688 (synopsis "PostgreSQL database adapter for Python")
35689 (description
35690 "Psycopg is a PostgreSQL database adapter for the Python programming
35691language. Its main features are the complete implementation of the Python DB
35692API 2.0 specification and the thread safety (several threads can share the
35693same connection). It was designed for heavily multi-threaded applications
35694that create and destroy lots of cursors and make a large number of concurrent
35695@code{INSERT}s or @code{UPDATE}s.
35696
35697Psycopg 2 is mostly implemented in C as a libpq wrapper, resulting in
35698being both efficient and secure. It features client-side and
35699server-side cursors, asynchronous communication and notifications,
35700@code{COPY TO}/@code{COPY FROM} support. Many Python types are supported
35701out-of-the-box and adapted to matching PostgreSQL data types;
35702adaptation can be extended and customized thanks to a flexible objects
35703adaptation system.
35704
35705Psycopg 2 is both Unicode and Python 3 friendly.")
35706 (license license:lgpl3+)))
35707
35708(define-public python-pyfuse3
35709 (package
35710 (name "python-pyfuse3")
35711 (version "3.4.2")
35712 (source
35713 (origin
35714 (method git-fetch)
35715 (uri (git-reference
35716 (url "https://github.com/libfuse/pyfuse3")
35717 (commit (string-append "v" version))))
35718 (file-name (git-file-name name version))
35719 (sha256
35720 (base32 "1vnsk33ql77ix6wpw4sid0xfyskhgv9p4ifpaqynqsv2g2jnss6y"))))
35721 (build-system pyproject-build-system)
35722 (arguments
35723 (list
35724 #:test-flags
35725 ;; FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin'
35726 #~(list "--deselect=test/test_api.py::test_listdir")))
35727 (native-inputs
35728 (list pkg-config
35729 python-cython
35730 python-pytest
35731 python-setuptools
35732 python-setuptools-scm))
35733 (inputs
35734 (list fuse))
35735 (propagated-inputs
35736 (list python-trio))
35737 (home-page "https://github.com/libfuse/pyfuse3")
35738 (synopsis "Python bindings to FUSE 3")
35739 (description "This package provides Python 3 bindings for libfuse 3 with
35740async I/O support.")
35741 (license license:gpl2+)))
35742
35743(define-public python-ansi-styles
35744 ;; Releases are not tagged in Git:
35745 ;; https://github.com/shawwn/ansi-styles-python/issues/2
35746 (let ((commit "c1d79c1defaf68c4f1bfe3f9b3fa49667404f5f4")
35747 (revision "0"))
35748 (package
35749 (name "python-ansi-styles")
35750 (version (git-version "0.2.2" revision commit))
35751 (source
35752 (origin
35753 (method git-fetch)
35754 (uri (git-reference
35755 (url "https://github.com/shawwn/ansi-styles-python")
35756 (commit commit)))
35757 (file-name (git-file-name name version))
35758 (sha256
35759 (base32 "0595v5nxh1j3yv4k668x6yjvabjfpckgjzz6s89cfmwkd70sdkn0"))))
35760 (build-system pyproject-build-system)
35761 (native-inputs (list python-poetry-core python-pytest))
35762 (home-page "https://github.com/shawwn/ansi-styles-python")
35763 (synopsis "ANSI escape codes for styling strings in the terminal")
35764 (description
35765 "This Python package provide ANSI escape codes
35766for styling strings in the terminal.")
35767 (license license:expat))))
35768
35769(define-public python-multipart
35770 (package
35771 (name "python-multipart")
35772 (version "0.0.32")
35773 (source
35774 (origin
35775 (method git-fetch)
35776 (uri (git-reference
35777 (url "https://github.com/Kludex/python-multipart")
35778 (commit version)))
35779 (file-name (git-file-name name version))
35780 (sha256
35781 (base32 "0p547qsxpgqbciyng0n0ck10mv4bchbpf9gm351293yv6qgr43ng"))))
35782 (build-system pyproject-build-system)
35783 (native-inputs
35784 (list python-hatchling
35785 python-pytest
35786 python-pyyaml))
35787 (home-page "https://github.com/Kludex/python-multipart")
35788 (synopsis "Streaming multipart parser for Python")
35789 (description
35790 "This package provides a streaming multipart parser for Python.
35791
35792It is hosted in PyPI as @url{https://pypi.org/project/python-multipart/,
35793python_multipart}.")
35794 (license license:asl2.0)))
35795
35796(define-public python-aiopg
35797 (package
35798 (name "python-aiopg")
35799 (version "1.4.0")
35800 (source
35801 (origin
35802 (method git-fetch)
35803 (uri (git-reference
35804 (url "https://github.com/aio-libs/aiopg")
35805 (commit (string-append "v" version))))
35806 (file-name (git-file-name name version))
35807 (sha256
35808 (base32 "0sbf5vfbxivi7fmh99xiviwgq46z5ypi0vsf0vq280934m2naghq"))))
35809 (build-system pyproject-build-system)
35810 (arguments
35811 (list
35812 #:tests? #f ;they need Docker
35813 #:phases
35814 #~(modify-phases %standard-phases
35815 (add-after 'unpack 'use-default-asyncio
35816 ;; async_timeout is deprecated, upstream recommends to use
35817 ;; asyncio, available since Python 3.11.
35818 (lambda _
35819 (substitute* "aiopg/pool.py"
35820 (("async_timeout") "asyncio"))))
35821 (add-after 'unpack 'relax-requirements
35822 (lambda _
35823 (substitute* "setup.py"
35824 (("psycopg2-binary") "psycopg2")
35825 ;; It's a part of Python 3.11+.
35826 ((", \"async_timeout>=3.0,<5.0\"") "")))))))
35827 (native-inputs
35828 (list python-setuptools))
35829 (propagated-inputs
35830 (list python-psycopg2))
35831 (home-page "https://aiopg.readthedocs.io")
35832 (synopsis "Postgres integration with asyncio")
35833 (description
35834 "aiopg is a library for accessing a PostgreSQL database from the
35835asyncio (PEP-3156/tulip) framework. It wraps asynchronous features of the
35836Psycopg database driver.")
35837 (license license:bsd-3)))
35838
35839(define-public python-shtab
35840 (package
35841 (name "python-shtab")
35842 (version "1.7.1")
35843 (source
35844 (origin
35845 (method url-fetch)
35846 (uri (pypi-uri "shtab" version))
35847 (sha256
35848 (base32 "0g14778c5zgiq6b92k40n9irp75c5vcsvl5541cw8bmqxq1cnjsf"))))
35849 (build-system pyproject-build-system)
35850 (native-inputs
35851 (list bash
35852 python-pytest
35853 python-pytest-timeout
35854 python-setuptools
35855 python-setuptools-scm
35856 python-wheel))
35857 (home-page "https://github.com/iterative/shtab")
35858 (synopsis "Automagic shell tab completion for Python CLI applications")
35859 (description
35860 "This package automatically generates shell tab completion scripts for
35861Python CLI apps.")
35862 (license license:asl2.0)))
35863
35864(define-public python-pyperf
35865 (package
35866 (name "python-pyperf")
35867 (version "2.10.0")
35868 (source
35869 (origin
35870 (method git-fetch)
35871 (uri (git-reference
35872 (url "https://github.com/psf/pyperf")
35873 (commit version)))
35874 (file-name (git-file-name name version))
35875 (sha256
35876 (base32 "1xl60vrwp2zqjwv685xxj8b5hxblshf5f4s7qmq8fmn445mg9aiw"))))
35877 (build-system pyproject-build-system)
35878 (arguments
35879 (list
35880 #:test-flags
35881 #~(list "--ignore=pyperf/tests/test_examples.py")))
35882 (native-inputs
35883 (list python-psutil-bootstrap
35884 python-pytest
35885 python-setuptools))
35886 (home-page "https://github.com/psf/pyperf")
35887 (synopsis "Toolkit for running Python benchmarks")
35888 (description
35889 "The Python @code{pyperf} module is a toolkit for writing, running and
35890analyzing benchmarks. It features a simple API that can:
35891
35892@itemize
35893@item automatically calibrate a benchmark for a time budget;
35894@item spawn multiple worker processes;
35895@item compute the mean and standard deviation;
35896@item detect if a benchmark result seems unstable;
35897@item store benchmark results in JSON format;
35898@item support multiple units: seconds, bytes and integer.
35899@end itemize")
35900 (license license:expat)))
35901
35902(define-public python-pydispatcher
35903 (package
35904 (name "python-pydispatcher")
35905 (version "2.0.7")
35906 (source
35907 (origin
35908 (method url-fetch)
35909 (uri (pypi-uri "PyDispatcher" version))
35910 (sha256
35911 (base32 "0cdyymidxkzvcq6lpybhmh0ngyhld6jdcaac9bbvmh8d12nwcxxp"))))
35912 (build-system pyproject-build-system)
35913 (native-inputs (list python-pytest python-setuptools))
35914 (home-page "https://pydispatcher.sourceforge.net")
35915 (synopsis "Multi-producer-multi-consumer signal dispatching mechanism")
35916 (description
35917 "PyDispatcher is an enhanced version of Patrick K. O’Brien’s original
35918@code{dispatcher.py} module. It provides the Python programmer with a robust
35919mechanism for event routing within various application contexts.
35920
35921Included in the package are the robustapply and saferef modules, which
35922provide the ability to selectively apply arguments to callable objects
35923and to reference instance methods using weak-references.")
35924 (license license:bsd-3)))
35925
35926(define-public python-pyee
35927 (package
35928 (name "python-pyee")
35929 (version "13.0.1")
35930 (source
35931 (origin
35932 (method git-fetch)
35933 (uri (git-reference
35934 (url "https://github.com/jfhbrook/pyee")
35935 (commit (string-append "v" version))))
35936 (file-name (git-file-name name version))
35937 (sha256
35938 (base32 "0qmvbh8w15criy9fysgpppla1sk201c6dqvig0hvgxdirmp1zc4j"))))
35939 (build-system pyproject-build-system)
35940 (propagated-inputs (list python-typing-extensions))
35941 (native-inputs
35942 (list python-mock
35943 python-pytest
35944 python-pytest-asyncio
35945 python-pytest-trio
35946 python-setuptools
35947 python-trio
35948 python-twisted))
35949 (home-page "https://github.com/jfhbrook/pyee")
35950 (synopsis "Emit events with Python")
35951 (description
35952 "This package provides a port of node.js's EventEmitter to
35953python. Additionally, it includes a number of subclasses useful for
35954implementing async and threaded programming in python, such as async/await.")
35955 (license license:expat)))
35956
35957(define-public python-pypubsub
35958 (package
35959 (name "python-pypubsub")
35960 (version "4.0.3")
35961 (source
35962 (origin
35963 (method git-fetch)
35964 (uri (git-reference
35965 (url "https://github.com/schollii/pypubsub")
35966 (commit (string-append "v" version))))
35967 (file-name (git-file-name name version))
35968 (sha256
35969 (base32 "02j74w28wzmdvxkk8i561ywjgizjifq3hgcl080yj0rvkd3wivlb"))))
35970 (build-system pyproject-build-system)
35971 (arguments
35972 (list
35973 #:phases
35974 #~(modify-phases %standard-phases
35975 (replace 'check
35976 (lambda* (#:key tests? #:allow-other-keys)
35977 (when tests?
35978 (with-directory-excursion "tests/suite"
35979 (invoke "py.test"))))))))
35980 (native-inputs
35981 (list python-pytest
35982 python-setuptools
35983 python-wheel))
35984 (home-page "https://github.com/schollii/pypubsub")
35985 (synopsis "Python publish-subcribe library")
35986 (description
35987 "This library provides a publish-subscribe API to facilitate event-based
35988or message-based architecture in a single-process application. It is centered
35989on the notion of a topic - senders publish messages of a given topic, and
35990listeners subscribe to messages of a given topic, all inside the same
35991process.")
35992 (license license:bsd-2)))
35993
35994(define-public python-queuelib
35995 (package
35996 (name "python-queuelib")
35997 (version "1.8.0")
35998 (source
35999 (origin
36000 (method git-fetch)
36001 (uri (git-reference
36002 (url "https://github.com/scrapy/queuelib")
36003 (commit (string-append "v" version))))
36004 (file-name (git-file-name name version))
36005 (sha256
36006 (base32 "0rnyk200rd9vvifsx70z2d6h6gkmjmf6384d5bmnslhqircb430b"))))
36007 (build-system pyproject-build-system)
36008 (native-inputs (list python-hatchling python-pytest))
36009 (home-page "https://github.com/scrapy/queuelib")
36010 (synopsis "Collection of queues for Python")
36011 (description
36012 "Queuelib is a Python library that implements object collections which
36013are stored in memory or persisted to disk, provide a simple API, and run fast.
36014
36015Queuelib provides collections for queues (FIFO), stacks (LIFO), queues sorted
36016by priority and queues that are emptied in a round-robin fashion.")
36017 (license license:bsd-3)))
36018
36019(define-public python-posix-ipc
36020 (package
36021 (name "python-posix-ipc")
36022 (version "1.3.2")
36023 (source
36024 (origin
36025 (method git-fetch)
36026 (uri (git-reference
36027 (url "https://github.com/osvenskan/posix_ipc")
36028 (commit (string-append "rel" version))))
36029 (file-name (git-file-name name version))
36030 (sha256
36031 (base32 "0g9zhadssq01q4xcf25lq2qmn7q02p877bx0nyx3b09phgw6860j"))))
36032 (build-system pyproject-build-system)
36033 (arguments
36034 (list
36035 #:test-flags
36036 ;; XXX: Collection fails due to stdin configuration.
36037 #~(list "--ignore=tests/test_memory.py")
36038 #:phases
36039 #~(modify-phases %standard-phases
36040 (add-after 'unpack 'set-cc-path
36041 (lambda _
36042 (setenv "CC" #$(cc-for-target)))))))
36043 (native-inputs (list python-pytest python-setuptools))
36044 (home-page "https://semanchuk.com/philip/posix_ipc/")
36045 (synopsis "POSIX IPC primitives for Python")
36046 (description
36047 "This package provides POSIX IPC primitives - semaphores, shared memory and
36048message queues for Python.")
36049 (license license:bsd-3))) ; BSD like Copyright (c) 2018, Philip Semanchuk
36050
36051(define-public python-itemadapter
36052 (package
36053 (name "python-itemadapter")
36054 (version "0.12.0")
36055 (source
36056 (origin
36057 (method git-fetch)
36058 (uri (git-reference
36059 (url "https://github.com/scrapy/itemadapter")
36060 (commit (string-append "v" version))))
36061 (file-name (git-file-name name version))
36062 (sha256
36063 (base32 "1d7v5x1v8v62rs1xay2m4djdnhsydfb0lzgh8c0c1lipinrqzkfz"))))
36064 (build-system pyproject-build-system)
36065 (arguments (list #:tests? #f)) ; Circular dependency on python-scrapy.
36066 (native-inputs (list python-hatchling))
36067 (home-page "https://github.com/scrapy/itemadapter")
36068 (synopsis "Common interface for data container classes")
36069 (description
36070 "The ItemAdapter class is a wrapper for data container objects, providing
36071a common interface to handle objects of different types in an uniform manner,
36072regardless of their underlying implementation.
36073
36074Currently supported types are:
36075@itemize
36076@item scrapy.item.Item
36077@item dict
36078@item dataclass-based classes
36079@item attrs-based classes
36080@item pydantic-based classes
36081@end itemize
36082
36083Additionally, interaction with arbitrary types is supported by
36084implementing a pre-defined interface.")
36085 (license license:bsd-3)))
36086
36087(define-public python-itemloaders
36088 (package
36089 (name "python-itemloaders")
36090 (version "1.3.2")
36091 (source
36092 (origin
36093 (method url-fetch)
36094 (uri (pypi-uri "itemloaders" version))
36095 (sha256
36096 (base32 "0w37g31n06x6v6b4w7cz3nbq4wl6cv7rrzg3fr203gw3pqx5pbsg"))))
36097 (build-system pyproject-build-system)
36098 (native-inputs
36099 (list python-packaging
36100 python-pytest
36101 python-setuptools
36102 python-wheel))
36103 (propagated-inputs
36104 (list python-itemadapter python-jmespath python-parsel))
36105 (home-page "https://github.com/scrapy/itemloaders")
36106 (synopsis "Base library for scrapy's ItemLoader")
36107 (description "Itemloaders is a library that helps you collect data
36108from HTML and XML sources. It comes in handy to extract data from web
36109pages, as it supports data extraction using CSS and XPath Selectors.
36110
36111It’s specially useful when you need to standardize the data from many
36112sources. For example, it allows you to have all your casting and
36113parsing rules in a single place.")
36114 (license license:bsd-3)))
36115
36116(define-public python-iterable-io
36117 (package
36118 (name "python-iterable-io")
36119 (version "1.0.0")
36120 (source
36121 (origin
36122 (method url-fetch)
36123 (uri (pypi-uri "iterable-io" version))
36124 (sha256
36125 (base32 "0g4cn522n4dv6ly8pwf97dc62rr4f7my38v0bh6vmac7jmrip7pv"))))
36126 (build-system pyproject-build-system)
36127 (native-inputs (list python-setuptools python-pytest))
36128 (home-page "https://github.com/pR0Ps/iterable-io")
36129 (synopsis "Adapt generators and other iterables to a file-like interface")
36130 (description
36131 "@code{iterable-io} is a small Python library that provides an adapter so
36132that it's possible to read from
36133@url{https://docs.python.org/3/glossary.html#term-iterable,iterable} objects
36134in the same way as
36135@url{https://docs.python.org/3/glossary.html#term-file-object,file-like}
36136objects.")
36137 (license license:lgpl3)))
36138
36139(define-public python-iteround
36140 (package
36141 (name "python-iteround")
36142 (version "1.0.4")
36143 ;; PyPI only has wheels.
36144 (source (origin
36145 (method git-fetch)
36146 (uri (git-reference
36147 (url "https://github.com/cgdeboer/iteround")
36148 (commit (string-append "v" version))))
36149 (file-name (git-file-name name version))
36150 (sha256
36151 (base32 "1irw4sqrsgpc0ibxdv1hlx0d0jr1fqs48bj6mpfylzqkag9ywlfj"))))
36152 (build-system pyproject-build-system)
36153 (native-inputs
36154 (list python-pytest python-setuptools python-wheel))
36155 (home-page "https://github.com/cgdeboer/iteround")
36156 (synopsis "Sum-safe rounding for Iterables")
36157 (description "Iteround is a standard library sum-safe rounding library for
36158Python iterables (lists, tuples, dicts).")
36159 (license license:expat)))
36160
36161(define-public python-hypy-utils
36162 (package
36163 (name "python-hypy-utils")
36164 (version "1.0.29")
36165 (source
36166 (origin
36167 (method url-fetch)
36168 (uri (pypi-uri "hypy_utils" version))
36169 (sha256
36170 (base32 "1gf4v4gv9kr4r3prjwvcii153vwjrp7gir2mz6d1qbz6jggif8n7"))))
36171 (build-system pyproject-build-system)
36172 (arguments (list #:tests? #f)) ; No tests upstream.
36173 (native-inputs (list python-setuptools))
36174 (home-page "https://github.com/hykilpikonna/HyPyUtils")
36175 (synopsis "Python utility functions for HyDEV")
36176 (description "This module provides Python utility functions for modifying
36177and setting the color of terminal output, via HyDEV.")
36178 (license license:expat)))
36179
36180(define-public python-mike
36181 (package
36182 (name "python-mike")
36183 (version "2.1.3")
36184 (source
36185 (origin
36186 (method git-fetch) ; no tests data in PyPi package
36187 (uri (git-reference
36188 (url "https://github.com/jimporter/mike")
36189 (commit (string-append "v" version))))
36190 (file-name (git-file-name name version))
36191 (sha256
36192 (base32 "0rgmpxim91rpn8cplyi72g75fhclr40hxcpschn7rbfkqdhj8rbq"))))
36193 (build-system pyproject-build-system)
36194 (arguments
36195 (list
36196 #:test-flags
36197 ;; Most of integration tests hang or fail.
36198 #~(list "--ignore=test/integration/"
36199 ;; AttributeError: 'NoneType' object has no attribute 'group'
36200 "--ignore=test/unit/test_commands.py"
36201 "--deselect=test/unit/test_mkdocs_utils.py::TestVersion::test_version")))
36202 (native-inputs
36203 (list git-minimal/pinned
36204 python-pytest
36205 python-setuptools
36206 python-shtab
36207 python-wheel))
36208 (propagated-inputs
36209 (list python-importlib-metadata
36210 python-importlib-resources
36211 python-jinja2
36212 python-mkdocs
36213 python-pyparsing
36214 python-pyyaml
36215 python-pyyaml-env-tag
36216 python-verspec))
36217 (home-page "https://github.com/jimporter/mike")
36218 (synopsis "Manage multiple versions of MkDocs-powered documentation")
36219 (description
36220 "This package provides a Python utility to easily deploy multiple
36221versions of MkDocs-powered docs to a Git branch. It is suitable for deploying
36222to Github via gh-pages.")
36223 (license license:bsd-3)))
36224
36225(define-public python-arpeggio
36226 (package
36227 (name "python-arpeggio")
36228 (version "2.0.2")
36229 (source
36230 (origin
36231 (method url-fetch)
36232 (uri (pypi-uri "Arpeggio" version))
36233 (sha256
36234 (base32 "00571cmdxw8w8khzscb085kfqv2hgxdzpyz4d3a2sv92dsqb5467"))))
36235 (build-system pyproject-build-system)
36236 (native-inputs
36237 (list python-pytest
36238 python-setuptools
36239 python-wheel))
36240 (home-page "https://github.com/textX/Arpeggio")
36241 (synopsis "Packrat parser interpreter for Python")
36242 (description
36243 "This Python library provides a recursive descent parser with
36244backtracking and memoization (a.k.a. packrat parser). Arpeggio grammars are
36245based on PEG formalism. Arpeggio's main use is a foundation for a toolchain
36246for DSL development but it can be used for all sorts of general purpose
36247parsing.")
36248 (license license:expat)))
36249
36250(define-public python-flatten-json
36251 ;; The latest version was not tagged on GitHub, PyPI provides no tests, use
36252 ;; the commit associated with 0.1.14 version.
36253 (let ((commit "900c4feebcfcd831ddb6143c4b246024ecf911ec")
36254 (revision "0"))
36255 (package
36256 (name "python-flatten-json")
36257 (version (git-version "0.1.14" revision commit))
36258 (source
36259 (origin
36260 (method git-fetch) ; no tests in PyPI release
36261 (uri (git-reference
36262 (url "https://github.com/amirziai/flatten")
36263 (commit commit)))
36264 (file-name (git-file-name name version))
36265 (sha256
36266 (base32 "1vk2ykmk4wirsywinxk9v520y6iv857bn0hsizm25s3d08v5a3sb"))))
36267 (build-system pyproject-build-system)
36268 (native-inputs
36269 (list python-pytest
36270 python-setuptools
36271 python-wheel))
36272 (propagated-inputs
36273 (list python-six))
36274 (home-page "https://github.com/amirziai/flatten")
36275 (synopsis "Flatten JSON objects")
36276 (description
36277 "The @code{flatten_json} Python library flattens the hierarchy in your
36278object, which can be useful if you want to force your objects into a table.")
36279 (license license:expat))))
36280
36281(define-public python-deepdiff
36282 (package
36283 (name "python-deepdiff")
36284 (version "8.6.1")
36285 (source (origin
36286 (method url-fetch)
36287 (uri (pypi-uri "deepdiff" version))
36288 (sha256
36289 (base32
36290 "0fk4zzrv7chynjbpgk7bj7nhqc7c3va7pv00a8dqk06ad6kxfmpc"))))
36291 (build-system pyproject-build-system)
36292 (arguments
36293 ;; tests: 1028 passed, 10 skipped, 1 deselected
36294 ;; Ignore Polars test (not packaged).
36295 (list #:test-flags #~(list "-k" "not test_polars")))
36296 (propagated-inputs (list python-click ; for CLI
36297 python-pyyaml ; for CLI
36298 python-orderly-set
36299 python-orjson)) ; for optimization
36300 (native-inputs
36301 (list python-flit-core
36302 python-jsonpickle
36303 python-numpy
36304 python-pandas
36305 python-pydantic
36306 python-pytest
36307 python-pytest-benchmark
36308 python-pytz
36309 python-uuid6
36310 python-tomli-w))
36311 (home-page "https://github.com/seperman/deepdiff")
36312 (synopsis "Deep difference and search of any Python object/data")
36313 (description
36314 "This package provides tools for computing deep differences and searching
36315of any Python object/data. Recreate objects by adding adding deltas to each
36316other.")
36317 (license license:expat)))
36318
36319(define-public python-deepmerge
36320 (package
36321 (name "python-deepmerge")
36322 (version "1.0.1")
36323 (source
36324 (origin
36325 (method url-fetch)
36326 (uri (pypi-uri "deepmerge" version))
36327 (sha256
36328 (base32 "06hagzg8ccmjzqvszdxb52jgx5il8a1jdz41n4dpkyyjsfg7fi2b"))))
36329 (build-system pyproject-build-system)
36330 (native-inputs
36331 (list python-setuptools-scm
36332 python-pytest
36333 python-setuptools
36334 python-wheel))
36335 (home-page "https://deepmerge.readthedocs.io/en/latest/")
36336 (synopsis "Merge nested data structures")
36337 (description
36338 "The @code{deep-merge} Python library provides a toolset to deeply merge
36339nested data structures in Python like lists and dictionaries.")
36340 (license license:expat)))
36341
36342(define-public python-durationpy
36343 (package
36344 (name "python-durationpy")
36345 (version "0.10")
36346 (source
36347 (origin
36348 (method git-fetch)
36349 (uri (git-reference
36350 (url "https://github.com/icholy/durationpy")
36351 (commit version)))
36352 (file-name (git-file-name name version))
36353 (sha256
36354 (base32 "1617wg77j68z7v4rbjrhv6n7bchznhgjn21qrmb034sf4hwg77dl"))))
36355 (build-system pyproject-build-system)
36356 (arguments
36357 (list #:test-backend #~'custom
36358 #:test-flags #~(list "test.py")))
36359 (native-inputs (list python-setuptools))
36360 (home-page "https://github.com/icholy/durationpy")
36361 (synopsis "Python <-> Golang time duration formats converter")
36362 (description
36363 "This package implements a functionality to convert between
36364Python's @code{datetime.timedelta} and Golang's @code{time.Duration} formats.")
36365 (license license:expat)))
36366
36367(define-public python-murmurhash3
36368 (let ((commit "01f1128a2c5ea08e6dc33515e140bedd68393a2d")
36369 (revision "0"))
36370 (package
36371 (name "python-murmurhash3")
36372 (version (git-version "2.3.5" revision commit))
36373 (source
36374 (origin
36375 (method git-fetch)
36376 (uri (git-reference
36377 (url "https://github.com/veegee/mmh3")
36378 (commit commit)))
36379 (file-name (git-file-name name version))
36380 (sha256
36381 (base32 "1zpk51ms1bvzg52zc9s9az71bgw2kgxidjcc1xib7y9r7dl7vczz"))))
36382 (build-system pyproject-build-system)
36383 (arguments
36384 (list
36385 #:phases
36386 #~(modify-phases %standard-phases
36387 (add-after 'unpack 'fix-package
36388 (lambda _
36389 (substitute* "mmh3module.cpp"
36390 (("#include <stdio\\.h>")
36391 "#define PY_SSIZE_T_CLEAN\n#include <stdio.h>")))))))
36392 (native-inputs
36393 (list python-cython python-pytest python-setuptools python-wheel))
36394 (home-page "https://github.com/veegee/mmh3")
36395 (synopsis "Python wrapper for MurmurHash (MurmurHash3)")
36396 (description
36397 "@code{murmurhash3} is a Python library for MurmurHash (MurmurHash3), a set
36398of fast and robust hash functions. This library is a Python extension module
36399written in C.")
36400 (license license:public-domain))))
36401
36402(define-public python-scooby
36403 (package
36404 (name "python-scooby")
36405 (version "0.11.0")
36406 (source
36407 (origin
36408 (method git-fetch)
36409 (uri (git-reference
36410 (url "https://github.com/banesullivan/scooby")
36411 (commit (string-append "v" version))))
36412 (file-name (git-file-name name version))
36413 (sha256
36414 (base32 "0c47gwcc5kpwx7s8ccp53s174bgraxm4qqrn72yz2ypxah6k3ccj"))))
36415 (build-system pyproject-build-system)
36416 (arguments
36417 (list
36418 ;; tests: 19 passed, 5 deselected, 1 warning
36419 #:test-flags
36420 ;; AssertionError: assert 'Module not found' == '0.1.0'
36421 #~(list "--deselect=tests/test_scooby.py::test_get_version"
36422 ;; ModuleNotFoundError: No module named 'no_version'
36423 "--deselect=tests/test_scooby.py::test_tracking"
36424 ;; Failed: DID NOT RAISE <class 'OSError'>
36425 "--deselect=tests/test_scooby.py::test_import_os_error"
36426 ;; FileNotFoundError: [Errno 2] No such file or directory: 'time'
36427 "--deselect=tests/test_scooby.py::test_import_time"
36428 ;; Errored
36429 "--deselect=tests/test_scooby.py::test_cli")))
36430 (native-inputs
36431 (list python-beautifulsoup4
36432 python-numpy
36433 python-pytest
36434 python-pyvips
36435 python-scipy
36436 python-setuptools
36437 python-setuptools-scm))
36438 (propagated-inputs
36439 (list python-psutil))
36440 (home-page "https://github.com/banesullivan/scooby")
36441 (synopsis "Report hardware information and Python package versions")
36442 (description
36443 "The Scooby package reports the following information about the currently
36444running system:
36445
36446@itemize
36447@item operating system name;
36448@item hardware information including machine type (e.g., @samp{i386},
36449@samp{x86_64}, etc.), CPU count and total RAM;
36450@item Python environment (e.g., Python, IPython, etc.);
36451@item file system name;
36452@item Python version;
36453@item versions of specified Python packages.
36454@end itemize
36455
36456It can generate reports as HTML tables or plain text lists.
36457
36458Scooby has no required dependencies, and only few optional dependencies.")
36459 (license license:expat)))
36460
36461(define-public python-cymem
36462 (package
36463 (name "python-cymem")
36464 (version "2.0.6")
36465 (source
36466 (origin
36467 (method git-fetch)
36468 (uri (git-reference
36469 (url "https://github.com/explosion/cymem")
36470 (commit (string-append "v" version))))
36471 (file-name (git-file-name name version))
36472 (sha256
36473 (base32 "1f0wjm6g2n09b9plddp3bvaz6bl27q6hv0q6g7qx24rgmjzkivm3"))))
36474 (build-system pyproject-build-system)
36475 (native-inputs (list python-cython python-pytest python-setuptools))
36476 (inputs (list python))
36477 (home-page "https://github.com/explosion/cymem")
36478 (synopsis "Cython memory pool for RAII-style memory management")
36479 (description
36480 "Cymem provides two small memory-management helpers for Cython. They make it
36481easy to tie memory to a Python object's life-cycle, so that the memory is freed
36482when the object is garbage collected.")
36483 (license license:expat)))
36484
36485(define-public python-preshed
36486 (package
36487 (name "python-preshed")
36488 (version "3.0.6")
36489 (source
36490 (origin
36491 (method git-fetch)
36492 (uri (git-reference
36493 (url "https://github.com/explosion/preshed")
36494 (commit (string-append "v" version))))
36495 (file-name (git-file-name name version))
36496 (sha256
36497 (base32 "01xwczc4cb9q3iah1gb9lxfh9s8ix695y3s95j7nhbiws6c9b5k5"))))
36498 (build-system pyproject-build-system)
36499 (arguments
36500 (list
36501 #:phases
36502 #~(modify-phases %standard-phases
36503 (add-after 'unpack 'patch-msvccompiler
36504 (lambda _
36505 (substitute* "setup.py"
36506 (("from distutils import ccompiler, msvccompiler")
36507 "from distutils import ccompiler")
36508 (("and msvccompiler.*")
36509 ""))))
36510 (replace 'check
36511 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
36512 (with-directory-excursion (site-packages inputs outputs)
36513 (for-each delete-file (find-files "." "\\.pyx$"))
36514 (apply (assoc-ref %standard-phases 'check) args)
36515 (delete-file-recursively "preshed/tests")))))))
36516 (native-inputs
36517 (list python-cython python-cymem python-pytest python-setuptools))
36518 (inputs (list python python-cymem python-murmurhash))
36519 (home-page "https://github.com/explosion/preshed")
36520 (synopsis "Cython hash tables that assume keys are pre-hashed")
36521 (description
36522 "Simple but high performance Cython hash table mapping pre-randomized keys
36523to void* values.")
36524 (license license:expat)))
36525
36526(define-public python-catalogue
36527 (package
36528 (name "python-catalogue")
36529 (version "2.0.10")
36530 (source
36531 (origin
36532 (method git-fetch)
36533 (uri (git-reference
36534 (url "https://github.com/explosion/catalogue")
36535 (commit (string-append "v" version))))
36536 (file-name (git-file-name name version))
36537 (sha256
36538 (base32 "1v93a5dfhqa70kvjh4jxw9mqgwzbzg9w53an0frrx1rj6h96kmw5"))))
36539 (build-system pyproject-build-system)
36540 (native-inputs (list python-pytest python-setuptools))
36541 (home-page "https://github.com/explosion/catalogue")
36542 (synopsis "Lightweight function registries for your library")
36543 (description
36544 "This package is a tiny, zero-dependencies library that makes it easy to
36545add function (or object) registries to your code. Function registries are
36546helpful when you have objects that need to be both easily serializable and
36547fully customizable. Instead of passing a function into your object, you pass
36548in an identifier name, which the object can use to lookup the function from
36549the registry. This makes the object easy to serialize, because the name is a
36550simple string. If you instead saved the function, you'd have to use Pickle
36551for serialization, which has many drawbacks.")
36552 (license license:expat)))
36553
36554(define-public python-gatt
36555 (package
36556 (name "python-gatt")
36557 (version "0.2.7")
36558 (source (origin
36559 (method url-fetch)
36560 (uri (pypi-uri "gatt" version))
36561 (sha256
36562 (base32
36563 "0fjf066jixk30fr8xwfalwfnhqpr56yv0cccyypnx2qp9bi9svb2"))))
36564 (build-system pyproject-build-system)
36565 (arguments (list #:tests? #f)) ; No tests upstream.
36566 (propagated-inputs (list python-dbus-1.2 python-pygobject))
36567 (native-inputs (list python-setuptools))
36568 (home-page "https://github.com/getsenic/gatt-python")
36569 (synopsis "Bluetooth GATT SDK for Python")
36570 (description
36571 "The Bluetooth @acronym{GATT, Generic ATTribute Profile} @acronym{SDK,
36572Software Development Kit} for Python helps you implement and communicate with
36573any Bluetooth Low Energy device that has a GATT profile. It supports:
36574
36575@itemize @bullet
36576@item Discovering nearby Bluetooth Low Energy devices
36577@item Connecting and disconnecting devices
36578@item Implementing your custom GATT profile
36579@item Accessing all GATT services
36580@item Accessing all GATT characteristics
36581@item Reading characteristic values
36582@item Writing characteristic values
36583@item Subscribing for characteristic value change notifications
36584@end itemize
36585
36586Currently, Linux is the only platform supported by this library.")
36587 (license license:expat)))
36588
36589(define-public python-dbus-fast
36590 (package
36591 (name "python-dbus-fast")
36592 (version "2.44.3")
36593 (source
36594 (origin
36595 (method git-fetch) ;No tests in PyPI package.
36596 (uri (git-reference
36597 (url "https://github.com/Bluetooth-Devices/dbus-fast")
36598 (commit (string-append "v" version))))
36599 (file-name (git-file-name name version))
36600 (sha256
36601 (base32 "12f1f25ny7fd59s55gw3vr6ymdqgd51zzpbc1nkqfbmb166d1536"))))
36602 (build-system pyproject-build-system)
36603 (arguments
36604 (list
36605 #:test-flags
36606 '(list
36607 ;; These tests need pytest_codspeed.
36608 "--ignore-glob=tests/benchmarks/test_*marshall.py"
36609 ;; These tests all fail with:
36610 ;; dbus_fast.errors.InvalidAddressError: DBUS_SESSION_BUS_ADDRESS not
36611 ;; set and could not get DISPLAY environment variable to get bus address
36612 "-m" "not asyncio")))
36613 (native-inputs (list python-cython
36614 python-poetry-core
36615 python-setuptools
36616 python-pytest
36617 python-pytest-asyncio
36618 python-covdefaults))
36619 (home-page "https://github.com/bluetooth-devices/dbus-fast")
36620 (synopsis "Faster version of dbus-next")
36621 (description "This package provides a faster version of dbus-next.")
36622 (license license:expat)))
36623
36624(define-public python-bleak
36625 (package
36626 (name "python-bleak")
36627 (version "3.0.2")
36628 (source
36629 (origin
36630 (method git-fetch)
36631 (uri (git-reference
36632 (url "https://github.com/hbldh/bleak")
36633 (commit (string-append "v" version))))
36634 (file-name (git-file-name name version))
36635 (sha256
36636 (base32 "1dlryjgi0pzmjjnssq9498chwnjzsx14kg1kyp1465waybgwvs93"))))
36637 (build-system pyproject-build-system)
36638 (arguments
36639 (list
36640 #:test-flags #~(list "--ignore=tests/integration")))
36641 (native-inputs
36642 (list python-coverage ;hard dependency
36643 python-pytest
36644 python-pytest-asyncio
36645 python-uv-build))
36646 (propagated-inputs
36647 (list python-dbus-fast))
36648 (home-page "https://github.com/hbldh/bleak")
36649 (synopsis "Bluetooth Low Energy platform Agnostic Klient")
36650 (description "This package provides a Bluetooth Low Energy platform-agnostic
36651client library.")
36652 (license license:expat)))
36653
36654(define-public python-ndeflib
36655 (package
36656 (name "python-ndeflib")
36657 (version "0.3.3")
36658 (source
36659 (origin
36660 (method url-fetch)
36661 (uri (pypi-uri "ndeflib" version))
36662 (sha256
36663 (base32 "122a8prbcj070y3fl82kvxmbciv36hj1h1d448l6zcdrb22q4mhx"))))
36664 (build-system pyproject-build-system)
36665 (arguments
36666 (list
36667 ;; tests: 1571 passed, 37 deselected, 1 warning
36668 ;;
36669 ;; Three test fail with assertion not equal:
36670 ;;
36671 ;; test_decode_error[0001-unpack_from requires a buffer of at least 1
36672 ;; bytes] - AssertionError
36673 ;;
36674 ;; test_decode_error[00000101-unpack_from requires a buffer of at least
36675 ;; 1 bytes] - AssertionError
36676 ;;
36677 ;; test_encode_error[args1-ubyte format requires 0 <= number <= 255]
36678 ;; AssertionError
36679 #:test-flags #~(list "-k" (string-append "not test_decode_error and not "
36680 "test_encode_error"))))
36681 (native-inputs (list python-pytest-8 python-setuptools))
36682 (home-page "https://ndeflib.readthedocs.io/")
36683 (synopsis "NFC Data Exchange Format decoder and encoder.")
36684 (description "This package provides a NFC (Near-Field Communication)
36685Data Exchange Format decoder and encoder.")
36686 (license license:isc)))
36687
36688(define-public python-nfcpy
36689 (package
36690 (name "python-nfcpy")
36691 (version "1.0.4")
36692 (source
36693 (origin
36694 (method url-fetch)
36695 (uri (pypi-uri "nfcpy" version))
36696 (sha256
36697 (base32 "0sxgp298i8y17i9drp8sclxx0i3vn0wgh5ajs2arw7cy2780igg5"))))
36698 (build-system pyproject-build-system)
36699 (arguments
36700 `(#:tests? #f)) ; Tests use nfc.ndef even though that has been removed.
36701 (propagated-inputs (list python-libusb1 python-ndeflib python-pydes
36702 python-pyserial))
36703 (native-inputs (list python-setuptools python-wheel))
36704 (home-page "https://github.com/nfcpy/nfcpy")
36705 (synopsis "Python module for Near-Field Communication.")
36706 (description "This package provides a Python module for Near-Field
36707Communication.")
36708 (license license:eupl1.1)))
36709
36710(define-public python-clrprint
36711 (package
36712 (name "python-clrprint")
36713 (version "2.0.1")
36714 (source (origin
36715 (method url-fetch)
36716 (uri (pypi-uri "clrprint" version))
36717 (sha256
36718 (base32
36719 "0xfn8d1by2w7pjiji887qljk1avn4fylbnz1mj28gysm5g0zvy43"))))
36720 (build-system pyproject-build-system)
36721 (arguments '(#:tests? #f)) ;there are no tests
36722 (native-inputs
36723 (list python-setuptools))
36724 (propagated-inputs (list python-colorama python-termcolor))
36725 (home-page "https://github.com/AbhijithAJ/clrprint")
36726 (synopsis "Print colorful output in the terminal")
36727 (description "@code{clrprint} is developed to print colorful output in the
36728terminal. It has red, blue, green, yellow, purple and black/white (default)
36729colors.")
36730 (license license:expat)))
36731
36732(define-public python-mido
36733 (package
36734 (name "python-mido")
36735 (version "1.3.3")
36736 (source
36737 (origin
36738 (method git-fetch)
36739 (uri (git-reference
36740 (url "https://github.com/mido/mido")
36741 (commit version)))
36742 (file-name (git-file-name name version))
36743 (sha256
36744 (base32 "0skj6586aprr20ymn70drgbps1x3z5y0xj67crxgf4rinj5dw7kd"))))
36745 (build-system pyproject-build-system)
36746 (propagated-inputs (list python-packaging))
36747 (native-inputs (list python-pytest python-setuptools python-setuptools-scm))
36748 (home-page "https://mido.readthedocs.io/en/stable/")
36749 (synopsis "MIDI Objects for Python")
36750 (description
36751 "Mido is a Python library for working with MIDI 1.0 ports, messages and
36752files.")
36753 (license license:expat)))
36754
36755(define-public python-pretty-midi
36756 (package
36757 (name "python-pretty-midi")
36758 (version "0.2.11")
36759 (source
36760 (origin
36761 (method git-fetch)
36762 (uri (git-reference
36763 (url "https://github.com/craffel/pretty-midi")
36764 (commit version)))
36765 (file-name (git-file-name name version))
36766 (sha256
36767 (base32 "1ksxf4pvqn0qdhq56zbsjqwl1a47xfnqnmj83i65anfb6j36sj46"))))
36768 (build-system pyproject-build-system)
36769 (arguments
36770 (list
36771 #:phases
36772 #~(modify-phases %standard-phases
36773 (add-after 'unpack 'remove-six
36774 (lambda _
36775 (substitute* "pretty_midi/pretty_midi.py"
36776 ((".*import six.*")
36777 "")
36778 (("six\\.string_types")
36779 "str"))
36780 (substitute* "setup.py"
36781 (("'six.*',")
36782 "")))))))
36783 (propagated-inputs
36784 (list python-importlib-resources python-mido python-numpy))
36785 (native-inputs
36786 (list python-pytest python-setuptools))
36787 (home-page "https://github.com/craffel/pretty-midi")
36788 (synopsis "Functions and classes for handling MIDI data conveniently")
36789 (description
36790 "@code{pretty_midi} contains utility function/classes for handling MIDI
36791data, so that it's in a format which is easy to modify and extract information
36792from.")
36793 (license license:expat)))
36794
36795(define-public python-musical-scales
36796 (package
36797 (name "python-musical-scales")
36798 ;; PyPI has no tests, git has no tags, use the latest commit corresponding
36799 ;; to v2.0.0.
36800 (properties '((commit . "bdc35b360edda7583806fd6037bef2716f08fc85")
36801 (revision . "0")))
36802 (version (git-version "2.0.0"
36803 (assoc-ref properties 'revision)
36804 (assoc-ref properties 'commit)))
36805 (source
36806 (origin
36807 (method git-fetch)
36808 (uri (git-reference
36809 (url "https://github.com/hmillerbakewell/musical-scales")
36810 (commit (assoc-ref properties 'commit))))
36811 (file-name (git-file-name name version))
36812 (sha256
36813 (base32 "0znkiq6r61h1sj5r24kah6h94c5agfpq4ypadn4i73hry0fkl9fd"))))
36814 (build-system pyproject-build-system)
36815 (native-inputs (list python-pytest python-setuptools))
36816 (home-page "https://github.com/hmillerbakewell/musical-scales")
36817 (synopsis "Retrieve a scale based on a given mode and starting note")
36818 (description
36819 "Retrieve a scale based on a given mode and starting note.
36820Information about these scales can be
36821@url{https://en.wikipedia.org/wiki/List_of_musical_scales_and_modes, found on
36822Wikipedia}.")
36823 (license license:expat)))
36824
36825(define-public python-langcodes
36826 (package
36827 (name "python-langcodes")
36828 (version "3.5.0")
36829 (source (origin
36830 (method url-fetch)
36831 (uri (pypi-uri "langcodes" version))
36832 (sha256
36833 (base32
36834 "00gqlqs1gi8mvjwf6fkwiqhgcqxnsk5gwzs9l8qy2lbys1l83vqy"))))
36835 (build-system pyproject-build-system)
36836 (native-inputs
36837 (list python-pytest
36838 python-setuptools
36839 python-setuptools-scm))
36840 (propagated-inputs
36841 ;; [optional:data]
36842 (list python-language-data))
36843 (home-page "https://github.com/rspeer/langcodes")
36844 (synopsis "Python library for working with language codes")
36845 (description
36846 "This package provides a Python library for working with and comparing
36847language codes.
36848
36849@code{python-langcodes} implements @url{http://tools.ietf.org/html/bcp47, BCP
3685047}, the IETF Best Current Practices on Tags for Identifying Languages. BCP
3685147 is also known as RFC 5646. It subsumes ISO 639 and is backward compatible
36852with it, and it also implements recommendations from the
36853@url{http://cldr.unicode.org/, Unicode CLDR}.
36854
36855@code{python-langcodes} can also refer to a database of language properties
36856and names, built from Unicode CLDR and the IANA subtag registry, if you
36857install @code{python-language-data}.")
36858 (license license:expat)))
36859
36860(define-public python-anyascii
36861 (package
36862 (name "python-anyascii")
36863 (version "0.3.3")
36864 (source (origin
36865 (method url-fetch)
36866 (uri (pypi-uri "anyascii" version))
36867 (sha256
36868 (base32
36869 "1hwmzg3kxyj6lxdgibrj3azv803x8kwzw1d3xja98gbvskcrskn9"))))
36870 (build-system pyproject-build-system)
36871 (native-inputs (list python-pytest python-flit-core))
36872 (home-page "https://anyascii.com")
36873 (synopsis "Unicode to ASCII transliteration")
36874 (description "@code{anyascii} converts Unicode characters to their best
36875ASCII representation.")
36876 (license license:isc)))
36877
36878(define-public python-geomet
36879 (package
36880 (name "python-geomet")
36881 (version "1.1.0")
36882 (source
36883 (origin
36884 (method git-fetch)
36885 (uri (git-reference
36886 (url "https://github.com/geomet/geomet")
36887 (commit version)))
36888 (file-name (git-file-name name version))
36889 (sha256
36890 (base32 "06pq3xkvsxl2v6q39pqgkjbaysyylshny28k8krzg7drvpvkdwk1"))))
36891 (build-system pyproject-build-system)
36892 (native-inputs (list python-pytest python-setuptools))
36893 (propagated-inputs (list python-click python-six))
36894 (home-page "https://github.com/geomet/geomet")
36895 (synopsis
36896 "Convert GeoJSON to WKT/WKB (Well-Known Text/Binary) or GeoPackage Binary")
36897 (description
36898 "This package provides utilities and functions for converting
36899GeoJSON to WKT/WKB (Well-Known Text/Binary) or GeoPackage Binary, and vice
36900versa. Extended WKB/WKT are also supported.")
36901 (license license:asl2.0)))
36902
36903(define-public python-cogapp
36904 (package
36905 (name "python-cogapp")
36906 (version "3.3.0")
36907 (source (origin
36908 (method url-fetch)
36909 (uri (pypi-uri "cogapp" version))
36910 (sha256
36911 (base32
36912 "1c0xx3p3lzrlyqhmccyq9c50f8v9pqk2992gb4nl50h2yy1m3s8v"))))
36913 (build-system pyproject-build-system)
36914 (native-inputs (list python-pytest python-setuptools python-wheel))
36915 (home-page "https://nedbatchelder.com/code/cog")
36916 (synopsis "Content generation tool that leverages Python")
36917 (description "Cog is a file generation tool. It allows using pieces of
36918Python code as generators in your source files to generate arbitrary text.")
36919 (license license:expat)))
36920
36921(define-public python-cxxheaderparser
36922 (package
36923 (name "python-cxxheaderparser")
36924 (version "1.7.0")
36925 (source
36926 (origin
36927 (method git-fetch)
36928 (uri (git-reference
36929 (url "https://github.com/robotpy/cxxheaderparser")
36930 (commit version)))
36931 (file-name (git-file-name name version))
36932 (sha256
36933 (base32 "0x8bd8zffjg1cq9hgglr445582kyjw5qs6mq7n6k7n01ihhni3hs"))))
36934 (build-system pyproject-build-system)
36935 (native-inputs
36936 (list python-hatch-vcs python-pytest))
36937 (home-page "https://github.com/robotpy/cxxheaderparser/")
36938 (synopsis "Python C++ header parser")
36939 (description "Pure python C++ header parser that parses C++ headers in a
36940mildly naive manner that allows it to handle many C constructs, including
36941many (C++11 and beyond) features.")
36942 (license license:bsd-3)))
36943
36944(define-public python-bsdiff4
36945 (package
36946 (name "python-bsdiff4")
36947 (version "1.2.6")
36948 (source
36949 (origin
36950 (method git-fetch)
36951 (uri (git-reference
36952 (url "https://github.com/ilanschnell/bsdiff4")
36953 (commit version)))
36954 (file-name (git-file-name name version))
36955 (sha256
36956 (base32 "1s64xmgcyzp7x6rcyfcryyz4mv5qm8l7s365rgbi6qfpnblnby0c"))))
36957 (build-system pyproject-build-system)
36958 (arguments
36959 (list
36960 #:test-flags #~(list "--pyargs" "bsdiff4")))
36961 (native-inputs
36962 (list python-pytest
36963 python-setuptools
36964 python-wheel))
36965 (home-page "https://github.com/ilanschnell/bsdiff4")
36966 (synopsis "Binary diff and patch using the BSDIFF4 format")
36967 (description
36968 "This package provides a Python library for the @code{bsdiff} binary diff
36969utility. It also provides two command-line tools, @code{bsdiff4} and
36970@code{bspatch4}.")
36971 (license license:bsd-2)))
36972
36973(define-public python-mpv
36974 (package
36975 (name "python-mpv")
36976 (version "1.0.8")
36977 (source
36978 (origin
36979 (method git-fetch)
36980 (uri (git-reference
36981 (url "https://github.com/jaseg/python-mpv")
36982 (commit (string-append "v" version))))
36983 (file-name (git-file-name name version))
36984 (sha256
36985 (base32 "04azy5wa2n8pa21z6lz1p1p0vy7flaqm8ypy46jb77gig2g50xrh"))))
36986 (build-system pyproject-build-system)
36987 (arguments
36988 (list #:phases
36989 #~(modify-phases %standard-phases
36990 (add-before 'build 'patch-reference-to-mpv
36991 (lambda* (#:key inputs #:allow-other-keys)
36992 ;; Without an absolute path it is not able find and load libmpv.
36993 (substitute* "mpv.py"
36994 (("sofile = .*")
36995 (format #f "sofile = '~a/lib/libmpv.so'~%"
36996 #$(this-package-input "mpv"))))))
36997 (add-before 'check 'prepare-for-tests
36998 (lambda _
36999 ;; Fontconfig throws errors when it has no cache dir to use.
37000 (setenv "XDG_CACHE_HOME" (getcwd))
37001 ;; Some tests fail without a writable and readable HOME.
37002 (setenv "HOME" (getcwd))
37003 (setenv "PY_MPV_SKIP_TESTS"
37004 "test_wait_for_property_event_overflow"))))))
37005 (native-inputs
37006 (list python-pytest
37007 python-pyvirtualdisplay
37008 python-setuptools
37009 xorg-server-for-tests))
37010 (inputs (list mpv))
37011 (propagated-inputs (list python-pillow)) ;for raw screenshots
37012 (home-page "https://github.com/jaseg/python-mpv")
37013 (synopsis "Python interface to the mpv media player")
37014 (description
37015 "python-mpv is a ctypes-based python interface to the mpv media player.
37016It gives you more or less full control of all features of the player, just
37017as the lua interface does.")
37018 ;; From the project's README:
37019 ;; python-mpv inherits the underlying libmpv's license, which can be either
37020 ;; GPLv2 or later (default) or LGPLv2.1 or later. For details, see the mpv
37021 ;; copyright page.
37022 (license license:gpl2+)))
37023
37024(define-public python-biblib
37025 (let ((upstream-version "0.1.0")
37026 (commit "ab0e857b9198fe425ec9b02fcc293b5d9fd0c406")
37027 (revision "1"))
37028 (package
37029 (name "python-biblib")
37030 (version (git-version upstream-version revision commit))
37031 (source
37032 (origin
37033 (method git-fetch)
37034 (uri (git-reference
37035 (url "https://github.com/aclements/biblib")
37036 (commit commit)))
37037 (sha256
37038 (base32 "1ym1gwxys9gl5a7fjs6xh5z9w50pnq4z3rs6fx7kpv78hlrbjlip"))
37039 (file-name (git-file-name name version))))
37040 (build-system pyproject-build-system)
37041 (arguments (list #:tests? #f)) ; No tests upstream.
37042 (native-inputs (list python-setuptools))
37043 (home-page "https://github.com/aclements/biblib")
37044 (synopsis "BibTeX parsing and transformation library")
37045 (description
37046 "Biblib provides a simple, standalone Python 3 package for parsing
37047BibTeX bibliographic databases, as well as algorithms for manipulating BibTeX
37048entries in BibTeX-y ways. Biblib's parser is derived directly from the WEB
37049source code for BibTeX and hence (barring bugs in translation) should be fully
37050compatible with BibTeX's own parser.")
37051 ;; N.B. It seems the parser was translated from WEB by hand: this
37052 ;; package does not contain any generated files.
37053 (license license:expat))))
37054
37055(define-public python-cyclic
37056 (package
37057 (name "python-cyclic")
37058 (version "1.0.0")
37059 (source
37060 (origin
37061 (method git-fetch)
37062 (uri (git-reference
37063 (url "https://github.com/neurobin/cyclic")
37064 ;; Release is not tagged on github, see
37065 ;; https://github.com/neurobin/cyclic/issues/2
37066 (commit "bf616c47ea49a43500ea55a1e6f4890323be0679")))
37067 (file-name (git-file-name name version))
37068 (sha256
37069 (base32 "0r8zzjdv70fpxssxps62rlgpii8fr9gh8gykdygqn6mkdnfjwgjc"))))
37070 (build-system pyproject-build-system)
37071 (arguments (list #:test-backend #~'unittest))
37072 (native-inputs (list python-setuptools))
37073 (home-page "https://github.com/neurobin/cyclic")
37074 (synopsis "Handle cyclic relations")
37075 (description "This package handles cyclic relations compared by value.")
37076 (license license:bsd-3)))
37077
37078(define-public python-rcslice
37079 (package
37080 (name "python-rcslice")
37081 (version "1.1.0")
37082 (source
37083 (origin
37084 (method git-fetch)
37085 (uri (git-reference
37086 (url "https://github.com/neurobin/rcslice")
37087 ;; Releases are not tagged on github, see
37088 ;; https://github.com/neurobin/rcslice/issues/2
37089 (commit "1e1ef42cd262db76b67ded430630d5b499790f42")))
37090 (file-name (git-file-name name version))
37091 (sha256
37092 (base32 "1lmhcgghh60kvdlx0cin1phhgfy9jivc6l0mb4ibnpa1x1md0zvv"))))
37093 (build-system pyproject-build-system)
37094 (arguments (list #:test-backend #~'unittest))
37095 (native-inputs (list python-setuptools))
37096 (home-page "https://github.com/neurobin/rcslice")
37097 (synopsis "Slice a list of sliceables")
37098 (description
37099 "This package provides Python module to slice a list of sliceables (1
37100indexed, both start and end index are inclusive). Helps to slice file content
37101line by line or column by column or a combination of both.")
37102 (license license:bsd-3)))
37103
37104(define-public python-rpds-py
37105 (package
37106 (name "python-rpds-py")
37107 (version "0.30.0")
37108 (source (origin
37109 (method url-fetch)
37110 (uri (pypi-uri "rpds_py" version))
37111 (sha256
37112 (base32
37113 "110y8k62b9xb3slny7gf89943xpbji3s7vl7yz0g0jh1j37zg3yx"))))
37114 (build-system cargo-build-system)
37115 (arguments
37116 (list
37117 #:imported-modules `(,@%cargo-build-system-modules
37118 ,@%pyproject-build-system-modules)
37119 #:modules '((guix build cargo-build-system)
37120 ((guix build pyproject-build-system) #:prefix py:)
37121 (guix build utils))
37122 #:phases
37123 #~(modify-phases %standard-phases
37124 (add-after 'build 'build-python-module
37125 (assoc-ref py:%standard-phases 'build))
37126 (add-after 'build-python-module 'install-python-module
37127 (assoc-ref py:%standard-phases 'install)))
37128 #:install-source? #false))
37129 (inputs
37130 (cons maturin (cargo-inputs 'python-rpds-py)))
37131 (native-inputs
37132 (list python-wrapper))
37133 (home-page "https://github.com/crate-py/rpds")
37134 (synopsis "Bindings to Rust rpds for persistent data structures")
37135 (description "This package provides Python bindings to the Rust rpds crate
37136for persistent data structures. It was written initially to support replacing
37137@code{python-pyrsistent}.")
37138 (license license:expat)))
37139
37140(define-public python-nanoid
37141 (let ((commit "061f9a598f310b0e2e91b9ed6ce725a22770da64")
37142 (revision "0"))
37143 (package
37144 (name "python-nanoid")
37145 (version "2.0.0")
37146 (source
37147 (origin
37148 (method git-fetch)
37149 (uri
37150 (git-reference
37151 (url "https://github.com/puyuan/py-nanoid")
37152 (commit commit)))
37153 (file-name (git-file-name name commit))
37154 (sha256
37155 (base32 "0y1bcw0h27g8rkqq7cp33ywn0i0lp0q3rjixzkh4191y1dp9yf8s"))))
37156 (build-system pyproject-build-system)
37157 (native-inputs (list python-pytest python-setuptools))
37158 (home-page "https://github.com/puyuan/py-nanoid")
37159 (synopsis "Unique string ID generator")
37160 (description
37161 "This package provides a tiny, secure, URL-friendly, unique string ID
37162generator for Python.")
37163 (license license:expat))))
37164
37165(define-public python-misc-utils
37166 (package
37167 (name "python-misc-utils")
37168 (version "0.28")
37169 (source
37170 (origin
37171 (method git-fetch)
37172 (uri (git-reference
37173 (url "https://github.com/davidel/py_misc_utils")
37174 (commit version)))
37175 (file-name (git-file-name name version))
37176 (sha256
37177 (base32 "0zk3lr9xviqqsvag0is91p2f70w8qlmvk25pp2xprrh30fhxfa9g"))))
37178 (build-system pyproject-build-system)
37179 (arguments
37180 (list
37181 #:tests? #f ; see https://github.com/davidel/py_misc_utils/issues/1
37182 #:test-backend #~'custom
37183 #:test-flags #~(list "test/test_runner.py")))
37184 (propagated-inputs
37185 (list python-numpy python-pandas python-psutil python-pyyaml))
37186 (native-inputs (list python-setuptools))
37187 (home-page "https://github.com/davidel/py_misc_utils")
37188 (synopsis "Collection of Python utilities")
37189 (description "This package provides a collection of Python miscellaneous
37190utility tools mainly used by other projects of the same author.")
37191 (license license:asl2.0)))
37192
37193(define-public python-misskey
37194 (package
37195 (name "python-misskey")
37196 (version "4.1.0")
37197 (source (origin
37198 (method git-fetch)
37199 (uri (git-reference
37200 (url "https://github.com/YuzuRyo61/Misskey.py")
37201 (commit (string-append "v" version))))
37202 (file-name (git-file-name name version))
37203 (sha256
37204 (base32
37205 "0rma8pdsjsy00cg76q6q4qki4xpldykmz1m6dl3w2bjjxfhlbaz5"))))
37206 (build-system pyproject-build-system)
37207 (arguments (list #:tests? #f)) ;needs network
37208 (native-inputs (list python-setuptools))
37209 (propagated-inputs (list python-requests))
37210 (home-page "https://misskeypy.readthedocs.io")
37211 (synopsis "Python bindings for Misskey's API")
37212 (description
37213 "This package provides access to Misskey's API. Misskey is a SNS
37214platform using the ActivityPub protocol.")
37215 (license license:expat)))
37216
37217(define-public python-lief
37218 (package
37219 (name "python-lief")
37220 (version "1.0.0")
37221 (source
37222 (origin
37223 (method git-fetch)
37224 (uri (git-reference
37225 (url "https://github.com/lief-project/LIEF")
37226 (commit version)))
37227 (file-name (git-file-name name version))
37228 (sha256
37229 (base32 "0yhs1x8nli5lhwiq383nnfv8ajgbdidcjckdls1j0zrmyf9kbfa2"))))
37230 (build-system pyproject-build-system)
37231 (arguments
37232 (list
37233 ;; TODO: Tests neeed some setup, see:
37234 ;; <.github/workflows/linux-x86-64.yml>.
37235 #:tests? #f
37236 #:phases
37237 #~(modify-phases %standard-phases
37238 (add-before 'build 'change-directory
37239 (lambda _
37240 (chdir "api/python"))))))
37241 (native-inputs
37242 (list ninja
37243 python-pydantic
37244 python-scikit-build-core
37245 python-tomli))
37246 (home-page "https://github.com/lief-project/LIEF")
37247 (synopsis "Library to instrument executable formats")
37248 (description
37249 "@code{python-lief} is a cross platform library which can parse, modify
37250and abstract ELF, PE and MachO formats.")
37251 (license license:asl2.0)))
37252
37253(define-public python-eris
37254 (package
37255 (name "python-eris")
37256 (version "1.0.0")
37257 (source
37258 (origin
37259 (method url-fetch)
37260 (uri (pypi-uri "eris" version))
37261 (sha256
37262 (base32 "07a69y8w8n0zvdcd7qfcjf2s9hnd5jlbdl57g39ds2bxprzyc8va"))))
37263 (build-system pyproject-build-system)
37264 (arguments
37265 ;; No tests in PyPI, tests miss data files in Git:
37266 ;; - tests/test-vectors/test_encode
37267 ;; - tests/test-vectors/test_decode
37268 (list #:tests? #f))
37269 (native-inputs
37270 (list python-setuptools
37271 python-wheel))
37272 (propagated-inputs
37273 (list python-aiocoap
37274 python-pycryptodome))
37275 (home-page "https://codeberg.org/eris/python-eris")
37276 (synopsis "Python implementation of ERIS")
37277 (description
37278 "Python implementation of the @acronym{ERIS, Encoding for Robust Immutable
37279Storage}.")
37280 (license license:lgpl3+)))
37281
37282(define-public python-pymonad
37283 (package
37284 (name "python-pymonad")
37285 (version "2.4.0")
37286 (source
37287 (origin
37288 (method git-fetch)
37289 (uri (git-reference
37290 (url "https://github.com/jasondelaat/pymonad")
37291 (commit (string-append "v" version))))
37292 (file-name (git-file-name name version))
37293 (sha256
37294 (base32 "0ci1mpydldiyg9qv6d19ljhfh7wxlrl2k4mlvqd9bm7dqvpdjsx7"))))
37295 (build-system pyproject-build-system)
37296 (arguments
37297 (list
37298 #:phases
37299 #~(modify-phases %standard-phases
37300 (replace 'check
37301 (lambda* (#:key tests? #:allow-other-keys)
37302 (when tests?
37303 (invoke "./run_tests.sh")))))))
37304 (native-inputs (list python-setuptools))
37305 (home-page "https://github.com/jasondelaat/pymonad")
37306 (synopsis "Monadic style functional programming for Python")
37307 (description "@code{python-pymonad} implements data structures typically
37308available in purely functional or functional first programming languages such
37309as Haskell and F#. Included are
37310
37311@itemize
37312@item Monad and Monoid data types with several common monads such as Maybe and
37313State
37314@item Useful tools such as the @code{@@curry} decorator for defining curried
37315functions
37316@item Type annotations to help ensure correct usage
37317@end itemize")
37318 (license license:bsd-3)))
37319
37320(define-public python-markdown-strings
37321 (package
37322 (name "python-markdown-strings")
37323 (version "3.3.0")
37324 (source
37325 (origin
37326 (method git-fetch)
37327 (uri (git-reference
37328 (url "https://github.com/awesmubarak/markdown_strings.git")
37329 (commit (string-append "v" version))))
37330 (file-name (git-file-name name version))
37331 (sha256
37332 (base32 "0064ni7s3k8hqw61wi9m31icxp61f8adhija2qsp46hclcwx7vz2"))))
37333 (build-system pyproject-build-system)
37334 (arguments
37335 (list
37336 #:test-backend #~'custom
37337 #:test-flags #~(list "test.py")))
37338 (native-inputs (list python-setuptools))
37339 (propagated-inputs (list python-lxml python-six))
37340 (home-page "https://github.com/awesmubarak/markdown_strings")
37341 (synopsis "Python library to create markdown-formatted text")
37342 (description "This package allows the programmatic creation of
37343markdown-compliant strings.")
37344 (license license:expat)))
37345
37346(define-public python-icecream
37347 (package
37348 (name "python-icecream")
37349 (version "2.1.9")
37350 (source
37351 (origin
37352 (method git-fetch)
37353 (uri (git-reference
37354 (url "https://github.com/gruns/icecream")
37355 (commit (string-append "v" version))))
37356 (file-name (git-file-name name version))
37357 (sha256
37358 (base32 "1scxnjnnapqwzvhii07ax72yp6cj9ksn76bpnw04hg2i92snc3g2"))))
37359 (build-system pyproject-build-system)
37360 (native-inputs
37361 (list python-hypothesis
37362 python-pytest
37363 python-setuptools))
37364 (propagated-inputs
37365 (list python-asttokens
37366 python-colorama
37367 python-executing
37368 python-pygments))
37369 (home-page "https://github.com/gruns/icecream")
37370 (synopsis
37371 "Single function call to debug variables, expressions, and program execution")
37372 (description
37373 "This tool lets you debug variables, expressions, and program execution
37374with one function call. IceCream makes print debugging a little sweeter.")
37375 (license license:expat)))
37376
37377;; XXX: Deprecated on <2026-07-12>.
37378(define-deprecated/public-alias python-icegrams
37379 (@ (gnu packages language) python-icegrams))
37380
37381(define-public python-sbsv
37382 (package
37383 (name "python-sbsv")
37384 (version "0.3.1")
37385 (source
37386 (origin
37387 (method git-fetch)
37388 (uri (git-reference
37389 (url "https://github.com/hsh814/sbsv")
37390 (commit (string-append "v" version))))
37391 (file-name (git-file-name name version))
37392 (sha256
37393 (base32 "0wgqb7j2slp05zm6s2qqsb5821vzz1w3jdcwsn2k3jfj7mylnryq"))
37394 (modules '((guix build utils)))
37395 (snippet
37396 #~(begin ;unbundle c-sbsv
37397 (delete-file-recursively "libsbsv")
37398 (substitute* "setup.py"
37399 ((" *\"libsbsv/src/.*") "")
37400 ((" *include_dirs=.*,") "libraries=['sbsv'],")
37401 ((" *optional=True,.*") ""))))))
37402 (build-system pyproject-build-system)
37403 (arguments
37404 (list #:phases #~(modify-phases %standard-phases
37405 (add-after 'unpack 'remove-setuptools-legacy
37406 (lambda _
37407 (substitute* "pyproject.toml"
37408 ((":__legacy__") "")))))))
37409 (native-inputs (list python-setuptools python-pytest))
37410 (inputs (list c-sbsv))
37411 (home-page "https://github.com/hsh814/sbsv")
37412 (synopsis "Square bracket separated values")
37413 (description
37414 "This Python package provides a schema-driven structured log data format
37415for the ease of writing and parsing.")
37416 (license license:expat)))
37417
37418(define-public python-sqlglot
37419 (package
37420 (name "python-sqlglot")
37421 (version "26.33.0")
37422 (source
37423 (origin
37424 (method url-fetch)
37425 (uri (pypi-uri "sqlglot" version))
37426 (sha256
37427 (base32 "0wqdpix71bzx61qwk3mi7v42afmrj03dg81sykgdclgsg63jf5r8"))))
37428 (build-system pyproject-build-system)
37429 (arguments
37430 (list
37431 #:test-backend #~'unittest
37432 #:phases
37433 #~(modify-phases %standard-phases
37434 (add-before 'check 'pre-check
37435 (lambda _
37436 (setenv "SQLGLOTRS_TOKENIZER" "0"))))))
37437 (native-inputs
37438 (list python-duckdb
37439 python-pytz
37440 python-pandas
37441 python-setuptools
37442 python-setuptools-scm
37443 python-tzdata))
37444 (home-page "https://sqlglot.com/")
37445 (synopsis "Python SQL Parser and Transpiler")
37446 (description
37447 "SQLGlot is a no-dependency SQL parser, transpiler, optimizer, and
37448engine. It can be used to format SQL or translate between 31 different
37449dialects like DuckDB, Presto / Trino, Spark / Databricks, Snowflake, and
37450BigQuery. It aims to read a wide variety of SQL inputs and output
37451syntactically and semantically correct SQL in the targeted dialects.")
37452 (license license:expat)))
37453
37454(define-public python-sqlglotrs
37455 (package
37456 (inherit python-sqlglot)
37457 (name "python-sqlglotrs")
37458 (version "0.6.1")
37459 (source
37460 (origin
37461 (method url-fetch)
37462 (uri (pypi-uri "sqlglotrs" version))
37463 (sha256
37464 (base32 "1q8ii7fbgl2b2smi80bn5ifbs5xfzrkqqb4r1j5xx2k98jjsff7n"))))
37465 (build-system cargo-build-system)
37466 (arguments
37467 (list
37468 #:install-source? #false
37469 #:tests? #f ;no tests
37470 #:imported-modules `(,@%cargo-build-system-modules
37471 ,@%pyproject-build-system-modules)
37472 #:modules '((guix build cargo-build-system)
37473 ((guix build pyproject-build-system) #:prefix py:)
37474 (guix build utils))
37475 #:phases
37476 #~(modify-phases %standard-phases
37477 (add-after 'build 'build-python-module
37478 (assoc-ref py:%standard-phases 'build))
37479 (add-after 'build-python-module 'install-python-module
37480 (assoc-ref py:%standard-phases 'install))
37481 (add-after 'install-python-module 'add-install-to-pythonpath
37482 (assoc-ref py:%standard-phases 'add-install-to-pythonpath)))))
37483 (native-inputs
37484 (list maturin
37485 python-wrapper))
37486 (inputs
37487 (cargo-inputs 'python-sqlglotrs))))
37488
37489(define-public python-sqltrie
37490 (package
37491 (name "python-sqltrie")
37492 (version "0.11.2")
37493 (home-page "https://github.com/iterative/sqltrie/")
37494 (source
37495 (origin
37496 (method url-fetch)
37497 (uri (pypi-uri "sqltrie" version))
37498 (sha256
37499 (base32 "1ninmia5ka1nnv4gxqacvbmkfxwc7dilw141rxxk9zmbnf4p1x2d"))))
37500 (build-system pyproject-build-system)
37501 (arguments
37502 (list
37503 #:test-flags
37504 #~(list "--ignore=tests/benchmarks/"
37505 ;; <https://github.com/pyinstaller/pyinstaller> is not packaged
37506 ;; yet in Guix.
37507 "--ignore=src/sqltrie/__pyinstaller")))
37508 (native-inputs
37509 (list python-pytest
37510 python-pytest-mock
37511 python-pytest-sugar
37512 python-setuptools
37513 python-setuptools-scm))
37514 (propagated-inputs
37515 (list python-attrs
37516 python-orjson
37517 python-pygtrie))
37518 (synopsis "SQL-based prefix tree for Python")
37519 (description
37520 "Sqltrie is a SQL-based prefix tree inspired by pygtrie and
37521python-diskcache.")
37522 (license license:asl2.0)))
37523
37524(define-public python-socksipy-branch
37525 (package
37526 (name "python-socksipy-branch")
37527 (version "1.01")
37528 (source
37529 (origin
37530 (method url-fetch)
37531 (uri (pypi-uri "SocksiPy-branch" version))
37532 (sha256
37533 (base32 "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
37534 (build-system pyproject-build-system)
37535 (arguments (list #:tests? #f)) ; There are no tests
37536 (native-inputs (list python-setuptools))
37537 (home-page "https://code.google.com/archive/p/socksipy-branch/")
37538 (synopsis "Python SOCKS module")
37539 (description
37540 "SocksiPy - A Python SOCKS client module. It provides a socket-like
37541interface that supports connections to any TCP service through the use of a
37542SOCKS4, SOCKS5 or HTTP proxy. The original version was developed by Dan Haim,
37543this is a branch created by Mario Vilas to address some open issues,as the
37544original project seems to have been abandoned circa 2007.")
37545 (license license:bsd-3)))
37546
37547(define-public python-socksipychain
37548 (package
37549 (name "python-socksipychain")
37550 (properties '((commit . "570c75c55661db175bd733996ed1ab68fc4e3b33")
37551 (revision . "0")))
37552 (version (git-version "2.1.3"
37553 (assoc-ref properties 'revision)
37554 (assoc-ref properties 'commit)))
37555 (source
37556 (origin
37557 (method git-fetch)
37558 (uri (git-reference
37559 (url "https://github.com/pagekite/PySocksipyChain")
37560 (commit (assoc-ref properties 'commit))))
37561 (file-name (git-file-name name version))
37562 (sha256
37563 (base32 "1fi82id1qgh63wm8k1gcxpkaa8ic0mwliq7x3iy9lxihaqmr0zww"))))
37564 (build-system pyproject-build-system)
37565 (arguments (list #:tests? #f)) ; Tests try to access the network.
37566 (native-inputs (list python-setuptools))
37567 (home-page "http://pagekite.net/wiki/Floss/PySocksipyChain/")
37568 (synopsis "Python SOCKS module with chained proxies support")
37569 (description
37570 "SocksiPyChain is a modified version of the SocksiPy SOCKS module, which
37571adds support for arbitrary chaining of proxy servers and various modes of
37572TLS/SSL encryption. It was developed for use in PageKite, and also includes
37573a simple netcat replacement with chaining support.")
37574 (license license:bsd-3)))
37575
37576(define-public python-sortedcollections
37577 (package
37578 (name "python-sortedcollections")
37579 (version "2.1.0")
37580 (source
37581 (origin
37582 (method git-fetch)
37583 (uri (git-reference
37584 (url "https://github.com/grantjenks/python-sortedcollections")
37585 (commit (string-append "v" version))))
37586 (file-name (git-file-name name version))
37587 (sha256
37588 (base32 "1y2xsbh31jp9fsjy53g5ma974z7a9vcds6ij1vlh00nllzqlwihs"))))
37589 (build-system pyproject-build-system)
37590 (native-inputs (list python-setuptools python-pytest python-wheel))
37591 (propagated-inputs (list python-sortedcontainers))
37592 (home-page "https://www.grantjenks.com/docs/sortedcollections/")
37593 (synopsis "Python Sorted Collections")
37594 (description "Sorted Collections is a Python sorted collections library.")
37595 (license license:asl2.0)))
37596
37597(define-public python-sortedcontainers
37598 (package
37599 (name "python-sortedcontainers")
37600 (version "2.4.0")
37601 (source
37602 (origin
37603 (method git-fetch) ;no tests in PyPI archive
37604 (uri (git-reference
37605 (url "https://github.com/grantjenks/python-sortedcontainers")
37606 (commit (string-append "v" version))))
37607 (file-name (git-file-name name version))
37608 (sha256
37609 (base32 "190w2mvgvx0r5k0r8117slq48nh6k7xidbpsrp02wnmcd0rx45k1"))))
37610 (build-system pyproject-build-system)
37611 (arguments
37612 (list #:test-flags #~(list "--pyargs" "sortedcontainers")))
37613 (native-inputs
37614 (list python-pytest-bootstrap python-setuptools))
37615 (home-page "https://grantjenks.com/docs/sortedcontainers/")
37616 (synopsis "Sorted List, Sorted Dict, Sorted Set")
37617 (description
37618 "This package provides a sorted collections library, written in
37619pure-Python.")
37620 (license license:asl2.0)))
37621
37622(define-public python-soupsieve
37623 (package
37624 (name "python-soupsieve")
37625 (version "2.7")
37626 (source
37627 (origin
37628 (method url-fetch)
37629 (uri (pypi-uri "soupsieve" version))
37630 (sha256
37631 (base32 "0shjmvk8yz2ljc16pmizg16bqhk1i8n5al27mlp6sa16d6djya5d"))))
37632 (build-system pyproject-build-system)
37633 (native-inputs
37634 (list python-beautifulsoup4-bootstrap
37635 python-hatchling
37636 python-pytest))
37637 (home-page "https://github.com/facelessuser/soupsieve")
37638 (synopsis "CSS selector library")
37639 (description
37640 "Soup Sieve is a CSS selector library designed to be used with Beautiful
37641Soup 4. It aims to provide selecting, matching, and filtering using modern
37642CSS selectors. Soup Sieve currently provides selectors from the CSS level 1
37643specifications up through the latest CSS level 4 drafts and beyond (though
37644some are not yet implemented).")
37645 (license license:expat)))
37646
37647(define-public python-spectra
37648 (package
37649 (name "python-spectra")
37650 (version "0.1.0")
37651 (source
37652 (origin
37653 (method url-fetch)
37654 (uri (pypi-uri "spectra" version))
37655 (sha256
37656 (base32 "0gva48a1rn5yxj6dgy76dnndqaf09k5q2l9r41h2a66b84rf6c3a"))))
37657 (build-system pyproject-build-system)
37658 (propagated-inputs
37659 (list python-colormath2))
37660 (native-inputs
37661 (list python-pytest python-setuptools python-wheel))
37662 (home-page "https://github.com/jsvine/spectra")
37663 (synopsis "Color scales and color conversion")
37664 (description
37665 "This package provides a Python library intended to make color math,
37666color scales, and color space conversion easy. It has support for:
37667
37668@enumerate
37669@item Color scales
37670@item Color ranges
37671@item Color blending
37672@item Brightening/darkening colors
37673@item Saturating/desaturating colors
37674@item Conversion to/from multiple color spaces.
37675@end enumerate\n")
37676 (license license:expat)))
37677
37678(define-public python-speedy-antlr-tool
37679 (package
37680 (name "python-speedy-antlr-tool")
37681 (version "1.4.3")
37682 (source
37683 (origin
37684 (method git-fetch)
37685 (uri (git-reference
37686 (url "https://github.com/amykyta3/speedy-antlr-tool")
37687 (commit (string-append "v" version))))
37688 (file-name (git-file-name name version))
37689 (sha256
37690 (base32 "1bj67n3f6admjc7mfgnksb35s983inw2mh27d7wfp1xf697h0yp3"))))
37691 (build-system pyproject-build-system)
37692 (arguments '(#:tests? #f)) ;no test
37693 (native-inputs (list python-setuptools python-setuptools-scm))
37694 (propagated-inputs (list python-antlr4-runtime python-jinja2))
37695 (home-page "https://speedy-antlr-tool.readthedocs.io")
37696 (synopsis "Generate ANTLR parser as Python extension module")
37697 (description
37698 "This tool generates a Python extension that runs your parser
37699using ANTLR's C++ target, and then translates the parsed tree
37700back into Python.")
37701 (license license:bsd-3)))
37702
37703(define-public python-speg
37704 (package
37705 (name "python-speg")
37706 ;; 0.3 was released in 2017, the latest change on master HEAD is from 2018.
37707 (properties '((commit . "877acddfd5ac5ae8b4a4592d045e74e108477643")
37708 (revision . "0")))
37709 (version (git-version "0.3"
37710 (assoc-ref properties 'revision)
37711 (assoc-ref properties 'commit)))
37712 (source
37713 (origin
37714 (method git-fetch)
37715 (uri (git-reference
37716 (url "https://github.com/avakar/speg")
37717 (commit (assoc-ref properties 'commit))))
37718 (file-name (git-file-name name version))
37719 (sha256
37720 (base32 "0lhms1sfvmnplcwq8qwwvkrcz4sgi9yprvrkjz7p84fjhk86n4sb"))))
37721 (build-system pyproject-build-system)
37722 (native-inputs
37723 (list python-pytest
37724 python-setuptools))
37725 (propagated-inputs
37726 (list python-six))
37727 (home-page "https://github.com/avakar/speg")
37728 (synopsis "PEG-based parser interpreter with memoization")
37729 (description "This package is a PEG-based parser and interpreter with
37730memoization.")
37731 (license license:expat)))
37732
37733(define-public python-spinners
37734 (package
37735 (name "python-spinners")
37736 (version "0.0.24")
37737 (source
37738 (origin
37739 (method url-fetch)
37740 (uri (pypi-uri "spinners" version))
37741 (sha256
37742 (base32 "0zz2z6dpdjdq5z8m8w8dfi8by0ih1zrdq0caxm1anwhxg2saxdhy"))))
37743 (build-system pyproject-build-system)
37744 (arguments
37745 (list #:tests? #f)) ;no tests in PyPI archive, tests depend on Nose
37746 (native-inputs
37747 (list python-setuptools))
37748 (home-page "https://github.com/manrajgrover/py-spinners")
37749 (synopsis "Python library with graphical spinners for the terminal")
37750 (description
37751 "Spinners is a Python library that contains graphical spinners that can
37752be displayed terminal.")
37753 (license license:expat)))
37754
37755(define-public python-sre-yield
37756 (package
37757 (name "python-sre-yield")
37758 (version "1.2")
37759 (source
37760 (origin
37761 (method url-fetch)
37762 (uri (pypi-uri "sre_yield" version))
37763 (sha256
37764 (base32 "12kv3mvdr22g2v9wfr5aabh1f58s817dbh8mrlfzxzxs7hm1lkz9"))))
37765 (build-system pyproject-build-system)
37766 (arguments
37767 (list #:test-backend #~'unittest))
37768 (native-inputs
37769 (list python-setuptools))
37770 (home-page "https://github.com/google/sre_yield")
37771 (synopsis "Expands a regular expression to its possible matches")
37772 (description
37773 "The goal of sre_yield is to efficiently generate all values that can
37774match a given regular expression, or count possible matches efficiently. It
37775uses the parsed regular expression, so you get a much more accurate result
37776than trying to just split strings.")
37777 (license license:asl2.0)))
37778
37779(define-public python-srsly
37780 ;; TODO: Unbundle libraries https://github.com/explosion/srsly/pull/120
37781 ;; srsly.msgpack, srsly.cloudpickle, srsly.ruamel_yaml, srsly.ujson should
37782 ;; be replaced with msgpack, cloudpickle, ruamel.yaml, and ujson.
37783 (package
37784 (name "python-srsly")
37785 (version "2.5.4")
37786 (source
37787 (origin
37788 (method git-fetch)
37789 (uri (git-reference
37790 (url "https://github.com/explosion/srsly")
37791 (commit (string-append "release-v" version))))
37792 (file-name (git-file-name name version))
37793 (sha256
37794 (base32 "1w3h37d907rl2khysq70dk7b7m43hng3pisr0val0f1mp3w03cf2"))))
37795 (build-system pyproject-build-system)
37796 (arguments
37797 (list
37798 #:test-flags
37799 #~(list "--pyargs" "srsly")
37800 #:phases
37801 #~(modify-phases %standard-phases
37802 (add-before 'check 'remove-local-source
37803 (lambda _
37804 (delete-file-recursively "srsly"))))))
37805 (native-inputs
37806 (list python-cython
37807 python-mock
37808 python-numpy
37809 python-psutil
37810 python-pytest
37811 python-pytest-timeout
37812 python-setuptools))
37813 (propagated-inputs
37814 (list python-catalogue))
37815 (home-page "https://github.com/explosion/srsly")
37816 (synopsis "Serialization utilities for Python")
37817 (description "This package bundles some of the best Python serialization
37818libraries into one standalone package, with a high-level API that makes it
37819easy to write code that's correct across platforms and Pythons.")
37820 (license license:expat)))
37821
37822(define-public python-srt
37823 (package
37824 (name "python-srt")
37825 (version "3.5.3")
37826 (source
37827 (origin
37828 (method url-fetch)
37829 (uri (pypi-uri "srt" version))
37830 (sha256
37831 (base32 "1h0cxlp66i6wlq3g6dg1f1nw0sipm9nfsy7qs47p9w548d833128"))))
37832 (build-system pyproject-build-system)
37833 (native-inputs
37834 (list python-pytest
37835 python-setuptools
37836 python-wheel))
37837 (home-page "https://github.com/cdown/srt")
37838 (synopsis "SRT parsing library")
37839 (description
37840 "This package provides a Python library for parsing, modifying, and
37841composing subtitles in the SRT file format.")
37842 (license license:expat)))
37843
37844(define-public python-sshpubkeys
37845 (package
37846 (name "python-sshpubkeys")
37847 (version "3.2.0")
37848 (source
37849 (origin
37850 (method git-fetch)
37851 (uri (git-reference
37852 (url "https://github.com/ojarva/python-sshpubkeys")
37853 (commit (string-append "v" version))))
37854 (file-name (git-file-name name version))
37855 (sha256
37856 (base32 "0n7bjq8wifdw09mxkfzdkybij0csqjcifyxz8dbxy2iffjv5mqnq"))))
37857 (build-system pyproject-build-system)
37858 (arguments
37859 (list #:tests? #f)) ; XXX: All tests fail
37860 (native-inputs
37861 (list python-setuptools
37862 python-wheel))
37863 (propagated-inputs
37864 (list python-cryptography
37865 python-ecdsa))
37866 (home-page "https://github.com/ojarva/python-sshpubkeys")
37867 (synopsis "OpenSSH public key parser")
37868 (description
37869 "This package provides a library for parsing and validating OpenSSH
37870public key files.")
37871 (license license:bsd-3)))
37872
37873(define-public python-sshtunnel
37874 (let ((commit "dc0732884379a19a21bf7a49650d0708519ec54f")
37875 (revision "0"))
37876 (package
37877 (name "python-sshtunnel")
37878 (version (git-version "0.4.0" revision commit))
37879 (source
37880 (origin
37881 (method git-fetch)
37882 (uri (git-reference
37883 (url "https://github.com/pahaz/sshtunnel")
37884 (commit commit)))
37885 (file-name (git-file-name name version))
37886 (sha256
37887 (base32 "0fzq7pbqa6fjamzp61gjpd2hzph2ag7r507dlwpqilp6w8ipz49a"))
37888 (patches (search-patches "python-sshtunnel-pep518.patch"))))
37889 (build-system pyproject-build-system)
37890 (arguments
37891 (list
37892 #:phases
37893 #~(modify-phases %standard-phases
37894 (add-after 'unpack 'remove-deprecated-dsskey
37895 (lambda _
37896 (substitute* "sshtunnel.py"
37897 (("'dsa': paramiko\\.DSSKey,")
37898 "")
37899 (("paramiko\\.DSSKey, ")
37900 "")))))))
37901 (propagated-inputs (list python-paramiko))
37902 (native-inputs
37903 (list openssh python-mock python-pytest python-setuptools))
37904 (home-page "https://github.com/pahaz/sshtunnel")
37905 (synopsis "Python SSH tunnels library")
37906 (description
37907 "@code{sshtunnel} is a Python module for easily creating SSH tunnels
37908in the background, using Python.")
37909 (license license:expat))))
37910
37911(define-public python-stack-data
37912 (package
37913 (name "python-stack-data")
37914 (version "0.6.3")
37915 (source
37916 (origin
37917 (method url-fetch)
37918 (uri (pypi-uri "stack_data" version))
37919 (sha256
37920 (base32 "1fgh900z6g1amb2f2ql461c1y8lazymxi7nqvk8xri7ywj6pfsl3"))))
37921 (build-system pyproject-build-system)
37922 (arguments
37923 (list
37924 #:test-flags
37925 #~(list "-k" (string-join
37926 ;; XXX: Tests fail with HTML diff.
37927 (list "not test_executing_style_defs"
37928 "test_pygments_example"
37929 "test_example")
37930 " and not "))
37931 #:phases
37932 #~(modify-phases %standard-phases
37933 (add-after 'unpack 'set-home-env
37934 (lambda _
37935 (setenv "HOME" "/tmp"))))))
37936 (native-inputs
37937 (list python-cython
37938 python-littleutils
37939 python-pygments
37940 python-pytest
37941 python-setuptools
37942 python-setuptools-scm
37943 python-typeguard
37944 python-wheel))
37945 (propagated-inputs
37946 (list python-asttokens
37947 python-executing
37948 python-pure-eval))
37949 (home-page "https://github.com/alexmojaki/stack_data")
37950 (synopsis "Python stack frame and traceback manipulation library")
37951 (description
37952 "The @code{stack_data} Python library extracts data from stack frames and
37953tracebacks. Is can be used to display more useful tracebacks
37954than the default.")
37955 (license license:expat)))
37956
37957;; Python dead batteries backports. See: PEP 594 – Removing dead batteries
37958;; from the standard library, <https://peps.python.org/pep-0594/>.
37959(define %python-standard-pep-594-version "3.13.0")
37960(define %python-standard-pep-594-source
37961 (origin
37962 (method git-fetch)
37963 (uri (git-reference
37964 (url "https://github.com/youknowone/python-deadlib")
37965 (commit (string-append "v" %python-standard-pep-594-version))))
37966 (file-name (git-file-name "python-standard-pep-594"
37967 %python-standard-pep-594-version))
37968 (sha256
37969 (base32 "1a16pbdr2q6cy87zg3l33k0avrn08qyy8qm9mq2vwp3jvm6qa4dy"))))
37970
37971(define-public python-standard-asynchat
37972 (package
37973 (name "python-standard-asynchat")
37974 (version %python-standard-pep-594-version)
37975 (source %python-standard-pep-594-source)
37976 (build-system pyproject-build-system)
37977 (arguments
37978 (list
37979 #:phases
37980 #~(modify-phases %standard-phases
37981 (add-after 'unpack 'chdir
37982 (lambda _
37983 (chdir "asynchat"))))))
37984 (native-inputs
37985 (list python-setuptools))
37986 (propagated-inputs
37987 (list python-standard-asyncore))
37988 (home-page "https://github.com/youknowone/python-deadlib")
37989 (synopsis "Backport of asynchat from Python 3.11")
37990 (description
37991 "Standard library @code{asynchat} redistribution. Deprecated since
37992version 3.6 and removed in version 3.12; use @code{asyncio} instead. See:
37993@url{https://peps.python.org/pep-0594/, Removing dead batteries from the
37994standard library}.")
37995 (license license:psfl)))
37996
37997(define-public python-standard-asyncore
37998 (package
37999 (name "python-standard-asyncore")
38000 (version %python-standard-pep-594-version)
38001 (source %python-standard-pep-594-source)
38002 (build-system pyproject-build-system)
38003 (arguments
38004 (list
38005 #:phases
38006 #~(modify-phases %standard-phases
38007 (add-after 'unpack 'chdir
38008 (lambda _
38009 (chdir "asyncore"))))))
38010 (native-inputs
38011 (list python-setuptools))
38012 (home-page "https://github.com/youknowone/python-deadlib")
38013 (synopsis "Backport of asyncore from Python 3.11")
38014 (description
38015 "Standard library @code{asyncore} redistribution. Deprecated since
38016version 3.6 and removed in version 3.12; use @code{asyncio} instead. See:
38017@url{https://peps.python.org/pep-0594/, Removing dead batteries from the
38018standard library}.")
38019 (license license:psfl)))
38020
38021(define-public python-standard-smtpd
38022 (package
38023 (name "python-standard-smtpd")
38024 (version %python-standard-pep-594-version)
38025 (source %python-standard-pep-594-source)
38026 (build-system pyproject-build-system)
38027 (arguments
38028 (list
38029 ;; ImportError: cannot import name 'mock_socket' from 'test'
38030 #:tests? #f
38031 #:phases
38032 #~(modify-phases %standard-phases
38033 (add-after 'unpack 'chdir
38034 (lambda _
38035 (chdir "smtpd"))))))
38036 (native-inputs
38037 (list python-setuptools))
38038 (propagated-inputs
38039 (list
38040 python-standard-asynchat
38041 python-standard-asyncore))
38042 (home-page "https://github.com/youknowone/python-deadlib")
38043 (synopsis "Backport of smtpd from Python 3.11")
38044 (description
38045 "Standard library @code{smtpd} redistribution. Deprecated since version
380463.6 and removed in version 3.12; the @code{aiosmtpd} package is a recommended
38047replacement for this module, based on @code{asyncio}. See:
38048@url{https://peps.python.org/pep-0594/, Removing dead batteries from the
38049standard library}.")
38050 (license license:psfl)))
38051
38052(define-public python-stdio-mgr
38053 (package
38054 (name "python-stdio-mgr")
38055 (version "1.0.1")
38056 (source
38057 (origin
38058 (method git-fetch)
38059 (uri (git-reference
38060 (url "https://github.com/bskinn/stdio-mgr")
38061 (commit (string-append "v" version))))
38062 (file-name (git-file-name name version))
38063 (sha256
38064 (base32 "0xb6779s7j162xhig6vc63f9nn3v406fvjh1zqbqbf8zcl17ific"))))
38065 (build-system pyproject-build-system)
38066 (arguments
38067 (list
38068 ;; Do not run doctests requiring sphinx.
38069 #:test-flags #~(list "--ignore=README.rst")))
38070 (native-inputs
38071 (list python-pytest
38072 python-setuptools
38073 python-wheel))
38074 (propagated-inputs
38075 (list python-attrs))
38076 (home-page "https://github.com/bskinn/stdio-mgr")
38077 (synopsis "Context manager for mocking/wrapping stdin/stdout/stderr")
38078 (description
38079 "This package contains a context manager for mocking/wrapping
38080stdin/stdout/stderr.")
38081 (license license:expat)))
38082
38083;; TODO: This package is not necessary in Guix. It should be replaced by a
38084;; trivial python package providing the same functionality.
38085(define-public python-stdlib-list
38086 (package
38087 (name "python-stdlib-list")
38088 (version "0.11.1")
38089 (source
38090 (origin
38091 (method git-fetch)
38092 (uri (git-reference
38093 (url "https://github.com/jackmaney/python-stdlib-list")
38094 (commit (string-append "v" version))))
38095 (file-name (git-file-name name version))
38096 (sha256
38097 (base32 "14aw5xbqcs0ww9n4659z5dbs89xqpw2s4m3q4gp66br2xr9iybjf"))))
38098 (build-system pyproject-build-system)
38099 (native-inputs
38100 (list python-flit-core
38101 python-pytest
38102 python-sphinx))
38103 (home-page "https://github.com/jackmaney/python-stdlib-list")
38104 (synopsis "Python Standard Libraries")
38105 (description
38106 "This package contains a list of Python Standard Libraries.")
38107 (license license:expat)))
38108
38109(define-public python-stem
38110 ;; python-stem is mostly unmaintained, but still has occasional commits
38111 ;; added.
38112 (package
38113 (name "python-stem")
38114 (version "1.8.3")
38115 (source
38116 (origin
38117 (method git-fetch)
38118 (uri (git-reference
38119 (url "https://gitlab.torproject.org/tpo/network-health/stem.git")
38120 (commit version)))
38121 (file-name (git-file-name name version))
38122 (sha256
38123 (base32
38124 "0f8qrp6fz6l3s5dmvkx2zl7nsqs8qsx2yc5qc2ahy4c6jdvfbbhl"))))
38125 (build-system pyproject-build-system)
38126 (arguments
38127 (list
38128 #:test-backend #~'custom
38129 #:test-flags #~(list "run_tests.py" "--unit")
38130 #:phases
38131 #~(modify-phases %standard-phases
38132 (add-after 'unpack 'fix-python-312
38133 (lambda _
38134 (substitute* (find-files "." "\\.py$")
38135 (("assertRaisesRegexp") "assertRaisesRegex")))))))
38136 (native-inputs
38137 (list python-setuptools
38138 python-wheel))
38139 (home-page "https://stem.torproject.org/")
38140 (synopsis
38141 "Python controller library that allows applications to interact with Tor")
38142 (description
38143 "Stem is a Python controller library for Tor. With it you can use Tor's
38144 control protocol to script against the Tor process and read descriptor data
38145 relays publish about themselves.")
38146 (license license:lgpl3)))
38147
38148(define-public python-stltools
38149 (package
38150 (name "python-stltools")
38151 (version "2022.01.20")
38152 (source
38153 (origin
38154 (method git-fetch)
38155 (uri (git-reference
38156 (url "https://github.com/rsmith-nl/stltools")
38157 (commit version)))
38158 (file-name (git-file-name name version))
38159 (sha256
38160 (base32 "1k6dhszza4lpy46qffaqx5zr70ikfqqysbacy7zabnrvz09fd4rs"))))
38161 (build-system pyproject-build-system)
38162 (arguments
38163 (list
38164 #:phases
38165 #~(modify-phases %standard-phases
38166 ;; XXX: Project lacks correct setup.py, setup.cfg or pyproject.toml.
38167 (delete 'build)
38168 (replace 'install
38169 (lambda* (#:key inputs outputs #:allow-other-keys)
38170 (let ((moddir (string-append (site-packages inputs outputs)
38171 "/stltools"))
38172 (bindir (string-append #$output "/bin")))
38173 (copy-recursively "stltools" moddir)
38174 (mkdir-p bindir)
38175 (for-each
38176 (lambda (script)
38177 (let ((source (string-append script ".py"))
38178 (target (string-append bindir "/" script)))
38179 (copy-file source target)
38180 (chmod target #o555)))
38181 '("stl2pov" "stl2ps" "stl2pdf" "stlinfo"))))))))
38182 (native-inputs
38183 (list python-pytest
38184 python-setuptools))
38185 (propagated-inputs
38186 (list python-pycairo))
38187 (home-page "https://github.com/rsmith-nl/stltools")
38188 (synopsis "Python modules and scripts for handling STL files")
38189 (description
38190 "This package consists of Python modules and scripts for manipulating
38191stereolithography (STL) files. It can convert STL files into POV-ray meshes,
38192PDF and PostScript. The Python modules allow for reading and writing STL
38193files. It supports both the text and binary forms of STL.")
38194 (license license:expat)))
38195
38196(define-public python-stone
38197 (package
38198 (name "python-stone")
38199 (version "3.3.9")
38200 (source
38201 (origin
38202 (method git-fetch)
38203 (uri (git-reference
38204 (url "https://github.com/dropbox/stone")
38205 (commit (string-append "v" version))))
38206 (file-name (git-file-name name version))
38207 (sha256
38208 (base32 "1x0kj4jygssjn66lbkln95chhf85vzy1wnpziy9jvpf4kbc1bmfy"))))
38209 (build-system pyproject-build-system)
38210 (native-inputs
38211 (list python-pytest
38212 python-setuptools))
38213 (propagated-inputs
38214 (list python-jinja2
38215 python-packaging
38216 python-ply
38217 python-six)) ;hard requirement, still
38218 (home-page "https://github.com/dropbox/stone")
38219 (synopsis "Official Api Spec Language for Dropbox")
38220 (description
38221 "Stone is an interface description language (IDL) for APIs.")
38222 (license license:expat)))
38223
38224(define-public python-stopit
38225 (package
38226 (name "python-stopit")
38227 (version "1.1.2")
38228 (source
38229 (origin
38230 (method git-fetch)
38231 (uri (git-reference
38232 (url "https://github.com/glenfant/stopit")
38233 (commit version)))
38234 (file-name (git-file-name name version))
38235 (sha256
38236 (base32 "1g3xwd62389643hrz6bljq0ddd1yvwpfk4nrv29naf09pl1m8wmr"))))
38237 (build-system pyproject-build-system)
38238 (arguments
38239 (list #:test-backend #~'custom
38240 #:test-flags #~(list "tests.py")))
38241 (native-inputs (list python-setuptools))
38242 (home-page "https://pypi.python.org/pypi/stopit")
38243 (synopsis "Timeout control decorator and context managers")
38244 (description
38245 "Raise asynchronous exceptions in other threads, control the timeout of
38246blocks or callables with two context managers and two decorators.")
38247 (license license:expat)))
38248
38249(define-public python-straight-plugin
38250 (package
38251 (name "python-straight-plugin")
38252 (properties '((commit . "363b0af4a2560bf9a3cb61160ecf28a1a1b9c91f")
38253 (revision . "0")))
38254 (version (git-version "1.4.1"
38255 (assoc-ref properties 'revision)
38256 (assoc-ref properties 'commit)))
38257 (source
38258 (origin
38259 (method git-fetch)
38260 (uri (git-reference
38261 (url "https://github.com/ironfroggy/straight.plugin")
38262 (commit (assoc-ref properties 'commit))))
38263 (file-name (git-file-name name version))
38264 (sha256
38265 (base32 "03p2apj7i9m38nmccfhvzldmzd61icv145vpmifln3mvh09jm6c2"))))
38266 (build-system pyproject-build-system)
38267 (arguments
38268 (list
38269 ;; XXX: Some tests started failing with the move to [email protected].
38270 ;; Consider removing this leaf unmaintained package.
38271 #:tests? #f
38272 #:test-backend #~'custom
38273 #:test-flags #~(list "tests.py")
38274 #:phases
38275 #~(modify-phases %standard-phases
38276 (add-after 'unpack 'fix-python-3.12-incompatibility
38277 (lambda _
38278 (substitute* "straight/plugin/loaders.py"
38279 (("from imp import find_module")
38280 "")))))))
38281 (native-inputs (list python-mock python-setuptools))
38282 (home-page "https://github.com/ironfroggy/straight.plugin")
38283 (synopsis "Simple namespaced plugin facility")
38284 (description
38285 "Straight Plugin provides a type of plugin you can create from almost any
38286existing Python modules, and an easy way for outside developers to add
38287functionality and customization to your projects with their own plugins.")
38288 (license license:expat)))
38289
38290(define-public python-streamtracer
38291 (package
38292 (name "python-streamtracer")
38293 (version "2.4.0")
38294 (source
38295 (origin
38296 (method url-fetch)
38297 (uri (pypi-uri "streamtracer" version))
38298 (sha256
38299 (base32 "01ncr8q58xkz2dydjdg4a0c3kv4mpd6j1lzj4p0cmpg7jdi24cmr"))))
38300 (build-system pyproject-build-system)
38301 (arguments
38302 (list
38303 #:imported-modules `(,@%cargo-build-system-modules
38304 ,@%pyproject-build-system-modules)
38305 #:modules '(((guix build cargo-build-system) #:prefix cargo:)
38306 (guix build pyproject-build-system)
38307 (guix build utils))
38308 #:test-flags
38309 #~(list "--pyargs" "streamtracer")
38310 #:phases
38311 #~(modify-phases %standard-phases
38312 (add-after 'unpack 'prepare-cargo-build-system
38313 (lambda args
38314 (for-each (lambda (phase)
38315 (format #t "Running cargo phase: ~a~%" phase)
38316 (apply (assoc-ref cargo:%standard-phases phase)
38317 #:cargo-target #$(cargo-triplet)
38318 args))
38319 '(unpack-rust-crates
38320 configure
38321 check-for-pregenerated-files
38322 patch-cargo-checksums)))))))
38323 (native-inputs
38324 (append
38325 (list maturin
38326 python-pytest
38327 python-pytest-doctestplus
38328 rust
38329 `(,rust "cargo"))
38330 (or (and=> (%current-target-system)
38331 (compose list make-rust-sysroot))
38332 '())))
38333 (propagated-inputs
38334 (list python-numpy
38335 python-packaging))
38336 (inputs (cargo-inputs 'python-streamtracer))
38337 (home-page "https://github.com/sunpy/streamtracer")
38338 (synopsis "Rapid streamline tracing in Python")
38339 (description
38340 "streamtracer is a Python package for rapid streamline tracing on
38341regularly spaced grids. The actual streamline tracing is done at a low level
38342in Rust, with a nice Python API provided on top.")
38343 (license license:gpl3+)))
38344
38345(define-public python-strenum
38346 (package
38347 (name "python-strenum")
38348 (version "0.4.15")
38349 (source
38350 (origin
38351 (method git-fetch)
38352 (uri (git-reference
38353 (url "https://github.com/irgeek/StrEnum")
38354 (commit (string-append "v" version))))
38355 (file-name (git-file-name name version))
38356 (sha256
38357 (base32 "1bvk7v5f3sr7awcacdmw5lfzsnn6j52q45va9xpc71n5qxydqbfn"))
38358 (snippet #~(delete-file "versioneer.py"))))
38359 (build-system pyproject-build-system)
38360 (arguments
38361 (list #:test-flags #~(list "tests")))
38362 (native-inputs
38363 (list python-pytest
38364 python-pytest-pylint
38365 python-setuptools
38366 python-versioneer))
38367 (home-page "https://github.com/irgeek/StrEnum")
38368 (synopsis "Enum that inherits from str")
38369 (description "StrEnum is a Python @code{enum.Enum} that inherits from
38370@code{str} to complement @code{enum.IntEnum} in the standard library.")
38371 (license license:expat)))
38372
38373(define-public python-structlog
38374 (package
38375 (name "python-structlog")
38376 (version "25.5.0")
38377 (source
38378 (origin
38379 (method url-fetch)
38380 (uri (pypi-uri "structlog" version))
38381 (sha256
38382 (base32 "167wj0hxrsa9kbalh86vvwqs105zi8ld1ikh8lyibndypsij5189"))))
38383 (build-system pyproject-build-system)
38384 (native-inputs
38385 (list python-hatch-fancy-pypi-readme
38386 python-hatch-vcs
38387 python-hatchling
38388 python-pytest
38389 python-pytest-asyncio
38390 python-time-machine))
38391 (home-page "https://www.structlog.org/")
38392 (synopsis "Structured Logging for Python")
38393 (description "@code{structlog} changes logging in Python by adding structure
38394to your log entries.")
38395 (license (list license:asl2.0 license:expat))))
38396
38397(define-public python-style
38398 (package
38399 (name "python-style")
38400 (version "1.1.6")
38401 (source
38402 (origin
38403 (method url-fetch)
38404 (uri (pypi-uri "style" version))
38405 (sha256
38406 (base32 "1dcfb578v9mrwh92rgms87gql0gp4vgj6l9hpgyfg0wbd3rh3bfh"))))
38407 (build-system pyproject-build-system)
38408 (arguments
38409 (list #:tests? #f)) ;no tests in PyPI, package is 6y old
38410 (native-inputs
38411 (list python-setuptools))
38412 (home-page "https://github.com/lmittmann/style")
38413 (synopsis "Terminal string styling")
38414 (description
38415"@code{python-style} is a simple terminal string styling package. Its API is
38416a port of the chalk package for javascript.")
38417 (license license:expat)))
38418
38419(define-public python-svgelements
38420 (package
38421 (name "python-svgelements")
38422 (version "1.9.6")
38423 (source
38424 (origin
38425 (method git-fetch)
38426 (uri (git-reference
38427 (url "https://github.com/meerk40t/svgelements")
38428 (commit version)))
38429 (file-name (git-file-name name version))
38430 (sha256
38431 (base32 "0bpddyy4klmkkv6w06hqrv2m5ds1kxc0rl9pxnsw91wyfwcsq7cz"))))
38432 (build-system pyproject-build-system)
38433 (arguments
38434 (list
38435 #:phases
38436 #~(modify-phases %standard-phases
38437 (add-after 'unpack 'fix-python-incompatibilities
38438 (lambda _
38439 (substitute* (find-files "test" "\\.py$")
38440 (("(assert(|NotAlmost)Equal)s" all out in)
38441 out)))))))
38442 (native-inputs
38443 (list python-anyio
38444 python-pytest
38445 python-numpy
38446 python-pillow
38447 python-scipy
38448 python-setuptools))
38449 (home-page "https://github.com/meerk40t/svgelements")
38450 (synopsis "SVG parsing for elements, paths, and other SVG objects")
38451 (description
38452 "This module does high fidelity SVG parsing and geometric rendering.
38453The goal is to successfully and correctly process SVG for use with any scripts
38454that may need or want to use SVG files as geometric data.")
38455 (license license:expat)))
38456
38457(define-public python-svgutils
38458 (package
38459 (name "python-svgutils")
38460 (version "0.3.4")
38461 (source
38462 (origin
38463 (method url-fetch)
38464 (uri (pypi-uri "svgutils" version))
38465 (sha256
38466 (base32 "0lz0w2ajdvwd269a7ppnzawmx8px0116j0nx8xvhlihxrd28zx4y"))))
38467 (build-system pyproject-build-system)
38468 (arguments
38469 (list #:tests? #f)) ;no test in PyPI archive, depend on Nose
38470 (native-inputs
38471 (list python-setuptools))
38472 (propagated-inputs
38473 (list python-lxml))
38474 (home-page "https://svgutils.readthedocs.io")
38475 (synopsis "Python SVG editor")
38476 (description "This is an utility package that helps with editing and
38477concatenating SVG files. It is especially directed at scientists preparing
38478final figures for submission to journals. So far it supports arbitrary
38479placement and scaling of SVG figures and adding markers, such as labels.")
38480 (license license:expat)))
38481
38482(define-public python-svgwrite
38483 ;; XXX: Unmaintained since <2022-07-14>, used by python-qrbill.
38484 (package
38485 (name "python-svgwrite")
38486 (version "1.4.3")
38487 (source
38488 (origin
38489 (method git-fetch)
38490 (uri (git-reference
38491 (url "https://github.com/mozman/svgwrite")
38492 (commit (string-append "v" version))))
38493 (file-name (git-file-name name version))
38494 (sha256
38495 (base32 "14nvgsdhndpsgqlcp1vbmczd7rfyiddhjav2xja0a0rx2472psxq"))))
38496 (build-system pyproject-build-system)
38497 (arguments
38498 (list
38499 ;; Disable test which wants internet.
38500 #:test-flags
38501 #~(list "-k" "not test_embed_google_web_font")))
38502 (native-inputs (list python-pytest python-setuptools))
38503 (home-page "https://github.com/mozman/svgwrite")
38504 (synopsis "Python library to create SVG drawings")
38505 (description
38506 "This package provides a Python library to create SVG drawings.")
38507 (license license:expat)))
38508
38509(define-public python-swagger-spec-validator
38510 (package
38511 (name "python-swagger-spec-validator")
38512 (version "3.0.4")
38513 (source
38514 (origin
38515 (method git-fetch)
38516 (uri (git-reference
38517 (url "https://github.com/Yelp/swagger_spec_validator")
38518 (commit (string-append "v" version))))
38519 (file-name (git-file-name name version))
38520 (sha256
38521 (base32 "1vmwg0432s22g48i2ys1ay441wmgkhjann1s165r499wg3pksggi"))))
38522 (build-system pyproject-build-system)
38523 (native-inputs
38524 (list python-pytest
38525 python-setuptools))
38526 (propagated-inputs
38527 (list python-importlib-resources
38528 python-jsonschema
38529 python-pyyaml
38530 python-typing-extensions))
38531 (home-page "https://github.com/Yelp/swagger_spec_validator")
38532 (synopsis "Validation of Swagger specifications")
38533 (description
38534 "@code{swagger_spec_validator} provides a library for validating Swagger
38535API specifications.")
38536 (license license:asl2.0)))
38537
38538(define-public python-syllables
38539 (package
38540 (name "python-syllables")
38541 (version "1.0.3")
38542 (source
38543 (origin
38544 (method git-fetch)
38545 (uri (git-reference
38546 (url "https://github.com/prosegrinder/python-syllables")
38547 (commit (string-append "v" version))))
38548 (file-name (git-file-name name version))
38549 (sha256
38550 (base32 "12yv9d7hmrkw10p2nivk0c9b96rm6040zfif6pj4sm1vg3n8ik6n"))))
38551 (build-system pyproject-build-system)
38552 (native-inputs
38553 (list python-cmudict
38554 python-pytest
38555 python-setuptools))
38556 (home-page "https://github.com/prosegrinder/python-syllables")
38557 (synopsis "Package for estimating the number of syllables in a word")
38558 (description
38559 "This package provides a Python package for estimating the number of
38560syllables in a word.")
38561 (license license:gpl3)))
38562
38563(define-public python-sympy
38564 (package
38565 (name "python-sympy")
38566 (version "1.13.3")
38567 (source
38568 (origin
38569 (method url-fetch)
38570 (uri (pypi-uri "sympy" version))
38571 (sha256
38572 (base32 "1nf4zrjjbnv47n6sl6x9blfyarski61vdjaz4ygb62hfag3d4zxj"))))
38573 (build-system pyproject-build-system)
38574 (arguments
38575 '(#:phases
38576 (modify-phases %standard-phases
38577 (replace 'check
38578 (lambda* (#:key tests? #:allow-other-keys)
38579 (if tests?
38580 (invoke "python3" "-c"
38581 "import sympy; sympy.test(\"/core\")")))))))
38582 (propagated-inputs (list python-mpmath))
38583 (native-inputs
38584 (list python-hypothesis
38585 python-pytest
38586 python-setuptools
38587 python-wheel))
38588 (home-page "https://www.sympy.org/")
38589 (synopsis "Python library for symbolic mathematics")
38590 (description
38591 "SymPy is a Python library for symbolic mathematics. It aims to become a
38592full-featured computer algebra system (CAS) while keeping the code as simple
38593as possible in order to be comprehensible and easily extensible.")
38594 (license license:bsd-3)))
38595
38596(define-public python-tables
38597 (package
38598 (name "python-tables")
38599 (version "3.11.1")
38600 (source
38601 (origin
38602 (method git-fetch)
38603 (uri (git-reference
38604 (url "https://github.com/PyTables/PyTables")
38605 (commit (string-append "v" version))))
38606 (file-name (git-file-name name version))
38607 (sha256
38608 (base32 "03ifagvxzvgfdpjw508l1lq1j3ki9nbhxkls4zf1bchfdprv89fv"))
38609 (snippet '(begin
38610 (use-modules (guix build utils))
38611 (delete-file-recursively "hdf5-blosc")
38612 (delete-file-recursively "c-blosc")))))
38613 (build-system pyproject-build-system)
38614 (arguments
38615 (list
38616 #:test-flags
38617 ;; Performing only a light (yet comprehensive) subset of the test suite.
38618 ;; If you want a more complete test, try passing the --heavy flag to
38619 ;; this script (or set the 'heavy' parameter in case you are using
38620 ;; tables.test() call). The whole suite will take more than 4 hours to
38621 ;; complete on a relatively modern CPU and around 512 MB of main memory.
38622 #~(list "--pyargs" "tables.tests.test_all")
38623 #:phases
38624 #~(modify-phases %standard-phases
38625 (add-after 'unpack 'disable-tuning
38626 (lambda _
38627 (substitute* "setup.py"
38628 (("cpu_flags = .*")
38629 "cpu_flags = ['sse2']\n"))))
38630 (add-after 'unpack 'fix-reference-to-blosc2
38631 (lambda* (#:key inputs #:allow-other-keys)
38632 (substitute* "tables/__init__.py"
38633 (("\"\",") ;default
38634 (string-append "'"
38635 (dirname
38636 (search-input-file inputs "/lib/libblosc2.so"))
38637 "',\n")))))
38638 (add-before 'build 'pre-build
38639 (lambda _
38640 (substitute* "setup.py"
38641 (("hdf5-blosc/src")
38642 (format #f "~a/src"
38643 #$(package-source
38644 (this-package-input "hdf5-blosc-parallel-openmpi")))))
38645 (invoke "make" "distclean") ;Regenerate C code with Cython
38646 (setenv "BLOSC2_DIR" #$(this-package-input "cblosc2"))
38647 (setenv "BLOSC_DIR" #$(this-package-input "c-blosc"))
38648 (setenv "BZIP2_DIR" #$(this-package-input "bzip2"))
38649 (setenv "HDF5_DIR" #$(this-package-input "hdf5-parallel-openmpi"))
38650 (setenv "LZO_DIR" #$(this-package-input "lzo"))))
38651 (add-before 'check 'pre-check
38652 (lambda _
38653 (setenv "HOME" "/tmp"))))))
38654 (native-inputs
38655 (list pkg-config
38656 python-cython
38657 python-pytest
38658 python-setuptools
38659 python-sphinx))
38660 (inputs
38661 (list bzip2
38662 c-blosc
38663 c-blosc2
38664 hdf5-parallel-openmpi
38665 hdf5-blosc-parallel-openmpi
38666 lzo))
38667 (propagated-inputs
38668 (list python-blosc2
38669 python-numexpr
38670 python-numpy
38671 python-packaging
38672 python-py-cpuinfo
38673 python-typing-extensions))
38674 (home-page "https://www.pytables.org/")
38675 (synopsis "Hierarchical datasets for Python")
38676 (description "PyTables is a package for managing hierarchical datasets and
38677designed to efficiently cope with extremely large amounts of data.")
38678 (license license:bsd-3)))
38679
38680(define-public python-tablib
38681 (package
38682 (name "python-tablib")
38683 (version "3.9.0")
38684 (source
38685 (origin
38686 (method url-fetch)
38687 (uri (pypi-uri "tablib" version))
38688 (sha256
38689 (base32 "1qjzbpaln1grr5ngcm2apd5dxp0gcrwis5n60hg60d8gvf7bsshv"))))
38690 (build-system pyproject-build-system)
38691 (native-inputs
38692 (list python-pytest python-setuptools python-setuptools-scm))
38693 (inputs ;; [cli]
38694 (list python-tabulate))
38695 (propagated-inputs
38696 (list python-markuppy
38697 python-odfpy
38698 python-openpyxl
38699 python-pyyaml
38700 python-xlrd
38701 python-xlwt))
38702 (home-page "https://tablib.readthedocs.io")
38703 (synopsis "Format agnostic tabular data library")
38704 (description
38705 "@code{tablib} is a format-agnostic tabular dataset library,
38706written in Python. Supported output formats are Excel (Sets + Books),
38707JSON (Sets + Books), YAML (Sets + Books), HTML (Sets), Jira (Sets),
38708TSV (Sets), ODS (Sets), CSV (Sets), and DBF (Sets).
38709
38710@code{tablib} also supports Pandas DataFrames (Sets). Anyhow, since pandas is
38711quite huge, this Guix package doesn't depend on pandas. In case, just also
38712install @code{python-pandas}.")
38713 (license license:expat)))
38714
38715(define-public python-tabulate
38716 (package
38717 (name "python-tabulate")
38718 (version "0.9.0")
38719 (source
38720 (origin
38721 (method url-fetch)
38722 (uri (pypi-uri "tabulate" version))
38723 (sha256
38724 (base32 "0g4b0qnbw55igbpxfxzciqvb6w8ncw4gmcgyq0lyavcnylmv3580"))))
38725 (build-system pyproject-build-system)
38726 (native-inputs
38727 (list python-pytest
38728 python-setuptools-scm
38729 python-setuptools))
38730 (propagated-inputs
38731 (list python-wcwidth))
38732 (home-page "https://github.com/astanin/python-tabulate")
38733 (synopsis "Pretty-print tabular data")
38734 (description
38735 "Tabulate is a library and command-line utility to pretty-print tabular
38736data in Python.")
38737 (license license:expat)))
38738
38739(define-public python-takethetime
38740 (package
38741 (name "python-takethetime")
38742 (version "0.3.1")
38743 (source
38744 (origin
38745 (method url-fetch)
38746 (uri (pypi-uri "TakeTheTime" version))
38747 (sha256
38748 (base32 "1y9gzqb9l1f2smx8783ccjzjvby5mphshgrfks7s75mml59h9qyv"))))
38749 (build-system pyproject-build-system)
38750 (arguments
38751 (list #:tests? #f)) ; tests are time dependent and not provided in PyPI
38752 (native-inputs
38753 (list python-setuptools
38754 python-wheel))
38755 (home-page "https://github.com/ErikBjare/TakeTheTime")
38756 (synopsis "Timing chunks of code")
38757 (description
38758 "This package implements a functionality for time taking using context
38759managers.")
38760 (license license:expat)))
38761
38762(define-public python-targ
38763 (package
38764 (name "python-targ")
38765 (version "0.6.0")
38766 (source
38767 (origin
38768 (method git-fetch)
38769 (uri (git-reference
38770 (url "https://github.com/piccolo-orm/targ/")
38771 (commit version)))
38772 (file-name (git-file-name name version))
38773 (sha256
38774 (base32 "05avykfnbni4iwkv4a2nwpwyiznqv51jn3bn5am91iv7dbq1w94v"))))
38775 (build-system pyproject-build-system)
38776 (native-inputs
38777 (list python-pytest
38778 python-setuptools))
38779 (propagated-inputs
38780 (list python-colorama
38781 python-docstring-parser))
38782 (home-page "https://github.com/piccolo-orm/targ/")
38783 (synopsis "Python CLI builder using type hints and docstrings")
38784 (description
38785 "Targ is a package to build a Python @acronym{Command Line Interface,
38786CLI} for applications by using type hints and docstrings.")
38787 (license license:expat)))
38788
38789(define-public python-tasklib
38790 (package
38791 (name "python-tasklib")
38792 (version "2.5.1")
38793 (source
38794 (origin
38795 (method git-fetch)
38796 (uri (git-reference
38797 (url "https://github.com/GothenburgBitFactory/tasklib")
38798 (commit version)))
38799 (file-name (git-file-name name version))
38800 (sha256
38801 (base32 "1vhqqbkci485m663vbfq0wki6qzrmb0hn1yaszc19kxvp3j8d7zc"))))
38802 (build-system pyproject-build-system)
38803 (arguments
38804 (list
38805 #:test-backend
38806 #~'unittest))
38807 (inputs (list taskwarrior))
38808 (native-inputs (list python-setuptools tzdata-for-tests))
38809 (home-page "https://github.com/GothenburgBitFactory/tasklib")
38810 (synopsis "Official Taskwarrior library for Python")
38811 (description "@code{tasklib} is a Python library for interacting with
38812Taskwarrior databases, using a queryset API similar to that of Django's ORM.")
38813 (license license:bsd-3)))
38814
38815(define-public python-tasklogger
38816 (package
38817 (name "python-tasklogger")
38818 (version "1.2.0")
38819 (source
38820 (origin
38821 (method url-fetch)
38822 (uri (pypi-uri "tasklogger" version))
38823 (sha256
38824 (base32 "1901mibcp6aiyjy8afnybrxnb0dkbdxlbvjqbr3gginlw7dr18xh"))))
38825 (build-system pyproject-build-system)
38826 (native-inputs
38827 (list python-pytest
38828 python-numpy
38829 python-setuptools))
38830 (propagated-inputs
38831 (list python-deprecated))
38832 (home-page "https://github.com/scottgigante/tasklogger")
38833 (synopsis "Extension to the core Python logging library")
38834 (description "This package provides an extension to the core Python
38835logging library for logging the beginning and completion of tasks and
38836subtasks.")
38837 (license license:gpl2)))
38838
38839(define-public python-tatsu
38840 (package
38841 (name "python-tatsu")
38842 (version "5.13.2")
38843 (source
38844 (origin
38845 (method git-fetch)
38846 (uri (git-reference
38847 (url "https://github.com/neogeny/TatSu")
38848 (commit (string-append "v" version))))
38849 (file-name (git-file-name name version))
38850 (sha256
38851 (base32 "0ppgi5r55iirzhnf988b32yvh8ly8lzxbg59y0zgqfaxbma50650"))))
38852 (build-system pyproject-build-system)
38853 (native-inputs
38854 (list python-pytest
38855 python-setuptools))
38856 (home-page "https://tatsu.readthedocs.io/en/stable/")
38857 (synopsis "PEG/Packrat Parser generator for Python")
38858 (description
38859 "TatSu (竜) takes a grammar in a variation of Extended Backus-Naur
38860Form (EBNF) as input, and outputs a memoizing Parsing Expression Grammar (PEG)
38861or Packrat parser in Python.")
38862 (license license:bsd-2)))
38863
38864(define-public python-tblib
38865 (package
38866 (name "python-tblib")
38867 (version "3.1.0")
38868 (source
38869 (origin
38870 (method url-fetch)
38871 (uri (pypi-uri "tblib" version))
38872 (sha256
38873 (base32 "0lnnbicpxx774s29nkbic4rrqvy4rhxd8skx5pp6zxh7kwn4qh06"))))
38874 (build-system pyproject-build-system)
38875 (arguments
38876 (list
38877 ;; Don't run benchmark tests.
38878 #:test-flags #~(list "--ignore=tests/test_perf.py")
38879 #:phases
38880 #~(modify-phases %standard-phases
38881 (add-after 'unpack 'fix-pytest-config
38882 (lambda _
38883 (substitute* "pytest.ini"
38884 (("--benchmark-disable") "")))))))
38885 (native-inputs
38886 (list python-pytest
38887 python-setuptools))
38888 (home-page "https://github.com/ionelmc/python-tblib")
38889 (synopsis "Traceback serialization library")
38890 (description
38891 "Traceback serialization allows you to:
38892
38893@enumerate
38894@item Pickle tracebacks and raise exceptions with pickled tracebacks in
38895different processes. This allows better error handling when running code over
38896multiple processes (imagine multiprocessing, billiard, futures, celery etc).
38897
38898@item Parse traceback strings and raise with the parsed tracebacks.
38899@end enumerate\n")
38900 (license license:bsd-3)))
38901
38902(define-public python-tcolorpy
38903 (package
38904 (name "python-tcolorpy")
38905 (version "0.1.7")
38906 (source
38907 (origin
38908 (method git-fetch)
38909 (uri (git-reference
38910 (url "https://github.com/thombashi/tcolorpy")
38911 (commit (string-append "v" version))))
38912 (file-name (git-file-name name version))
38913 (sha256
38914 (base32 "18cck1s0w9i5llaaw9s37g61dqg3vpjjgd3ywc72n1i02k0yj1fh"))))
38915 (build-system pyproject-build-system)
38916 (native-inputs (list python-pytest python-setuptools python-setuptools-scm))
38917 (home-page "https://github.com/thombashi/tcolorpy")
38918 (synopsis "Apply true color for terminal text")
38919 (description
38920 "@code{tcolorpy} is a Python library to apply true color for terminal
38921text.
38922You can set the following @code{tcolor} arguments:
38923
38924@itemize
38925@item color
38926@item bgcolor
38927@item styles
38928@end itemize")
38929 (license license:expat)))
38930
38931(define-public python-tdir
38932 (package
38933 (name "python-tdir")
38934 (version "1.10.0")
38935 (source
38936 (origin
38937 (method git-fetch)
38938 (uri (git-reference
38939 (url "https://github.com/rec/tdir")
38940 (commit (string-append "v" version))))
38941 (file-name (git-file-name name version))
38942 (sha256
38943 (base32 "10kl0w40n53ynhxlvkv56gywswnrb2drmrw972k0p66sihlw9y2p"))))
38944 (build-system pyproject-build-system)
38945 (native-inputs (list python-hatchling python-pytest))
38946 (propagated-inputs (list python-dek python-xmod))
38947 (home-page "https://rec.github.io/tdir/")
38948 (synopsis "Create, fill a temporary directory")
38949 (description
38950 "This is Python helper module to run code inside a temporary directory
38951filled with zero or more files. @code{tdir()} runs code in a temporary
38952directory pre-filled with files: it can either be used as a context manager,
38953or a decorator for functions or classes. @code{tdir.fill()} is a tiny
38954function that recursively fills a directory.")
38955 (license license:expat)))
38956
38957(define-public python-telethon
38958 (package
38959 (name "python-telethon")
38960 (version "1.44.0")
38961 (source
38962 (origin
38963 (method git-fetch)
38964 (uri (git-reference
38965 (url "https://codeberg.org/Lonami/Telethon")
38966 (commit (string-append "v" version))))
38967 (file-name (git-file-name name version))
38968 (sha256
38969 (base32 "1y1bzna7gqs6ck4jmh2spm7s8frw0qs6p52v9ar6qbbk1h7yacip"))))
38970 (build-system pyproject-build-system)
38971 (arguments
38972 (list
38973 #:phases
38974 #~(modify-phases %standard-phases
38975 (add-after 'build 'generate-tl-code
38976 (lambda _
38977 ;; The custom hatchling build hook (hatch_build.py) generates
38978 ;; telethon/tl/{types,functions}.py only inside hatchling's
38979 ;; isolated build directory, but deletes them again.
38980 ;; Regenerate the same code here too for tests; see
38981 ;; readthedocs/developing/project-structure.rst.
38982 (invoke "python3" "setup.py" "gen"))))))
38983 (native-inputs
38984 (list python-hatchling
38985 python-pytest
38986 python-pytest-asyncio
38987 python-pytest-trio
38988 python-setuptools))
38989 (propagated-inputs
38990 (list python-rsa python-pyaes))
38991 (home-page "https://docs.telethon.dev")
38992 (synopsis "Full-featured Telegram client library for Python 3")
38993 (description "This library is designed to make it easy to write Python
38994programs that can interact with Telegram.")
38995 (license license:expat)))
38996
38997(define-public python-tempora
38998 (package
38999 (name "python-tempora")
39000 (version "5.8.1")
39001 (source
39002 (origin
39003 (method url-fetch)
39004 (uri (pypi-uri "tempora" version))
39005 (sha256
39006 (base32 "1k9d6qmlp0i4v3d0dcqcsndvmng3lfdh4y0p8gwy9i8cg7ndkddb"))))
39007 (build-system pyproject-build-system)
39008 (arguments
39009 (list
39010 ;; Do not test the myproject.toml build as it tries to pull dependencies
39011 ;; from the Internet.
39012 #:test-flags #~(list "-k" "not project"
39013 "tests")))
39014 (native-inputs
39015 (list python-freezegun
39016 python-pytest
39017 python-setuptools
39018 python-setuptools-scm
39019 python-tzdata))
39020 (propagated-inputs (list python-dateutil python-jaraco-functools))
39021 (home-page "https://github.com/jaraco/tempora")
39022 (synopsis "Python date and time objects and routines")
39023 (description
39024 "The @code{tempora} Python library contains miscellaneous date and time
39025related utilities and constants, routines for measuring, profiling, and
39026getting datetime-aware @acronym{UTC, Coordinated Universal Time} values as
39027well as an event scheduler.")
39028 (license license:expat)))
39029
39030(define-public python-tenacity
39031 (package
39032 (name "python-tenacity")
39033 (version "9.1.4")
39034 (source
39035 (origin
39036 (method url-fetch)
39037 (uri (pypi-uri "tenacity" version))
39038 (sha256
39039 (base32 "0fprkhbrh26zm9jxpwmcz5vpr989hd4kpcqs110x0arz4r61vcxd"))))
39040 (build-system pyproject-build-system)
39041 (native-inputs
39042 (list python-pytest
39043 python-setuptools
39044 python-setuptools-scm
39045 python-tornado
39046 python-typeguard))
39047 (home-page "https://github.com/jd/tenacity")
39048 (synopsis "Retrying library for python")
39049 (description
39050 "Tenacity is a general-purpose python library to simplify the task of
39051adding retry behavior to just about anything.")
39052 (license license:asl2.0)))
39053
39054(define-public python-term-background
39055 (package
39056 (name "python-term-background")
39057 (version "1.0.5")
39058 (source
39059 (origin
39060 (method url-fetch)
39061 (uri (pypi-uri "term_background" version))
39062 (sha256
39063 (base32 "1gcr4aidgsl9kv2m0jw01svcbi3zlx18m2fpdh3yacvapzgjir2h"))))
39064 (build-system pyproject-build-system)
39065 (native-inputs
39066 (list python-pytest
39067 python-setuptools
39068 python-setuptools-scm))
39069 (home-page "http://github.com/rocky/shell-term-background")
39070 (synopsis "Determine if shell has a light or dark background")
39071 (description "This package determines if shell has a light or dark
39072background.")
39073 (license license:gpl2+)))
39074
39075(define-public python-term-image
39076 (package
39077 (name "python-term-image")
39078 (properties '((commit . "a40a12bb0a12944b7d7a182e93f1caad4261693a")
39079 (revision . "0")))
39080 (version (git-version "0.7.2"
39081 (assoc-ref properties 'revision)
39082 (assoc-ref properties 'commit)))
39083 (source
39084 (origin
39085 (method git-fetch)
39086 (uri (git-reference
39087 (url "https://github.com/AnonymouX47/term-image")
39088 (commit (assoc-ref properties 'commit))))
39089 (file-name (git-file-name name version))
39090 (sha256
39091 (base32 "1g1a5b756l7bj69zwy9c86c72bwfb38iifv7z5lfr870i93f1k8r"))))
39092 (build-system pyproject-build-system)
39093 (arguments
39094 (list
39095 #:test-flags
39096 #~(list "tests"
39097 ;; These tests require network access.
39098 "-k" (string-append "not test_from_url"
39099 " and not test_source"
39100 " and not test_close"))
39101 #:phases
39102 #~(modify-phases %standard-phases
39103 (add-after 'unpack 'bump-pillow-requirement
39104 (lambda _
39105 (substitute* "src/term_image/image/common.py"
39106 (("\\.getdata")
39107 ".get_flattened_data"))
39108 (let* ((major #$(version-major
39109 (package-version
39110 (this-package-input "python-pillow"))))
39111 (next (number->string (+ 1 (string->number major)))))
39112 (substitute* "pyproject.toml"
39113 (("pillow>=9.1,<12")
39114 (string-append "pillow>=9.1,<" next)))))))))
39115 (propagated-inputs (list python-pillow python-requests))
39116 (native-inputs
39117 (list python-pytest
39118 python-setuptools
39119 python-urwid))
39120 (home-page "https://github.com/AnonymouX47/term-image")
39121 (synopsis "Display images in the terminal")
39122 (description "term-image is a library and program to display images on
39123compatible terminals.
39124
39125Features:
39126@enumerate
39127@item Multiple image formats (basically all formats supported by
39128@code{PIL.Image.open()})
39129@item Multiple image source types: PIL image instance, local file, URL
39130@item Multiple image render styles (with automatic support detection)
39131@item Support for multiple terminal graphics protocols, including Kitty
39132@item Transparency support (with multiple options)
39133@item Animated image support (including transparent ones)
39134@item Integration into various TUI / terminal-based output libraries
39135@item Terminal size awareness
39136@item Automatic and manual image sizing
39137@item Horizontal and vertical alignment
39138@item Automatic and manual font ratio adjustment (to preserve image aspect
39139ratio)
39140@end enumerate")
39141 (license license:expat)))
39142
39143(define-public python-termcolor
39144 (package
39145 (name "python-termcolor")
39146 (version "2.5.0")
39147 (source
39148 (origin
39149 (method url-fetch)
39150 (uri (pypi-uri "termcolor" version))
39151 (sha256
39152 (base32 "0vwaxyr2vk8gi7s1slq74nb0ssbb0wcn208ziqp48j3dv8kqv3cr"))))
39153 (build-system pyproject-build-system)
39154 (arguments
39155 (list
39156 #:phases
39157 #~(modify-phases %standard-phases
39158 (add-after 'unpack 'relax-coverage-requirements
39159 (lambda _
39160 (substitute* "pyproject.toml"
39161 ((".*coverage.*") "")))))))
39162 (native-inputs
39163 (list python-hatch-vcs python-hatchling python-pytest))
39164 (home-page "https://pypi.org/project/termcolor/")
39165 (synopsis "ANSII Color formatting for terminal output")
39166 (description
39167 "This package provides ANSII Color formatting for output in terminals.")
39168 (license license:expat)))
39169
39170(define-public python-termcolor-1
39171 (package
39172 (inherit python-termcolor)
39173 (version "1.1.0")
39174 (source
39175 (origin
39176 (method url-fetch)
39177 (uri (pypi-uri "termcolor" version))
39178 (sha256
39179 (base32
39180 "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
39181 ;; There are no tests
39182 (arguments (list #:tests? #false))
39183 (native-inputs
39184 (list python-setuptools
39185 python-wheel))))
39186
39187(define-public python-termcolor-next
39188 (package
39189 (inherit python-termcolor)
39190 (name "python-termcolor-next")
39191 (version "3.1.0")
39192 (source
39193 (origin
39194 (method url-fetch)
39195 (uri (pypi-uri "termcolor" version))
39196 (sha256
39197 (base32 "0w2rwl4h7664illllkmicdh3fz3z3pznqxbaxkp0j6aqxvxxfvba"))))
39198 (arguments '())))
39199
39200(define-public python-terminaltables
39201 (package
39202 (name "python-terminaltables")
39203 (version "3.1.0")
39204 (source
39205 (origin
39206 (method git-fetch)
39207 (uri (git-reference
39208 (url "https://github.com/Robpol86/terminaltables")
39209 (commit (string-append "v" version))))
39210 (file-name (git-file-name name version))
39211 (sha256 (base32 "1jlm7n6kxypbr8mvwpd7hf9hbfk0a002ad03wqgxlri4aw8pk39a"))))
39212 (build-system pyproject-build-system)
39213 ;; XXX: A lot of test fail with flaky behavior.
39214 (arguments (list #:tests? #f))
39215 (native-inputs
39216 (list python-colorclass
39217 python-colorama
39218 python-pytest
39219 python-setuptools
39220 python-termcolor))
39221 (home-page "https://github.com/Robpol86/terminaltables")
39222 (synopsis
39223 "Generate simple tables in terminals from a nested list of strings")
39224 (description
39225 "This package makes it easy to draw tables in terminal/console
39226applications from a list of lists of strings. It supports multi-line rows.")
39227 (license license:expat)))
39228
39229(define-public python-termstyle
39230 (package
39231 (name "python-termstyle")
39232 (version "0.1.11")
39233 (source
39234 (origin
39235 (method url-fetch)
39236 (uri (pypi-uri "termstyle" version))
39237 (sha256
39238 (base32 "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g"))))
39239 (build-system pyproject-build-system)
39240 (arguments
39241 (list #:test-backend #~'custom
39242 #:test-flags #~(list "test3.py")))
39243 (native-inputs
39244 (list python-setuptools))
39245 (home-page "https://github.com/gfxmonk/termstyle")
39246 (synopsis "Console text coloring for Python")
39247 (description "This package provides console text coloring for Python.")
39248 (license license:bsd-3)))
39249
39250(define-public python-text-unidecode
39251 (package
39252 (name "python-text-unidecode")
39253 (version "1.3")
39254 (source
39255 (origin
39256 (method url-fetch)
39257 (uri (pypi-uri "text-unidecode" version))
39258 (sha256
39259 (base32 "14xb99fdv52j21dsljgsbmbaqv10ps4b453p229r29sdn4xn1mms"))))
39260 (build-system pyproject-build-system)
39261 (native-inputs
39262 (list python-pytest
39263 python-setuptools))
39264 (home-page "https://github.com/kmike/text-unidecode/")
39265 (synopsis "Decode Unicode data")
39266 (description
39267 "@code{text-unidecode} is a basic Python port of the @code{Text::Unidecode}
39268Perl library. It can create ASCII representations of Unicode data. In general
39269users should prefer the @code{python-unidecode} package which offers better
39270memory usage and transliteration quality.")
39271 ;; The user can choose either license.
39272 (license (list license:clarified-artistic license:gpl2+))))
39273
39274(define-public python-textdistance
39275 (package
39276 (name "python-textdistance")
39277 (version "4.6.3")
39278 (source
39279 (origin
39280 (method git-fetch)
39281 (uri (git-reference
39282 (url "https://github.com/life4/textdistance")
39283 (commit version)))
39284 (file-name (git-file-name name version))
39285 (sha256
39286 (base32 "1qaplikab46p38jqr93bxd26vvxcnvib15fjxmmp4cbsiy5196sg"))))
39287 (build-system pyproject-build-system)
39288 ;; tests: 430 passed, 1446 warnings
39289 (native-inputs
39290 (list python-numpy
39291 python-pytest
39292 python-setuptools))
39293 (propagated-inputs
39294 (list python-jellyfish
39295 python-distance
39296 python-levenshtein
39297 python-pylev
39298 python-pyxdameraulevenshtein
39299 python-rapidfuzz))
39300 (home-page "https://github.com/life4/textdistance")
39301 (synopsis "Compute distance between the two texts")
39302 (description "@code{textdistance} is a pure Python library for comparing
39303distance between two or more sequences by many algorithms.")
39304 (license license:expat)))
39305
39306(define-public python-textparser
39307 (package
39308 (name "python-textparser")
39309 (version "0.24.0")
39310 (source
39311 (origin
39312 (method url-fetch)
39313 (uri (pypi-uri "textparser" version))
39314 (sha256
39315 (base32 "0dc3aqbzh0x13i6cmr73q777wv8nxyk3p0kdnynh5l59bbkhixsn"))))
39316 (build-system pyproject-build-system)
39317 (arguments
39318 (list #:test-backend #~'unittest))
39319 (native-inputs (list python-setuptools))
39320 (home-page "https://github.com/eerimoq/textparser")
39321 (synopsis "Fast text parser for Python")
39322 (description "This library provides a text parser written in the Python
39323language. It aims to be fast.")
39324 (license license:expat)))
39325
39326(define-public python-texttable
39327 (package
39328 (name "python-texttable")
39329 (version "1.7.0")
39330 (source
39331 (origin
39332 (method git-fetch)
39333 (uri (git-reference
39334 (url "https://github.com/foutaise/texttable/")
39335 (commit (string-append "v" version))))
39336 (file-name (git-file-name name version))
39337 (sha256
39338 (base32 "1p3g8v4wic6bpwa2r1h95a3mrx4vl6r6ci7ijwp0lmq55j9v9rx7"))))
39339 (build-system pyproject-build-system)
39340 (arguments (list #:test-flags #~(list "tests.py")))
39341 (native-inputs (list python-pytest python-setuptools))
39342 (home-page "https://github.com/foutaise/texttable/")
39343 (synopsis "Create simple ASCII tables in Python")
39344 (description
39345 "This package provides a Python module for creating simple ASCII
39346tables.")
39347 (license license:expat)))
39348
39349(define-public python-textual
39350 (package
39351 (name "python-textual")
39352 (version "7.4.0")
39353 (source
39354 (origin
39355 (method git-fetch)
39356 (uri (git-reference
39357 (url "https://github.com/Textualize/textual")
39358 (commit (string-append "v" version))))
39359 (file-name (git-file-name name version))
39360 (sha256
39361 (base32 "0xnfb8g0p66f6i4kzd6l2y2cp1pm33la1rj0hbdws72j5rcpq0nv"))))
39362 (build-system pyproject-build-system)
39363 (arguments
39364 (list
39365 #:test-flags
39366 ;; Snapshot tests require python-pytest-textual-snapshot which
39367 ;; in turn depends on python-textual.
39368 '(list "--ignore=tests/snapshot_tests/test_snapshots.py"
39369 "-k" (string-append
39370 ;; Broken for unknown reason.
39371 "not test_textual_env_var"
39372 ;; Tests that require python-treesitter-languages.
39373 " and not test_widget_construct"
39374 " and not test_setting_builtin_language_via_constructor"
39375 " and not test_setting_builtin_language_via_attribute"
39376 " and not test_setting_language_to_none"
39377 " and not test_setting_unknown_language"
39378 " and not test_register_language"
39379 " and not test_update_highlight_query"
39380 " and not test_default_theme"
39381 " and not test_setting_builtin_themes"
39382 " and not test_setting_unknown_theme_raises_exception"
39383 " and not test_registering_and_setting_theme"
39384 " and not test_progress_bar_width_1fr"))
39385 #:phases
39386 #~(modify-phases %standard-phases
39387 (add-after 'unpack 'relax-requirements
39388 (lambda _
39389 (substitute* "pyproject.toml"
39390 (("pygments =.*")
39391 "pygments = \"*\"\n")))))))
39392 (propagated-inputs
39393 (list python-markdown-it-py
39394 python-mdit-py-plugins
39395 python-platformdirs
39396 python-rich
39397 python-tree-sitter
39398 ;; python-tree-sitter-languages ; optional, not packed yet
39399 python-typing-extensions))
39400 (native-inputs
39401 (list python-poetry-core
39402 python-pytest
39403 python-pytest-asyncio
39404 python-pytest-xdist))
39405 (home-page "https://github.com/Textualize/textual")
39406 (synopsis "Build text user interfaces in Python")
39407 (description "Textual is a @acronym{TUI, Text User Interface} framework
39408for Python inspired by modern web development.")
39409 (license license:expat)))
39410
39411(define-public python-tftpy
39412 (package
39413 (name "python-tftpy")
39414 (version "0.8.6")
39415 (source
39416 (origin
39417 (method git-fetch)
39418 (uri (git-reference
39419 (url "https://github.com/msoulier/tftpy")
39420 (commit version)))
39421 (file-name (git-file-name name version))
39422 (sha256
39423 (base32 "11cs52skmisg7rlmcxghmpcxfszcwmph6cvmfdn2p0ks6ckfy9q2"))))
39424 (build-system pyproject-build-system)
39425 (arguments
39426 (list
39427 #:test-backend #~'unittest
39428 #:test-flags #~(list "tests/test.py")
39429 #:phases
39430 #~(modify-phases %standard-phases
39431 (add-before 'check 'configure-tests
39432 (lambda* (#:key tests? #:allow-other-keys)
39433 (when tests?
39434 ;; The default DEBUG logging level is way too verbose.
39435 (substitute* "tests/test.py"
39436 (("logging\\.DEBUG")
39437 "logging.INFO"))))))))
39438 (native-inputs (list python-setuptools))
39439 (home-page "https://tftpy.sourceforge.net/")
39440 (synopsis "Python trivial file transfer protocol (TFTP) library")
39441 (description
39442 "TFTPy is a trivial file transfer protocol (TFTP) Python library. It can
39443be used to act both as a TFTP client or TFTP server.")
39444 (license license:expat)))
39445
39446(define-public python-thefuzz
39447 (package
39448 (name "python-thefuzz")
39449 (version "0.22.1")
39450 (source
39451 (origin
39452 (method git-fetch)
39453 (uri (git-reference
39454 (url "https://github.com/seatgeek/thefuzz")
39455 (commit version)))
39456 (file-name (git-file-name name version))
39457 (sha256
39458 (base32 "1l24masn3ilfnwdasi5bhs1vb3ll1nqzxljiasdhfly1ncfjyvca"))))
39459 (build-system pyproject-build-system)
39460 (arguments
39461 (list #:test-flags #~'("-k" "not TestCodeFormat")
39462 #:phases #~(modify-phases %standard-phases
39463 ;; pycodestyle is only used in TestCodeFormat.
39464 (add-after 'unpack 'unrequire-pycodestyle
39465 (lambda _
39466 (substitute* "test_thefuzz.py"
39467 (("import pycodestyle.*") "")))))))
39468 (propagated-inputs (list python-rapidfuzz))
39469 (native-inputs (list python-hypothesis
39470 python-pytest
39471 python-setuptools))
39472 (home-page "https://github.com/seatgeek/thefuzz")
39473 (synopsis "Fuzzy string matching in Python")
39474 (description
39475 "This Python package implements fuzzing string matching
39476using Levenshtein distance.")
39477 (license license:expat)))
39478
39479(define-public python-thumbhash
39480 (let ((commit "3ef0480cc1a3a8230b54ebc4873b1007fcfcc329")
39481 (revision "0"))
39482 (package
39483 (name "python-thumbhash")
39484 (version (git-version "0.1.2" revision commit))
39485 (source
39486 (origin
39487 (method git-fetch)
39488 (uri (git-reference
39489 (url "https://github.com/justinforlenza/thumbhash-py")
39490 (commit commit)))
39491 (file-name (git-file-name name version))
39492 (sha256
39493 (base32 "0nb3v6437gdaf4wrinzmkdjsvrlzihp3pyan05vnd97zsz41zs0z"))))
39494 (arguments (list #:tests? #f))
39495 (build-system pyproject-build-system)
39496 (native-inputs (list python-hatchling))
39497 (home-page "https://github.com/justinforlenza/thumbhash-py")
39498 (synopsis "Compact representation of an image placeholder")
39499 (description
39500 "This is a Python port of the
39501@url{https://github.com/evanw/thumbhash,thumbhash} encoder by
39502@url{https://github.com/evanw,Evan Wallace}.")
39503 (license license:expat))))
39504
39505(define-public python-three-merge
39506 (package
39507 (name "python-three-merge")
39508 (version "0.1.1")
39509 (source
39510 (origin
39511 ;; There are no tests in the PyPI tarball.
39512 (method git-fetch)
39513 (uri (git-reference
39514 (url "https://github.com/spyder-ide/three-merge")
39515 (commit (string-append "v" version))))
39516 (file-name (git-file-name name version))
39517 (sha256
39518 (base32 "1fw28swh6jq4myr09j7gv68l241b8vwg470ak5xv0x4xwh2a1m86"))))
39519 (build-system pyproject-build-system)
39520 (propagated-inputs
39521 (list python-diff-match-patch))
39522 (native-inputs
39523 (list python-pytest python-setuptools python-wheel))
39524 (home-page "https://github.com/spyder-ide/three-merge")
39525 (synopsis "Library for merging two strings with respect to a base one")
39526 (description
39527 "This package provides a Python library to perform a 3-way merge between
39528strings, based on @code{diff-match-patch}. This library performs merges at a
39529character level, as opposed to most VCS systems, which opt for a line-based
39530approach.")
39531 (license license:expat)))
39532
39533(define-public python-throttler
39534 (package
39535 (name "python-throttler")
39536 (version "1.2.3")
39537 (source
39538 (origin
39539 (method git-fetch)
39540 (uri (git-reference
39541 (url "https://github.com/uburuntu/throttler")
39542 (commit (string-append "v" version))))
39543 (file-name (git-file-name name version))
39544 (sha256
39545 (base32 "1k0a3hxih2qk3fxljcwbbpa723bshrvcqgz2lxgll32g1lfa3hnd"))))
39546 (build-system pyproject-build-system)
39547 (native-inputs
39548 (list python-aiohttp
39549 python-pytest
39550 python-pytest-asyncio
39551 python-setuptools))
39552 (home-page "https://github.com/uburuntu/throttler")
39553 (synopsis "Throttling with asyncio support")
39554 (description
39555 "This is a Python package for easy throttling with asyncio support.")
39556 (license license:expat)))
39557
39558(define-public python-tifffile
39559 (package
39560 (name "python-tifffile")
39561 (version "2025.10.4")
39562 (source
39563 (origin
39564 (method url-fetch)
39565 (uri (pypi-uri "tifffile" version))
39566 (sha256
39567 (base32 "0f1ybmr2jz19gjg92p9vz3qib49m0x4ipxvrvjyfa6r1mcb7qhrf"))))
39568 (build-system pyproject-build-system)
39569 ;; Tests require lfdfiles, which depends on tifffile
39570 (arguments (list #:tests? #f))
39571 (propagated-inputs
39572 (list python-numpy))
39573 (native-inputs
39574 (list python-setuptools))
39575 (home-page "https://www.lfd.uci.edu/~gohlke/")
39576 (synopsis "Read and write TIFF(r) files")
39577 (description
39578 "This package lets you read image and metadata from many bio-scientific
39579formats such as plain TIFF, BigTIFF, OME-TIFF, STK, LSM, SGI,NIH, ImageJ,
39580MicroManager, MD GEL, and FluoView files. It also lets you write numpy arrays
39581to TIFF, BigTIFF, and ImageJ hyperstack compatible files.")
39582 (license license:bsd-3)))
39583
39584(define-public python-tiktoken
39585 (package
39586 (name "python-tiktoken")
39587 (version "0.9.0")
39588 (source
39589 (origin
39590 (method url-fetch)
39591 (uri (pypi-uri "tiktoken" version))
39592 (sha256
39593 (base32 "0p9cg6n8mzdi4lbbwxrrp26chy5hr14bqmzr3w74kq1qm6k5qanh"))))
39594 (build-system cargo-build-system)
39595 (arguments
39596 (list
39597 #:install-source? #false
39598 #:imported-modules
39599 (append %pyproject-build-system-modules
39600 %cargo-build-system-modules)
39601 #:modules
39602 '((guix build cargo-build-system)
39603 ((guix build pyproject-build-system) #:prefix py:)
39604 (guix build utils))
39605 #:phases
39606 #~(modify-phases %standard-phases
39607 (replace 'build
39608 (assoc-ref py:%standard-phases 'build))
39609 (add-after 'install 'wrap
39610 (lambda _
39611 ;; Collection of python- and pyproject-build-system phases
39612 ;; between 'install and 'check.
39613 (assoc-ref py:%standard-phases 'add-install-to-pythonpath)
39614 (assoc-ref py:%standard-phases 'add-install-to-path)
39615 (assoc-ref py:%standard-phases 'wrap)
39616 (assoc-ref py:%standard-phases 'create-entrypoints)
39617 (assoc-ref py:%standard-phases 'compile-bytecode)))
39618 (replace 'install
39619 (assoc-ref py:%standard-phases 'install)))))
39620 (propagated-inputs (list python-regex python-requests))
39621 (inputs (cargo-inputs 'python-tiktoken))
39622 (native-inputs
39623 (list python-setuptools
39624 python-setuptools-rust
39625 python-wheel
39626 python-wrapper))
39627 (home-page "https://github.com/openai/tiktoken/")
39628 (synopsis "Fast BPE tokeniser for use with OpenAI's models")
39629 (description
39630 "Tiktoken is a fast @dfn{byte pair encoding} (BPE) tokeniser for use with
39631@code{OpenAI's} models.")
39632 (license license:expat)))
39633
39634(define-public python-timed-threads
39635 (package
39636 (name "python-timed-threads")
39637 (version "2.0.0")
39638 (source
39639 (origin
39640 (method git-fetch)
39641 (uri (git-reference
39642 (url "https://github.com/Mathics3/python-timed-threads/")
39643 (commit version)))
39644 (file-name (git-file-name name version))
39645 (sha256
39646 (base32 "062lml0dg13pi7b871q8fql5rff7g7gs6ljbb8rmm0vp98vqc5fp"))))
39647 (build-system pyproject-build-system)
39648 (native-inputs
39649 (list python-pytest python-setuptools))
39650 (home-page "https://github.com/Mathics3/python-timed-threads/")
39651 (synopsis "Ability to set absolute time deadlines on asynchronous threads")
39652 (description
39653 "This package adds the ability to set relative elapsed time deadlines on
39654asynchronous threads, and allows one thread to stop another by means of
39655raising an exception.")
39656 (license license:expat)))
39657
39658(define-public python-timeout-decorator
39659 ;; TODO: Remove when python-requests-caches releases a fresh version dropping
39660 ;; it, see, <https://github.com/requests-cache/requests-cache/pull/1111>.
39661 (package
39662 (name "python-timeout-decorator")
39663 (version "0.5.0")
39664 (source
39665 (origin
39666 (method url-fetch)
39667 (uri (pypi-uri "timeout-decorator" version))
39668 (sha256
39669 (base32 "1mxk2qyydhzncm93z08kvj5ssxq3fr2n7pkrrji28nqwvdc2ybva"))))
39670 (build-system pyproject-build-system)
39671 (arguments (list #:tests? #f))
39672 (native-inputs (list python-setuptools python-wheel))
39673 (home-page "https://github.com/pnpnpn/timeout-decorator")
39674 (synopsis "Timeout decorator")
39675 (description "This package provides a decorator that raises an error
39676when an operation takes longer than expected.")
39677 (license license:expat)))
39678
39679(define-public python-titlecase
39680 (package
39681 (name "python-titlecase")
39682 (version "2.4.1")
39683 (source
39684 (origin
39685 (method url-fetch)
39686 (uri (pypi-uri "titlecase" version))
39687 (sha256
39688 (base32 "1x9myq3rlbw6wh946ncch8px7wyabhzacy2fjji13nmvrivs50vx"))))
39689 (build-system pyproject-build-system)
39690 (arguments
39691 (list
39692 #:test-backend #~'unittest))
39693 (native-inputs
39694 (list python-setuptools))
39695 (home-page "https://github.com/ppannuto/python-titlecase")
39696 (synopsis "Capitalize strings similar to book titles")
39697 (description
39698 "Python-Titlecase is a Python port of John Gruber's titlecase.pl.
39699It capitalizes (predominantly English) strings in a way that is similar to
39700book titles, using the New York Times Manual of Style to leave certain words
39701lowercase.")
39702 (license license:expat)))
39703
39704(define-public python-tlsh
39705 (package
39706 (name "python-tlsh")
39707 (version "4.11.2")
39708 (home-page "https://github.com/trendmicro/tlsh")
39709 (source
39710 (origin
39711 (method git-fetch)
39712 (uri (git-reference (url home-page) (commit version)))
39713 (file-name (git-file-name name version))
39714 (sha256
39715 (base32 "1gb5j73nw3nmx030rf8pm75rns5syxhv44zxr6i74kjicyly1i9w"))))
39716 (build-system pyproject-build-system)
39717 (arguments
39718 (list
39719 #:phases
39720 #~(modify-phases %standard-phases
39721 (add-before 'build 'configure
39722 (lambda _
39723 (invoke "cmake" "."))) ;to generate tlsh_version.h
39724 (add-after 'configure 'chdir
39725 (lambda _
39726 (chdir "py_ext")))
39727 (replace 'check
39728 (lambda* (#:key tests? #:allow-other-keys)
39729 (when tests?
39730 (with-directory-excursion "../Testing"
39731 (invoke "./python_test.sh"))))))))
39732 (native-inputs (list cmake-minimal python-setuptools))
39733 (synopsis "Fuzzy matching library for Python")
39734 (description
39735 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
39736Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
39737value which can be used for similarity comparisons. Similar objects have
39738similar hash values, which allows for the detection of similar objects by
39739comparing their hash values. The byte stream should have a sufficient amount
39740of complexity; for example, a byte stream of identical bytes will not generate
39741a hash value.")
39742 (license license:asl2.0)))
39743
39744(define-public python-tlv8
39745 (package
39746 (name "python-tlv8")
39747 (version "0.10.0")
39748 (source
39749 (origin
39750 (method git-fetch)
39751 (uri (git-reference
39752 (url "https://github.com/jlusiardi/tlv8_python")
39753 (commit (string-append "v" version))))
39754 (file-name (git-file-name name version))
39755 (sha256
39756 (base32 "0q25y5lz7cigfk7l30rdm2z8as8662pzd8ki5vvs1c0saqq72zhv"))))
39757 (build-system pyproject-build-system)
39758 (native-inputs (list python-setuptools python-pytest))
39759 (home-page "https://github.com/jlusiardi/tlv8_python")
39760 (synopsis
39761 "Python library for @acronym{TLV, type-length-value} encoded data")
39762 (description
39763 "Python library for @acronym{TLV, type-length-value} encoding and decoding.
39764Represents type and length by one byte each, hence the name @code{tlv8}.")
39765 (license license:asl2.0)))
39766
39767(define-public python-tokenize-rt
39768 (package
39769 (name "python-tokenize-rt")
39770 (version "6.2.0")
39771 (source
39772 (origin
39773 (method git-fetch)
39774 (uri (git-reference
39775 (url "https://github.com/asottile/tokenize-rt")
39776 (commit (string-append "v" version))))
39777 (file-name (git-file-name name version))
39778 (sha256
39779 (base32 "1maa9sifma0a6v7kl7mmyqzj0jdclzlp4wjr0vkdx95raihxx4fv"))))
39780 (build-system pyproject-build-system)
39781 (native-inputs (list python-pytest python-setuptools))
39782 (home-page "https://github.com/asottile/tokenize-rt")
39783 (synopsis "Wrapper around the stdlib tokenize which roundtrips")
39784 (description
39785 "This Python library is a wrapper around @code{tokenize} from the Python
39786standard library. It provides two additional tokens @code{ESCAPED_NL} and
39787@code{UNIMPORTANT_WS}, and a @code{Token} data type. Use @code{src_to_tokens}
39788and @code{tokens_to_src} to roundtrip.")
39789 (license license:expat)))
39790
39791(define-public python-tomlkit
39792 (package
39793 (name "python-tomlkit")
39794 (version "0.15.0")
39795 (source
39796 (origin
39797 (method git-fetch)
39798 (uri (git-reference
39799 (url "https://github.com/sdispater/tomlkit")
39800 (commit version)))
39801 (file-name (git-file-name name version))
39802 (sha256
39803 (base32 "00sv5x8j78zkirzh9rl89lkpwfwhkhrq4mql2p4rqws1j37zx88g"))))
39804 (build-system pyproject-build-system)
39805 (arguments
39806 (list
39807 #:phases
39808 #~(modify-phases %standard-phases
39809 ;; toml-test is submodule to
39810 ;; <https://github.com/toml-lang/toml-test>.
39811 (add-after 'unpack 'copy-toml-test-source
39812 (lambda _
39813 (copy-recursively
39814 #$(package-source (this-package-native-input "toml-test"))
39815 "tests/toml-test"))))))
39816 (native-inputs
39817 (list python-poetry-core
39818 python-pytest
39819 toml-test))
39820 (home-page "https://github.com/sdispater/tomlkit")
39821 (synopsis "Style-preserving TOML library")
39822 (description
39823 "TOML Kit is a 1.0.0rc1-compliant TOML library. It includes a parser that
39824preserves all comments, indentations, whitespace and internal element ordering,
39825and makes them accessible and editable via an intuitive API. It can also
39826create new TOML documents from scratch using the provided helpers. Part of the
39827implementation has been adapted, improved, and fixed from Molten.")
39828 (license license:expat)))
39829
39830(define-public python-toolrack
39831 (package
39832 (name "python-toolrack")
39833 (version "4.0.3")
39834 (source
39835 (origin
39836 (method git-fetch)
39837 (uri (git-reference
39838 (url "https://github.com/albertodonato/toolrack")
39839 (commit (string-append "v" version))))
39840 (file-name (git-file-name name version))
39841 (sha256
39842 (base32
39843 "1aglfj7j25fiwx9jh1rl34mlhfpdhn8yrkn30vhkz9yw7zrx42h0"))))
39844 (build-system pyproject-build-system)
39845 (arguments
39846 (list
39847 #:phases
39848 #~(modify-phases %standard-phases
39849 (add-after 'unpack 'patch-/bin/sh
39850 (lambda _
39851 (substitute* "tests/aio/process_test.py"
39852 (("/bin/sh")
39853 (which "sh"))))))))
39854 (native-inputs
39855 (list python-pytest
39856 python-pytest-asyncio
39857 python-pytest-mock
39858 python-setuptools))
39859 (home-page "https://github.com/albertodonato/toolrack")
39860 (synopsis "Collection of Python utility functions and classes")
39861 (description "This package provides a collection of miscellaneous utility
39862functions and classes.")
39863 (license license:lgpl3+)))
39864
39865(define-public python-toolshed
39866 (package
39867 (name "python-toolshed")
39868 (version "0.4.8")
39869 (source
39870 (origin
39871 (method git-fetch)
39872 (uri (git-reference
39873 (url "https://github.com/brentp/toolshed")
39874 (commit (string-append "v" version))))
39875 (file-name (git-file-name name version))
39876 (sha256
39877 (base32 "0r6c6nc2mj83fbg2cwym810cg5gbd0cl7qkhjca7i6vnshcbv8y0"))))
39878 (build-system pyproject-build-system)
39879 (native-inputs
39880 (list python-pytest
39881 python-setuptools))
39882 (home-page "https://github.com/brentp/toolshed/")
39883 (synopsis "Collection of modules and functions for working with data")
39884 (description "This is a collection of well-tested, simple modules and
39885functions that aim to reduce boilerplate when working with data.")
39886 (license license:bsd-2)))
39887
39888(define-public python-toolz
39889 (package
39890 (name "python-toolz")
39891 (version "1.1.0")
39892 (source
39893 (origin
39894 (method git-fetch)
39895 (uri (git-reference
39896 (url "https://github.com/pytoolz/toolz")
39897 (commit version)))
39898 (file-name (git-file-name name version))
39899 (sha256
39900 (base32 "09ams76wl5g0a4v4qiqi9xdagvq1pcwz8nglnhcfarbfivga2rbz"))))
39901 (build-system pyproject-build-system)
39902 (arguments
39903 (list
39904 #:phases
39905 #~(modify-phases %standard-phases
39906 (add-after 'unpack 'set-version
39907 (lambda _
39908 (substitute* "pyproject.toml"
39909 (("\\[tool.setuptools-git-versioning\\]" all)
39910 (string-append "[tool.setuptools_scm]\n"
39911 "write_to = \"toolz/_version.py\"\n"
39912 all))))))))
39913 (native-inputs
39914 (list python-pytest
39915 python-setuptools
39916 ;; Project expects setuptools-git-versioning to build version, but
39917 ;; it does not support envar override as seuptools-scm.
39918 python-setuptools-scm))
39919 (home-page "https://github.com/pytoolz/toolz/")
39920 (synopsis "List processing tools and functional utilities")
39921 (description
39922 "This package provides a set of utility functions for iterators,
39923functions, and dictionaries.")
39924 (license license:bsd-3)))
39925
39926(define-public python-toposort
39927 (package
39928 (name "python-toposort")
39929 (version "1.10")
39930 (source
39931 (origin
39932 (method url-fetch)
39933 (uri (pypi-uri "toposort" version))
39934 (sha256
39935 (base32 "1gd66z5dy6j7qs5qkj1pg0vb15rwd571yq02fkm9d9nhaff4gfxz"))))
39936 (build-system pyproject-build-system)
39937 (arguments
39938 (list #:test-backend #~'custom
39939 #:test-flags #~(list "-m" "test.test_toposort")))
39940 (native-inputs (list python-setuptools))
39941 (home-page "https://gitlab.com/ericvsmith/toposort")
39942 (synopsis "Topological sort algorithm")
39943 (description
39944 "This package provides an implementation of a topological sort
39945algorithm.")
39946 (license license:asl2.0)))
39947
39948(define-public python-towncrier
39949 (package
39950 (name "python-towncrier")
39951 (version "25.8.0")
39952 (source
39953 (origin
39954 (method url-fetch)
39955 (uri (pypi-uri "towncrier" version))
39956 (sha256
39957 (base32 "1c8fjjwlx29jgllxvyzby4cn51iraxba0cmfnfmmgb9iz0lnvwgf"))))
39958 (build-system pyproject-build-system)
39959 (native-inputs
39960 (list git-minimal/pinned ;tests create git repositories
39961 python-hatchling
39962 python-pytest
39963 python-twisted))
39964 (propagated-inputs
39965 (list python-click
39966 python-jinja2))
39967 (home-page "https://towncrier.readthedocs.io/en/stable/")
39968 (synopsis "Manage release notes")
39969 (description
39970 "@code{towncrier} is a utility to produce useful, summarized news files
39971 (also known as changelogs) for a project.")
39972 (license license:expat)))
39973
39974(define-public python-tqdm
39975 (package
39976 (name "python-tqdm")
39977 (version "4.67.1")
39978 (source
39979 (origin
39980 (method url-fetch)
39981 (uri (pypi-uri "tqdm" version))
39982 (sha256
39983 (base32 "1wi7cql2fc76b5z9v1sr96ix2gxcb974z8qfydjkmh885k2zkbpq"))))
39984 (build-system pyproject-build-system)
39985 (arguments
39986 (list #:test-flags
39987 '(list "-o" "asyncio_mode=auto"
39988 "-k" "not perf and not test_rlock_creation")))
39989 (native-inputs
39990 (list python-pytest
39991 python-pytest-asyncio
39992 python-pytest-timeout
39993 python-setuptools
39994 python-setuptools-scm
39995 python-toml
39996 python-wheel))
39997 (home-page "https://github.com/tqdm/tqdm")
39998 (synopsis "Fast, extensible progress meter")
39999 (description
40000 "Make loops show a progress bar on the console by just wrapping any
40001iterable with @code{|tqdm(iterable)|}. Offers many options to define
40002design and layout.")
40003 (license (list license:mpl2.0 license:expat))))
40004
40005(define-public python-traitlets
40006 (package
40007 (name "python-traitlets")
40008 (version "5.14.3")
40009 (source
40010 (origin
40011 (method url-fetch)
40012 (uri (pypi-uri "traitlets" version))
40013 (sha256
40014 (base32 "1dxnjs5vjfsbvr3jhlhl6696zafdfl1i5b1j6x5lpj826nfmgl4y"))))
40015 (build-system pyproject-build-system)
40016 ;; tests: 566 passed, 3 skipped, 1 warning
40017 (native-inputs
40018 (list python-hatchling
40019 python-pytest))
40020 (home-page "https://ipython.org")
40021 (synopsis "Configuration system for Python applications")
40022 (description
40023 "Traitlets is a framework that lets Python classes have attributes with
40024type checking, dynamically calculated default values, and ‘on change’
40025callbacks. The package also includes a mechanism to use traitlets for
40026configuration, loading values from files or from command line arguments. This
40027is a distinct layer on top of traitlets, so you can use traitlets in your code
40028without using the configuration machinery.")
40029 (license license:bsd-3)))
40030
40031(define-public python-translate-toolkit
40032 (package
40033 (name "python-translate-toolkit")
40034 (version "3.15.6")
40035 (source
40036 (origin
40037 (method url-fetch)
40038 (uri (pypi-uri "translate_toolkit" version))
40039 (sha256
40040 (base32 "0p23c5nvfw19wg2h4rqxf301z0023yl7ivpjyhr5byxf0sxnqnpq"))))
40041 (build-system pyproject-build-system)
40042 (arguments
40043 (list
40044 ;; tests: 2828 passed, 3 skipped, 28 deselected, 32 xfailed, 11 warnings
40045 #:test-flags
40046 ;; TODO: Some of the optional inputs are not packaged yet.
40047 #~(list #$@(map (lambda (file) (string-append "--ignore="
40048 "tests/translate/"
40049 file))
40050 (list "convert/test_ini2po.py"
40051 "convert/test_php2po.py"
40052 "convert/test_po2ini.py"
40053 "convert/test_po2php.py"
40054 "storage/test_cpo.py"
40055 "storage/test_fluent.py"
40056 "storage/test_ini.py"
40057 "storage/test_php.py"
40058 "storage/test_po.py"
40059 "storage/test_pypo.py"
40060 "storage/test_subtitles.py"))
40061 #$@(map (lambda (test) (string-append "--deselect="
40062 "tests/translate/storage/"
40063 test))
40064 ;; UnicodeDecodeError: 'utf-8' codec can't decode byte
40065 ;; 0xff in position 0: invalid start byte
40066 (list "test_csvl10n.py::TestCSV::test_encoding_save"
40067 ;; FileNotFoundError: [Errno 2] No such file or
40068 ;; directory: 'msgfmt'
40069 "test_mo.py::TestMOFile::test_output"
40070 ;; assert 0 == -16200
40071 "test_poheader.py::test_timezones"))
40072 #$@(map (lambda (test) (string-append "--deselect="
40073 "tests/translate/tools/"
40074 test))
40075 ;; XXX: Some issues with XML parsing.
40076 (list "test_junitmsgfmt.py::test_output"
40077 "test_pocount.py::test_output"
40078 "test_pocount.py::test_cases"))
40079 "-k" "not test_open_office_to_xliff and not test_po_to_xliff")))
40080 (native-inputs
40081 (list python-pytest
40082 python-setuptools
40083 python-setuptools-scm))
40084 (propagated-inputs
40085 (list python-cwcwidth
40086 python-cheroot
40087 ;; python-aeidon
40088 ;; python-fluent
40089 python-iniparse
40090 python-lxml
40091 python-mistletoe
40092 python-phply
40093 python-pyparsing
40094 python-ruamel.yaml
40095 python-vobject))
40096 (home-page "https://toolkit.translatehouse.org")
40097 (synopsis "Tools and API for translation and localization engineering")
40098 (description
40099 "Tools and API for translation and localization engineering. It contains
40100several utilities, as well as an API for building localization tools.")
40101 (license license:gpl2+)))
40102
40103(define-public python-translitcodec
40104 (package
40105 (name "python-translitcodec")
40106 (version "0.7.0")
40107 (source
40108 (origin
40109 (method git-fetch)
40110 (uri (git-reference
40111 (url "https://github.com/claudep/translitcodec")
40112 (commit (string-append "version-" version))))
40113 (file-name (git-file-name name version))
40114 (sha256
40115 (base32 "1cj11sa5hy8ga7p0dgwi4g4gv0qx6c1yi2csgnvxiir16ywslhpw"))))
40116 (build-system pyproject-build-system)
40117 (native-inputs (list python-pytest python-setuptools))
40118 (home-page "https://github.com/claudep/translitcodec")
40119 (synopsis "Unicode to 8-bit charset transliteration codec")
40120 (description
40121 "This package contains codecs for transliterating ISO 10646 texts into
40122best-effort representations using smaller coded character sets (ASCII,
40123ISO 8859, etc.).")
40124 (license license:expat)))
40125
40126(define-public python-treelib
40127 (package
40128 (name "python-treelib")
40129 (version "1.8.0")
40130 (source
40131 (origin
40132 (method git-fetch)
40133 (uri (git-reference
40134 (url "https://github.com/caesar0301/treelib")
40135 (commit (string-append "v" version))))
40136 (file-name (git-file-name name version))
40137 (sha256
40138 (base32 "0jd3rdaq8v7ykb626cm1gxa03higqnn2pmnv46fc0lc55xbrkxlf"))
40139 (patches
40140 (search-patches "python-treelib-remove-python2-compat.patch"))))
40141 (build-system pyproject-build-system)
40142 (native-inputs (list python-poetry-core python-pytest))
40143 (home-page "https://github.com/caesar0301/treelib")
40144 (synopsis "Implementation of a tree structure in Python")
40145 (description
40146 "This package provides a Python implementation of a tree structure.")
40147 (license license:asl2.0)))
40148
40149(define-public python-trio
40150 (package
40151 (name "python-trio")
40152 (version "0.33.0")
40153 (source
40154 (origin
40155 (method git-fetch)
40156 (uri (git-reference
40157 (url "https://github.com/python-trio/trio")
40158 (commit (string-append "v" version))))
40159 (file-name (git-file-name name version))
40160 (sha256
40161 (base32 "1ibkp7bgdv0k099szk8181rfn7jm60kh8kpfrkfr4pnwjd6abslf"))))
40162 (build-system pyproject-build-system)
40163 (arguments
40164 (list
40165 ;; tests: 507 passed, 45 skipped, 37 deselected
40166 #:test-flags
40167 #~(list
40168 #$@(if (package? (this-package-native-input "python-trustme"))
40169 #~()
40170 #~("--ignore=src/trio/_tests/test_dtls.py"
40171 "--ignore=src/trio/_tests/test_highlevel_ssl_helpers.py"
40172 "--ignore=src/trio/_tests/test_ssl.py"))
40173 ;; Skip tests for the upstream repository's tooling.
40174 "--ignore=src/trio/_tests/tools"
40175 "-k" (string-join
40176 (list
40177 ;; Keyboard interrupts misbehave in the build sandbox.
40178 "not test_ki_in_repl"
40179 "test_KI_interrupts"
40180 "test_run_in_trio_thread_ki"
40181 ;; Somehow f'{check_errno_is_5!r}' evaluates
40182 ;; to "'check_errno_is_5'" instead of "<function ...>",
40183 ;; and f'{bool!r}' to "'bool'" instead of "<class 'bool'>".
40184 ;; Matcher and RaisesGroup are deprecated in Trio 0.33
40185 ;; will probably be removed in version 0.35.
40186 "test_Matcher_check"
40187 "test_matcher_tostring"
40188 "test_raisesgroup_tostring"
40189 ;; Failure in name resolution.
40190 "test_SocketType_resolve"
40191 ;; OSError: protocol not found.
40192 "test_getprotobyname"
40193 ;; Drop pylint and jedi.
40194 "test_static_tool_sees_all_symbols")
40195 " and not ")
40196 "src/trio/_tests")
40197 #:phases
40198 #~(modify-phases %standard-phases
40199 (add-after 'unpack 'patch-pthread-path
40200 (lambda* (#:key inputs #:allow-other-keys)
40201 (substitute* '("src/trio/_core/_thread_cache.py"
40202 "src/trio/_tests/test_threads.py")
40203 (("ctypes.util.find_library\\(\"pthread\"\\)")
40204 (simple-format #f "~s"
40205 (search-input-file inputs "lib/libpthread.so.0"))))))
40206 (add-before 'check 'set-env
40207 (lambda _
40208 ;; Tests require a writable home.
40209 (setenv "HOME" "/tmp"))))))
40210 (native-inputs
40211 (append
40212 (if (supported-package? python-pyopenssl)
40213 (list python-pyopenssl)
40214 '())
40215 (if (supported-package? python-trustme)
40216 (list python-trustme)
40217 '())
40218 (list python-async-generator)
40219 (if (supported-package? python-cryptography)
40220 (list python-cryptography)
40221 '())
40222 (list python-pytest
40223 python-setuptools)))
40224 (propagated-inputs
40225 (list python-attrs
40226 python-idna
40227 python-outcome
40228 python-sniffio
40229 python-sortedcontainers))
40230 (home-page "https://github.com/python-trio/trio")
40231 ;; (home-page "https://trio.readthedocs.io")
40232 (synopsis "Friendly Python library for async concurrency and I/O")
40233 (description
40234 "Trio strives to be a production-quality, async/await-native I/O library
40235for Python. Like all async libraries, its main purpose is to help you write
40236programs that do multiple things at the same time with parallelized I/O.")
40237 ;; Either license applies.
40238 (license (list license:expat license:asl2.0))))
40239
40240(define-public python-trio-typing
40241 (package
40242 (name "python-trio-typing")
40243 (version "0.10.0")
40244 (source
40245 (origin
40246 (method git-fetch)
40247 (uri (git-reference
40248 (url "https://github.com/python-trio/trio-typing")
40249 (commit (string-append "v" version))))
40250 (file-name (git-file-name name version))
40251 (sha256
40252 (base32 "127zpngp6r87kapvx5bwcl5awhyrsykwmvnxrb67qv7yz1s4z278"))))
40253 (build-system pyproject-build-system)
40254 (arguments
40255 (list #:tests? #f )) ;no proper tests
40256 (native-inputs
40257 (list python-setuptools))
40258 (propagated-inputs
40259 (list python-async-generator
40260 python-importlib-metadata
40261 python-mypy-extensions
40262 python-packaging
40263 python-trio
40264 python-typing-extensions))
40265 (home-page "https://github.com/python-trio/trio-typing")
40266 (synopsis "Static type checking support for Trio and related projects")
40267 (description
40268 "This package provides:
40269
40270@itemize
40271@item PEP 561 typing stubs packages for the Trio project packages:
40272
40273@itemize
40274@item trio (@code{trio-stubs})
40275@item outcome (@code{outcome-stubs})
40276@item async_generator (@code{async_generator-stubs})
40277@end itemize
40278
40279@item A package @code{trio_typing} containing types that Trio programs often
40280want to refer to (@code{AsyncGenerator[Y, S]} and @code{TaskStatus[T])} and
40281a mypy plugin that smooths over some limitations in the basic type hints.
40282@end itemize")
40283 ;; Either license applies.
40284 (license (list license:expat license:asl2.0))))
40285
40286(define-public python-trubar
40287 (package
40288 (name "python-trubar")
40289 (version "0.3.4")
40290 (source
40291 (origin
40292 (method url-fetch)
40293 (uri (pypi-uri "trubar" version))
40294 (sha256
40295 (base32 "149l5wid1b41gmfzsrhapcigcbcsflviz8p1pfa937443fxw1dkd"))))
40296 (build-system pyproject-build-system)
40297 (arguments
40298 (list
40299 #:test-flags
40300 #~(list "-k" (string-join
40301 ;; AttributeError: module 'libcst' has no attribute
40302 ;; 'FlattenSentinel'. Did you mean: 'MaybeSentinel'?
40303 (list "not test_import_from_future"
40304 "test_inport_after_docstring"
40305 ;; AssertionError: Items in the second set but not
40306 ;; the first
40307 "test_walk_files")
40308 " and not "))))
40309 (native-inputs
40310 (list python-pytest
40311 python-setuptools
40312 python-wheel))
40313 (propagated-inputs
40314 (list python-libcst
40315 python-pyyaml))
40316 (home-page "https://github.com/janezd/trubar")
40317 (synopsis "Utility for translation of Python sources")
40318 (description
40319 "This package provides a tool for translation and localization of Python
40320programs via modification of source files. Trubar supports f-strings and does
40321not require any changes to the original source code, such as marking strings
40322for translation.")
40323 (license license:expat)))
40324
40325(define-public python-twine
40326 (package
40327 (name "python-twine")
40328 (version "6.2.0")
40329 (source
40330 (origin
40331 (method url-fetch)
40332 (uri (pypi-uri "twine" version))
40333 (sha256
40334 (base32 "1kvm9cdvbnh232wafww1w5scaic9kkrwhlff1mvmk68cswphvvg5"))))
40335 (build-system pyproject-build-system)
40336 (arguments
40337 (list
40338 ;; tests: 228 passed, 1 deselected
40339 #:test-flags
40340 ;; Assertion is not equal for one tests.
40341 #~(list "--deselect=tests/test_check.py::test_fails_rst_syntax_error")))
40342 (native-inputs
40343 (list python-pretend
40344 python-pytest
40345 python-pytest-socket
40346 python-setuptools
40347 python-setuptools-scm))
40348 (propagated-inputs
40349 (list python-id
40350 python-keyring
40351 python-packaging
40352 python-readme-renderer
40353 python-requests
40354 python-requests-toolbelt
40355 python-rfc3986
40356 python-rich
40357 python-urllib3))
40358 (home-page "https://github.com/pypa/twine")
40359 (synopsis "Collection of utilities for interacting with PyPI")
40360 (description
40361 "@code{twine} currently supports registering projects and uploading
40362distributions. It authenticates the user over HTTPS, allows them to pre-sign
40363their files and supports any packaging format (including wheels).")
40364 (license license:asl2.0)))
40365
40366(define-public python-twisted
40367 (package
40368 (name "python-twisted")
40369 (version "25.5.0")
40370 (source
40371 (origin
40372 (method git-fetch)
40373 (uri (git-reference
40374 (url "https://github.com/twisted/twisted")
40375 (commit (string-append "twisted-" version))))
40376 (file-name (git-file-name name version))
40377 (sha256
40378 (base32 "07v2ssr2s6zcj2r6nvp28x7i3awjb6k8gz0mi4wg606gw4kdgxsk"))))
40379 (build-system pyproject-build-system)
40380 (arguments
40381 (list
40382 ;; tests: skips=638, successes=9759
40383 #:test-backend #~'custom
40384 #:test-flags
40385 #~(list "-m" "twisted.trial"
40386 "--temp-directory=/tmp/_trial_temp"
40387 (string-append "-j" (number->string (min 8 (parallel-job-count))))
40388 "twisted")
40389 #:phases
40390 #~(modify-phases %standard-phases
40391 (add-after 'unpack 'disable-broken-tests
40392 (lambda _
40393 (for-each delete-file
40394 (list
40395 ;; No idea why they fail
40396 "src/twisted/test/test_log.py"
40397 ;; Network tests
40398 "src/twisted/conch/test/test_cftp.py"
40399 "src/twisted/internet/test/test_endpoints.py"
40400 "src/twisted/protocols/test/test_tls.py"
40401 "src/twisted/test/test_sslverify.py"
40402 "src/twisted/web/test/test_agent.py"
40403 "src/twisted/web/test/test_tap.py"
40404 ;; These need a git executable
40405 "src/twisted/python/test/test_release.py"
40406 ;; These leave behind a socket file, which breaks the
40407 ;; build with "...has an unsupported type"
40408 "src/twisted/internet/test/test_unix.py"
40409 "src/twisted/test/test_unix.py"
40410 ;; These complain about missing test modules.
40411 "src/twisted/test/test_failure.py"
40412 "src/twisted/web/test/test_http2.py"
40413 "src/twisted/conch/test/test_forwarding.py")))))))
40414 (propagated-inputs
40415 (list python-attrs
40416 python-automat
40417 python-bcrypt
40418 python-constantly
40419 python-hyperlink
40420 python-incremental
40421 python-typing-extensions
40422 python-zope-interface
40423 ;; [conch]
40424 (list python "tk")
40425 python-appdirs
40426 python-bcrypt
40427 python-cryptography
40428 ;; [http2]
40429 python-h2
40430 python-priority
40431 ;; [tls]
40432 python-idna
40433 python-pyopenssl
40434 python-service-identity
40435 ;; [serial]
40436 python-pyserial))
40437 (native-inputs
40438 (list glibc-utf8-locales ;for OpenTestLogTests.test_utf8
40439 python-hatch-fancy-pypi-readme
40440 python-hatchling
40441 python-httpx
40442 python-hypothesis
40443 python-incremental
40444 python-pyhamcrest
40445 python-pytest))
40446 (home-page "https://twistedmatrix.com/")
40447 (synopsis "Asynchronous networking framework written in Python")
40448 (description
40449 "Twisted is an extensible framework for Python programming, with special
40450focus on event-based network programming and multiprotocol integration.")
40451 (license license:expat)))
40452
40453(define-public python-txredisapi
40454 (let ((commit "d2259a379695284f4a84d7821ed47e1db409501d")
40455 ;; The latest version is 1.4.11, but it contains a bug:
40456 ;; https://github.com/IlyaSkriblovsky/txredisapi/pull/157. That bug is
40457 ;; patched in commit d2259a3.
40458 (revision "0"))
40459 (package
40460 (name "python-txredisapi")
40461 (version (git-version "1.4.11" revision commit))
40462 (source
40463 (origin
40464 (method git-fetch)
40465 ;; The source distribution on PyPi is missing test files:
40466 ;; https://github.com/IlyaSkriblovsky/txredisapi/pull/155
40467 (uri (git-reference
40468 (url "https://github.com/IlyaSkriblovsky/txredisapi")
40469 (commit commit)))
40470 (file-name (git-file-name name version))
40471 (sha256
40472 (base32 "0v9r01cn5zb0jjb1h394y667345yp17485bl5d4k80019b34dm98"))))
40473 (build-system pyproject-build-system)
40474 (arguments
40475 (list #:test-backend #~'custom
40476 #:test-flags #~(list "-m" "twisted.trial" "tests")
40477 #:phases
40478 #~(modify-phases %standard-phases
40479 ;; The tests require a running Redis server.
40480 (add-before 'check 'start-redis
40481 (lambda _
40482 (invoke "redis-server" "--daemonize" "yes"))))))
40483 (propagated-inputs (list python-twisted))
40484 (native-inputs (list python-mock python-setuptools redis))
40485 (home-page "https://github.com/IlyaSkriblovsky/txredisapi")
40486 (synopsis "Non-blocking Redis client for Python")
40487 (description "txredisapi is a non-blocking client driver for the Redis
40488database, written in Python. It uses Twisted for asynchronous communication
40489with Redis.")
40490 (license license:asl2.0))))
40491
40492(define-public python-typeapi
40493 (package
40494 (name "python-typeapi")
40495 (version "2.2.4")
40496 (source
40497 (origin
40498 (method url-fetch)
40499 (uri (pypi-uri "typeapi" version))
40500 (sha256
40501 (base32 "0yzx10cn33gxqvs33vwdf0f959hbkir4yzjp42imf28ca9khga6s"))))
40502 (build-system pyproject-build-system)
40503 (arguments
40504 (list
40505 #:tests? #false)) ;there are none
40506 (propagated-inputs (list python-typing-extensions))
40507 (native-inputs (list python-hatchling))
40508 (home-page "https://pypi.org/project/typeapi/")
40509 (synopsis "Type hints")
40510 (description "The typeapi package provides an object-oriented interface
40511for introspecting PEP484 type hints at runtime, including forward references
40512that make use of the more recent PEP585 and PEP604 type hint features in
40513Python versions that don't natively support them.")
40514 (license license:expat)))
40515
40516(define-public python-typer
40517 (package
40518 (name "python-typer")
40519 ;; XXX: starting from 0.26.0, Typer vendors Click.
40520 (version "0.26.4")
40521 (source
40522 (origin
40523 (method git-fetch)
40524 (uri (git-reference
40525 (url "https://github.com/fastapi/typer")
40526 (commit version)))
40527 (file-name (git-file-name name version))
40528 (sha256
40529 (base32 "0cmk9wsnml1yykzs5sxfdww3bchh9f2f63cj6nirw39zilp1jjw0"))))
40530 (build-system pyproject-build-system)
40531 (arguments
40532 (list
40533 #:phases
40534 #~(modify-phases %standard-phases
40535 (add-before 'check 'pre-check
40536 (lambda _
40537 (setenv "HOME" "/tmp"))))
40538 #:test-flags
40539 #~(list "-k" "not test_cli"
40540 "--numprocesses" (number->string (min 8 (parallel-job-count))))))
40541 (native-inputs
40542 (list python-coverage ;this is required in tests
40543 python-pdm-backend
40544 python-pytest
40545 python-pytest-xdist))
40546 (propagated-inputs
40547 (list python-annotated-doc
40548 python-rich
40549 python-shellingham))
40550 (home-page "https://github.com/fastapi/typer")
40551 (synopsis "Typer builds CLI based on Python type hints")
40552 (description
40553 "Typer is a library for building CLI applications. It's based on Python
405543.6+ type hints.")
40555 (license license:expat)))
40556
40557;; Starting from 0.26.0, Typer vendors its own fork of Click (typer._click) and no longer
40558;; recognises subclasses of the real click.Context as the injected CLI
40559;; context, breaking some packages at import time. Keep until all dependents migrated.
40560(define-public python-typer-without-click
40561 (hidden-package
40562 (package
40563 (inherit python-typer)
40564 (version "0.25.1")
40565 (source
40566 (origin
40567 (method git-fetch)
40568 (uri (git-reference
40569 (url "https://github.com/fastapi/typer")
40570 (commit version)))
40571 (file-name (git-file-name "python-typer" version))
40572 (sha256
40573 (base32 "0z6k7qpd49wqvxl3q5jwq2kl0y3w8dxwxmp42qbkbvwixfqxg2qw"))))
40574 (propagated-inputs
40575 (list python-click
40576 python-typing-extensions
40577 python-annotated-doc
40578 python-rich
40579 python-shellingham))
40580 (arguments
40581 (substitute-keyword-arguments arguments
40582 ((#:test-flags flags #~'())
40583 ;; Ignore tests that fail due to Click error-message wording.
40584 ;; These happen because Click version is more recent than expected.
40585 #~(cons*
40586 (string-append "--deselect=tests/test_suggest_commands.py"
40587 "::test_typo_suggestion_disabled")
40588 (string-append "--ignore=tests/test_tutorial/test_commands/"
40589 "test_callback/test_tutorial001.py")
40590 (string-append "--ignore-glob=tests/test_tutorial/"
40591 "test_parameter_types/test_bool/test_tutorial0*.py")
40592 #$flags)))))))
40593
40594(define-public python-types-aiofiles
40595 (package
40596 (name "python-types-aiofiles")
40597 (version "25.1.0.20251011")
40598 (source
40599 (origin
40600 (method url-fetch)
40601 (uri (pypi-uri "types_aiofiles" version))
40602 (sha256
40603 (base32 "1zyk53h1017s1pc094w909miwvjsq3yhxlgr2l6d8g6bc2r8laqw"))))
40604 (build-system pyproject-build-system)
40605 (arguments (list #:tests? #f)) ;no tests in PyPI archive
40606 (native-inputs (list python-setuptools))
40607 (home-page "https://github.com/python/typeshed")
40608 (synopsis "Typing stubs for python-aiofiles")
40609 (description "This package providis typing stubs for python-aiofiles.")
40610 (license license:asl2.0)))
40611
40612(define-public python-types-colorama
40613 (package
40614 (name "python-types-colorama")
40615 (version "0.4.15.20250801")
40616 (source
40617 (origin
40618 (method url-fetch)
40619 (uri (pypi-uri "types_colorama" version))
40620 (sha256
40621 (base32 "1xapqdq6450ngzp18nvvkwbs68nnxksk1wyk6wid2qw9sq9msmh2"))))
40622 (build-system pyproject-build-system)
40623 (arguments (list #:tests? #f)) ;no tests in PyPI archive
40624 (native-inputs
40625 (list python-setuptools))
40626 (home-page "https://github.com/python/typeshed")
40627 (synopsis "Typing stubs for colorama")
40628 (description "This package provides typing stubs for colorama.")
40629 (license license:asl2.0)))
40630
40631(define-public python-types-dataclasses
40632 (package
40633 (name "python-types-dataclasses")
40634 (version "0.6.6")
40635 (source
40636 (origin
40637 (method url-fetch)
40638 (uri (pypi-uri "types-dataclasses" version))
40639 (sha256
40640 (base32 "1fgp96m4kfxrwy6rdv3p24jzh6hf68702sfdfhcmm3aniv7jynjb"))))
40641 (build-system pyproject-build-system)
40642 (arguments (list #:tests? #f)) ;no tests
40643 (native-inputs (list python-setuptools))
40644 (home-page "https://github.com/python/typeshed")
40645 (synopsis "Typing stubs for dataclasses")
40646 (description
40647 "This package provides a collection of library stubs for Python, with
40648static types.")
40649 (license license:asl2.0)))
40650
40651(define-public python-types-dateutil
40652 (package
40653 (name "python-types-dateutil")
40654 (version "2.9.0.20240316")
40655 (source
40656 (origin
40657 (method url-fetch)
40658 (uri (pypi-uri "types-python-dateutil" version))
40659 (sha256
40660 (base32 "00h2xi8p6ygdv9nhgwdyx86ky9m9dpdqgmsdji05x4461cj2wbsx"))))
40661 (build-system pyproject-build-system)
40662 (arguments (list #:tests? #f)) ; no tests
40663 (native-inputs
40664 (list python-pytest python-setuptools python-wheel))
40665 (home-page "https://github.com/python/typeshed")
40666 (synopsis "Typing stubs for python-dateutil")
40667 (description
40668 "This is a PEP 561 type stub package for the @code{python-dateutil}
40669package.")
40670 (license license:asl2.0)))
40671
40672(define-public python-types-docutils
40673 (package
40674 (name "python-types-docutils")
40675 (version "0.22.2.20251006")
40676 (source
40677 (origin
40678 (method url-fetch)
40679 (uri (pypi-uri "types_docutils" version))
40680 (sha256
40681 (base32 "1cp3p4bsaa646fa3kpjwjwsqbn6vz77pn57913lkknkf21ch8v63"))))
40682 (build-system pyproject-build-system)
40683 (arguments (list #:tests? #f)) ;no tests
40684 (native-inputs (list python-setuptools))
40685 (home-page "https://github.com/python/typeshed")
40686 (synopsis "Typing stubs for docutils")
40687 (description "This package provides a collection of library stubs for
40688Python, with static types.")
40689 (license license:asl2.0)))
40690
40691(define-public python-types-freezegun
40692 (package
40693 (name "python-types-freezegun")
40694 (version "1.1.8")
40695 (source
40696 (origin
40697 (method url-fetch)
40698 (uri (pypi-uri "types-freezegun" version))
40699 (sha256
40700 (base32 "08g926s8343zwq140zcfwly3qfgmahm7lp0vgb3ics549b2hifzl"))))
40701 (build-system pyproject-build-system)
40702 (arguments
40703 ;; XXX: No tests in PyPi source, but it's also unclear how to get the
40704 ;; right files from source, so ignore them for now.
40705 (list #:tests? #f))
40706 (native-inputs (list python-setuptools python-wheel))
40707 (home-page "https://github.com/python/typeshed")
40708 (synopsis "Typing stubs for @code{freezegun}")
40709 (description "This package contains typing stubs for for @code{freezegun}, a
40710very small subset the Python stubs contained in the complete @code{typeshed}
40711collection.")
40712 (license license:asl2.0)))
40713
40714(define-public python-types-orjson
40715 (package
40716 (name "python-types-orjson")
40717 (version "3.6.2")
40718 (source
40719 (origin
40720 (method url-fetch)
40721 (uri (pypi-uri "types-orjson" version))
40722 (sha256
40723 (base32 "0f66lf2qrl9d4vad42db3dmnzv89h4rr05r5zxx5qcl6kb3zr6ng"))))
40724 (build-system pyproject-build-system)
40725 (arguments (list #:tests? #f)) ;no tests
40726 (native-inputs (list python-setuptools))
40727 (home-page "https://github.com/python/typeshed")
40728 (synopsis "Typing stubs for orjson")
40729 (description "This is a PEP 561 type stub package for the @code{orjson}
40730package. It can be used by type-checking tools like mypy, PyCharm, pytype
40731etc. to check code that uses @code{orjson}.")
40732 (license license:asl2.0)))
40733
40734(define-public python-types-protobuf
40735 (package
40736 (name "python-types-protobuf")
40737 (version "3.20.1")
40738 (source (origin
40739 (method url-fetch)
40740 (uri (pypi-uri "types-protobuf" version))
40741 (sha256
40742 (base32
40743 "000f8n6d4ilihiaf590k73rx3327jh8ima5q5dpxlwz3frj45qrn"))))
40744 (build-system pyproject-build-system)
40745 (arguments
40746 ;; XXX: No tests in PyPi source, but it's also unclear how to get the
40747 ;; right files from source, so ignore them for now.
40748 (list #:tests? #f))
40749 (native-inputs (list python-setuptools python-wheel))
40750 (home-page "https://github.com/python/typeshed")
40751 (synopsis "Typing stubs for @code{protobuf}")
40752 (description "This package contains typing stubs for @code{protobuf}, a
40753very small subset the Python stubs contained in the complete @code{typeshed}
40754collection.")
40755 (license license:asl2.0)))
40756
40757(define-public python-types-pyside6
40758 (package
40759 (name "python-types-pyside6")
40760 ;; Project does not tag PyPI releases in Git, PyPI does not provide source
40761 ;; variant.
40762 (properties '((commit . "3a97b71975bda6d96cfa7b37ac6bf50ea100c1a2")
40763 (revision . "0")))
40764 (version (git-version "6.10.1.1"
40765 (assoc-ref properties 'revision)
40766 (assoc-ref properties 'commit)))
40767 (source
40768 (origin
40769 (method git-fetch)
40770 (uri (git-reference
40771 (url "https://github.com/LumaPictures/cg-stubs")
40772 (commit (assoc-ref properties 'commit))))
40773 (file-name (git-file-name name version))
40774 (sha256
40775 (base32 "07ydqy33fapmmpyq6d90jax3k4vlbb3az1v77bjlgmg8x0jimh4k"))))
40776 (build-system pyproject-build-system)
40777 (arguments
40778 (list
40779 #:tests? #f ;XXX: all tests failed
40780 #:phases
40781 #~(modify-phases %standard-phases
40782 (add-after 'unpack 'select-pyside6
40783 (lambda _
40784 (chdir "pyside6"))))))
40785 (native-inputs
40786 (list python-hatchling))
40787 (home-page "https://github.com/LumaPictures/cg-stubs")
40788 (synopsis "Accurate stubs for PySide6")
40789 (description
40790 "This package provides PySide6 stubs produced with @code{mypy}'s official
40791stubgen tool to directly generate stubs, with a set of corrections applied.")
40792 ;; As a derived work from PySide2, the stubs are delivered under the LGPL
40793 ;; v2.1 . See file LICENSE for more details.
40794 ;;
40795 ;; MIT in pyproject.toml
40796 (license (list license:lgpl2.1+
40797 license:expat))))
40798
40799(define-public python-types-python-dateutil
40800 (package
40801 (name "python-types-python-dateutil")
40802 (version "2.9.0.20250708")
40803 (source
40804 (origin
40805 (method url-fetch)
40806 (uri (pypi-uri "types_python_dateutil" version))
40807 (sha256
40808 (base32 "1ay8sp8qshx2na2sa9sz9hg2hb7yrws9ymshqfb9cv1dmdfxgnyc"))))
40809 (build-system pyproject-build-system)
40810 (arguments (list #:tests? #f)) ;no tests in PyPI archive
40811 (native-inputs (list python-setuptools))
40812 (home-page "https://github.com/python/typeshed")
40813 (synopsis "Typing stubs for python-dateutil")
40814 (description "This package providis typing stubs for python-dateutil.")
40815 (license license:asl2.0)))
40816
40817(define-public python-types-pytz
40818 (package
40819 (name "python-types-pytz")
40820 (version "2025.2.0.20250809")
40821 (source
40822 (origin
40823 (method url-fetch)
40824 (uri (pypi-uri "types_pytz" version))
40825 (sha256
40826 (base32 "1r91pvn1w9rb1395qw8w8k22s7w0wf2qfkl3z1qqiclvlbk34bi2"))))
40827 (build-system pyproject-build-system)
40828 (arguments
40829 (list #:tests? #f)) ;no tests provided
40830 (native-inputs (list python-setuptools))
40831 (home-page "https://github.com/python/typeshed")
40832 (synopsis "Typing stubs for pytz")
40833 (description "This package contains typing stubs for @code{pytz}, a very
40834small subset the Python stubs contained in the complete @code{typeshed}
40835collection.")
40836 (license license:asl2.0)))
40837
40838(define-public python-types-pyyaml
40839 (package
40840 (name "python-types-pyyaml")
40841 (version "6.0.12.20250915")
40842 (source
40843 (origin
40844 (method url-fetch)
40845 (uri (pypi-uri "types_pyyaml" version))
40846 (sha256
40847 (base32 "1lyirqjacfmn6bv27b7w0z483yps6gfqfmhnyzkg00y352jm92qg"))))
40848 (build-system pyproject-build-system)
40849 (arguments (list #:tests? #f)) ;no tests in PyPI archive
40850 (native-inputs
40851 (list python-setuptools))
40852 (home-page " https://github.com/python/typeshed")
40853 (synopsis "Typing stubs for PyYAML")
40854 (description "This package provides typing stubs for @code{PyYAML}.")
40855 (license license:asl2.0)))
40856
40857(define-public python-types-regex
40858 (package
40859 (name "python-types-regex")
40860 (version "2025.9.18.20250921")
40861 (source
40862 (origin
40863 (method url-fetch)
40864 (uri (pypi-uri "types_regex" version))
40865 (sha256
40866 (base32 "0gqc8b9d38pdm1l6nryi9rq9vmpis575hqnxlvj904n3n4hhqw71"))))
40867 (build-system pyproject-build-system)
40868 (arguments (list #:tests? #f)) ;no tests in PyPI archive
40869 (native-inputs (list python-setuptools))
40870 (home-page "https://github.com/python/typeshed")
40871 (synopsis "Typing stubs for regex")
40872 (description "This package provides typing stubs for regex.")
40873 (license license:asl2.0)))
40874
40875(define-public python-types-requests
40876 (package
40877 (name "python-types-requests")
40878 (version "2.32.4.20250611")
40879 (source
40880 (origin
40881 (method url-fetch)
40882 (uri (pypi-uri "types_requests" version))
40883 (sha256
40884 (base32 "09pqdfa66d3p5dig26chrd6rpxs5wamxcm0yyl5q69b4xmvqf73l"))))
40885 (build-system pyproject-build-system)
40886 (arguments (list #:tests? #f)) ;no tests in PyPI archive
40887 (native-inputs
40888 (list python-setuptools))
40889 (propagated-inputs
40890 (list python-urllib3))
40891 (home-page "https://github.com/python/typeshed")
40892 (synopsis "Typing stubs for requests")
40893 (description "This package provides typing stubs for requests.")
40894 (license license:asl2.0)))
40895
40896(define-public python-types-setuptools
40897 (package
40898 (name "python-types-setuptools")
40899 (version "80.9.0.20250529")
40900 (source
40901 (origin
40902 (method url-fetch)
40903 (uri (pypi-uri "types_setuptools" version))
40904 (sha256
40905 (base32 "149w6lg8n56k50n08jx450ni9frs2hzbv729sv48c8ds1jx8iq3r"))))
40906 (build-system pyproject-build-system)
40907 (arguments (list #:tests? #f)) ;no tests in PyPI archive
40908 (native-inputs
40909 (list python-setuptools))
40910 (home-page "https://github.com/python/typeshed")
40911 (synopsis "Typing stubs for setuptools")
40912 (description "This package provides typing stubs for setuptools.")
40913 (license license:asl2.0)))
40914
40915(define-public python-types-simplejson
40916 (package
40917 (name "python-types-simplejson")
40918 (version "3.19.0.20241221")
40919 (source
40920 (origin
40921 (method url-fetch)
40922 (uri (pypi-uri "types_simplejson" version))
40923 (sha256
40924 (base32 "0w7wvr84d7bj27hc2bsyh69s9d84zpkdhsibbmsibba91zdzjjhi"))))
40925 (build-system pyproject-build-system)
40926 (arguments
40927 (list
40928 #:tests? #f)) ; no tests in PyPI archive, no release or tags on GitHub
40929 (native-inputs
40930 (list python-setuptools python-wheel))
40931 (home-page "https://github.com/python/typeshed")
40932 (synopsis "Typing stubs for simplejson")
40933 (description "Typing stubs for simplejson.")
40934 (license license:asl2.0)))
40935
40936(define-public python-types-toml
40937 (package
40938 (name "python-types-toml")
40939 (version "0.10.8.20240310")
40940 (source
40941 (origin
40942 (method url-fetch)
40943 (uri (pypi-uri "types-toml" version))
40944 (sha256
40945 (base32 "0c83hfw4aqy01vzlh6r84mz6b2b6n98chfdjp2k3c94p089m0h9x"))))
40946 (build-system pyproject-build-system)
40947 (arguments
40948 (list #:tests? #f)) ;no tests provided
40949 (native-inputs (list python-setuptools))
40950 (home-page "https://github.com/python/typeshed")
40951 (synopsis "Typing stubs for TOML")
40952 (description
40953 "This package contains typing stubs for TOML, a very small subset the
40954Python stubs contained in the complete @code{typeshed} collection.")
40955 (license license:asl2.0)))
40956
40957(define-public python-types-tqdm
40958 (package
40959 (name "python-types-tqdm")
40960 (version "4.67.0.20250809")
40961 (source
40962 (origin
40963 (method url-fetch)
40964 (uri (pypi-uri "types_tqdm" version))
40965 (sha256
40966 (base32 "006md2hnsq79p7d5z3kiaapvl9wwa4dz3yb39jf0n22n2awpmgq2"))))
40967 (build-system pyproject-build-system)
40968 (arguments (list #:tests? #f)) ;no tests in PyPI archive
40969 (native-inputs (list python-setuptools))
40970 (propagated-inputs (list python-types-requests))
40971 (home-page "https://github.com/python/typeshed")
40972 (synopsis "Typing stubs for python-tqdm")
40973 (description "This package providis typing stubs for python-tqdm.")
40974 (license license:asl2.0)))
40975
40976(define-public python-types-ujson
40977 (package
40978 (name "python-types-ujson")
40979 (version "5.10.0.20250822")
40980 (source
40981 (origin
40982 (method url-fetch)
40983 (uri (pypi-uri "types_ujson" version))
40984 (sha256
40985 (base32 "01m0gdcy6plrjxxih96ra86wd2zhn4skzw7k7hvk51gpw5c5ay8a"))))
40986 (build-system pyproject-build-system)
40987 (arguments
40988 (list #:tests? #f)) ;no tests provided
40989 (native-inputs (list python-setuptools))
40990 (home-page "https://github.com/python/typeshed")
40991 (synopsis "Typing stubs for ujson")
40992 (description
40993 "This is a PEP 561 type stub package for the ujson package. It can be
40994used by type-checking tools like mypy, PyCharm, pytype etc. to check code that
40995uses ujson.")
40996 (license license:asl2.0)))
40997
40998(define-public python-types-urllib3
40999 (package
41000 (name "python-types-urllib3")
41001 (version "1.26.25.14")
41002 (source
41003 (origin
41004 (method url-fetch)
41005 (uri (pypi-uri "types-urllib3" version))
41006 (sha256
41007 (base32 "13ys7c7k9pg3lb11qvdgs9xq8j8bvcpjpg61j8dqq6wmgibpz6r2"))))
41008 (build-system pyproject-build-system)
41009 (arguments (list #:tests? #f)) ;no tests in PyPI archive
41010 (native-inputs
41011 (list python-setuptools))
41012 (home-page "https://github.com/python/typeshed")
41013 (synopsis "Typing stubs for urllib3")
41014 (description "This package provides typing stubs for urllib3.")
41015 (license license:asl2.0)))
41016
41017(define-public python-typeshed-client
41018 (package
41019 (name "python-typeshed-client")
41020 (version "2.8.2")
41021 (source
41022 (origin
41023 (method git-fetch)
41024 (uri (git-reference
41025 (url "https://github.com/JelleZijlstra/typeshed_client")
41026 (commit (string-append "v" version))))
41027 (file-name (git-file-name name version))
41028 (sha256
41029 (base32 "0i74ygf49184ab1ipfdzf706wnzs3id15rkysqarzcngdydrcszs"))))
41030 (build-system pyproject-build-system)
41031 (arguments
41032 (list #:test-backend #~'custom
41033 #:test-flags #~(list "tests/test.py")))
41034 (native-inputs
41035 (list python-setuptools))
41036 (propagated-inputs
41037 (list python-importlib-resources
41038 python-typing-extensions))
41039 (home-page "https://github.com/JelleZijlstra/typeshed_client")
41040 (synopsis "Library for accessing stubs in typeshed")
41041 (description
41042 "This package provides a library for accessing stubs in typeshed.")
41043 (license license:expat)))
41044
41045(define-public python-typing-inspect
41046 (package
41047 (name "python-typing-inspect")
41048 (version "0.9.0")
41049 (source
41050 (origin
41051 (method url-fetch)
41052 (uri (pypi-uri "typing_inspect" version))
41053 (sha256
41054 (base32 "0y0z8v4wr5bahlgzjd1il2z8vlfd2asiyb45wia6kvznyqpw8gxj"))))
41055 (build-system pyproject-build-system)
41056 (native-inputs
41057 (list python-pytest
41058 python-setuptools
41059 python-wheel))
41060 (propagated-inputs
41061 (list python-mypy-extensions
41062 python-typing-extensions))
41063 (home-page "https://github.com/ilevkivskyi/typing_inspect")
41064 (synopsis "API for inspection of types in the Python @code{typing} module")
41065 (description
41066 "The @code{typing_inspect} module defines experimental API for runtime
41067inspection of types defined in the Python standard typing module.")
41068 (license license:expat)))
41069
41070(define-public python-typing-inspection
41071 (package
41072 (name "python-typing-inspection")
41073 (version "0.4.2")
41074 (source
41075 (origin
41076 (method git-fetch)
41077 (uri (git-reference
41078 (url "https://github.com/pydantic/typing-inspection")
41079 (commit (string-append "v" version))))
41080 (file-name (git-file-name name version))
41081 (sha256
41082 (base32 "1dqib4arxxaxwyapw6y4pcvm38l8djkhd8cfr149w42bw4xrqr38"))))
41083 (build-system pyproject-build-system)
41084 ;; tests: 89 passed, 3 skipped
41085 (native-inputs
41086 (list python-pytest
41087 python-hatchling))
41088 (propagated-inputs
41089 (list python-typing-extensions))
41090 (home-page "https://github.com/pydantic/typing-inspection")
41091 (synopsis "Runtime typing introspection tools")
41092 (description
41093 "@code{typing-inspection} provides tools to inspect type annotations at
41094runtime.")
41095 (license license:expat)))
41096
41097(define-public python-typogrify
41098 (package
41099 (name "python-typogrify")
41100 (version "2.1.0")
41101 (source
41102 (origin
41103 (method url-fetch)
41104 (uri (pypi-uri "typogrify" version))
41105 (sha256
41106 (base32 "1vk17q04sax8rpdqll5zldnf6l3ixgknbnn9wimnwah3k1701aph"))))
41107 (build-system pyproject-build-system)
41108 (arguments
41109 (list
41110 #:test-flags
41111 #~(list "--doctest-modules"
41112 "typogrify/filters.py"
41113 "typogrify/packages/titlecase/tests.py")))
41114 (native-inputs
41115 (list python-pytest
41116 python-hatchling))
41117 (propagated-inputs
41118 (list python-smartypants))
41119 (home-page "https://github.com/justinmayer/typogrify")
41120 (synopsis "Filters to transform text into typographically-improved HTML")
41121 (description
41122 "@code{typogrify} provides a set of custom filters that automatically
41123apply various transformations to plain text in order to yield
41124typographically-improved HTML. While often used in conjunction with Jinja and
41125Django template systems, the filters can be used in any environment.")
41126 (license license:bsd-3)))
41127
41128(define-public python-ua-parser
41129 (package
41130 (name "python-ua-parser")
41131 (version "0.10.0")
41132 (source
41133 (origin
41134 (method url-fetch)
41135 (uri (pypi-uri "ua-parser" version))
41136 (sha256
41137 (base32
41138 "0csh307zfz666kkk5idrw3crj1x8q8vsqgwqil0r1n1hs4p7ica7"))))
41139 (build-system pyproject-build-system)
41140 (arguments
41141 `(#:tests? #f)) ;no test suite in release
41142 (native-inputs
41143 (list python-pyyaml
41144 python-setuptools))
41145 (home-page "https://github.com/ua-parser/uap-python")
41146 (synopsis "User agent parser")
41147 (description
41148 "@code{ua-parser} is a Python port of Browserscope's user agent parser.")
41149 (license license:asl2.0)))
41150
41151(define-public python-ubelt
41152 (package
41153 (name "python-ubelt")
41154 (version "1.3.6")
41155 (source
41156 (origin
41157 (method git-fetch)
41158 (uri (git-reference
41159 (url "https://github.com/Erotemic/ubelt")
41160 (commit (string-append "v" version))))
41161 (file-name (git-file-name name version))
41162 (sha256
41163 (base32 "1v2kf9lbdfaf9nppdq45rfanz4bdd2v6x59iajcznwgc4jmhj2na"))))
41164 (build-system pyproject-build-system)
41165 (arguments
41166 (list
41167 ;; The builder user home doesn't match HOME, which causes this test to
41168 ;; fail.
41169 #:test-flags #~(list "-k" "not userhome")
41170 #:phases
41171 #~(modify-phases %standard-phases
41172 (add-before 'check 'pre-check
41173 (lambda _
41174 (setenv "HOME" "/tmp")))))) ;else the test suite hangs
41175 (native-inputs
41176 (list python-pytest
41177 python-requests
41178 python-setuptools
41179 python-wheel
41180 python-xdoctest))
41181 (propagated-inputs
41182 (list python-ordered-set))
41183 (home-page "https://github.com/Erotemic/ubelt")
41184 (synopsis "Python library for hashing, caching, timing and more")
41185 (description
41186 "Ubelt is a small library of simple functions that extend the Python
41187standard library. It includes an @acronym{API, Application Programming
41188Interface} to simplify common problems such as caching, timing, computing
41189progress, among other things.")
41190 (license license:asl2.0)))
41191
41192(define-public python-uc-micro-py
41193 (package
41194 (name "python-uc-micro-py")
41195 (version "2.0.0")
41196 (source (origin
41197 (method git-fetch)
41198 (uri (git-reference
41199 (url "https://github.com/tsutsu3/uc.micro-py")
41200 (commit (string-append "v" version))))
41201 (file-name (git-file-name name version))
41202 (sha256
41203 (base32
41204 "06dx8zh0fa13aldqxhzghdnbbaqbb1dklbyqzdxy14dcbqmx92m3"))))
41205 (build-system pyproject-build-system)
41206 (native-inputs (list python-pytest python-setuptools))
41207 (home-page "https://github.com/tsutsu3/uc.micro-py")
41208 (synopsis "Unicode data files for linkify-it-py projects")
41209 (description "This package contains a micro subset of Unicode data files
41210for linkify-it-py projects.")
41211 (license license:expat)))
41212
41213(define-public python-udapi
41214 (package
41215 (name "python-udapi")
41216 (version "0.5.2")
41217 (source
41218 (origin
41219 (method git-fetch)
41220 (uri (git-reference
41221 (url "https://github.com/udapi/udapi-python")
41222 (commit version)))
41223 (file-name (git-file-name name version))
41224 (sha256
41225 (base32 "1z9nyj0jmd2yk58c5kag4fkfb7y478di859xi56xc7fhvmyjf7nj"))))
41226 (build-system pyproject-build-system)
41227 (native-inputs
41228 (list python-pytest python-setuptools))
41229 (propagated-inputs
41230 (list python-colorama python-termcolor))
41231 (home-page "http://udapi.readthedocs.io")
41232 (synopsis "Framework for processing Universal Dependencies data")
41233 (description
41234 "This package is a Python library providing an API for processing
41235Universal Dependencies data.")
41236 (license license:gpl3+)))
41237
41238(define-public python-ujson
41239 (package
41240 (name "python-ujson")
41241 (version "5.10.0")
41242 (source
41243 (origin
41244 (method url-fetch)
41245 (uri (pypi-uri "ujson" version))
41246 (sha256
41247 (base32
41248 "1habmn3bmmv2ym4ldiijcavdkdzp8h28h60hgwjkhxwcbly8zkdk"))
41249 (modules '((guix build utils)))
41250 (snippet
41251 #~(begin (delete-file-recursively "deps")))))
41252 (build-system pyproject-build-system)
41253 (arguments
41254 (list
41255 #:phases
41256 #~(modify-phases %standard-phases
41257 (add-after 'unpack 'link-to-system-double-conversion
41258 (lambda* (#:key inputs #:allow-other-keys)
41259 (let ((d-c (assoc-ref inputs "double-conversion")))
41260 (substitute* "setup.py"
41261 (("./deps/double-conversion/double-conversion\"")
41262 (string-append d-c "/include/double-conversion\""))
41263 (("-lstdc++" stdc)
41264 (string-append "-L" d-c "/lib\","
41265 " \"-ldouble-conversion\","
41266 " \"" stdc)))))))))
41267 (native-inputs
41268 (list double-conversion
41269 python-pytest
41270 python-setuptools
41271 python-setuptools-scm
41272 python-wheel))
41273 (home-page "https://github.com/ultrajson/ultrajson")
41274 (synopsis "Ultra fast JSON encoder and decoder for Python")
41275 (description
41276 "UltraJSON is an ultra fast JSON encoder and decoder written in pure C with
41277bindings for Python 3.")
41278 (license license:bsd-3)))
41279
41280(define-public python-ukkonen
41281 (package
41282 (name "python-ukkonen")
41283 (version "1.0.1")
41284 (source
41285 (origin
41286 ;; There are no tests in the PyPI tarball.
41287 (method git-fetch)
41288 (uri (git-reference
41289 (url "https://github.com/asottile/ukkonen")
41290 (commit (string-append "v" version))))
41291 (file-name (git-file-name name version))
41292 (sha256
41293 (base32 "17gspl2dsykg000275svvyam4k7wz9ypi9xrfrmsgcgryczravlc"))))
41294 (build-system pyproject-build-system)
41295 (native-inputs (list python-pytest python-setuptools python-wheel))
41296 (propagated-inputs (list python-cffi))
41297 (home-page "https://github.com/asottile/ukkonen")
41298 (synopsis "Implementation of bounded Levenshtein distance (Ukkonen)")
41299 (description "This package is an implementation of of bounded Levenshtein
41300distance (Ukkonen).")
41301 (license license:expat)))
41302
41303(define-public python-ulid
41304 (package
41305 (name "python-ulid")
41306 (version "3.1.0")
41307 (source
41308 (origin
41309 (method git-fetch)
41310 (uri (git-reference
41311 (url "https://github.com/mdomke/python-ulid")
41312 (commit version)))
41313 (file-name (git-file-name name version))
41314 (sha256
41315 (base32 "0m1sixmqynlalsw50af5mv5q4gpz2052d1p2ig9hr7yqmdvqcz6p"))))
41316 (build-system pyproject-build-system)
41317 (arguments
41318 ;; test_same_millisecond_overflow is flaky, fails 1 in 10 times.
41319 ;; See <https://github.com/mdomke/python-ulid/issues/55>.
41320 ;; 68 passed, 1 deselected in 2.55s
41321 (list #:test-flags #~(list "-k" "not test_same_millisecond_overflow")))
41322 (native-inputs
41323 (list python-freezegun
41324 python-hatch-fancy-pypi-readme
41325 python-hatch-vcs
41326 python-hatchling
41327 python-pytest))
41328 (propagated-inputs
41329 (list python-pydantic))
41330 (home-page "https://github.com/mdomke/python-ulid")
41331 (synopsis "Universally unique lexicographically sortable identifier")
41332 (description
41333 "ULID is a universally unique lexicographically sortable identifier.
41334It is:
41335@itemize
41336@item 128-bit compatible with UUID
41337@item 1.21e+24 unique ULIDs per millisecond
41338@item lexicographically sortable!
41339@item canonically encoded as a 26 character string, as opposed to the 36
41340character UUID
41341@item uses Crockford's base32 for better efficiency and readability (5 bits
41342per character)
41343@item case insensitive
41344@item no special characters (URL safe)
41345@item monotonic sort order (correctly detects and handles the same
41346millisecond)
41347@end itemize")
41348 (license license:expat)))
41349
41350(define-public python-uncertainties
41351 (package
41352 (name "python-uncertainties")
41353 (version "3.2.3")
41354 (source
41355 (origin
41356 (method url-fetch)
41357 (uri (pypi-uri "uncertainties" version))
41358 (sha256
41359 (base32
41360 "0c9hl35jvld1a1vinh9mdcpfgz4ykqinlm1dj917lqbgd0z6b9bn"))))
41361 (build-system pyproject-build-system)
41362 (native-inputs
41363 (list python-pytest python-setuptools python-setuptools-scm python-wheel))
41364 (propagated-inputs (list python-numpy))
41365 (home-page "https://uncertainties.readthedocs.io/en/latest/")
41366 (synopsis "Calculations with uncertainties")
41367 (description
41368 "The uncertainties package transparently handles calculations with
41369numbers with uncertainties. It can also yield the derivatives of any
41370expression.")
41371 (license license:bsd-3)))
41372
41373(define-public python-unicode-linebreak
41374 (package
41375 (name "python-unicode-linebreak")
41376 (version "0.0.2")
41377 (source
41378 (origin
41379 (method git-fetch)
41380 (uri (git-reference
41381 (url "https://github.com/mondeja/py-unicode-linebreak")
41382 (commit (string-append "v" version))))
41383 (file-name (git-file-name name version))
41384 (sha256
41385 (base32 "0qvh729b2q82sy057qgldcbz513wxnsckmwl3c18wkyb3c1iq2qk"))))
41386 (build-system pyproject-build-system)
41387 (arguments
41388 (list
41389 #:imported-modules `(,@%cargo-build-system-modules
41390 ,@%pyproject-build-system-modules)
41391 #:modules '(((guix build cargo-build-system) #:prefix cargo:)
41392 (guix build pyproject-build-system)
41393 (guix build utils))
41394 #:test-backend #~'unittest
41395 #:phases
41396 #~(modify-phases %standard-phases
41397 (add-after 'unpack 'prepare-cargo-build-system
41398 (lambda args
41399 (for-each
41400 (lambda (phase)
41401 (format #t "Running cargo phase: ~a~%" phase)
41402 (apply (assoc-ref cargo:%standard-phases phase)
41403 #:cargo-target #$(cargo-triplet)
41404 args))
41405 '(unpack-rust-crates
41406 configure
41407 check-for-pregenerated-files
41408 patch-cargo-checksums)))))))
41409 (native-inputs
41410 (append
41411 (list maturin
41412 rust
41413 `(,rust "cargo"))
41414 (or (and=> (%current-target-system)
41415 (compose list make-rust-sysroot))
41416 '())))
41417 (inputs (cargo-inputs 'unicode_linebreak))
41418 (home-page "https://github.com/mondeja/py-unicode-linebreak")
41419 (synopsis "Markdown paragraph wrapper")
41420 (description
41421 "This package provides a Markdown paragraph wrapper using Unicode Line
41422Breaking Algorithm written in Rust with Python bindings.")
41423 (license license:expat)))
41424
41425(define-public python-unicodedata2
41426 (package
41427 (name "python-unicodedata2")
41428 (version "16.0.0")
41429 (source
41430 (origin
41431 (method url-fetch)
41432 (uri (pypi-uri "unicodedata2" version))
41433 (sha256
41434 (base32 "1z3llixb4cd6cc6nmyps5vv2sss14n3x6dzcc65xg75mj9jqsj05"))))
41435 (build-system pyproject-build-system)
41436 (native-inputs
41437 (list python-pytest
41438 python-setuptools))
41439 (home-page "https://github.com/fonttools/unicodedata2")
41440 (synopsis "Python unicodedata backport")
41441 (description "This package corresponds to the latest @code{unicodedata}
41442standard Python module.")
41443 (license license:asl2.0)))
41444
41445(define-public python-unicodeitplus
41446 (package
41447 (name "python-unicodeitplus")
41448 (version "0.3.1")
41449 (source
41450 (origin
41451 (method url-fetch)
41452 (uri (pypi-uri "unicodeitplus" version))
41453 (sha256
41454 (base32 "1mssdjih7dqz25lrb2pyjg2yvab0b9c7a5k1llx1yzkkqbqyh74c"))))
41455 (build-system pyproject-build-system)
41456 (native-inputs
41457 (list python-pytest
41458 python-setuptools
41459 python-setuptools-scm))
41460 (propagated-inputs
41461 (list python-lark))
41462 (home-page "https://github.com/HDembinski/unicodeitplus")
41463 (synopsis "Convert simple LaTeX to an Unicode approximation")
41464 (description
41465 "This package provides a more complete LaTeX to Unicode converter than
41466@code{unicodeit} using a parser generated from @acronym{EBNF, Extended
41467Backus-Naur Form} with the Lark library.")
41468 (license license:bsd-3)))
41469
41470(define-public python-unidecode
41471 (package
41472 (name "python-unidecode")
41473 (version "1.4.0")
41474 (source
41475 (origin
41476 (method url-fetch)
41477 (uri (pypi-uri "Unidecode" version))
41478 (sha256
41479 (base32 "08rbx8vxsnj06cvrdxy80zrn9hk25lwcqfh2fdjng2rk1189hdff"))))
41480 (build-system pyproject-build-system)
41481 (native-inputs
41482 (list python-pytest python-setuptools))
41483 (home-page "https://pypi.org/project/Unidecode/")
41484 (synopsis "ASCII transliterations of Unicode text")
41485 (description
41486 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
41487useful when integrating with legacy code that doesn't support Unicode, or for
41488ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
41489machine identifiers from human-readable Unicode strings that should still be
41490somewhat intelligible.")
41491 (license license:gpl2+)))
41492
41493(define-public python-unique-log-filter
41494 (package
41495 (name "python-unique-log-filter")
41496 (version "0.1.0")
41497 (source
41498 (origin
41499 (method git-fetch)
41500 (uri (git-reference
41501 (url "https://github.com/twizmwazin/unique_log_filter")
41502 (commit (string-append "v" version))))
41503 (file-name (git-file-name name version))
41504 (sha256
41505 (base32 "036mh6nqskck2fa1q2inasqxb9wcz2p09qcpldnnffzcy1a6kzba"))))
41506 (build-system pyproject-build-system)
41507 (arguments
41508 (list #:test-backend #~'custom
41509 #:test-flags #~(list "test_unique_log_filter.py")))
41510 (native-inputs (list python-flit-core))
41511 (home-page "https://github.com/twizmwazin/unique_log_filter")
41512 (synopsis "Log filter that removes duplicate log messages")
41513 (description
41514 "This library provides a filter for the @code{logging} module
41515from the Python standard library which allows removing duplicate log
41516messages.")
41517 (license license:bsd-2)))
41518
41519(define-public python-uniseg
41520 (package
41521 (name "python-uniseg")
41522 (version "0.10.0")
41523 (source
41524 (origin
41525 (method url-fetch)
41526 (uri (pypi-uri "uniseg" version))
41527 (sha256
41528 (base32 "18sj1i7xlssrsfwlr95bd4x78mfhq0v6irfx3b7fkgr17a5jbsmm"))))
41529 (build-system pyproject-build-system)
41530 (native-inputs
41531 (list python-pytest
41532 python-setuptools
41533 python-setuptools-scm))
41534 (home-page "https://bitbucket.org/emptypage/uniseg-python")
41535 (synopsis "Python library to determine Unicode text segmentations")
41536 (description
41537 "Uniseg is a Python package used to determine Unicode text segmentations.
41538Supported segmentations include:
41539@enumerate
41540@item @dfn{Code point} (any value in the Unicode codespace)
41541@item @dfn{Grapheme cluster} (user-perceived character made of a single or
41542multiple Unicode code points, e.g. \"G\" + acute-accent)
41543@item Word break
41544@item Sentence break
41545@item Line break
41546@end enumerate")
41547 (license license:expat)))
41548
41549(define-public python-universal-pathlib
41550 (package
41551 (name "python-universal-pathlib")
41552 (version "0.2.6")
41553 (source
41554 (origin
41555 (method git-fetch)
41556 (uri (git-reference
41557 (url "https://github.com/fsspec/universal_pathlib")
41558 (commit (string-append "v" version))))
41559 (file-name (git-file-name name version))
41560 (sha256
41561 (base32 "0y2czk4civjjy9v8vhv6icivk4lapjcjzhdxjrrm3629apqja7wp"))))
41562 (build-system pyproject-build-system)
41563 (arguments
41564 (list
41565 #:tests? #f)) ;requires network
41566 (native-inputs
41567 (list python-setuptools
41568 python-setuptools-scm))
41569 (propagated-inputs
41570 (list python-fsspec
41571 python-pathlib-abc))
41572 (home-page "https://github.com/fsspec/universal_pathlib")
41573 (synopsis
41574 "@code{pathlib} API extended to use @code{fsspec} backends")
41575 (description
41576 "Universal Pathlib is a Python library that extends the @code{pathlib.Path}
41577API to support a variety of backend filesystems via filesystem_spec.")
41578 (license license:expat)))
41579
41580(define-public python-unpaddedbase64
41581 (package
41582 (name "python-unpaddedbase64")
41583 (version "2.1.0")
41584 (source
41585 (origin
41586 (method git-fetch)
41587 (uri (git-reference
41588 (url "https://github.com/matrix-org/python-unpaddedbase64")
41589 (commit (string-append "v" version))))
41590 (file-name (git-file-name name version))
41591 (sha256
41592 (base32 "1n6har8pxv0mqb96lanzihp1xf76aa17jw3977drb1fgz947pnmz"))))
41593 (build-system pyproject-build-system)
41594 (native-inputs (list python-poetry-core
41595 python-pytest
41596 python-setuptools
41597 python-wheel))
41598 (home-page "https://github.com/matrix-org/python-unpaddedbase64")
41599 (synopsis "Encode and decode Base64 without “=” padding")
41600 (description
41601 "RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes
41602using “=” characters. However this conveys no benefit so many protocols
41603choose to use Base64 without the “=” padding.")
41604 (license license:asl2.0)))
41605
41606(define-public python-update-checker
41607 (package
41608 (name "python-update-checker")
41609 (version "0.18.0")
41610 (source
41611 (origin
41612 (method url-fetch)
41613 (uri (pypi-uri "update-checker" version))
41614 (sha256
41615 (base32 "04yb5a9mi45ax50m2m0ih6gdvkk1j7gfmy83dd58i1f59axlabba"))))
41616 (build-system pyproject-build-system)
41617 (native-inputs
41618 (list python-pytest
41619 python-setuptools))
41620 (propagated-inputs
41621 (list python-requests))
41622 (home-page "https://github.com/bboe/update_checker")
41623 (synopsis "Python module that will check for package updates")
41624 (description "This package provides a Python module that will check for
41625package updates.")
41626 (license license:bsd-2)))
41627
41628(define-public python-uri-template
41629 (package
41630 (name "python-uri-template")
41631 (version "1.3.0")
41632 (source
41633 (origin
41634 (method git-fetch)
41635 (uri (git-reference
41636 (url "https://gitlab.linss.com/open-source/python/uri-template")
41637 (commit (string-append "v" version))))
41638 (file-name (git-file-name name version))
41639 (sha256
41640 (base32 "0z1g5hpxzi5rh4xsra6bsvyg5qzmnx7a8j5q7rngmj9slcbcbhfz"))))
41641 (build-system pyproject-build-system)
41642 (arguments
41643 (list
41644 #:test-backend #~'custom
41645 #:test-flags #~(list "test.py")))
41646 (native-inputs
41647 (list python-setuptools
41648 python-setuptools-scm))
41649 (home-page "https://gitlab.linss.com/open-source/python/uri-template")
41650 (synopsis "RFC 6570 URI Template Processor")
41651 (description "This package implements URI Template expansion in strict
41652adherence to RFC 6570, but adds a few extensions.")
41653 (license license:expat)))
41654
41655(define-public python-uritools
41656 (package
41657 (name "python-uritools")
41658 (version "6.0.1")
41659 (source
41660 (origin
41661 (method git-fetch)
41662 (uri (git-reference
41663 (url "https://github.com/tkem/uritools/")
41664 (commit (string-append "v" version))))
41665 (file-name (git-file-name name version))
41666 (sha256
41667 (base32 "115a8xphnv0ykd4c0pjh5rd4zy92znpdv4nwbn7n2d6irznvk00v"))))
41668 (build-system pyproject-build-system)
41669 (native-inputs
41670 (list python-pytest
41671 python-setuptools))
41672 (home-page "https://github.com/tkem/uritools/")
41673 (synopsis "URI parsing, classification and composition")
41674 (description
41675 "This package provides RFC 3986 compliant functions for parsing,
41676classifying and composing URIs and URI references, largely replacing the
41677Python Standard Library's urllib.parse module.")
41678 (license license:expat)))
41679
41680(define-public python-urwid
41681 (package
41682 (name "python-urwid")
41683 (version "3.0.3")
41684 (source
41685 (origin
41686 (method url-fetch)
41687 (uri (pypi-uri "urwid" version))
41688 (sha256
41689 (base32
41690 "16zdji1fdr5jbry9h01dxwnadrygs1xj415jqnhmmnlcavfh821h"))))
41691 (build-system pyproject-build-system)
41692 (arguments
41693 (list
41694 #:test-flags
41695 #~(list "tests"
41696 ;; According to Debian these tests are cursed.
41697 ;; https://salsa.debian.org/python-team/packages/urwid/-/blob/debian/2.1.2-2/debian/changelog#L141
41698 "--ignore=tests/test_vterm.py")))
41699 (native-inputs
41700 (list python-pytest python-setuptools python-setuptools-scm))
41701 (propagated-inputs
41702 (list python-wcwidth
41703 ;; [optional]
41704 python-pygobject
41705 python-pyzmq
41706 python-tornado
41707 python-pyserial
41708 python-twisted))
41709 (home-page "https://urwid.org")
41710 (synopsis "Console user interface library for Python")
41711 (description
41712 "Urwid is a curses-based UI/widget library for Python. It includes many
41713features useful for text console applications.")
41714 (license license:lgpl2.1+)))
41715
41716(define-public python-urwid-2
41717 (package
41718 (inherit python-urwid)
41719 (name "python-urwid")
41720 (version "2.6.16")
41721 (source
41722 (origin
41723 (method url-fetch)
41724 (uri (pypi-uri "urwid" version))
41725 (sha256
41726 (base32 "18ijvgf1l7jvmg45x1cysn3c9rdrg1w0405acig3hk7476cj7bck"))))))
41727
41728(define-deprecated/public-alias python-urwid-3
41729 python-urwid) ;may be removed after 2025-11-12
41730
41731(define-public python-urwid-for-zulip-term
41732 ;; [email protected] requires exact 2.1.2 version otherwise some tests fail
41733 ;; to pass, remove when no longer required.
41734 (hidden-package
41735 (package
41736 (inherit python-urwid)
41737 (version "2.1.2")
41738 (source
41739 (origin
41740 (method url-fetch)
41741 (uri (pypi-uri "urwid" version))
41742 (sha256
41743 (base32 "1bky2bra6673xx8jy0826znw6cmxs89wcwwzda8d025j3jffx2sq"))))
41744 (arguments
41745 (list #:tests? #f)))))
41746
41747(define-public python-urwid-readline
41748 (package
41749 (name "python-urwid-readline")
41750 (version "0.15.1")
41751 (source
41752 (origin
41753 (method git-fetch)
41754 (uri (git-reference
41755 (url "https://github.com/rr-/urwid_readline")
41756 (commit version)))
41757 (file-name (git-file-name name version))
41758 (sha256
41759 (base32 "0zhpx86gvpkziclb7bcqn73fadkzn805rjqy7lzhrza46lphq8qy"))))
41760 (build-system pyproject-build-system)
41761 (native-inputs
41762 (list python-pytest
41763 python-setuptools))
41764 (propagated-inputs
41765 (list python-urwid))
41766 (home-page "https://github.com/rr-/urwid_readline")
41767 (synopsis "Text input widget for urwid that supports readline shortcuts")
41768 (description
41769 "This package provides a textbox edit widget for @code{python-urwid} that
41770supports @code{readline} shortcuts.")
41771 (license license:expat)))
41772
41773(define-public python-urwidgets
41774 (package
41775 (name "python-urwidgets")
41776 (version "0.2.1")
41777 (source
41778 (origin
41779 (method url-fetch)
41780 (uri (pypi-uri "urwidgets" version))
41781 (sha256
41782 (base32 "1vrydw9h8c5gi89dnv12a9cdyyxaffvxl1kq51f118cxjk9brwpr"))))
41783 (build-system pyproject-build-system)
41784 (arguments
41785 (list #:tests? #f)) ;no tests
41786 (native-inputs
41787 (list python-setuptools))
41788 (propagated-inputs
41789 (list python-urwid-2))
41790 (home-page "https://github.com/AnonymouX47/urwidgets")
41791 (synopsis "Collection of widgets for urwid")
41792 (description
41793 "This package provides a collection of widgets for urwid.")
41794 (license license:expat)))
41795
41796(define-public python-urwidtrees
41797 (package
41798 (name "python-urwidtrees")
41799 (version "1.0.4")
41800 (source
41801 (origin
41802 (method git-fetch)
41803 ;; package author intends on distributing via github rather than pypi:
41804 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
41805 (uri (git-reference
41806 (url "https://github.com/pazz/urwidtrees")
41807 (commit version)))
41808 (file-name (git-file-name name version))
41809 (sha256
41810 (base32
41811 "17k0gx8i7wrzw6skzdjh9b8v3n6lb5zvg9jrybc3d09p8ipvc31i"))))
41812 (build-system pyproject-build-system)
41813 (arguments
41814 '(#:tests? #f)) ; no tests
41815 (propagated-inputs (list python-urwid))
41816 (native-inputs (list python-mock python-setuptools python-wheel))
41817 (home-page "https://github.com/pazz/urwidtrees")
41818 (synopsis "Tree widgets for urwid")
41819 (description "Urwidtrees is a Widget Container API for the @code{urwid}
41820toolkit. Use it to build trees of widgets.")
41821 (license license:gpl3+)))
41822
41823(define-public python-user-agents
41824 (package
41825 (name "python-user-agents")
41826 (version "2.2.0")
41827 (source
41828 (origin
41829 (method git-fetch)
41830 (uri (git-reference
41831 (url "https://github.com/selwin/python-user-agents")
41832 (commit (string-append "v" version))))
41833 (file-name (git-file-name name version))
41834 (sha256
41835 (base32 "0pcbjqj21c2ixhl414bh2h8khi8y1igzfpkyqwan1pakix0lq45a"))))
41836 (build-system pyproject-build-system)
41837 (arguments
41838 (list #:test-backend #~'unittest))
41839 (native-inputs
41840 (list python-setuptools))
41841 (propagated-inputs
41842 (list python-ua-parser))
41843 (home-page "https://github.com/selwin/python-user-agents")
41844 (synopsis "User Agent strings parsing library")
41845 (description
41846 "A library to identify devices (phones, tablets) and their capabilities by
41847parsing (browser/HTTP) user agent strings.")
41848 (license license:expat)))
41849
41850(define-public python-userpath
41851 (package
41852 (name "python-userpath")
41853 (version "1.9.2")
41854 (source
41855 (origin
41856 (method url-fetch)
41857 (uri (pypi-uri "userpath" version))
41858 (sha256
41859 (base32 "05fqxzdi27vqm5lywxs6bm2j4d8k91fx2ihqhg65g4h6mf6jhlkc"))))
41860 (build-system pyproject-build-system)
41861 (arguments
41862 ;; See https://github.com/ofek/userpath/issues/43.
41863 ;; In Guix, tests try to find the temporary build directory in PATH, but
41864 ;; only the store output is present.
41865 (list #:tests? #f))
41866 (native-inputs (list python-hatchling python-pytest))
41867 (propagated-inputs (list python-click))
41868 (home-page "https://github.com/ofek/userpath")
41869 (synopsis "Add locations to the user's PATH")
41870 (description "This package provides a tool for modifying a user's PATH.")
41871 (license license:expat)))
41872
41873(define-public python-userspacefs
41874 (package
41875 (name "python-userspacefs")
41876 (version "3.2.1")
41877 (source
41878 (origin
41879 (method url-fetch)
41880 (uri (pypi-uri "userspacefs" version))
41881 (sha256
41882 (base32 "0n3mp9y1xgkl292m44i6xrkha2ffja1zrf5yaykz0yyvm85cfip4"))))
41883 (build-system pyproject-build-system)
41884 (arguments
41885 (list #:tests? #f ;no tests
41886 #:phases
41887 #~(modify-phases %standard-phases
41888 (add-after 'unpack 'hardcode-libfuse
41889 (lambda* (#:key inputs #:allow-other-keys)
41890 (substitute* "userspacefs/fusepy.py"
41891 (("^_libfuse_path.*")
41892 (string-append "_libfuse_path = '"
41893 (search-input-file inputs "lib/libfuse3.so")
41894 "'\n"))))))))
41895 (inputs (list fuse))
41896 (native-inputs (list python-setuptools))
41897 (propagated-inputs (list python-aiohttp python-typing-extensions))
41898 (home-page "https://thelig.ht/code/userspacefs/readme.html")
41899 (synopsis "User-space file systems for Python")
41900 (description
41901 "@code{userspacefs} is a library that allows you to easily write
41902user-space file systems in Python.")
41903 (license license:gpl3+)))
41904
41905(define-public python-utils
41906 (package
41907 (name "python-utils")
41908 (version "3.9.1")
41909 (source
41910 (origin
41911 (method url-fetch)
41912 (uri (pypi-uri "python_utils" version))
41913 (sha256
41914 (base32 "18292j4p1bvlpbrfj2cgkdby6dpgnl5gbjwly0qb4pj1j914nmzb"))))
41915 (build-system pyproject-build-system)
41916 (native-inputs
41917 (list python-pytest
41918 python-pytest-asyncio
41919 python-setuptools))
41920 (propagated-inputs
41921 (list python-loguru
41922 python-typing-extensions))
41923 (home-page "https://github.com/WoLpH/python-utils")
41924 (synopsis "Convenient utilities not included with the standard Python install")
41925 (description
41926 "Python Utils is a collection of small Python functions and classes
41927which make common patterns shorter and easier.")
41928 (license license:bsd-2)))
41929
41930(define-public python-uuid6
41931 (package
41932 (name "python-uuid6")
41933 (version "2025.0.1")
41934 (source
41935 (origin
41936 (method git-fetch)
41937 (uri (git-reference
41938 (url "https://github.com/oittaa/uuid6-python")
41939 (commit version)))
41940 (file-name (git-file-name name version))
41941 (sha256
41942 (base32 "0xawnq7b0vzcvrw50jfdagn4a2javyav108hlpf31kbn7rn03jhk"))))
41943 (build-system pyproject-build-system)
41944 (arguments
41945 (list
41946 #:test-flags
41947 ;; Test is time based: AssertionError: 13987034766.015247 !=
41948 ;; 13987034766.01471 within 3 places (0.000537872314453125 difference)
41949 #~(list "--deselect=test/test_uuid6.py::UUIDTests::test_time")))
41950 (native-inputs
41951 (list python-pytest
41952 python-setuptools
41953 python-setuptools-scm))
41954 (home-page "https://github.com/oittaa/uuid6-python")
41955 (synopsis "Time-based UUID formats which are suited for use as a database key")
41956 (description
41957 "This module extends immutable UUID objects (the UUID class) with the
41958functions @code{uuid6()}, @code{uuid7()}, and @code{uuid8()} from the proposed
41959@url{https://datatracker.ietf.org/doc/rfc9562/, IETF RFC 9562}.")
41960 (license license:expat)))
41961
41962(define-public python-validate-email
41963 (package
41964 (name "python-validate-email")
41965 (version "1.3")
41966 (source
41967 (origin
41968 (method url-fetch)
41969 (uri (pypi-uri "validate_email" version))
41970 (sha256
41971 (base32 "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"))))
41972 (build-system pyproject-build-system)
41973 (arguments (list #:tests? #f)) ;no tests in PyPI or Git
41974 (native-inputs
41975 (list python-setuptools))
41976 (home-page "https://github.com/syrusakbary/validate_email")
41977 (synopsis "Verifies if an email address is valid and really exists")
41978 (description
41979 "@code{validate_email} can be used to verify if an email address is
41980valid and really exists.")
41981 (license license:lgpl3+)))
41982
41983(define-public python-validators
41984 ;; TODO: Move to (gnu packages python-web) or (gnu packages python-crypto).
41985 (package
41986 (name "python-validators")
41987 (version "0.35.0")
41988 (source
41989 (origin
41990 (method git-fetch)
41991 (uri (git-reference
41992 (url "https://github.com/kvesteri/validators")
41993 (commit version)))
41994 (file-name (git-file-name name version))
41995 (sha256
41996 (base32 "1q4mhcr10f22f8lwbsplhjyy0m3axddawd3mcax7qzm6p8lj6ybg"))))
41997 (build-system pyproject-build-system)
41998 (native-inputs
41999 (list python-pytest
42000 python-setuptools))
42001 (propagated-inputs
42002 (list python-eth-hash))
42003 (home-page "https://github.com/kvesteri/validators")
42004 (synopsis "Data validation library")
42005 (description
42006 "This package contains validators for different things such as email
42007addresses, IP addresses, URLs, hashes and more. It has been designed to be
42008easy to use and not require defining a schema or form just to validate some
42009input.")
42010 (license license:expat)))
42011
42012(define-public python-valkey
42013 (package
42014 (name "python-valkey")
42015 (version "6.1.1")
42016 (source
42017 (origin
42018 (method git-fetch)
42019 (uri (git-reference
42020 (url "https://github.com/valkey-io/valkey-py")
42021 (commit (string-append "v" version))))
42022 (file-name (git-file-name name version))
42023 (sha256
42024 (base32 "05zmnb8lmygv75zx0hb40s2rgr53sy4g0sizcb9mq8fd09z5i0n2"))))
42025 (build-system pyproject-build-system)
42026 (arguments
42027 ;; XXX: A lot of tests fail with ConnectionError
42028 ;; Maybe we need to spawn a valkey server?
42029 (list #:tests? #f))
42030 (native-inputs
42031 (list python-setuptools))
42032 (home-page "https://github.com/valkey-io/valkey-py")
42033 (synopsis "Python client for Valkey")
42034 (description
42035 "This package provides a python client for the @code{Valkey} key-value
42036store, forked from redis-py.")
42037 (license license:expat)))
42038
42039;; XXX: No fresh releases or updates since 2016, consider to remove, leaf
42040;; package.
42041(define-public python-vcversioner
42042 (package
42043 (name "python-vcversioner")
42044 (version "2.16.0.0")
42045 (source
42046 (origin
42047 (method url-fetch)
42048 (uri (pypi-uri "vcversioner" version))
42049 (sha256
42050 (base32
42051 "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
42052 (build-system pyproject-build-system)
42053 (arguments
42054 (list #:tests? #f)) ;no tests in PyPI archive
42055 (native-inputs
42056 (list python-setuptools))
42057 (home-page "https://github.com/habnabit/vcversioner")
42058 (synopsis "Python library for version number discovery")
42059 (description
42060 "Vcversioner is a Python library that inspects tagging information in a
42061variety of version control systems in order to discover version numbers.")
42062 (license license:isc)))
42063
42064(define-public python-vdf
42065 (package
42066 (name "python-vdf")
42067 (version "3.4")
42068 (source
42069 (origin
42070 (method git-fetch) ; no tests in PyPI release
42071 (uri (git-reference
42072 (url "https://github.com/ValvePython/vdf")
42073 (commit (string-append "v" version))))
42074 (file-name (git-file-name name version))
42075 (sha256
42076 (base32 "1xc0sd21xgf08pf6dwa4l23y9jb6yqaw61rr03ns0d2r6sby137a"))))
42077 (build-system pyproject-build-system)
42078 (native-inputs
42079 (list python-pytest python-setuptools))
42080 (home-page "https://github.com/ValvePython/vdf")
42081 (synopsis "Work with Valve's VDF text format")
42082 (description
42083 "This package provides @code{python-vdf}, a library for working with
42084 Valve's VDF text format.")
42085 (license license:expat)))
42086
42087(define-public python-vendetect
42088 (package
42089 (name "python-vendetect")
42090 (version "0.0.3")
42091 (source
42092 (origin
42093 (method url-fetch)
42094 (uri (pypi-uri "vendetect" version))
42095 (sha256
42096 (base32 "0hi13sbgr8y66mih2xyzczjfff4lwymkn9cw5215ms2nn6qq9rhi"))))
42097 (build-system pyproject-build-system)
42098 (propagated-inputs (list python-copydetect python-rich))
42099 (native-inputs (list python-hatchling python-pytest))
42100 (home-page "https://github.com/trailofbits/vendetect")
42101 (synopsis "Detect vendored and copy-pasted code")
42102 (description
42103 "Vendetect helps identify copied or vendored code between repositories,
42104making it easier to detect when code has been copied with or without
42105attribution. It uses similarity detection algorithms to compare code files
42106and highlight matching sections.")
42107 (license license:agpl3+)))
42108
42109;; XXX: No updates since 2017.
42110(define-public python-verboselogs
42111 (package
42112 (name "python-verboselogs")
42113 (version "1.7")
42114 (source
42115 (origin
42116 (method url-fetch)
42117 (uri (pypi-uri "verboselogs" version))
42118 (sha256
42119 (base32 "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3"))))
42120 (build-system pyproject-build-system)
42121 (arguments
42122 (list
42123 #:test-flags
42124 ;; Do not run pylint plugin test, as astroid is an old unsupported
42125 ;; version.
42126 #~(list "-k" "not test_pylint_plugin"
42127 "verboselogs/tests.py")))
42128 (native-inputs
42129 (list python-mock
42130 python-pytest
42131 python-setuptools))
42132 (home-page "https://verboselogs.readthedocs.io")
42133 (synopsis "Verbose logging level for Python's logging module")
42134 (description
42135 "The @code{verboselogs} package extends Python's @code{logging} module to
42136add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.")
42137 (license license:expat)))
42138
42139(define-public python-verlib2
42140 (package
42141 (name "python-verlib2")
42142 (version "0.3.1")
42143 (source
42144 (origin
42145 (method git-fetch)
42146 (uri (git-reference
42147 (url "https://github.com/pyveci/verlib2")
42148 (commit (string-append "v" version))))
42149 (file-name (git-file-name name version))
42150 (sha256
42151 (base32 "1xp0qfzy4l4fs1rn1670fbf7d7xv1p2s3rplspx8xqszjd5j0n8c"))))
42152 (build-system pyproject-build-system)
42153 (native-inputs
42154 (list python-pretend python-pytest python-setuptools))
42155 (home-page "https://github.com/pyveci/verlib2")
42156 (synopsis "Python versioning utilities")
42157 (description
42158 "This package provides a standalone variant of @code{distutils.version} and
42159@code{packaging.version}, without anything else.")
42160 (license license:bsd-2)))
42161
42162;; XXX: No updates since 2018, consider to remove when fails to build, it's a
42163;; leaf package.
42164(define-public python-version
42165 ;; No version tags available in the git repo; just using bare commit instead.
42166 (let ((commit "5232eea250ab72cc5cb72b0b75efb35d2192b906")
42167 (revision "1"))
42168 (package
42169 (name "python-version")
42170 (version (git-version "0.0.2" revision commit))
42171 (source
42172 (origin
42173 (method git-fetch)
42174 (uri (git-reference
42175 (url "https://gitlab.com/halfak/python_version")
42176 (commit commit)))
42177 (file-name (git-file-name name version))
42178 (sha256
42179 (base32 "0w210559ypdynlj9yn40m9awzkaknwrf682i99hswl7h66sdgh0h"))))
42180 (build-system pyproject-build-system)
42181 (arguments
42182 (list #:tests? #f)) ;no tests
42183 (native-inputs
42184 (list python-setuptools))
42185 (home-page "https://gitlab.com/halfak/python_version")
42186 (synopsis "Python version checking utility")
42187 (description
42188 "This package provides a simple utility for checking the python version.")
42189 (license license:expat))))
42190
42191(define-public python-versioneer
42192 (package
42193 (name "python-versioneer")
42194 (version "0.29")
42195 (source
42196 (origin
42197 (method url-fetch)
42198 (uri (pypi-uri "versioneer" version))
42199 (sha256
42200 (base32
42201 "0cap4cjckxp9mlkprqayfs77k3pn5iwpr2riacdxc4bjhnwq7cjs"))
42202 (patches (search-patches "python-versioneer-guix-support.patch"))))
42203 (build-system pyproject-build-system)
42204 (arguments
42205 (list
42206 ;; Minimize test requirements.
42207 #:test-flags
42208 #~(list "--deselect=test/git/test_git.py::Repo::test_pyproject"
42209 "--ignore=test/git/test_invocations.py"
42210 "--ignore=test/test_render.py")
42211 #:phases
42212 #~(modify-phases %standard-phases
42213 (add-before 'check 'pre-check
42214 (lambda _
42215 (invoke "python" "setup.py" "make_versioneer"
42216 "make_long_version_py_git"))))))
42217 (native-inputs
42218 (list git-minimal/pinned
42219 python-pytest
42220 python-setuptools))
42221 (propagated-inputs
42222 (list python-tomli))
42223 (home-page "https://github.com/python-versioneer/python-versioneer")
42224 (synopsis "Version-string management for VCS-controlled trees")
42225 (description
42226 "@code{versioneer} is a tool for managing a recorded version number in
42227distutils-based python projects. The goal is to remove the tedious and
42228error-prone \"update the embedded version string\" step from your release
42229process.")
42230 (license license:unlicense)))
42231
42232(define-public python-verspec
42233 (package
42234 (name "python-verspec")
42235 (version "0.1.0")
42236 (source
42237 (origin
42238 (method url-fetch)
42239 (uri (pypi-uri "verspec" version))
42240 (sha256
42241 (base32 "07n06wv85fm4vl1ird2mja0823js3x322wgs9gdnq1djjyk4ql64"))))
42242 (build-system pyproject-build-system)
42243 (arguments
42244 (list
42245 #:phases
42246 #~(modify-phases %standard-phases
42247 (add-before 'check 'pre-check
42248 (lambda _
42249 (invoke "touch" "test/__init__.py"))))))
42250 (native-inputs
42251 (list python-pretend
42252 python-pytest
42253 python-setuptools))
42254 (home-page "https://github.com/jimporter/verspec")
42255 (synopsis "Flexible version handling for Python")
42256 (description
42257 "This Python library handles software versions and specifiers. It is
42258adapted from the @code{packaging} package.")
42259 (license (list license:bsd-2 license:asl2.0))))
42260
42261(define-public python-vine
42262 (package
42263 (name "python-vine")
42264 (version "5.1.0")
42265 (source
42266 (origin
42267 (method url-fetch)
42268 (uri (pypi-uri "vine" version))
42269 (sha256
42270 (base32 "1q31krwxdvwawdn1kfqmpplix31d4jhs0qng26908hawsf0yjqlb"))))
42271 (build-system pyproject-build-system)
42272 (arguments
42273 (list
42274 #:test-flags
42275 ;; AttributeError: 'test_barrier' object has no attribute 'ps'.
42276 #~(list "-k" (string-join
42277 (list "not test_evaluate"
42278 "test_reverse"
42279 "test_cancel"
42280 "test_throw")
42281 " and not "))))
42282 (native-inputs
42283 (list python-pytest python-setuptools python-wheel))
42284 (home-page "https://github.com/celery/vine")
42285 (synopsis "Promises for Python")
42286 (description
42287 "@code{vine} provides a special implementation of promises in that it can
42288be used both for \"promise of a value\" and lazy evaluation. The biggest
42289upside for this is that everything in a promise can also be a promise,
42290e.g. filters, callbacks and errbacks can all be promises.")
42291 (license license:bsd-3)))
42292
42293(define-public python-virtualenv
42294 (package
42295 (name "python-virtualenv")
42296 (version "20.35.4")
42297 (source
42298 (origin
42299 (method git-fetch)
42300 (uri (git-reference
42301 (url "https://github.com/pypa/virtualenv")
42302 (commit version)))
42303 (file-name (git-file-name name version))
42304 (sha256
42305 (base32 "0yiwqkdxlk3ly8xafyc7raaib75hr6df6zs50n77ikbz9mhqixfh"))))
42306 (build-system pyproject-build-system)
42307 (arguments
42308 (list
42309 ;; tests: 347 passed, 43 skipped, 8 deselected
42310 #:test-flags
42311 #~(list #$@(map (lambda (ls) (string-append "--deselect=tests/unit/"
42312 (string-join ls "::")))
42313 '(("discovery/py_info/test_py_info.py"
42314 "test_fallback_existent_system_executable")
42315 ("discovery/test_discovery.py"
42316 "test_get_paths_no_path_env")
42317 ("create/via_global_ref/test_build_c_ext.py"
42318 "test_can_build_c_extensions[cpython3-posix]")
42319 ("create/via_global_ref/test_build_c_ext.py"
42320 "test_can_build_c_extensions[venv]")
42321 ("create/test_creator.py"
42322 "test_create_distutils_cfg[cpython3-posix]")
42323 ("create/test_creator.py"
42324 "test_create_distutils_cfg[venv]")
42325 ("seed/embed/test_bootstrap_link_via_app_data.py"
42326 "test_seed_link_via_app_data[True]")
42327 ("seed/embed/test_bootstrap_link_via_app_data.py"
42328 "test_seed_link_via_app_data[False]"))))))
42329 (native-inputs
42330 (list python-flaky
42331 python-hatch-vcs
42332 python-hatchling
42333 python-packaging
42334 python-pytest
42335 python-pytest-env
42336 python-pytest-freezer
42337 python-pytest-mock
42338 python-pytest-timeout
42339 python-setuptools
42340 python-time-machine))
42341 (propagated-inputs
42342 (list python-distlib
42343 python-filelock
42344 python-platformdirs))
42345 (home-page "https://virtualenv.pypa.io/")
42346 (synopsis "Virtual Python environment builder")
42347 (description
42348 "Virtualenv is a tool to create isolated Python environments.")
42349 (license license:expat)))
42350
42351(define-public python-vncdotool
42352 (package
42353 (name "python-vncdotool")
42354 (version "1.2.0")
42355 (source
42356 (origin
42357 (method git-fetch)
42358 (uri (git-reference
42359 (url "http://github.com/sibson/vncdotool")
42360 (commit (string-append "v" version))))
42361 (file-name (git-file-name name version))
42362 (sha256
42363 (base32 "1adsc263qsa3hcyk8mhv0wwq44h8zhcksx92chd5rr1wz37zmc22"))))
42364 (build-system pyproject-build-system)
42365 (propagated-inputs (list python-pillow python-pycryptodomex python-twisted))
42366 (native-inputs (list python-pexpect python-pytest python-pyvirtualdisplay
42367 python-setuptools python-wheel))
42368 (home-page "http://github.com/sibson/vncdotool")
42369 (synopsis "Command line VNC client")
42370 (description
42371 "This package provides a Python command line VNC client. It can be
42372useful to automating interactions with virtual machines or hardware devices
42373that are otherwise difficult to control.")
42374 (license license:expat)))
42375
42376(define-public python-vncdotool-bootstrap
42377 (hidden-package
42378 (package/inherit python-vncdotool
42379 (arguments (list #:tests? #f))
42380 (native-inputs (list python-pexpect python-pytest python-setuptools
42381 python-wheel)))))
42382
42383(define-public python-vobject
42384 (package
42385 (name "python-vobject")
42386 (version "0.9.9")
42387 (source (origin
42388 (method url-fetch)
42389 (uri (pypi-uri "vobject" version))
42390 (sha256
42391 (base32
42392 "13mk8wrg7js0zv3w8246jnxb3i5yp4ascl1csp0q9787wbbyai5c"))))
42393 (build-system pyproject-build-system)
42394 (arguments
42395 '(;; The test suite relies on some non-portable Windows interfaces. Tests
42396 ;; are rewokred on master's HEAD.
42397 #:tests? #f))
42398 (native-inputs
42399 (list python-setuptools))
42400 (propagated-inputs
42401 (list python-dateutil
42402 python-pytz
42403 python-six)) ;it's dropped on master's HEAD
42404 (home-page "https://py-vobject.github.io/")
42405 (synopsis "Parse and generate vCard and vCalendar files")
42406 (description
42407 "Vobject is intended to be a full featured Python package for parsing
42408and generating vCard and vCalendar files. Currently, iCalendar files are
42409supported and well tested. vCard 3.0 files are supported, and all data should
42410be imported, but only a few components are understood in a sophisticated way.")
42411 (license license:asl2.0)))
42412
42413(define-public python-voluptuous
42414 (package
42415 (name "python-voluptuous")
42416 (version "0.15.2")
42417 (source
42418 (origin
42419 (method url-fetch)
42420 (uri (pypi-uri "voluptuous" version))
42421 (sha256
42422 (base32 "1akr0adq9can0ibravqzl4aaf20rgv47g9gk596hn8ykqhrapz3g"))))
42423 (build-system pyproject-build-system)
42424 (native-inputs
42425 (list python-pytest
42426 python-setuptools))
42427 (home-page "https://github.com/alecthomas/voluptuous")
42428 (synopsis "Python data validation library")
42429 (description
42430 "Voluptuous is a Python data validation library. It is primarily
42431intended for validating data coming into Python as JSON, YAML, etc.")
42432 (license license:bsd-3)))
42433
42434(define-public python-wadler-lindig
42435 (package
42436 (name "python-wadler-lindig")
42437 (version "0.1.7")
42438 (source
42439 (origin
42440 ;; GitHub includes the tests, unlike the PyPI tarball
42441 (method git-fetch)
42442 (uri (git-reference
42443 (url "https://github.com/patrick-kidger/wadler_lindig")
42444 (commit (string-append "v" version))))
42445 (file-name (git-file-name name version))
42446 (sha256
42447 (base32 "0nl2zx75p0fza3xyd5qsl4gx68hma677gin68d290ivk6zmkdzx8"))))
42448 (build-system pyproject-build-system)
42449 (native-inputs (list python-hatchling python-pytest python-numpy))
42450 (home-page "https://docs.kidger.site/wadler_lindig")
42451 (synopsis "Pretty printer for Python using the Wadler-Lindig algorithm")
42452 (description
42453 "Wadler-Lindig is a minimal, zero-dependency pretty-printing
42454library for Python that implements a simplified version of the Wadler-Lindig
42455algorithm. Designed to consume less horizontal space than Python's
42456built-in pprint.pprint, it produces compact, well-formatted representations
42457even for complex custom types.")
42458 (license license:asl2.0)))
42459
42460(define-public python-wand
42461 (package
42462 (name "python-wand")
42463 (version "0.7.2")
42464 (source
42465 (origin
42466 (method git-fetch)
42467 (uri (git-reference
42468 (url "https://github.com/emcconville/wand")
42469 (commit version)))
42470 (file-name (git-file-name name version))
42471 (sha256
42472 (base32 "0h6r9mk66w5wk8g2rfx6rlh26dvkix2rr08kv38bmqvg34kjz6fm"))))
42473 (build-system pyproject-build-system)
42474 (arguments
42475 (list
42476 #:phases
42477 #~(modify-phases %standard-phases
42478 (add-after 'unpack 'hardcode-lib-path
42479 (lambda _
42480 (substitute* "wand/api.py"
42481 (("os\\.environ\\.get\\('MAGICK_HOME'\\)")
42482 (string-append "\"" #$(this-package-input "imagemagick") "\""))
42483 (("os\\.environ\\.get\\('WAND_MAGICK_LIBRARY_SUFFIX'\\)")
42484 "\".Q16\"")))))))
42485 (native-inputs
42486 (list python-setuptools python-pytest))
42487 (inputs
42488 (list imagemagick))
42489 (home-page "https://docs.wand-py.org/")
42490 (synopsis "MagickWand API binding for Python")
42491 (description
42492 "Wand is a ctypes-based binding for ImageMagick's MagickWand library.")
42493 (license license:expat)))
42494
42495(define-public python-wasabi
42496 (package
42497 (name "python-wasabi")
42498 (version "1.1.3")
42499 (source
42500 (origin
42501 (method url-fetch)
42502 (uri (pypi-uri "wasabi" version))
42503 (sha256
42504 (base32 "0y085r7hym3x34a9jgxl5cd8gsh617rdmd187q6dn29q027h1csb"))))
42505 (build-system pyproject-build-system)
42506 (arguments
42507 (list
42508 #:test-flags
42509 ;; Test requires nbconvert which is huge.
42510 #~(list "--deselect=wasabi/tests/test_jupyter.py::test_jupyter")))
42511 (native-inputs
42512 (list python-pytest
42513 python-setuptools))
42514 (propagated-inputs
42515 (list python-colorama))
42516 (home-page "https://github.com/ines/wasabi")
42517 (synopsis "Console printing and formatting toolkit")
42518 (description
42519 "This package provides a lightweight console printing and formatting
42520toolkit for Python.")
42521 (license license:expat)))
42522
42523(define-public python-watchdog
42524 (package
42525 (name "python-watchdog")
42526 (version "6.0.0")
42527 (source
42528 (origin
42529 (method url-fetch)
42530 (uri (pypi-uri "watchdog" version))
42531 (sha256
42532 (base32 "10n2v2iflhdriwfp34yvhfcckqb6vs7378fdvqj8xbm3zn17rpwx"))))
42533 (build-system pyproject-build-system)
42534 (arguments
42535 (list
42536 #:test-flags
42537 #~(list "-k" (string-join
42538 (list "not test_kill_auto_restart"
42539 "test_auto_restart_on_file_change_debounce"
42540 ;; Fails with too many open files.
42541 "test_select_fd")
42542 " and not "))))
42543 (native-inputs
42544 (list python-pytest python-setuptools))
42545 (propagated-inputs
42546 (list python-pyyaml))
42547 (home-page "https://github.com/gorakhargosh/watchdog")
42548 (synopsis "File system events monitoring")
42549 (description
42550 "This package provides a way to monitor file system events such as a file
42551modification and trigger an action. This is similar to inotify, but
42552portable.")
42553 (license license:asl2.0)))
42554
42555(define-public python-watchfiles
42556 (package
42557 (name "python-watchfiles")
42558 (version "1.1.1")
42559 (source
42560 (origin
42561 (method git-fetch)
42562 (uri (git-reference
42563 (url "https://github.com/samuelcolvin/watchfiles")
42564 (commit (string-append "v" version))))
42565 (file-name (git-file-name name version))
42566 (sha256
42567 (base32 "1jj9lqbkk8q61g74lykqgyx4ck30kxs7ljkxqzwd2lwdhh4jfm2j"))))
42568 (build-system pyproject-build-system)
42569 (arguments
42570 (list
42571 ;; Missing file in source.
42572 #:test-flags ''("-k" "not test_docs_examples")
42573 #:imported-modules `(,@%cargo-build-system-modules
42574 ,@%pyproject-build-system-modules)
42575 #:modules '(((guix build cargo-build-system) #:prefix cargo:)
42576 (guix build pyproject-build-system)
42577 (guix build utils))
42578 #:phases
42579 #~(modify-phases %standard-phases
42580 (add-after 'unpack 'prepare-cargo-build-system
42581 (lambda args
42582 (for-each
42583 (lambda (phase)
42584 (format #t "Running cargo phase: ~a~%" phase)
42585 (apply (assoc-ref cargo:%standard-phases phase)
42586 #:cargo-target #$(cargo-triplet)
42587 args))
42588 '(unpack-rust-crates
42589 configure
42590 check-for-pregenerated-files
42591 patch-cargo-checksums))))
42592 (add-after 'build 'install-rust-library
42593 (lambda _
42594 (copy-file "target/release/lib_rust_notify.so"
42595 "watchfiles/_rust_notify.so"))))))
42596 (native-inputs
42597 (append
42598 (list maturin
42599 python-anyio
42600 python-dirty-equals
42601 python-pytest
42602 python-pytest-mock
42603 python-pytest-timeout
42604 rust
42605 `(,rust "cargo"))
42606 (or (and=> (%current-target-system)
42607 (compose list make-rust-sysroot))
42608 '())))
42609 (inputs
42610 (cargo-inputs 'python-watchfiles))
42611 (propagated-inputs
42612 (list python-anyio))
42613 (home-page "https://github.com/samuelcolvin/watchfiles")
42614 (synopsis "Simple, modern file watching and code reload in Python")
42615 (description
42616 "Simple, modern file watching and code reload in Python inspired by
42617@code{watchdog}. Among the differences are a unified approach for each
42618operating systems and an elegant approach to concurrency using threading.")
42619 (license license:expat)))
42620
42621(define-public python-wcmatch
42622 (package
42623 (name "python-wcmatch")
42624 (version "10.1")
42625 (source
42626 (origin
42627 (method git-fetch)
42628 (uri (git-reference
42629 (url "https://github.com/facelessuser/wcmatch")
42630 (commit version)))
42631 (file-name (git-file-name name version))
42632 (sha256
42633 (base32 "1pz6wyz2hlckl88y6z7v32sm5mfp2mqgar4z5f1kz7mixsdpmh41"))))
42634 (build-system pyproject-build-system)
42635 (arguments
42636 (list #:test-flags
42637 ;; ``test_glob_match_real_outside_curdir`` walks paths outside
42638 ;; the build directory which the sandbox does not permit.
42639 #~(list "-k" "not test_glob_match_real_outside_curdir")
42640 #:phases
42641 #~(modify-phases %standard-phases
42642 (add-before 'check 'set-home
42643 (lambda _
42644 (setenv "HOME" (getcwd)))))))
42645 (native-inputs
42646 (list python-hatchling
42647 python-pytest))
42648 (propagated-inputs
42649 (list python-bracex))
42650 (home-page "https://facelessuser.github.io/wcmatch/")
42651 (synopsis "Wildcard and glob file name matcher")
42652 (description
42653 "Wcmatch provides an enhanced @code{fnmatch}, @code{glob}, and
42654@code{pathlib} library. It adds features such as brace expansion,extended
42655glob patterns, and recursive globbing with configurable behavior.")
42656 (license license:expat)))
42657
42658(define-public python-wcwidth
42659 (package
42660 (name "python-wcwidth")
42661 (version "0.2.13")
42662 (source (origin
42663 (method url-fetch)
42664 (uri (pypi-uri "wcwidth" version))
42665 (sha256
42666 (base32
42667 "1dbj74q1iz349sdkxrkc90f7xd4y7a9bdvgxg3cqdcly7430rskj"))))
42668 (build-system pyproject-build-system)
42669 (native-inputs (list python-pytest python-setuptools))
42670 (home-page "https://github.com/jquast/wcwidth")
42671 (synopsis "Measure number of terminal column cells of wide-character codes")
42672 (description
42673 "Wcwidth measures the number of terminal column cells of wide-character
42674codes. It is useful for those implementing a terminal emulator, or programs
42675that carefully produce output to be interpreted by one. It is a Python
42676implementation of the @code{wcwidth} and @code{wcswidth} C functions specified
42677in POSIX.1-2001 and POSIX.1-2008.")
42678 (license license:expat)))
42679
42680(define-public python-whatever
42681 (package
42682 (name "python-whatever")
42683 (version "0.7")
42684 (source
42685 (origin
42686 (method git-fetch)
42687 (uri (git-reference
42688 (url "https://github.com/Suor/whatever")
42689 (commit version)))
42690 (file-name (git-file-name name version))
42691 (sha256
42692 (base32 "1x5b4r3fppp208v52hn8inf2988w4llbkw9kvfc3w81dhmrf5fvq"))))
42693 (build-system pyproject-build-system)
42694 (native-inputs
42695 (list python-pytest python-setuptools python-wheel))
42696 (home-page "https://github.com/Suor/whatever")
42697 (synopsis "Make anonymous functions by partial application of operators")
42698 (description "@code{whatever} provides an easy way to make anonymous
42699functions by partial application of operators.")
42700 (license license:bsd-3)))
42701
42702(define-public python-whatthepatch
42703 (package
42704 (name "python-whatthepatch")
42705 (version "1.0.7")
42706 (source
42707 (origin
42708 (method url-fetch)
42709 (uri (pypi-uri "whatthepatch" version))
42710 (sha256
42711 (base32 "1pvygmgj9xqs8d9lsjxvg1mymni8pjsd44yl0a74002jxbmv9vwy"))))
42712 (build-system pyproject-build-system)
42713 (native-inputs (list python-pytest python-setuptools))
42714 (home-page "https://github.com/cscorley/whatthepatch")
42715 (synopsis "Patch parsing and application library")
42716 (description
42717 "This package provides a patch parsing and application library.")
42718 (license license:expat)))
42719
42720(define-public python-wheel-filename
42721 (package
42722 (name "python-wheel-filename")
42723 (version "1.4.2")
42724 (source
42725 (origin
42726 (method url-fetch)
42727 (uri (pypi-uri "wheel_filename" version))
42728 (sha256
42729 (base32 "1zcqq8mydjjrk8x5xlm53bavs51jm40nz42a7500pd6bbm31r2c7"))))
42730 (build-system pyproject-build-system)
42731 (native-inputs (list python-hatchling python-pytest))
42732 (home-page "https://github.com/wheelodex/wheel-filename")
42733 (synopsis "Parse wheel filenames")
42734 (description
42735 "This software allows you to verify
42736@url{https://packaging.python.org/en/latest/specifications/binary-distribution-format/, wheel}
42737filenames and parse them into their component fields.
42738
42739This package adheres strictly to the standard, with the following
42740exceptions:
42741
42742@itemize @bullet
42743@item
42744Version components may be any sequence of the relevant set of
42745characters; they are not verified for PEP 440 compliance.
42746@item
42747The @file{.whl} file extension is matched case-insensitively.
42748@end itemize")
42749 (license license:expat)))
42750
42751(define-public python-wheezy-template
42752 (package
42753 (name "python-wheezy-template")
42754 (version "3.2.5")
42755 (source
42756 (origin
42757 (method git-fetch)
42758 (uri (git-reference
42759 (url "https://github.com/akornatskyy/wheezy.template")
42760 (commit version)))
42761 (file-name (git-file-name name version))
42762 (sha256
42763 (base32 "1ky0j2d5znsx4pxb2szbpmxg6qw71134n4x5y22fiiicbbw8bm49"))))
42764 (build-system pyproject-build-system)
42765 (native-inputs (list python-setuptools python-pytest))
42766 (home-page "https://github.com/akornatskyy/wheezy.template")
42767 (synopsis "Lightweight template library")
42768 (description "This package provides a lightweight template library which
42769aims to be compact, expressive, intuitive and fast.")
42770 (license license:expat)))
42771
42772(define-public python-whenever
42773 (package
42774 (name "python-whenever")
42775 (version "0.9.2")
42776 (source
42777 (origin
42778 (method url-fetch)
42779 (uri (pypi-uri "whenever" version))
42780 (sha256
42781 (base32 "1awcy5s25z2f7yk4n4x3ibjhypxz7ilgz4hi3fiww58pdcgzcnpw"))))
42782 (build-system pyproject-build-system)
42783 (arguments
42784 (list
42785 ;; tests: 2170 passed, 3 skipped, 2 warnings
42786 #:phases
42787 #~(modify-phases %standard-phases
42788 ;; Use the pure python version
42789 (add-before 'build 'setenv
42790 (lambda _
42791 (setenv "WHENEVER_NO_BUILD_RUST_EXT" "1")))
42792 (add-before 'check 'set-check-environment
42793 (lambda* (#:key inputs #:allow-other-keys)
42794 (setenv "TZ" "UTC")
42795 (setenv "TZDIR"
42796 (search-input-directory inputs
42797 "share/zoneinfo")))))))
42798 (propagated-inputs
42799 (list python-time-machine python-tzdata python-tzlocal))
42800 (native-inputs
42801 (list python-pytest
42802 python-setuptools
42803 tzdata-for-tests))
42804 (home-page "https://whenever.readthedocs.io/")
42805 (synopsis "Modern datetime library for Python")
42806 (description "Modern datetime library for Python. Supports:
42807@itemize
42808@item DST-safe arithmetic
42809@item Nanosecond precision
42810@item Date arithmetic
42811@end itemize")
42812 (license license:expat)))
42813
42814;; XXX: See: <https://github.com/cookiecutter/whichcraft/issues/26>.
42815(define-public python-whichcraft
42816 (package
42817 (name "python-whichcraft")
42818 (version "0.6.1")
42819 (source
42820 (origin
42821 (method url-fetch)
42822 (uri (pypi-uri "whichcraft" version))
42823 (sha256
42824 (base32
42825 "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
42826 (build-system pyproject-build-system)
42827 (native-inputs
42828 (list python-pytest python-setuptools))
42829 (home-page "https://github.com/pydanny/whichcraft")
42830 (synopsis "Cross-platform cross-python shutil.which functionality")
42831 (description
42832 "This package provides a shim of the shutil.which function that's
42833designed to work across multiple versions of Python.")
42834 (license license:bsd-3)))
42835
42836(define-public python-widgetsnbextension
42837 (package
42838 (name "python-widgetsnbextension")
42839 (version "4.0.14")
42840 (source
42841 (origin
42842 (method url-fetch)
42843 (uri (pypi-uri "widgetsnbextension" version))
42844 (sha256
42845 (base32 "1bxm6ys3kmxfhi8dns9q6xrjkxijfa606qpq5lhr7f7dwc29nqm3"))))
42846 (build-system pyproject-build-system)
42847 (arguments
42848 (list #:tests? #f)) ;no tests in PyPI or git
42849 (native-inputs
42850 (list python-jupyter-packaging
42851 python-setuptools))
42852 (home-page "https://ipython.org")
42853 (synopsis "IPython HTML widgets for Jupyter")
42854 (description "This package provides interactive HTML widgets for Jupyter
42855notebooks.")
42856 (license license:bsd-3)))
42857
42858(define-public python-wrapt
42859 (package
42860 (name "python-wrapt")
42861 (version "2.0.1")
42862 (source
42863 (origin
42864 (method url-fetch)
42865 (uri (pypi-uri "wrapt" version))
42866 (sha256
42867 (base32 "13s6zkcs2291bf73prrnl73wmap04cdv3y443swaqz29g1g6774w"))))
42868 (build-system pyproject-build-system)
42869 (arguments
42870 (list
42871 ;; tests: 562 passed, 1 deselected
42872 #:test-flags
42873 ;; AssertionError: Output did not match expected for
42874 ;; mypy_function_wrapper_fn_t6.py
42875 #~(list "--deselect=tests/conftest.py::mypy_function_wrapper_fn_t6")))
42876 (native-inputs
42877 (list python-mypy-for-tests ;hard dependencies in tests
42878 python-pytest
42879 python-setuptools))
42880 (home-page "https://github.com/GrahamDumpleton/wrapt")
42881 (synopsis "Module for decorators, wrappers and monkey patching")
42882 (description
42883 "The aim of the wrapt module is to provide a transparent object proxy for
42884 Python, which can be used as the basis for the construction of function
42885 wrappers and decorator functions.")
42886 (license license:bsd-2)))
42887
42888(define-public python-wurlitzer
42889 (package
42890 (name "python-wurlitzer")
42891 (version "3.1.1")
42892 (source
42893 (origin
42894 (method url-fetch)
42895 (uri (pypi-uri "wurlitzer" version))
42896 (sha256
42897 (base32 "1ncvsc6b0bscvj5dn4iyyw42sf7ssgdqkzxr0bc8f97hp5519fdz"))))
42898 (build-system pyproject-build-system)
42899 (arguments
42900 (list #:test-flags #~(list "test.py")))
42901 (native-inputs
42902 (list python-pytest
42903 python-setuptools))
42904 (home-page "https://github.com/minrk/wurlitzer")
42905 (synopsis "Capture C-level output in context managers")
42906 (description
42907 "This library helps to redirect @code{sys.stdout} to a stream or a file
42908while executing some piece of code, including C code running within a Python
42909process.")
42910 (license license:expat)))
42911
42912(define-public python-xattr
42913 (package
42914 (name "python-xattr")
42915 (version "1.2.0")
42916 (source
42917 (origin
42918 (method url-fetch)
42919 (uri (pypi-uri "xattr" version))
42920 (sha256
42921 (base32 "19z0wp1plr5g8a3jknipii3qmqp3znwd63zqrhx19gpixwhqwk56"))))
42922 (build-system pyproject-build-system)
42923 (native-inputs
42924 (list python-pytest
42925 python-setuptools))
42926 (propagated-inputs
42927 (list python-cffi))
42928 (home-page "https://github.com/xattr/xattr")
42929 (synopsis "Python wrapper for extended file system attributes")
42930 (description "This package provides a Python wrapper for using extended
42931file system attributes. Extended attributes extend the basic attributes of files
42932and directories in the file system. They are stored as name:data pairs
42933associated with file system objects (files, directories, symlinks, etc).")
42934 (license license:expat)))
42935
42936(define-public python-xdg-base-dirs
42937 (package
42938 (name "python-xdg-base-dirs")
42939 (version "6.0.2")
42940 (source
42941 (origin
42942 (method git-fetch)
42943 (uri (git-reference
42944 (url "https://github.com/srstevenson/xdg-base-dirs")
42945 (commit version)))
42946 (file-name (git-file-name name version))
42947 (sha256 (base32 "0ipqrgmxzbn061m02halpsnizp56yk24cyzpwrjnlzjk8icvswl9"))
42948 (modules '((guix build utils)))
42949 ;; All pytest options are for coverage; remove snippet in next release:
42950 ;; https://github.com/srstevenson/xdg-base-dirs/commit/28b6a6beaeb5
42951 (snippet #~(substitute* "pyproject.toml"
42952 (("^addopts = .*") "")))))
42953 (build-system pyproject-build-system)
42954 (native-inputs
42955 (list python-poetry-core python-pytest))
42956 (home-page "https://github.com/srstevenson/xdg-base-dirs")
42957 (synopsis "Variables defined by the XDG Base Directory Specification")
42958 (description "xdg-base-dirs is a Python module that provides functions to
42959return paths to the directories defined by the XDG Base Directory
42960Specification, to save you from duplicating the same snippet of logic in every
42961Python utility you write that deals with user cache, configuration, or data
42962files.")
42963 (license license:isc)))
42964
42965(define-public python-xkbcommon
42966 (package
42967 (name "python-xkbcommon")
42968 (version "1.0.1")
42969 (source
42970 (origin
42971 (method git-fetch)
42972 (uri (git-reference
42973 (url "https://github.com/sde1000/python-xkbcommon")
42974 (commit (string-append "v" version))))
42975 (file-name (git-file-name name version))
42976 (sha256
42977 (base32 "0r9fknyys2mr5fl9hbyp8n9izf27553yf49krzinzksnfr9b6c7s"))))
42978 (build-system pyproject-build-system)
42979 (propagated-inputs (list python-cffi))
42980 (native-inputs (list libxkbcommon python-setuptools))
42981 (arguments
42982 (list
42983 #:test-backend
42984 #~'unittest
42985 #:phases
42986 #~(modify-phases %standard-phases
42987 (add-before 'check 'cleanup
42988 (lambda _
42989 (delete-file-recursively "xkbcommon"))))))
42990 (home-page "https://github.com/sde1000/python-xkbcommon")
42991 (synopsis "Bindings for libxkbcommon using cffi")
42992 (description "Bindings for libxkbcommon using cffi.")
42993 (license license:expat)))
42994
42995(define-public python-xlib
42996 (package
42997 (name "python-xlib")
42998 (version "0.33")
42999 (source
43000 (origin
43001 (method git-fetch)
43002 (uri (git-reference
43003 (url "https://github.com/python-xlib/python-xlib")
43004 (commit version)))
43005 (file-name (git-file-name name version))
43006 (sha256
43007 (base32 "03d28lx6sz0724ps6lnn4m6s0cfspgwqdf2l773lqf88add8wkmv"))))
43008 (build-system pyproject-build-system)
43009 (arguments
43010 `(#:phases
43011 (modify-phases %standard-phases
43012 (add-before 'check 'start-xserver
43013 (lambda* (#:key inputs #:allow-other-keys)
43014 (let ((xorg-server (assoc-ref inputs "xorg-server")))
43015 ;; There must be a running X server and make check doesn't
43016 ;; start one. Therefore we must do it.
43017 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
43018 (setenv "DISPLAY" ":1")))))))
43019 (native-inputs
43020 (list python-mock
43021 python-pytest
43022 python-setuptools
43023 xorg-server))
43024 (propagated-inputs
43025 (list python-six))
43026 (home-page "https://github.com/python-xlib/python-xlib")
43027 (synopsis "Python X11 client library")
43028 (description
43029 "The Python X Library is intended to be a fully functional
43030X client library for Python programs. It is useful to implement
43031low-level X clients. It is written entirely in Python.")
43032 (license license:gpl2+)))
43033
43034(define-public python-xlrd
43035 (package
43036 (name "python-xlrd")
43037 (version "2.0.2")
43038 (source
43039 (origin
43040 (method git-fetch) ;no tests in PyPI archive
43041 (uri (git-reference
43042 (url "https://github.com/python-excel/xlrd")
43043 (commit version)))
43044 (file-name (git-file-name name version))
43045 (sha256
43046 (base32 "1zgb03a4l2an2hy17w0nlyfisl53jzf8csdj90f5xkibbnjsg3y3"))))
43047 (build-system pyproject-build-system)
43048 (native-inputs
43049 (list python-pytest
43050 python-setuptools))
43051 (home-page "https://www.python-excel.org/")
43052 (synopsis "Library for extracting data from Excel files")
43053 (description "This package provides a library to extract data from
43054spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
43055@samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
43056Unicode-aware. It is not intended as an end-user tool.")
43057 (license license:bsd-3)))
43058
43059(define-public python-xlsxwriter
43060 (package
43061 (name "python-xlsxwriter")
43062 (version "3.2.0")
43063 (source
43064 (origin
43065 ;; There are no tests in the PyPI tarball.
43066 (method git-fetch)
43067 (uri (git-reference
43068 (url "https://github.com/jmcnamara/XlsxWriter")
43069 (commit (string-append "RELEASE_" version))))
43070 (file-name (git-file-name name version))
43071 (sha256
43072 (base32 "1g16xb4nsjd807qcm8756ixlxxvdjmbr2v7r6wxkajw1h4m8id0w"))))
43073 (build-system pyproject-build-system)
43074 (native-inputs
43075 (list python-setuptools
43076 python-wheel))
43077 (home-page "https://github.com/jmcnamara/XlsxWriter")
43078 (synopsis "Python module for creating Excel XLSX files")
43079 (description
43080 "XlsxWriter is a Python module that can be used to write text, numbers,
43081formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.")
43082 (license license:bsd-2)))
43083
43084;;; Note: this package is unmaintained since 2018 (archived on GitHub).
43085(define-public python-xlwt
43086 (package
43087 (name "python-xlwt")
43088 (version "1.3.0")
43089 (source
43090 (origin
43091 (method url-fetch)
43092 (uri (pypi-uri "xlwt" version))
43093 (sha256
43094 (base32 "123c2pdamshkq75wwvck8fq0cjq1843xd3x9qaiz2a4vg9qi56f5"))))
43095 (build-system pyproject-build-system)
43096 (native-inputs (list python-pytest python-setuptools python-wheel))
43097 (home-page "https://www.python-excel.org/")
43098 (synopsis "Library for creating spreadsheet Excel files")
43099 (description
43100 "@code{xlwt} is a library for writing data and formatting information to
43101older Excel files (i.e. .xls). The package itself is pure Python with no
43102dependencies on modules or packages outside the standard Python distribution.
43103It is not intended as an end-user tool.")
43104 (license license:bsd-3)))
43105
43106(define-public python-xmldiff
43107 (package
43108 (name "python-xmldiff")
43109 (version "3.0b1")
43110 (source
43111 (origin
43112 (method git-fetch)
43113 (uri (git-reference
43114 (url "https://github.com/Shoobx/xmldiff")
43115 (commit version)))
43116 (file-name (git-file-name name version))
43117 (sha256
43118 (base32 "0p4ry9dl719gmgkxksdv4ghyyzib1irg6g27bbkla2wmprrj1ai9"))))
43119 (build-system pyproject-build-system)
43120 (native-inputs (list python-pytest python-setuptools))
43121 (propagated-inputs (list python-lxml))
43122 (home-page "https://github.com/Shoobx/xmldiff")
43123 (synopsis "Creates diffs of XML files")
43124 (description "This Python tool figures out the differences between two
43125similar XML files, in the same way the @command{diff} utility does it.")
43126 (license license:expat)))
43127
43128(define-public python-xmlsec
43129 (package
43130 (name "python-xmlsec")
43131 (version "1.3.17")
43132 (source
43133 (origin
43134 (method git-fetch)
43135 (uri (git-reference
43136 (url "https://github.com/xmlsec/python-xmlsec")
43137 (commit version)))
43138 (file-name (git-file-name name version))
43139 (sha256
43140 (base32 "1kd34c248jz603jisamxcs18xchyyizkzaqnfv5668yl6bj7nxd7"))))
43141 (build-system pyproject-build-system)
43142 (arguments
43143 (list
43144 ;; See https://github.com/xmlsec/python-xmlsec/issues/210
43145 #:test-flags #~(list "-n" "1")))
43146 (inputs (list openssl libltdl libxslt libxml2))
43147 (propagated-inputs (list python-lxml xmlsec-openssl))
43148 (native-inputs (list pkg-config
43149 python-lxml
43150 python-pkgconfig
43151 python-pytest
43152 python-pytest-xdist
43153 python-setuptools
43154 python-setuptools-scm
43155 python-wheel))
43156 (home-page "https://github.com/xmlsec/python-xmlsec")
43157 (synopsis "Python bindings for the XML Security Library")
43158 (description "This package provides Python bindings for the XML Security
43159Library.")
43160 (license license:expat)))
43161
43162(define-public python-xmod
43163 (package
43164 (name "python-xmod")
43165 (version "1.10.0")
43166 (source
43167 (origin
43168 (method git-fetch)
43169 (uri (git-reference
43170 (url "https://github.com/rec/xmod")
43171 (commit (string-append "v" version))))
43172 (file-name (git-file-name name version))
43173 (sha256
43174 (base32 "0a2ywlfa0s4aqs1yag9xirv69029xmw307mbfqz7vhy8dadc2z30"))))
43175 (build-system pyproject-build-system)
43176 (native-inputs (list python-hatchling python-pytest))
43177 (home-page "https://rec.github.io/xmod/")
43178 (synopsis "Turn any object into a module")
43179 (description
43180 "@code{xmod} is a tiny library that lets a module to do things that
43181normally only a class could do.")
43182 (license license:expat)))
43183
43184(define-public python-xmp-toolkit
43185 (package
43186 (name "python-xmp-toolkit")
43187 (version "2.1.0")
43188 (source
43189 (origin
43190 (method url-fetch)
43191 (uri (pypi-uri "python_xmp_toolkit" version))
43192 (sha256
43193 (base32 "1np2njq6c1fnxh6bbh3xp2slz5dm7aamknv7hxax53a11p3a42na"))))
43194 (build-system pyproject-build-system)
43195 (arguments
43196 (list
43197 #:phases
43198 #~(modify-phases %standard-phases
43199 (add-after 'unpack 'patch-source
43200 (lambda* (#:key inputs #:allow-other-keys)
43201 (substitute* "libxmp/exempi.py"
43202 (("ctypes.util.find_library\\('exempi'\\)")
43203 (format #f "~s" (search-input-file
43204 inputs "lib/libexempi.so")))))))))
43205 (native-inputs
43206 (list python-pytest
43207 python-flit-core))
43208 (inputs
43209 (list exempi))
43210 (propagated-inputs
43211 (list python-pytz))
43212 (home-page "https://github.com/python-xmp-toolkit/python-xmp-toolkit")
43213 (synopsis "Python XMP Toolkit for working with metadata")
43214 (description "Python XMP Toolkit is a library for working with XMP
43215metadata, as well as reading/writing XMP metadata stored in many different
43216file formats.
43217
43218Python XMP Toolkit is wrapping Exempi (using ctypes), a C/C++ XMP library
43219based on Adobe XMP Toolkit, ensuring that future updates to the XMP standard
43220are easily incorporated into the library with a minimum amount of work.")
43221 (license license:bsd-3)))
43222
43223(define-public python-yamlcore
43224 (package
43225 (name "python-yamlcore")
43226 (version "0.0.4")
43227 (source
43228 (origin
43229 (method git-fetch)
43230 (uri (git-reference
43231 (url "https://github.com/perlpunk/pyyaml-core")
43232 (commit (string-append "v" version))))
43233 (file-name (git-file-name name version))
43234 (sha256
43235 (base32 "03y7fabyky67cw4g71xcbwfdal79wxcnmr303qyllz21x2d4s5ac"))))
43236 (build-system pyproject-build-system)
43237 (arguments
43238 (list
43239 #:phases
43240 #~(modify-phases %standard-phases
43241 (add-after 'unpack 'fix-test-file-names
43242 (lambda _
43243 (rename-file "tests/test-schema.py" "tests/test_schema.py")
43244 (rename-file "tests/test-yaml.py" "tests/test_yaml.py"))))))
43245 (native-inputs (list python-pytest python-setuptools))
43246 (inputs (list python-pyyaml))
43247 (home-page "https://github.com/perlpunk/pyyaml-core")
43248 (synopsis "YAML 1.2 support for PyYAML")
43249 (description "This module can be used on top of PyYAML to load YAML 1.2
43250files.")
43251 (license license:expat)))
43252
43253(define-deprecated-package python-yamlcore-0.0.2 python-yamlcore)
43254
43255(define-public python-yamllint
43256 (package
43257 (name "python-yamllint")
43258 (version "1.38.0")
43259 (source
43260 (origin
43261 (method git-fetch)
43262 (uri (git-reference
43263 (url "https://github.com/adrienverge/yamllint")
43264 (commit (string-append "v" version))))
43265 (file-name (git-file-name name version))
43266 (sha256
43267 (base32 "18wqyj600jhzwm01wnpc48cyppbkwrwz93vr47338iwkgmp2szz0"))))
43268 (build-system pyproject-build-system)
43269 (arguments
43270 (list #:test-backend #~'unittest))
43271 (native-inputs
43272 (list python-setuptools))
43273 (propagated-inputs
43274 (list python-pathspec python-pyyaml))
43275 (home-page "https://github.com/adrienverge/yamllint")
43276 (synopsis "Linter for YAML files")
43277 (description
43278 "Yamllint is a linter for YAML files. yamllint does not only check for
43279syntax validity, but for weirdnesses like key repetition and cosmetic problems
43280such as lines length, trailing spaces, indentation, etc.")
43281 (license license:gpl3+)))
43282
43283(define-public python-yamlloader
43284 (package
43285 (name "python-yamlloader")
43286 (version "1.6.0")
43287 (source
43288 (origin
43289 (method url-fetch)
43290 (uri (pypi-uri "yamlloader" version))
43291 (sha256
43292 (base32 "0gw21aa94fcbf5knx9csc0l44rzgz5pjdcvlxxwx044rdjbk50li"))))
43293 (build-system pyproject-build-system)
43294 (arguments
43295 (list #:test-backend #~'unittest
43296 #:test-flags #~(list "discover" "-v")))
43297 (native-inputs
43298 (list python-hatch-vcs
43299 python-hatchling
43300 python-hypothesis
43301 python-pytest))
43302 (propagated-inputs
43303 (list python-pyyaml))
43304 (home-page "https://github.com/Phynix/yamlloader")
43305 (synopsis "Ordered YAML loader and dumper for PyYAML")
43306 (description
43307 "This package provides loaders and dumpers for PyYAML. Currently, an
43308OrderedDict loader/dumper is implemented, allowing to keep items order when
43309loading resp. dumping a file from/to an OrderedDict (Python 3.8+: Also regular
43310dicts are supported and are the default items to be loaded to. As of Python
433113.7 preservation of insertion order is a language feature of regular dicts.)
43312It was originally mirrored from
43313@url{https://github.com/fmenabe/python-yamlordereddictloader,
43314yamlordereddict}.")
43315 (license license:expat)))
43316
43317;; XXX: Deprecated, the <https://github.com/Phynix/yamlloader> project provide
43318;; an improved version of this library with unit tests, performance
43319;; improvements (by providing access to the C implementation of PyYAML) and is
43320;; more actively developed.
43321(define-public python-yamlordereddictloader
43322 (package
43323 (name "python-yamlordereddictloader")
43324 (version "0.4.2")
43325 (source
43326 (origin
43327 (method git-fetch)
43328 (uri (git-reference
43329 (url "https://github.com/fmenabe/python-yamlordereddictloader")
43330 (commit version)))
43331 (file-name (git-file-name name version))
43332 (sha256
43333 (base32 "1rwvasdmfq7lbd2bm7vmx759fv535cp5ndyhf845fqd86mr7a94c"))))
43334 (build-system pyproject-build-system)
43335 (arguments
43336 (list #:tests? #f)) ;no tests
43337 (native-inputs
43338 (list python-setuptools))
43339 (propagated-inputs
43340 (list python-pyyaml))
43341 (home-page "https://github.com/fmenabe/python-yamlordereddictloader")
43342 (synopsis "Loader and a dumper for PyYAML")
43343 (description
43344 "yamlordereddictloader is a Python package that provides a loader and a
43345dumper for PyYAML allowing to keep items order when loading a file (by putting
43346them in OrderedDict objects) and to manage OrderedDict objects when dumping to
43347a file.")
43348 (license license:expat)))
43349
43350(define-public python-yapf
43351 (package
43352 (name "python-yapf")
43353 (version "0.43.0")
43354 (source
43355 (origin
43356 (method url-fetch)
43357 (uri (pypi-uri "yapf" version))
43358 (sha256
43359 (base32
43360 "13i1sn0jfm7snfdzbyrawxl457bdmgsxkmg0n8h99zzdpwjamlq0"))))
43361 (build-system pyproject-build-system)
43362 (propagated-inputs
43363 (list python-platformdirs python-tomli))
43364 (native-inputs
43365 (list python-pytest python-setuptools python-wheel))
43366 (home-page "https://github.com/google/yapf")
43367 (synopsis "Formatter for Python code")
43368 (description "YAPF is a formatter for Python code. It's based off of
43369@dfn{clang-format}, developed by Daniel Jasper. In essence, the algorithm
43370takes the code and reformats it to the best formatting that conforms to the
43371style guide, even if the original code didn't violate the style guide.")
43372 (license license:asl2.0)))
43373
43374(define-public python-yappi
43375 (package
43376 (name "python-yappi")
43377 (version "1.7.6")
43378 (source
43379 (origin
43380 (method git-fetch)
43381 (uri (git-reference
43382 (url "https://github.com/sumerc/yappi")
43383 (commit (string-append "v" version))))
43384 (file-name (git-file-name name version))
43385 (sha256
43386 (base32 "08jhsflxyj3vf1m06vngsw9d6qyblykcx1j2mq4qn0ray0s7v8qj"))))
43387 (build-system pyproject-build-system)
43388 (arguments
43389 (list #:test-backend #~'unittest
43390 #:test-flags #~'("discover" "tests")))
43391 (native-inputs (list python-gevent python-setuptools))
43392 (home-page "https://github.com/sumerc/yappi")
43393 (synopsis "Python Profiler")
43394 (description "@acronym{YAPPI, Yet Another Python Profiler} is a robust and
43395intuitive, standard compliant Python profiler.")
43396 (license license:expat)))
43397
43398(define-public python-yapsy
43399 (package
43400 (name "python-yapsy")
43401 ;; 1.12.2 (2019-06-28), the latest changes provide support for Python
43402 ;; 3.12+; move back to git tag when released.
43403 (properties '((base-version . "1.12.2")
43404 (commit . "6b487b04affb19ab40adbbc87827668bea0abcee")
43405 (revision . "0")))
43406 (version (git-version (assoc-ref properties 'base-version)
43407 (assoc-ref properties 'revision)
43408 (assoc-ref properties 'commit)))
43409 (source
43410 (origin
43411 (method git-fetch)
43412 (uri (git-reference
43413 (url "https://github.com/tibonihoo/yapsy")
43414 (commit (assoc-ref properties 'commit))))
43415 (file-name (git-file-name name version))
43416 (sha256
43417 (base32 "046c505kwdbp4vhqjrc5xpdrji7lyxv11nzq9yn20c2q1186b9j0"))))
43418 (build-system pyproject-build-system)
43419 (arguments
43420 (list
43421 #:phases
43422 #~(modify-phases %standard-phases
43423 (add-after 'unpack 'change-source-dir
43424 (lambda _
43425 (chdir "package")))
43426 (add-after 'change-source-dir 'patch-version
43427 (lambda _
43428 (substitute* "yapsy/__init__.py"
43429 (("__version__=\"2.0.0\"")
43430 (format #nil "__version__=\"~a\"" #$(assoc-ref properties 'base-version)))))))))
43431 (native-inputs
43432 (list python-pytest python-setuptools))
43433 (home-page "https://yapsy.sourceforge.net")
43434 (synopsis "Simple plugin system for Python applications")
43435 (description "Yapsy, or Yet Another Plugin SYstem, is a small library
43436implementing the core mechanisms needed to build a plugin system into a wider
43437application.
43438
43439The main purpose is to depend only on Python's standard libraries and to
43440implement only the basic functionalities needed to detect, load and keep track
43441of several plugins.")
43442 (license license:bsd-3)))
43443
43444(define-public python-yaspin
43445 (package
43446 (name "python-yaspin")
43447 (version "3.2.0")
43448 (source
43449 (origin
43450 (method url-fetch)
43451 (uri
43452 (pypi-uri "yaspin" version))
43453 (sha256
43454 (base32 "1ryc5099sjsa49fhcm6dp5l4rp9v9yxrh17ml78y89idfbbfhvs1"))))
43455 (build-system pyproject-build-system)
43456 ;; tests: 3007 passed, 1758 skipped
43457 (native-inputs
43458 (list python-poetry-core
43459 python-pytest
43460 python-pytest-mock))
43461 (propagated-inputs
43462 (list python-termcolor-next))
43463 (home-page "https://github.com/pavdmyt/yaspin")
43464 (synopsis "Yet Another Terminal Spinner")
43465 (description "Yaspin provides a terminal spinner to indicate the progress
43466during long operations.")
43467 (license license:expat)))
43468
43469(define-public python-yattag
43470 (package
43471 (name "python-yattag")
43472 (version "1.16.1")
43473 (source
43474 (origin
43475 (method url-fetch)
43476 (uri (pypi-uri "yattag" version))
43477 (sha256
43478 (base32 "1x2is0lkpywvqaayc21n1cvfbq0havzx46i83033wpgawxag5a5s"))))
43479 (build-system pyproject-build-system)
43480 (native-inputs
43481 (list python-pytest
43482 python-setuptools
43483 python-wheel))
43484 (home-page "https://www.yattag.org/")
43485 (synopsis "HTML or XML generator for Python")
43486 (description
43487 "Yattag is a Python library for generating HTML or XML in a pythonic
43488way.")
43489 (license license:lgpl2.1)))
43490
43491(define-public python-yq
43492 (package
43493 (name "python-yq")
43494 (version "3.4.3")
43495 (source
43496 (origin
43497 (method url-fetch)
43498 (uri (pypi-uri "yq" version))
43499 (sha256
43500 (base32 "0fvf4n7wpbc0gdxhw8c008rcv092vw96f84j5xdp1krhdwd6ln5s"))))
43501 (build-system pyproject-build-system)
43502 (arguments
43503 (list
43504 #:test-backend #~'custom
43505 #:test-flags #~(list "test/test.py" "-v")
43506 #:phases
43507 #~(modify-phases %standard-phases
43508 (add-after 'unpack 'patch
43509 (lambda _
43510 (substitute* "yq/__init__.py"
43511 (("Popen\\(\\[\"jq")
43512 (string-append
43513 "Popen([\""
43514 #$(this-package-input "jq") "/bin/jq"))))))))
43515 (native-inputs
43516 (list python-hatchling
43517 python-hatch-vcs))
43518 (inputs
43519 (list jq))
43520 (propagated-inputs
43521 (list python-argcomplete
43522 python-pyyaml
43523 python-tomlkit
43524 python-xmltodict))
43525 (home-page "https://github.com/kislyuk/yq")
43526 (synopsis "Command-line YAML/XML processor")
43527 (description
43528 "This package provides @command{yq} and @command{xq} for processing YAML
43529and XML respectively. The processing is done through @command{jq},
43530@command{jq} filters can be used to process the data as it passes through.")
43531 (license license:asl2.0)))
43532
43533(define-public python-yte
43534 (package
43535 (name "python-yte")
43536 (version "1.8.1") ;TODO higher versions depend on uv_build
43537 (source
43538 (origin
43539 (method git-fetch)
43540 (uri (git-reference
43541 (url "https://github.com/koesterlab/yte")
43542 (commit (string-append "v" version))))
43543 (sha256
43544 (base32 "05qrmjf9x6wvy8976kqiy3axk3im8jbc8hpc1yrbidm099vik0ni"))))
43545 (build-system pyproject-build-system)
43546 (arguments
43547 (list
43548 #:test-flags #~(list "tests.py")
43549 #:phases
43550 '(modify-phases %standard-phases
43551 (add-after 'unpack 'set-HOME
43552 (lambda _ (setenv "HOME" "/tmp"))))))
43553 (propagated-inputs (list python-dpath python-plac python-pyyaml))
43554 (native-inputs (list python-numpy python-poetry-core python-pytest))
43555 (home-page "https://github.com/koesterlab/yte")
43556 (synopsis "YAML template engine with Python expressions")
43557 (description
43558 "This package provides a YAML template engine with Python expressions.")
43559 (license license:expat)))
43560
43561(define-public python-zarr
43562 (package
43563 (name "python-zarr")
43564 (version "3.2.1")
43565 (source
43566 (origin
43567 (method git-fetch)
43568 (uri (git-reference
43569 (url "https://github.com/zarr-developers/zarr-python")
43570 (commit (string-append "v" version))))
43571 (file-name (git-file-name name version))
43572 (sha256
43573 (base32 "1qzbpy6j8mgpr6wb69j8yyjyr95rmagn64v8pcdljjl3969rmjf6"))))
43574 (build-system pyproject-build-system)
43575 (arguments
43576 (list
43577 ;; tests: 5339 passed, 384 skipped, 1 deselected, 7 xfailed
43578 #:test-flags
43579 #~(list "--ignore=tests/benchmarks/"
43580 ;; This test wants uv.
43581 (string-append "--deselect=tests/test_examples.py"
43582 "::test_scripts_can_run[script_path0]"))
43583 #:phases
43584 #~(modify-phases %standard-phases
43585 (add-after 'unpack 'disable-service-tests
43586 (lambda _
43587 (setenv "ZARR_TEST_ABS" "0")
43588 (setenv "ZARR_TEST_MONGO" "0")
43589 (setenv "ZARR_TEST_REDIS" "0"))))))
43590 (native-inputs
43591 (list python-hatch-vcs
43592 python-hatchling
43593 python-numpydoc ;tests/test_api/test_synchronous.py
43594 python-pytest
43595 python-pytest-asyncio
43596 python-pytest-benchmark
43597 python-tomlkit))
43598 (propagated-inputs
43599 (list python-donfig
43600 python-google-crc32c
43601 python-numcodecs
43602 python-numpy
43603 python-packaging
43604 python-typing-extensions))
43605 (home-page "https://github.com/zarr-developers/zarr-python")
43606 (synopsis "Chunked, compressed, N-dimensional arrays for Python")
43607 (description
43608 "This package provides an implementation of chunked, compressed,
43609N-dimensional arrays for Python.")
43610 (license license:expat)))
43611
43612(define-public python-zeroc-ice
43613 (package
43614 (name "python-zeroc-ice")
43615 (version "3.7.10.1")
43616 (source (origin
43617 (method url-fetch)
43618 (uri (pypi-uri "zeroc-ice" version))
43619 (sha256
43620 (base32
43621 "0r46q4hd7xbpvnidbra1prkg4xhmajxjjmclfqgp3pv0lgyslqxh"))))
43622 (build-system pyproject-build-system)
43623 (arguments
43624 ;; XXX: No tests in PyPI, tere are tests in Git, but there is no 3.7.10.1
43625 ;; tag.
43626 ;;
43627 ;; See:
43628 ;; - URL: <https://raw.githubusercontent.com/zeroc-ice>
43629 ;; - File: <ice/refs/heads/main/python/allTests.py>
43630 (list #:tests? #f))
43631 (inputs (list openssl))
43632 (native-inputs (list python-setuptools))
43633 (home-page "https://zeroc.com")
43634 (synopsis "RPC framework")
43635 (description
43636 "Ice is a comprehensive RPC framework. Ice helps you network your
43637software by taking care of all interactions with low-level network programming
43638interfaces.")
43639 (license license:gpl2)))
43640
43641;; Package variant to build [email protected]
43642(define-public python-zeroc-ice-3.6
43643 (package
43644 (inherit python-zeroc-ice)
43645 (version "3.6.5")
43646 (source (origin
43647 (method url-fetch)
43648 (uri (pypi-uri "zeroc-ice" version))
43649 (sha256
43650 (base32
43651 "0mikjfvq26kh8asnn9v55z41pap4c5ypymqnwwi4xkavc3mzyda2"))
43652 (patches
43653 (search-patches
43654 "python-zeroc-ice-3.6.5-python-3.11-support.patch"
43655 "python-zeroc-ice-3.6.5-python-3.12-support.patch"))))
43656 (arguments
43657 (substitute-keyword-arguments arguments
43658 ((#:phases phases #~%standard-phases)
43659 #~(modify-phases #$phases
43660 (add-before 'build 'relax-gcc-14-strictness
43661 (lambda _
43662 (setenv "CFLAGS"
43663 "-g -O2 -Wno-error=implicit-function-declaration")))))))))
43664
43665(define-public python-zeroconf
43666 (package
43667 (name "python-zeroconf")
43668 (version "0.38.1")
43669 (source
43670 (origin
43671 (method git-fetch)
43672 (uri (git-reference
43673 (url "https://github.com/jstasiak/python-zeroconf")
43674 (commit version)))
43675 (file-name (git-file-name name version))
43676 (sha256
43677 (base32 "1p1a0ywlg5sq0ilcphmz9h4kayscz0q1lyfk57j7mwxyx4gl9cpi"))))
43678 (build-system pyproject-build-system)
43679 (arguments
43680 (list
43681 #:test-flags
43682 #~(list
43683 "-k" (string-append
43684 ;; XXX: Despite asyncio, this test fails.
43685 "not test_run_coro_with_timeout and not "
43686 ;; XXX: Networking isn't available.
43687 (string-join
43688 (list "test_integration_with_listener_ipv6"
43689 "test_launch_and_close_v4_v6"
43690 "test_launch_and_close_context_manager"
43691 "test_launch_and_close"
43692 "test_close_multiple_times")
43693 " and not ")))))
43694 (native-inputs
43695 (list python-pytest python-pytest-asyncio python-setuptools))
43696 (propagated-inputs
43697 (list python-ifaddr))
43698 (home-page "https://github.com/jstasiak/python-zeroconf")
43699 (synopsis "Pure Python mDNS service discovery")
43700 (description "Pure Python multicast DNS (mDNS) service discovery library
43701(Bonjour/Avahi compatible).")
43702 (license license:lgpl2.1+)))
43703
43704(define-public python-zict
43705 (package
43706 (name "python-zict")
43707 (version "3.0.0")
43708 (source
43709 (origin
43710 (method url-fetch)
43711 (uri (pypi-uri "zict" version))
43712 (sha256
43713 (base32
43714 "19gvr41xi5fazkzkg33kwrk70sv50hygng0cg70ayym9nriy48g3"))))
43715 (build-system pyproject-build-system)
43716 (arguments
43717 (list
43718 #:test-flags
43719 ;; This uses "importorskip", but it won't skip.
43720 '(list "--ignore=tests/test_lmdb.py")))
43721 (propagated-inputs
43722 (list python-heapdict))
43723 (native-inputs
43724 (list python-pytest
43725 python-pytest-asyncio
43726 python-pytest-repeat
43727 python-pytest-timeout
43728 python-setuptools
43729 python-wheel))
43730 (home-page "https://zict.readthedocs.io/en/latest/")
43731 (synopsis "Composable mutable mapping tools")
43732 (description "This package provides abstract @code{MutableMapping} classes
43733that consume and build on other @code{MutableMappings}. Several of these can
43734be composed with one another to form intuitive interfaces over complex storage
43735systems policies.")
43736 (license license:bsd-3)))
43737
43738(define-public python-zipfly
43739 (package
43740 (name "python-zipfly")
43741 (version "6.0.5")
43742 (source
43743 (origin
43744 (method url-fetch)
43745 (uri (pypi-uri "zipfly" version))
43746 (sha256
43747 (base32
43748 "1h7g922a8lsqd69j8blgcgg0lcd8kz51b2p4glfqmgx4vi1nkick"))))
43749 (build-system pyproject-build-system)
43750 (arguments
43751 (list #:test-backend #~'unittest))
43752 (native-inputs (list python-setuptools))
43753 (home-page "https://github.com/sandes/zipfly")
43754 (synopsis "Zip archive generator")
43755 (description "ZipFly is a zip archive generator. It was created to
43756generate very large zip archives for immediate sending out to clients, or
43757for writing large zip archives without memory inflation.")
43758 (license license:expat)))
43759
43760(define-public python-zipstream-new
43761 (package
43762 (name "python-zipstream-new")
43763 (version "1.1.8")
43764 (source
43765 (origin
43766 (method git-fetch) ; no tests in PyPI release
43767 (uri (git-reference
43768 (url "https://github.com/arjan-s/python-zipstream")
43769 (commit (string-append "v" version))))
43770 (file-name (git-file-name name version))
43771 (sha256
43772 (base32 "14vhgg8mcjqi8cpzrw8qzbij2fr2a63l2a8fhil21k2r8vzv92cv"))))
43773 (build-system pyproject-build-system)
43774 (arguments
43775 (list #:test-backend #~'unittest))
43776 (native-inputs (list python-setuptools))
43777 (home-page "https://github.com/arjan-s/python-zipstream")
43778 (synopsis "Zipfile generator that takes input files as well as streams")
43779 (description "@code{zipstream.py} is a zip archive generator based on
43780@code{zipfile.py}. It was created to generate a zip file generator for
43781streaming. This is beneficial for when you want to provide a downloadable
43782archive of a large collection of regular files, which would be infeasible
43783to generate the archive prior to downloading or of a very large file that
43784you do not want to store entirely on disk or on memory.")
43785 ;; No copyright headers in the source. The LICENSE file indicates GPL3.
43786 (license license:gpl3)))
43787
43788(define-public shrinkwrap
43789 (package
43790 (name "shrinkwrap")
43791 (version "0.1.0")
43792 (source
43793 (origin
43794 (method git-fetch)
43795 (uri (git-reference
43796 (url "https://github.com/fzakaria/shrinkwrap")
43797 (commit (string-append "v" version))))
43798 (file-name (git-file-name name version))
43799 (sha256
43800 (base32 "1f3qrygj16y767q2c7pn9j6m95ggcmj9s5cx9v92ygygly4mr3jp"))))
43801 (build-system pyproject-build-system)
43802 (native-inputs
43803 (list python-click
43804 python-poetry-core
43805 python-pypa-build
43806 python-pytest))
43807 (inputs (list python-lief python-sh))
43808 (home-page "https://github.com/fzakaria/shrinkwrap")
43809 (synopsis "Emboss needed dependencies on the top level executable")
43810 (description
43811 "@code{shrinkwrap} is a tool which will discover all transitive dynamic
43812shared objects, and lift them up to the executable referenced by absolute
43813path.")
43814 (license license:expat)))
43815
43816(define-public staticsite
43817 (package
43818 (name "staticsite")
43819 (version "2.5")
43820 (source
43821 (origin
43822 (method git-fetch)
43823 (uri (git-reference
43824 (url "https://github.com/spanezz/staticsite")
43825 (commit (string-append "v" version))))
43826 (file-name (git-file-name name version))
43827 (sha256
43828 (base32 "0fk0yy0flwwfqwb4gsizr7gnkadas4rjffn3mnzlwmkn08z3w0c7"))))
43829 (build-system pyproject-build-system)
43830 (arguments
43831 (list
43832 #:phases
43833 #~(modify-phases %standard-phases
43834 (add-after 'unpack 'use-themes-in-output
43835 (lambda _
43836 (substitute* "staticsite/global_settings.py"
43837 (("/usr/share/staticsite") #$output))))
43838 (add-after 'install 'install-themes
43839 (lambda _
43840 (let ((themedir (string-append #$output "/themes")))
43841 (copy-recursively "themes" themedir)))))))
43842 (native-inputs
43843 (list python-hatchling
43844 python-pytest))
43845 (inputs
43846 (list perl-image-exiftool
43847 python-dateutil
43848 python-docutils
43849 python-jinja2
43850 python-markdown
43851 python-pillow
43852 python-pytz
43853 python-pyyaml
43854 python-ruamel.yaml
43855 python-slugify
43856 python-toml
43857 tzdata-for-tests))
43858 (home-page "https://github.com/spanezz/staticsite")
43859 (synopsis "Static site generator")
43860 (description
43861 "Statistic is a static site generator based on Markdown and Jinja2.")
43862 (license (list license:gpl3+ license:expat))))
43863
43864;;;
43865;;; Avoid adding new packages to the end of this file. To reduce the chances
43866;;; of a merge conflict, place them above in alphabetic order:
43867;;; guix import --insert=gnu/packages/python-xyz.scm pypi <package-name>.
43868;;;