summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm15244
1 files changed, 7829 insertions, 7415 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6b65e112d1..9c5f54a065 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -98,6 +98,7 @@
;;; Copyright © 2021-2025 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2021 Ellis Kenyő <me@elken.dev>
;;; Copyright © 2021 LibreMiami <packaging-guix@libremiami.org>
+;;; Copyright © 2021 Mathieu Othacehe <othacehe@gnu.org>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
;;; Copyright © 2021, 2023-2025 jgart <jgart@dismail.de>
@@ -107,6 +108,7 @@
;;; Copyright © 2021 Franck Pérignon <franck.perignon@univ-grenoble-alpes.fr>
;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com>
;;; Copyright © 2021 Simon Streit <simon@netpanic.org>
+;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2021, 2022, 2023 Daniel Meißner <daniel.meissner-i4k@ruhr-uni-bochum.de>
;;; Copyright © 2021, 2022 Pradana Aumars <paumars@courrier.dev>
;;; Copyright © 2021–2024 Felix Gruber <felgru@posteo.net>
@@ -123,7 +125,7 @@
;;; Copyright © 2022, 2023 Wamm K. D. <jaft.r@outlook.com>
;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
;;; Copyright © 2022-2025 Artyom V. Poptsov <poptsov.artyom@gmail.com>
-;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
+;;; Copyright © 2022, 2023 Paul A. Patience <paul@apatience.com>
;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
;;; Copyright © 2022 Philip McGrath <philip@philipmcgrath.com>
;;; Copyright © 2022 Marek Felšöci <marek@felsoci.sk>
@@ -137,6 +139,7 @@
;;; Copyright © 2023 Amade Nemes <nemesamade@gmail.com>
;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
;;; Copyright © 2023 Lu Hui <luhux76@gmail.com>
+;;; Copyright © 2023 Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>
;;; Copyright © 2023 Kaelyn Takata <kaelyn.alexi@protonmail.com>
;;; Copyright © 2023 dan <i@dan.games>
;;; Copyright © 2023 Dominik Delgado Steuter <d@delgado.nrw>
@@ -166,6 +169,10 @@
;;; Copyright © 2025, Cayetano Santos <csantosb@inventati.org>
;;; Copyright © 2025 Jake Forster <jakecameron.forster@gmail.com>
;;; Copyright © 2025 Luis Felipe López Acevedo <sirgazil@zoho.com>
+;;; Copyright © 2025 Josep Bigorra <jjbigorra@gmail.com>
+;;; Copyright © 2025 Matthias Riße <matrss@0px.xyz>
+;;; Copyright © 2025 Ghislain Vaillant <ghislain.vaillant@inria.fr>
+;;; Copyright © 2025 Allan Adair <allan@adair.no>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -186,10 +193,8 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
#:use-module (gnu packages adns)
- #:use-module (gnu packages aidc)
#:use-module (gnu packages algebra)
#:use-module (gnu packages attr)
- #:use-module (gnu packages audio)
#:use-module (gnu packages autotools)
#:use-module (gnu packages backup)
#:use-module (gnu packages base)
@@ -197,14 +202,11 @@
#:use-module (gnu packages bdw-gc)
#:use-module (gnu packages bioinformatics)
#:use-module (gnu packages build-tools)
- #:use-module (gnu packages certs)
+ #:use-module (gnu packages nss)
#:use-module (gnu packages check)
#:use-module (gnu packages cmake)
#:use-module (gnu packages compression)
#:use-module (gnu packages cpp)
- #:use-module (gnu packages crates-check)
- #:use-module (gnu packages crates-io)
- #:use-module (gnu packages crates-windows)
#:use-module (gnu packages crypto)
#:use-module (gnu packages databases)
#:use-module (gnu packages dbm)
@@ -236,9 +238,11 @@
#:use-module (gnu packages image-processing)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages inkscape)
+ #:use-module (gnu packages iso-codes)
#:use-module (gnu packages java)
#:use-module (gnu packages jupyter)
#:use-module (gnu packages kerberos)
+ #:use-module (gnu packages less)
#:use-module (gnu packages libevent)
#:use-module (gnu packages libffi)
#:use-module (gnu packages libusb)
@@ -262,7 +266,6 @@
#:use-module (gnu packages photo)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages protobuf)
- #:use-module (gnu packages pulseaudio)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-check)
@@ -274,6 +277,8 @@
#:use-module (gnu packages rdf)
#:use-module (gnu packages readline)
#:use-module (gnu packages regex)
+ #:use-module (gnu packages rpc)
+ #:use-module (gnu packages rust)
#:use-module (gnu packages rust-apps)
#:use-module (gnu packages scanner)
#:use-module (gnu packages search)
@@ -283,7 +288,6 @@
#:use-module (gnu packages ssh)
#:use-module (gnu packages statistics)
#:use-module (gnu packages tcl)
- #:use-module (gnu packages terminals)
#:use-module (gnu packages tex)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages textutils)
@@ -315,45 +319,32 @@
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26))
-(define-public python-apprise
+(define-public python-annexremote
(package
- (name "python-apprise")
- (version "1.9.3")
+ (name "python-annexremote")
+ (version "1.6.6")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "apprise" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Lykos153/AnnexRemote")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "19k51ici58134m61f6di0m36mbqgdyr6r31i8v6rk22vldz6d0zm"))))
+ (base32 "0fhd712z143mvsidlwhnq951cvkbfcpybbim3fiyn6r3l1r46a25"))))
(build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- #~(list "--numprocesses" (number->string (parallel-job-count))
- "--ignore=test/test_plugin_macosx.py"
- ;; AssertionError
- "--deselect=test/test_plugin_wxpusher.py::test_plugin_wxpusher_urls")))
(native-inputs
- (list python-babel
- python-pytest
- python-pytest-mock
- python-pytest-xdist
+ (list python-pytest
python-setuptools
- python-wheel))
- (propagated-inputs
- (list python-certifi
- python-click
- python-markdown
- python-pyyaml
- python-requests
- python-requests-oauthlib))
- (home-page "https://github.com/caronc/apprise")
- (synopsis "Push notification library")
+ python-setuptools-scm))
+ (home-page "https://github.com/Lykos153/AnnexRemote")
+ (synopsis "Helper module to easily develop git-annex special remotes")
(description
- "Apprise is a Python library that allows sending push notifications to a
-broad range of notification services, such as Telegram, Discord, Slack, Amazon
-SNS, Gotify, etc.")
- (license license:bsd-2)))
+ "This package provides a helper module to develop special remotes for
+git-annex. AnnexRemote implements the line-based external special remote
+protocol of git-annex, while leaving the behavior of the remote up to the
+user.")
+ (license license:gpl3)))
(define-public python-archspec
(package
@@ -382,6 +373,55 @@ These aspects include CPU, network fabrics, etc. In addition, it offers
APIs to detect, query, and compare them.")
(license license:expat)))
+(define-public python-asyncclick
+ (package
+ (name "python-asyncclick")
+ (version "8.2.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "asyncclick" version))
+ (sha256
+ (base32 "0q26q8r1x5j9nz72xcb80vjx5maha6yswdmw2li4mwqyzdxnnkq1"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; tests: 1397 passed, 29 skipped, 72 deselected, 4 xfailed
+ #:test-flags
+ #~(list "-k" (string-join
+ ;; See: <https://github.com/python-trio/asyncclick/issues/42>.
+ (list "not test_confirm_repeat[asyncio]"
+ "test_confirm_repeat[trio]"
+ "test_file_prompt_default_format[asyncio-file_kwargs0]"
+ "test_file_prompt_default_format[asyncio-file_kwargs1]"
+ "test_file_prompt_default_format[asyncio-file_kwargs2]"
+ "test_file_prompt_default_format[trio-file_kwargs0]"
+ "test_file_prompt_default_format[trio-file_kwargs1]"
+ "test_file_prompt_default_format[trio-file_kwargs2]"
+ "test_prompts[asyncio]"
+ "test_prompts[trio]"
+ ;; Requires less
+ "test_echo_via_pager")
+ " and not "))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-conftest
+ ;; See: <https://github.com/python-trio/asyncclick/pull/39>.
+ (lambda _
+ (substitute* "tests/conftest.py"
+ (("from click") "from asyncclick")))))))
+ (native-inputs
+ (list python-anyio
+ python-flit-core
+ python-pytest
+ python-trio))
+ (home-page "https://github.com/python-trio/asyncclick")
+ (synopsis "Python composable command line utility, trio-compatible version ")
+ (description
+ "AsyncClick is a fork of Click that works well with anyio, Trio, or
+asyncio.")
+ (license license:bsd-3)))
+
(define-public python-asyncstdlib
(package
(name "python-asyncstdlib")
@@ -506,6 +546,28 @@ including arbitrary-length lists, records, mixed types, and missing data,
using NumPy-like idioms.")
(license license:bsd-3)))
+(define-public python-backports-tarfile
+ (package
+ (name "python-backports-tarfile")
+ (version "1.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "backports_tarfile" version))
+ (sha256
+ (base32 "14d9xibla5aahjqf9y0nmpk5vs4qds5rfy628j0invkld3104pnp"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;XXX: Cycles with python-jaraco-context
+ (native-inputs
+ (list python-setuptools
+ python-setuptools-scm
+ python-wheel))
+ (home-page "https://github.com/jaraco/backports.tarfile")
+ (synopsis "Backport of CPython tarfile module")
+ (description "This package provides a backport of CPython tarfile module.")
+ (license license:expat)))
+
(define-public python-bresenham
(package
(name "python-bresenham")
@@ -546,7 +608,8 @@ line drawing algorithm}.")
(sha256
(base32 "08dmi4chamk5dbdpvrc0nb09iybfhj3wqwxgffiqnkj7030qhqb8"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ ;; tests: 797 passed, 1 warning
+ (native-inputs (list python-pytest python-setuptools))
(propagated-inputs (list python-ply))
(home-page "https://github.com/calmjs/calmjs.parse/")
(synopsis "Parsers for ECMA standards")
@@ -594,6 +657,7 @@ generates an HTML report displaying copied slices as output.")
(sha256
(base32 "1fk175k6l8isx43jmh7n7xyzb18ysdixzr74dxqqhpyd5sbsb5hy"))))
(build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI, tests depend on Nose
(native-inputs
(list python-setuptools
python-wheel))
@@ -641,89 +705,177 @@ Configurations:
@end table")
(license license:bsd-2)))
-(define-public python-distance
+(define-public python-curtsies
(package
- (name "python-distance")
- (version "0.1.3")
+ (name "python-curtsies")
+ (version "0.4.3")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "Distance" version))
+ (uri (pypi-uri "curtsies" version))
(sha256
- (base32 "0la51nzzqrkisshwbk2wpviisqqzylwkz9qsa9f3y05nyn27b030"))))
+ (base32 "09c8c4vssm2zkq017xj99vhcrisfva4nkz92w8dly4jjz7xhyahh"))))
(build-system pyproject-build-system)
(native-inputs
- (list python-setuptools
+ (list python-pyte
+ python-pytest
+ python-setuptools
python-wheel))
- (home-page "https://github.com/doukremt/distance")
- (synopsis "Utilities for comparing sequences")
+ (propagated-inputs
+ (list python-blessed
+ python-cwcwidth))
+ (home-page "https://github.com/bpython/curtsies")
+ (synopsis "Library for curses-like terminal interaction with colored strings")
(description
- "This package provides helpers for computing similarities between
+ "Curtsies is a Python library for interacting with the terminal. It
+features string-like objects which carry formatting information, per-line
+fullscreen terminal rendering, and keyboard input event reporting.")
+ (license license:expat)))
+
+(define-public python-darkdetect
+ (package
+ (name "python-darkdetect")
+ (version "0.8.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "darkdetect" version))
+ (sha256
+ (base32 "1cgqgpz36dfn7hsqc29ha9pmxmzdjlwdq9aclkgbagi6f08qwhmm"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #f)) ;no tests in PyPI or Git.
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/albertosottile/darkdetect")
+ (synopsis "Detect OS dark mode from Python")
+ (description
+ "This package allows to detect if the user is using Dark Mode.")
+ (license license:bsd-3)))
+
+(define-public python-distance
+ (let ((commit "ad7f9dc7e9b0e88a08d0cefd1442f4ab1dd1779b")
+ (revision "0"))
+ (package
+ (name "python-distance")
+ (version (git-version "0.1.3" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/doukremt/distance")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1vcn0506dy68xyjxdjsl75zzc4b8lmg2yxjgak4i35l7a97yzvwy"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "tests/tests.py")))
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/doukremt/distance")
+ (synopsis "Utilities for comparing sequences")
+ (description
+ "This package provides helpers for computing similarities between
arbitrary sequences. Included metrics are Levenshtein, Hamming, Jaccard, and
Sorensen distance, plus some bonuses. All distance computations are
implemented in pure Python, and most of them are also implemented in C.")
- (license license:gpl2+)))
+ (license license:gpl2+))))
-(define-public python-flake8-class-newline
+(define-public python-domdf-python-tools
(package
- (name "python-flake8-class-newline")
- (version "1.6.0")
+ (name "python-domdf-python-tools")
+ (version "3.10.0")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "flake8-class-newline" version))
+ (uri (pypi-uri "domdf_python_tools" version))
(sha256
- (base32 "1w8z88asz90jm1msz06vi7dj0da8sfw5ajyvabfv7f4fr0iljk2i"))))
+ (base32 "16727afn92bp6hj4hvp27scc5ldz1y27z9abbxgi9sgiyk90iqra"))))
(build-system pyproject-build-system)
- (propagated-inputs (list python-flake8))
- (native-inputs (list python-setuptools python-wheel))
- (home-page "https://github.com/AlexanderVanEck/flake8-class-newline")
- (synopsis "Flake8 lint for newline after class definitions")
- (description "This package provides a flake8 extension to lint for newline
-after class definitions.")
+ (native-inputs (list python-hatch-requirements-txt))
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
+ (propagated-inputs
+ (list python-natsort
+ python-typing-extensions))
+ (home-page "https://github.com/domdfcoding/domdf_python_tools")
+ (synopsis "Helpful functions for Python")
+ (description
+ "This package provide helpfull functions for Python's testing and
+packaging tasks.")
(license license:expat)))
-(define-public python-flake8-docstrings
+(define-public python-exitcode
(package
- (name "python-flake8-docstrings")
- (version "1.7.0")
+ (name "python-exitcode")
+ (version "0.1.0")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "flake8_docstrings" version))
+ (uri (pypi-uri "exitcode" version))
(sha256
- (base32 "1bs1m5kqw25sn68f06571q5s3aaxd06mv7k952bqdrhnvi4cg32c"))))
+ (base32 "01yybyi4pkvvf4382p28gh4lkxrcyl5vcx2xk95nbsb8011f37mw"))))
(build-system pyproject-build-system)
- (propagated-inputs (list python-flake8 python-pydocstyle))
- (native-inputs (list python-setuptools python-wheel))
- (home-page "https://github.com/pycqa/flake8-docstrings")
- (synopsis "Extension for flake8 which uses pydocstyle to check docstrings")
+ (arguments
+ (list #:tests? #f)) ; no tests in PyPI or Git
+ (native-inputs
+ (list python-poetry-core
+ python-setuptools))
+ (home-page "https://github.com/rumpelsepp/exitcode")
+ (synopsis "Preferred system exit codes as defined by sysexits.h")
(description
- "This package provides a extension for flake8 which uses pydocstyle to
-check docstrings.")
+ "This package implements a preferred system exit codes as defined by
+@url{https://man.openbsd.org/sysexits, sysexits.h}. This library is inspired by
+Rust's @url{https://docs.rs/exitcode, exitcode}.")
(license license:expat)))
-(define-public python-flake8-import-order
+(define-public python-fastnumbers
(package
- (name "python-flake8-import-order")
- (version "0.18.2")
+ (name "python-fastnumbers")
+ (version "5.1.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "flake8-import-order" version))
+ (uri (pypi-uri "fastnumbers" version))
(sha256
- (base32 "03lh1n98lx8ncrr6n8cv5qj3birvqyqbpfhisw4hqgnsjbw42fg2"))))
+ (base32 "0jzsylarbckivx762rxmc9syn7a6hqq3xhp5xnpfsln0rlhs0gqq"))))
(build-system pyproject-build-system)
- (propagated-inputs (list python-pycodestyle python-setuptools))
- (native-inputs (list python-setuptools python-wheel python-pytest
- python-pylama python-flake8))
- (home-page "https://github.com/PyCQA/flake8-import-order")
- (synopsis
- "Flake8 and pylama plugin that checks the ordering of import statements")
+ (native-inputs
+ (list python-numpy
+ python-pytest
+ python-setuptools
+ python-setuptools-scm))
+ (home-page "https://github.com/SethMMorton/fastnumbers")
+ (synopsis "Super-fast and clean conversions to numbers")
(description
- "This package provieds a flake8 and pylama plugin that checks the ordering
-of import statements.")
- (license license:lgpl3)))
+ "This package provides provides drop-in replacements for the Python
+built-in @code{int} and @code{float} that are on par or faster with the Python
+equivalents.")
+ (license license:expat)))
+
+(define-public python-findpython
+ (package
+ (name "python-findpython")
+ (version "0.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "findpython" version))
+ (sha256
+ (base32 "1p3kqr00sym0yaddsbaw1gf7nslfnscnd050q6ipj9rmfry68ccb"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pdm-backend
+ python-pytest))
+ (propagated-inputs
+ (list python-packaging
+ python-platformdirs))
+ (home-page "https://github.com/frostming/findpython")
+ (synopsis "Find Python versions the system")
+ (description
+ "This package provides a utility to find Python versions on the current
+system.")
+ (license license:expat)))
(define-public python-flexcache
(package
@@ -782,6 +934,107 @@ part of @url{https://github.com/hgrecco/pint, Pint}, the Python units
package. ")
(license license:bsd-3)))
+(define-public python-grapheme
+ ;; 0.6.0 has not git tag, PyPI has no tests. use the latest commit on master
+ ;; branch.
+ (let ((commit "66f07ca02fc64a9ea2f9b4ad66593b226d473adb")
+ (revision "0"))
+ (package
+ (name "python-grapheme")
+ (version (git-version "0.6.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/alvinlindstam/grapheme")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0fqw6iymg7s8q1pfwijx0awcj1j55jppx7hfa5ci7y0c7x4jc8v9"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (home-page "https://github.com/alvinlindstam/grapheme")
+ (synopsis "Unicode grapheme helpers")
+ (description
+ "This package provides a functionality for working with user perceived
+characters. More specifically, string manipulation and calculation functions
+for working with grapheme cluster groups (graphemes) as defined by the
+@url{http://unicode.org/reports/tr29/, Unicode Standard Annex #29}.")
+ (license license:expat))))
+
+(define-public python-halo
+ (package
+ (name "python-halo")
+ (version "0.0.31")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "halo" version))
+ (sha256
+ (base32 "1mn97h370ggbc9vi6x8r6akd5q8i512y6kid2nvm67g93r9a6rvv"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests in PyPI archive, no tags in Git
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-colorama
+ python-log-symbols
+ python-six
+ python-spinners
+ python-termcolor))
+ (home-page "https://github.com/manrajgrover/halo")
+ (synopsis "Python library to display graphical spinners in the terminal")
+ (description
+ "Halo is a Python library to display graphical spinners in the terminal.
+It also supports IPython/Jupyter.")
+ (license license:expat)))
+
+(define-public python-hatch-argparse-manpage
+ (package
+ (name "python-hatch-argparse-manpage")
+ (version "1.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "hatch_argparse_manpage" version))
+ (sha256
+ (base32 "1zbbww9akz1lca3br67zik80ql774xpfg22njxdxjiw4kpz5alb6"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-hatchling))
+ (propagated-inputs (list python-argparse-manpage python-rich))
+ (home-page "https://github.com/damonlynch/hatch-argparse-manpage")
+ (synopsis "Hatch build hook plugin to generate manual pages")
+ (description
+ "This package provides a build hook plugin for Hatch to automatically
+ bs generate a manual page from an ArgumentParser object, using argparse-manpage
+by Pavel Raiskup.")
+ (license license:gpl3+)))
+
+(define-public python-hatch-gettext
+ (package
+ (name "python-hatch-gettext")
+ (version "1.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "hatch_gettext" version))
+ (sha256
+ (base32 "05sh574p1c4wdf9gky965km3f5n904hxkyils07f1b0jyswlm3nh"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-hatchling))
+ (propagated-inputs (list python-rich))
+ (home-page "https://github.com/damonlynch/hatch-gettext")
+ (synopsis "Hatch build hook plugin for GNU gettext")
+ (description
+ "This package provides a build hook plugin for Hatch that compiles
+ bsmulti-lingual messages with GNU gettext's tools msgfmt.")
+ (license license:gpl3+)))
+
+;; TODO: Move to ci or task-runners, see:
+;; <https://codeberg.org/guix/guix/issues/3096>.
(define-public python-huey
(package
(name "python-huey")
@@ -805,9 +1058,12 @@ package. ")
(substitute* "huey/tests/test_kt_huey.py"
(("^has_ktserver = sp.call\\(\\['which', 'ktserver'\\].*$")
"has_ktserver = False"))))
- (add-before 'check 'pre-check
- (lambda _ (spawn "redis-server" '("redis-server")))))))
- (native-inputs (list python-setuptools python-wheel redis tzdata-for-tests))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (spawn "redis-server" '("redis-server"))
+ (invoke "python3" "-m" "runtests" "--verbosity" "2")))))))
+ (native-inputs (list python-setuptools redis tzdata-for-tests))
(propagated-inputs (list python-redis))
(home-page "https://huey.readthedocs.io")
(synopsis "Lightweight task queue for Python")
@@ -828,6 +1084,99 @@ supports:
@end itemize")
(license license:expat)))
+(define-public python-id
+ (package
+ (name "python-id")
+ (version "1.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "id" version))
+ (sha256
+ (base32 "07acfgq7vmbz94p5axn9d40m8qjcgfllfkr4jz7dpfxcksjbhb19"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-flit-core
+ python-pretend
+ python-pytest))
+ (propagated-inputs
+ (list python-requests))
+ (home-page "https://github.com/di/id")
+ (synopsis "Tool for generating OIDC identities")
+ (description
+ "This package provides a tool for generating @code{OIDC, OpenID Connect}
+identities.")
+ (license license:asl2.0)))
+
+(define-public python-inotify
+ (package
+ (name "python-inotify")
+ (version "0.2.12")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dsoprea/PyInotify")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1n1rqpzk70ap2i4zk2k0znz407i909y2001v65agy7y30apjzb67"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-requirements
+ (lambda _
+ (substitute* "inotify/resources/requirements.txt"
+ (("build")
+ "")))))))
+ (native-inputs (list python-pytest python-setuptools))
+ (home-page "https://github.com/dsoprea/PyInotify")
+ (synopsis "Linux filesystem activity monitor library for Python")
+ (description
+ "This package provides an efficient and elegant inotify (Linux filesystem
+activity monitor) library for Python.")
+ (license license:gpl2)))
+
+(define-public python-intervaltree
+ (package
+ (name "python-intervaltree")
+ (version "3.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "intervaltree" version))
+ (sha256
+ (base32
+ "0bcm6c6r4ck9nfj9xwz4rm2swc5lrjvmw3lyl6rgj639jf41nawh"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; pytest seems to have a check to make sure the user is testing
+ ;; their checked-out code and not an installed, potentially
+ ;; out-of-date copy. This is harmless here, since we just installed
+ ;; the package, so we disable the check to avoid skipping tests
+ ;; entirely.
+ (add-before 'check 'import-mismatch-error-workaround
+ (lambda _
+ (setenv "PY_IGNORE_IMPORTMISMATCH" "1")
+ #t)))))
+ (propagated-inputs
+ (list python-sortedcontainers))
+ (native-inputs
+ (list python-pytest))
+ (home-page "https://github.com/chaimleib/intervaltree")
+ (synopsis "Editable interval tree data structure")
+ (description
+ "This package provides a mutable, self-balancing interval tree
+implementation for Python. Queries may be by point, by range overlap, or by
+range envelopment. This library was designed to allow tagging text and time
+intervals, where the intervals include the lower bound but not the upper
+bound.")
+ (license license:asl2.0)))
+
(define-public python-jsonpath-ng
(package
(name "python-jsonpath-ng")
@@ -854,6 +1203,80 @@ comparison operators, as defined in the original
@url{http://goessner.net/articles/JsonPath/, JSONPath} proposal.")
(license license:asl2.0)))
+(define-public python-language-data
+ (package
+ (name "python-language-data")
+ (version "1.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "language_data" version))
+ (sha256
+ (base32 "1v6pp8z2wxj3hafl62hbx8sbinpp9cr0r7y80rfi8mcmlf5fy03n"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-marisa-trie))
+ (home-page "https://github.com/georgkrause/language_data")
+ (synopsis "Supplementary data about languages used by the langcodes module")
+ (description
+ "language_data is a supplement to the langcodes module, for working with
+standardized codes for human languages. It stores the more bulky and
+hard-to-index data about languages, particularly what they are named in
+various languages.")
+ (license license:expat)))
+
+(define-public python-log-symbols
+ (package
+ (name "python-log-symbols")
+ (version "0.0.14")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "log_symbols" version))
+ (sha256
+ (base32 "0mh5d0igw33libfmbsr1ri1p1y644p36nwaa2w6kzrd8w5pvq2yg"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests in PyPI archive, tests depend on Nose
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-colorama))
+ (home-page "https://github.com/manrajgrover/py-log-symbols")
+ (synopsis "Python library with graphical symbols for logging on the terminal")
+ (description
+ "This package provides a Python library with graphical symbols that can
+be displayed on the terminal, with color if possible, for logging purposes.")
+ (license license:expat)))
+
+(define-public python-marisa-trie
+ (package
+ (name "python-marisa-trie")
+ (version "1.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "marisa_trie" version))
+ (sha256
+ (base32 "0nzq9yc3qdpnnvhi9zlp6vcpk6id5lx3943pm7zgir1h5z8py44p"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-cython
+ python-hypothesis
+ python-pytest
+ python-readme-renderer
+ python-setuptools))
+ (home-page "https://github.com/pytries/marisa-trie")
+ (synopsis "Static memory-efficient Trie-like structures for Python")
+ (description
+ "This package provides static memory-efficient and fast Trie-like structures
+for Python.")
+ (license license:expat)))
+
(define-public python-multiplex
(package
(name "python-multiplex")
@@ -885,6 +1308,34 @@ comparison operators, as defined in the original
processes, in parallel, in the console, with an interactive TUI.")
(license license:expat)))
+(define-public python-num2words
+ (package
+ (name "python-num2words")
+ (version "0.5.14")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/savoirfairelinux/num2words")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1h52kgh1h4q9nkkplpwix2xs6f6wwvlxq09clznr2589xv39iqlz"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "--ignore" "tests/test_cli.py"))) ;Requires delegator.py.
+ (native-inputs (list python-pytest python-setuptools))
+ (propagated-inputs (list python-docopt))
+ (home-page "https://github.com/savoirfairelinux/num2words")
+ (synopsis "Convert numbers to words in multiple languages")
+ (description
+ "@code{num2words} is a library that converts numbers like 42 to words like
+forty-two. It supports multiple languages, and can even generate ordinal
+numbers like forty-second.")
+ (license license:lgpl2.1)))
+
(define-public python-orderly-set
(package
(name "python-orderly-set")
@@ -906,42 +1357,163 @@ of Ordered Set.")
(define-public python-pastel
(package
(name "python-pastel")
- (version "0.2.0")
+ (version "0.2.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pastel" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sdispater/pastel")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "0dnaw44ss10i10z4ksy0xljknvjap7rb7g0b8p6yzm5x4g2my5a6"))))
- (build-system python-build-system)
+ (base32 "1lwip9qaqfacgwnl5ykr0846y1nky228k7h7vzrgyqj1viapprsv"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda _ (invoke "pytest" "pastel" "tests/"))))))
- (native-inputs
- (list python-pytest))
+ (list
+ #:test-flags
+ #~(list "pastel" "tests/")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'use-poetry-core
+ (lambda _
+ ;; Patch to use the core poetry API.
+ (substitute* "pyproject.toml"
+ (("poetry.masonry.api") "poetry.core.masonry.api")))))))
+ (native-inputs (list python-poetry-core python-pytest))
(home-page "https://github.com/sdispater/pastel")
(synopsis "Library to colorize strings in your terminal")
- (description "Pastel is a simple library to help you colorize strings in
-your terminal.")
+ (description
+ "Pastel is a simple library to help you colorize strings in your
+terminal.")
(license license:expat)))
+(define-public python-pathlib-abc
+ (package
+ (name "python-pathlib-abc")
+ (version "0.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pathlib_abc" version))
+ (sha256
+ (base32 "1gjsj7r331i54kbisy0zz1h9icx1hv6n97jaj5s7f3wvj7fpnkh8"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-hatchling))
+ (home-page "https://github.com/barneygale/pathlib-abc")
+ (synopsis "Python base classes for rich path objects")
+ (description
+ "This package is a preview of pathlib functionality planned for a future
+release of Python; specifically, it provides three ABCs that can be used to
+implement path classes for non-local filesystems")
+ (license license:psfl)))
+
+(define-public python-pbs-installer
+ (package
+ (name "python-pbs-installer")
+ (version "2025.09.18")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/frostming/pbs-installer")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0f5gpr4xp71d46vk2ggbb31bhagj4drf1ijl1lg1jd1apimr0jkf"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #f ;no tests provided
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'set-version
+ (lambda _
+ (setenv "PDM_BUILD_SCM_VERSION" #$version))))))
+ (native-inputs
+ (list python-pdm-backend
+ python-pytest))
+ (propagated-inputs
+ (list python-httpx
+ python-zstandard))
+ (home-page "https://github.com/frostming/pbs-installer")
+ (synopsis "Installer for Python Build Standalone")
+ (description
+ "This package implements an installer for
+@url{https://github.com/astral-sh/python-build-standalone, Python Build
+Standalone}.")
+ (license license:expat)))
+
+(define-public python-puccinialin
+ (package
+ (name "python-puccinialin")
+ (version "0.1.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "puccinialin" version))
+ (sha256
+ (base32 "00nnqcvvyn10zxkhgzcfn8czwvdzm0vh5z16plb0dxspccd69dmv"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests in PyPI or Git
+ (native-inputs
+ (list python-hatchling))
+ (propagated-inputs
+ (list python-httpx
+ python-platformdirs
+ python-tqdm))
+ (home-page "https://github.com/konstin/puccinialin")
+ (synopsis "Helper for bootstrapping Rust-based build back-ends for Python")
+ (description
+ "This tool helps to install Rust into a temporary directory, allowing
+support of Rust-based Python builds. Cargo and rustc are installed into a
+cache directory, to avoid modifying the host's environment, and further
+activated using a set of environment variables.")
+ (license (list license:expat license:asl2.0))))
+
+(define-public python-pyte
+ (package
+ (name "python-pyte")
+ (version "0.8.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/selectel/pyte")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1cdhnl6rp4kcbs3s766519k80pf5ma18mgv6cyidf4nbgysjavmv"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs (list python-wcwidth))
+ (native-inputs (list python-pytest python-setuptools python-wheel))
+ (home-page "https://pyte.readthedocs.io/")
+ (synopsis "Simple VTXXX-compatible terminal emulator")
+ (description "@code{pyte} is an in-memory VTxxx-compatible terminal
+emulator. @var{VTxxx} stands for a series of video terminals, developed by
+DEC between 1970 and 1995. The first and probably most famous one was the
+VT100 terminal, which is now a de-facto standard for all virtual terminal
+emulators.
+
+pyte is a fork of vt102, which was an incomplete pure Python implementation
+of VT100 terminal.")
+ (license license:lgpl3+)))
+
(define-public python-pyxdameraulevenshtein
(package
(name "python-pyxdameraulevenshtein")
(version "1.8.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pyxdameraulevenshtein" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/lanl/pyxDamerauLevenshtein")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "07nhds44ry9mchqjqjdnq2asp13y9pqc8003pkydvb3dah7wrvhv"))))
+ (base32 "1qmmpgf8qxv5pfnqp328qqsj34jvyc63w8659xx18d8405agcjdr"))))
(build-system pyproject-build-system)
- (native-inputs
- (list python-cython
- python-setuptools
- python-wheel))
+ (native-inputs (list python-cython python-pytest python-setuptools))
(home-page "https://github.com/lanl/pyxDamerauLevenshtein")
(synopsis "Damerau-Levenshtein edit distance algorithm")
(description
@@ -1010,6 +1582,63 @@ new type and helper functions to integrate it nicely with the Python
stdlib.")
(license license:expat)))
+(define-public python-session-info2
+ (package
+ (name "python-session-info2")
+ (version "0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "session_info2" version))
+ (sha256
+ (base32 "0xs1mcdz0hf626m3421ryv4f7b5rixz2hm8x88czx2i9196x69g9"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "--deselect=tests/test_synthetic.py::test_gpu"
+ ;; Tests require Jupyter Client.
+ "--ignore=tests/test_subprocess.py")))
+ (native-inputs
+ (list python-hatch-docstring-description
+ python-hatch-vcs
+ python-hatchling
+ python-pytest
+ python-pytest-asyncio))
+ (home-page "https://session-info2.readthedocs.io/")
+ (synopsis "Print versions of imported packages")
+ (description
+ "This package implements a functionality to print versions of imported
+Python packages.")
+ (license license:mpl2.0)))
+
+(define-public python-show-in-file-manager
+ (package
+ (name "python-show-in-file-manager")
+ (version "1.1.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "show-in-file-manager" version))
+ (sha256
+ (base32 "111d363i7m0lr295301q39j6h0l6nfybyn2cvn7xi3yll60a24zd"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-argparse-manpage
+ python-setuptools))
+ (propagated-inputs
+ (list python-packaging
+ ;; python-pywin32
+ python-pyxdg))
+ (home-page "https://github.com/damonlynch/showinfilemanager")
+ (synopsis "Open the system file manager and select files in it")
+ (description
+ "Show in File Manager is a Python package to open the system file manager
+and optionally select files in it. The point is not to open the files, but to
+select them in the file manager, thereby highlighting the files and allowing
+the user to quickly do something with them.")
+ (license license:expat)))
+
(define-public python-shxparser
(package
(name "python-shxparser")
@@ -1021,10 +1650,9 @@ stdlib.")
(sha256
(base32 "0w7j5ywskandp91v74966pw1pvq9d5zrx5gkjcn84xi8wsyf8hc5"))))
(build-system pyproject-build-system)
+ (arguments (list #:test-backend #~'unittest))
(native-inputs
- (list python-svgelements
- python-setuptools
- python-wheel))
+ (list python-svgelements python-setuptools))
(home-page "https://github.com/tatarize/shxparser")
(synopsis "SHX line font parser")
(description
@@ -1063,6 +1691,28 @@ three consecutive points in a polyline or polygon
@end itemize")
(license license:expat)))
+(define-public python-spinners
+ (package
+ (name "python-spinners")
+ (version "0.0.24")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "spinners" version))
+ (sha256
+ (base32 "0zz2z6dpdjdq5z8m8w8dfi8by0ih1zrdq0caxm1anwhxg2saxdhy"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests in PyPI archive, tests depend on Nose
+ (native-inputs
+ (list python-setuptools))
+ (home-page "https://github.com/manrajgrover/py-spinners")
+ (synopsis "Python library with graphical spinners for the terminal")
+ (description
+ "Spinners is a Python library that contains graphical spinners that can
+be displayed terminal.")
+ (license license:expat)))
+
(define-public python-streamtracer
(package
(name "python-streamtracer")
@@ -1094,15 +1744,6 @@ three consecutive points in a polyline or polygon
(when tests?
(with-directory-excursion #$output
(invoke "pytest" "-vv"))))))
- #:cargo-inputs
- `(("rust-ndarray" ,rust-ndarray-0.16)
- ("rust-numpy" ,rust-numpy-0.22)
- ("rust-num-derive" ,rust-num-derive-0.4)
- ("rust-num-traits" ,rust-num-traits-0.2)
- ("rust-rayon-1" ,rust-rayon-1))
- #:cargo-development-inputs
- `(("rust-float-eq" ,rust-float-eq-1)
- ("rust-pyo3" ,rust-pyo3-0.22))
#:install-source? #false))
(native-inputs
(list maturin
@@ -1112,6 +1753,7 @@ three consecutive points in a polyline or polygon
(propagated-inputs
(list python-numpy
python-packaging))
+ (inputs (cargo-inputs 'python-streamtracer))
(home-page "https://github.com/sunpy/streamtracer")
(synopsis "Rapid streamline tracing in Python")
(description
@@ -1169,6 +1811,62 @@ Form (EBNF) as input, and outputs a memoizing Parsing Expression Grammar (PEG)
or Packrat parser in Python.")
(license license:bsd-2)))
+(define-public python-term-image
+ (package
+ (name "python-term-image")
+ (version "0.7.2")
+ (source
+ (origin
+ ;; We need the full repo to run the tests.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/AnonymouX47/term-image")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1lsd5m0k5m99arkca2rzrrlln10c8ax6xfawqwjnspcbf8l3h3dq"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-flags
+ #~(list "tests"
+ ;; These tests require network access.
+ "-k" (string-append "not test_from_url"
+ " and not test_source"
+ " and not test_close"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'adjust-dependencies
+ (lambda _
+ (substitute* "setup.py"
+ (("pillow>=9.1,<11") "pillow>=9.1,<12")))))))
+ (propagated-inputs (list python-pillow python-requests))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-urwid))
+ (home-page "https://github.com/AnonymouX47/term-image")
+ (synopsis "Display images in the terminal")
+ (description "term-image is a library and program to display images on
+compatible terminals.
+
+Features:
+@enumerate
+@item Multiple image formats (basically all formats supported by
+@code{PIL.Image.open()})
+@item Multiple image source types: PIL image instance, local file, URL
+@item Multiple image render styles (with automatic support detection)
+@item Support for multiple terminal graphics protocols, including Kitty
+@item Transparency support (with multiple options)
+@item Animated image support (including transparent ones)
+@item Integration into various TUI / terminal-based output libraries
+@item Terminal size awareness
+@item Automatic and manual image sizing
+@item Horizontal and vertical alignment
+@item Automatic and manual font ratio adjustment (to preserve image aspect
+ratio)
+@end enumerate")
+ (license license:expat)))
+
(define-public python-trubar
(package
(name "python-trubar")
@@ -1208,120 +1906,6 @@ not require any changes to the original source code, such as marking strings
for translation.")
(license license:expat)))
-(define-public python-vendetect
- (package
- (name "python-vendetect")
- (version "0.0.3")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "vendetect" version))
- (sha256
- (base32 "0hi13sbgr8y66mih2xyzczjfff4lwymkn9cw5215ms2nn6qq9rhi"))))
- (build-system pyproject-build-system)
- (propagated-inputs (list python-copydetect python-rich))
- (native-inputs (list python-hatchling python-pytest))
- (home-page "https://github.com/trailofbits/vendetect")
- (synopsis "Detect vendored and copy-pasted code")
- (description
- "Vendetect helps identify copied or vendored code between repositories,
-making it easier to detect when code has been copied with or without
-attribution. It uses similarity detection algorithms to compare code files
-and highlight matching sections.")
- (license license:agpl3+)))
-
-(define-public python-wheel-filename
- (package
- (name "python-wheel-filename")
- (version "1.4.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "wheel_filename" version))
- (sha256
- (base32 "1zcqq8mydjjrk8x5xlm53bavs51jm40nz42a7500pd6bbm31r2c7"))))
- (build-system pyproject-build-system)
- (native-inputs (list python-hatchling python-pytest python-pytest-cov))
- (home-page "https://github.com/wheelodex/wheel-filename")
- (synopsis "Parse wheel filenames")
- (description
- "This software allows you to verify
-@url{https://packaging.python.org/en/latest/specifications/binary-distribution-format/, wheel}
-filenames and parse them into their component fields.
-
-This package adheres strictly to the standard, with the following
-exceptions:
-
-@itemize @bullet
-@item
-Version components may be any sequence of the relevant set of
-characters; they are not verified for PEP 440 compliance.
-@item
-The @file{.whl} file extension is matched case-insensitively.
-@end itemize")
- (license license:expat)))
-
-(define-public python-xmldiff
- (package
- (name "python-xmldiff")
- (version "2.7.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "xmldiff" version))
- (sha256
- (base32 "18k8kiml9wpl4wf9lmi0j6ys21lbdv8fa8r9qrzdsrh3h0ghp4f0"))))
- (build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
- (propagated-inputs (list python-lxml))
- (home-page "https://github.com/Shoobx/xmldiff")
- (synopsis "Creates diffs of XML files")
- (description "This Python tool figures out the differences between two
-similar XML files, in the same way the @command{diff} utility does it.")
- (license license:expat)))
-
-(define-public python-xmlsec
- (package
- (name "python-xmlsec")
- (version "1.3.16")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "xmlsec" version))
- (sha256
- (base32 "178zg6jl3v7j4cdxxzqzr16m3wqfisai98xa0sh4q7bd9ia70v1b"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- ;; See https://github.com/xmlsec/python-xmlsec/issues/210
- #:test-flags '(list "-n" "1"
- ;; This causes other tests to segfault.
- "-k" "not test_reinitialize_module")
- #:phases
- #~(modify-phases %standard-phases
- ;; FIXME: This is very unfortunate. I can't seem to find a way to
- ;; hardcode the location of this library, so users will also need to
- ;; set LD_LIBRARY_PATH.
- (add-before 'check 'pre-check
- (lambda* (#:key inputs #:allow-other-keys)
- (setenv "LD_LIBRARY_PATH"
- (dirname (search-input-file inputs "lib/libxmlsec1-openssl.so.1.2.37"))))))))
- (inputs (list openssl libltdl libxslt libxml2))
- (propagated-inputs (list python-lxml xmlsec-openssl))
- (native-inputs (list pkg-config
- python-lxml
- python-pkgconfig
- python-pytest
- python-pytest-xdist
- python-setuptools
- python-setuptools-scm
- python-wheel))
- (home-page "https://github.com/xmlsec/python-xmlsec")
- (synopsis "Python bindings for the XML Security Library")
- (description "This package provides Python bindings for the XML Security
-Library.")
- (license license:expat)))
-
(define-public python-jaconv
(package
(name "python-jaconv")
@@ -1518,21 +2102,15 @@ responsible, low-boilerplate logging of method calls.")
(version "1.7.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "logzero" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/metachris/logzero")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "10nh186vk6hpnpfycym44gja4fja0jyzw7q8dwimfd1rmv9xswvz"))))
- (build-system python-build-system)
- (native-inputs
- (list python-pytest python-pytest-runner))
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest")))))))
+ (base32 "1i9c0kynyjws5c24ga0sbidyfww3w5fy98gs67xsyfz4nr7w84b3"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/metachris/logzero")
(synopsis "Robust and effective logging for Python")
(description
@@ -1565,82 +2143,6 @@ library’s logging module. It was designed with both complex and simple
applications in mind and the idea to make logging fun.")
(license license:bsd-3)))
-(define-public python-ubelt
- (package
- (name "python-ubelt")
- (version "1.3.6")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/Erotemic/ubelt")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1v2kf9lbdfaf9nppdq45rfanz4bdd2v6x59iajcznwgc4jmhj2na"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- ;; The builder user home doesn't match HOME, which causes this test to
- ;; fail.
- #:test-flags #~(list "-k" "not userhome")
- #:phases
- #~(modify-phases %standard-phases
- (add-before 'check 'pre-check
- (lambda _
- (setenv "HOME" "/tmp")))))) ;else the test suite hangs
- (native-inputs
- (list python-pytest
- python-requests
- python-setuptools
- python-wheel
- python-xdoctest))
- (propagated-inputs
- (list python-ordered-set))
- (home-page "https://github.com/Erotemic/ubelt")
- (synopsis "Python library for hashing, caching, timing and more")
- (description
- "Ubelt is a small library of simple functions that extend the Python
-standard library. It includes an @acronym{API, Application Programming
-Interface} to simplify common problems such as caching, timing, computing
-progress, among other things.")
- (license license:asl2.0)))
-
-(define-public python-ueberzug
- (package
- (name "python-ueberzug")
- (version "18.3.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "ueberzug" version))
- (sha256
- (base32
- "1sc05s72gvglsxsw4p0z5h47ygygw5h226vnaakas4ihjq9kiffl"))))
- (build-system pyproject-build-system)
- (arguments
- (list #:tests? #f)) ; there are no tests
- (native-inputs
- (list meson-python pkg-config))
- (inputs
- (list libx11 libxext libxres))
- (propagated-inputs
- (list python-attrs python-docopt python-pillow))
- (home-page "https://github.com/ueber-devel/ueberzug/")
- (synopsis "Command line util to display images in combination with X11")
- (description "Überzug is a command line util which draws images on
-terminals by using child windows. The advantages of using Überzug are:
-@itemize
-@item No race conditions as a new window is created to display images.
-@item Expose events will be processed, so images will be redrawn on switch
-workspaces.
-@item Tmux support (excluding multi pane windows).
-@item Terminals without the WINDOWID environment variable are supported.
-@item Chars are used as position - and size unit.
-@item No memory leak (/ unlimited cache).
-@end itemize")
- (license license:gpl3+)))
-
(define-public python-databind-core
(package
(name "python-databind-core")
@@ -1922,13 +2424,15 @@ to create a well-documented piece of software.")
(package
(name "python-dotmap")
(version "1.3.30")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "dotmap" version))
- (sha256
- (base32
- "0s5kb2v7jd0narz6m6jcicak3h5pw290wz21cdsv8pq77y9sf8aq"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "dotmap" version))
+ (sha256
+ (base32 "0s5kb2v7jd0narz6m6jcicak3h5pw290wz21cdsv8pq77y9sf8aq"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:test-backend #~'unittest))
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/drgrib/dotmap")
(synopsis "Ordered, dynamically-expandable dot-access dictionary")
(description
@@ -1941,14 +2445,19 @@ dictionary, can be convert to a dictionary, and is ordered by insertion.")
(package
(name "python-dotty-dict")
(version "1.3.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "dotty_dict" version))
- (sha256
- (base32
- "058sah2nyg44xq5wxywlzc3abzcv9fifnlvsflwma9mfp01nw0ab"))))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pawelzny/dotty_dict")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32 "0rs83pglkgb4sfnk09rskg8c53hvl7mkjw4vfgl5xc8z13vyi3li"))))
(build-system pyproject-build-system)
- (native-inputs (list python-poetry-core python-setuptools))
+ (native-inputs
+ (list python-poetry-core
+ python-pytest
+ python-setuptools))
(home-page "https://github.com/pawelzny/dotty_dict")
(synopsis "Python library for accessing dictionaries using a dot syntax")
(description "This package provides a library that wraps the traditional
@@ -2026,15 +2535,18 @@ libraries to make them compatible with the Array API standard")
(define-public python-cachetools
(package
(name "python-cachetools")
- (version "5.5.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "cachetools" version))
- (sha256
- (base32
- "0ahg0mfp2ijsf92z5599kinpcp99lsfdpnddggxk75p3rfs4zhic"))))
+ (version "6.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "cachetools" version))
+ (sha256
+ (base32 "11s5ajy31r08228nd2sbv9jdir3vs584khxawwydnj18742g9i5l"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-wheel))
(home-page "https://github.com/tkem/cachetools/")
(synopsis "Extensible memoizing collections and decorators")
(description "This module provides various memoizing collections and
@@ -2042,24 +2554,34 @@ decorators, including variants of the Python standard library's
@code{lru_cache} function decorator.")
(license license:expat)))
+(define-public python-cachetools-5
+ (package
+ (inherit python-cachetools)
+ (version "5.5.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "cachetools" version))
+ (sha256
+ (base32 "1m20wqipm50zvcgs3z2xksb96qwx1xc1jbhvaxcnglkmj6m1qrhs"))))))
+
(define-public python-colorcet
(package
(name "python-colorcet")
- (version "3.1.0")
+ (version "3.1.1a1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "colorcet" version))
(sha256
- (base32 "1sx4m5xbz1k8bm8cr2f3x21dip167k7c1nv35npqla52h76v6899"))))
+ (base32 "1h15wdgha1cpj5a9p2dy9d8qdqnl5j1a0ylc7wilcfhvnfzcgp08"))))
(build-system pyproject-build-system)
(native-inputs (list python-nbval
python-packaging
python-pytest
- python-pytest-cov
python-pytest-mpl
python-setuptools
- python-wheel))
+ python-setuptools-scm))
(home-page "https://colorcet.holoviz.org/")
(synopsis "Collection of perceptually uniform colormaps")
(description "Colorcet is a collection of perceptually accurate 256-color
@@ -2161,7 +2683,9 @@ as functions or string constants to form colored terminal output.")
(sha256
(base32 "08bjsmmkihyksms2vgndslln02rvw56lkxz28d39qrnxbg4v1707"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (arguments
+ (list #:tests? #f)) ;no tests in PyPI or Git
+ (native-inputs (list python-setuptools))
(propagated-inputs (list python-pillow))
(home-page "https://github.com/fengsp/color-thief-py")
(synopsis "Grab the color palette of an image")
@@ -2228,26 +2752,6 @@ into dataclasses.")
quadrilateral grids. It is written in C++11 and wrapped using pybind11.")
(license license:bsd-3)))
-(define-public python-yaspin
- (package
- (name "python-yaspin")
- (version "1.5.0")
- (source
- (origin
- (method url-fetch)
- (uri
- (pypi-uri "yaspin" version))
- (sha256
- (base32 "1iirah0kydrdp505qnjj6gi54avcr7z0hbkfx9vmh8myr30rpz6q"))))
- (build-system python-build-system)
- (native-inputs
- (list python-pytest))
- (home-page "https://github.com/pavdmyt/yaspin")
- (synopsis "Yet Another Terminal Spinner")
- (description "Yaspin provides a terminal spinner to indicate the progress
-during long operations.")
- (license license:expat)))
-
(define-public python-lunr
(package
(name "python-lunr")
@@ -2285,7 +2789,7 @@ that best match text queries.")
(define-public python-mdit-py-plugins
(package
(name "python-mdit-py-plugins")
- (version "0.4.0")
+ (version "0.4.2")
(source (origin
(method git-fetch) ;for tests
(uri (git-reference
@@ -2294,16 +2798,14 @@ that best match text queries.")
(file-name (git-file-name name version))
(sha256
(base32
- "1790fcf3nd9c5j37fx87x3ivfyihk6l74jxj1qxvw3qfyb96w4k0"))))
+ "0lyv8k3sdm9i9am47z6zx96l9bbd9g8xp06yf2alafkmp0q873b9"))))
(build-system pyproject-build-system)
(propagated-inputs
(list python-markdown-it-py
python-attrs))
(native-inputs
- (list python-coverage
- python-flit-core
+ (list python-flit-core
python-pytest
- python-pytest-cov
python-pytest-regressions))
(home-page "https://github.com/executablebooks/mdit-py-plugins")
(synopsis "Collection of plugins for markdown-it-py")
@@ -2349,31 +2851,28 @@ that best match text queries.")
(version "1.3.0")
(source
(origin
- ;; The tests suite appears to be incomplete in the PyPI archive.
(method git-fetch)
(uri (git-reference
(url "https://github.com/mkdocs/mkdocs")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32
- "1n5rdllrxvhnxmdrddf55p3s86dakx0rq2gg6bj6pr6jg2pn932b"))))
- (build-system python-build-system)
+ (base32 "1n5rdllrxvhnxmdrddf55p3s86dakx0rq2gg6bj6pr6jg2pn932b"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- ;; Requirements refer to a specific version of dependencies,
- ;; which are too old. So we patch to refer to any later version.
- (add-after 'unpack 'patch-requirements
- (lambda _
- (substitute* "setup.py"
- (("==") ">="))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "-m" "unittest"
- "discover" "-p" "*tests.py" "mkdocs"
- "--top-level-directory" ".")))))))
+ (list
+ #:test-backend #~'unittest
+ #:test-flags
+ #~(list "discover" "-p" "*tests.py" "mkdocs" "--top-level-directory" ".")
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Requirements refer to a specific version of dependencies,
+ ;; which are too old. So we patch to refer to any later version.
+ (add-after 'unpack 'patch-requirements
+ (lambda _
+ (substitute* "setup.py"
+ (("==") ">=")))))))
+ (native-inputs (list python-setuptools))
(propagated-inputs
(list python-babel
python-click
@@ -2390,8 +2889,9 @@ that best match text queries.")
python-watchdog))
(home-page "https://www.mkdocs.org")
(synopsis "Project documentation with Markdown")
- (description "MkDocs is a static site generator geared towards building
-project documentation. Documentation source files are written in Markdown, and
+ (description
+ "MkDocs is a static site generator geared towards building project
+documentation. Documentation source files are written in Markdown, and
configured with a single YAML configuration file.")
(license license:bsd-3)))
@@ -2399,26 +2899,23 @@ configured with a single YAML configuration file.")
(package
(name "python-mkdocs-markdownextradata-plugin")
(version "0.2.5")
- (source (origin
- ;; Use git, as there are some test files missing from the PyPI release,
- ;; see https://github.com/rosscdh/mkdocs-markdownextradata-plugin/issues/41.
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/rosscdh/mkdocs-markdownextradata-plugin")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1a3868s9m7pzyfncpjbjsa9vw5nihssl2v47pxj7h6qa67kvlk3g"))))
- (build-system python-build-system)
- (native-inputs (list python-pytest))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rosscdh/mkdocs-markdownextradata-plugin")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1a3868s9m7pzyfncpjbjsa9vw5nihssl2v47pxj7h6qa67kvlk3g"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools))
(propagated-inputs (list python-mkdocs python-pyyaml))
(home-page "https://github.com/rosscdh/mkdocs-markdownextradata-plugin/")
- (synopsis "Inject mkdocs.yml extra variables into the MkDocs markdown
-template")
+ (synopsis "Inject extra variables into the MkDocs markdown template")
(description
"This package provides a MkDocs plugin that injects the mkdocs.yml extra
-variables into the markdown template")
+variables into the markdown template.")
(license license:expat)))
(define-public python-docstring-to-markdown
@@ -2594,7 +3091,9 @@ templates, understands numpydoc and Google-style docstrings.")
(sha256
(base32
"1fwdx92cdaiviradksfyygg05g1fpc3x2lf65bv5rnispcam6vhb"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ; Requires a running JVM?
+ (native-inputs (list python-setuptools))
(home-page "https://www.py4j.org/")
(synopsis "Dynamically access arbitrary Java objects from Python")
(description
@@ -2605,24 +3104,27 @@ Java objects.")
(define-public python-pymdown-extensions
(package
(name "python-pymdown-extensions")
- (version "8.1.1")
+ (version "10.16.1")
(source
(origin
- (method url-fetch)
- (uri
- (pypi-uri "pymdown-extensions" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/facelessuser/pymdown-extensions")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0d8pdndrl1kj105lq7r6kw2dnhcvll6h2qs07w71mcpi7gx728v3"))))
- (build-system python-build-system)
- ;; FIXME: "AssertionError: False is not true"
+ (base32 "0r36nk1ppq1wrgb1lcy9asp9872xr0gbhxrjw7dpa8lp6m7nqb9k"))))
+ (build-system pyproject-build-system)
+ ;; XXX: A lot of HTML tests fail with negligible discrepancies.
(arguments
- `(#:tests? #f))
- (propagated-inputs
- (list python-markdown))
+ (list #:tests? #f))
+ (native-inputs (list python-hatchling python-pytest python-pyyaml))
+ (propagated-inputs (list python-markdown))
(home-page "https://github.com/facelessuser/pymdown-extensions")
(synopsis "Extension pack for Python Markdown")
- (description "PyMdown Extensions is a collection of extensions for Python
-Markdown. All extensions are found under the module namespace of pymdownx.")
+ (description
+ "PyMdown Extensions is a collection of extensions for Python Markdown.
+All extensions are found under the module namespace of pymdownx.")
(license license:expat)))
(define-public python-plotext
@@ -2682,34 +3184,33 @@ scatter plots, histograms and heatmaps in the terminal using braille dots.")
(define-public python-poetry-dynamic-versioning
(package
(name "python-poetry-dynamic-versioning")
- (version "1.4.0")
+ (version "1.9.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "poetry_dynamic_versioning" version))
(sha256
- (base32 "19v9jrawbx1nwnwrd6giyzwfq50y2mjzkrsx0ga2sbx2a2yphlbj"))))
+ (base32 "0j6sm60x0w31kf5003v4dhp9sdz1i5n5qsfd8r4wm8ksh7gvkryn"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
#~(list "--ignore=tests/test_integration.py"
- ;; E RuntimeError: Unable to detect version control system. Not
- ;; installed: Git, Mercurial, Darcs, Subversion, Bazaar, Fossil,
- ;; Pijul.
- "-k"
- (string-append
- "not test__get_version__defaults"
- " and not test__get_version__format_jinja"
- " and not test__get_version__format_jinja_with_enforced_style"
- " and not test__get_version__format_jinja_imports_with_module_only"
- " and not test__get_version__format_jinja_imports_with_module_and_item"))))
+ "-k" (string-join
+ ;; Tests searching for VCS back end.
+ (list "not test__get_version__defaults"
+ "test__enable_in_doc__project_with_dynamic"
+ "test__enable_in_doc__project_with_version"
+ "test__get_version__format_jinja"
+ "test__get_version__format_jinja_imports_with_module_and_item"
+ "test__get_version__format_jinja_imports_with_module_only"
+ "test__get_version__format_jinja_with_enforced_style")
+ " and not "))))
(native-inputs
(list python-poetry-core
python-pytest))
(propagated-inputs
- (list poetry
- python-dunamai
+ (list python-dunamai
python-jinja2
python-tomlkit))
(home-page "https://github.com/mtkennerly/poetry-dynamic-versioning")
@@ -2772,15 +3273,16 @@ ports.")
(define-public python-mdx-gh-links
(package
(name "python-mdx-gh-links")
- (version "0.2")
+ (version "0.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "mdx_gh_links" version))
(sha256
- (base32 "167k1jbp3jifxbnlpi6wy0z1skam7gqv2sixb5bhggb2vypqvysr"))))
- (build-system python-build-system)
+ (base32 "11inr9azx6c174yfikysbw0mx7mpjm03qdqr1am2a510mg1amma1"))))
+ (build-system pyproject-build-system)
(arguments (list #:tests? #f)) ;tests connect github
+ (native-inputs (list python-setuptools))
(propagated-inputs (list python-markdown))
(home-page "https://github.com/Python-Markdown/github-links/")
(synopsis "Python-Markdown extension adding support for shorthand links")
@@ -3109,7 +3611,7 @@ configuration file.")
(define-public python-pytooling
(package
(name "python-pytooling")
- (version "8.5.0")
+ (version "8.7.0")
(source
(origin
(method git-fetch)
@@ -3118,7 +3620,7 @@ configuration file.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1r4c7wyvqhpxdkfw9akff4ki4azbvamzs9mkb61005wx4qr3a1rr"))))
+ (base32 "084zd009f280rhkry0vnzlrx21qv6djf3wda1l859z7iv592lwmq"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -3153,25 +3655,17 @@ package descriptions or to unify multiple existing APIs into a single API.")
(define-public python-colorlog
(package
(name "python-colorlog")
- (version "6.6.0")
+ (version "6.9.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "colorlog" version))
(sha256
- (base32 "1s7x0v872h8aks8xp01wmv6hzisxqjrh1svbbcycir0980h76krl"))))
- (build-system python-build-system)
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (invoke "python" "-m" "pytest")))))))
+ (base32 "1hka1kf6p53hppv05xsa5byr4gasfaaq7r2g3x7gb51vp6hm9fmz"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-pytest))
+ (list python-pytest
+ python-setuptools))
(home-page "https://github.com/borntyping/python-colorlog")
(synopsis "Log formatting with colors for python")
(description "The @code{colorlog.ColoredFormatter} is a formatter for use
@@ -3182,20 +3676,21 @@ with Python's logging module that outputs records using terminal colors.")
(package
(name "python-pyprind")
(version "2.11.3")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "PyPrind" version))
- (sha256
- (base32
- "1gscnlvj37m421ch3akm3kddxqkrgbg5zrpwy2ky1j59w6vclzg3"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-psutil))
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "PyPrind" version))
+ (sha256
+ (base32 "1gscnlvj37m421ch3akm3kddxqkrgbg5zrpwy2ky1j59w6vclzg3"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools))
+ (propagated-inputs (list python-psutil))
(home-page "https://github.com/rasbt/pyprind")
(synopsis "Python Progress Bar and Percent Indicator Utility")
- (description "The PyPrind (Python Progress Indicator) module provides a
-progress bar and a percentage indicator object that let you track the progress
-of a loop structure or other iterative computation.")
+ (description
+ "The PyPrind (Python Progress Indicator) module provides a progress bar
+and a percentage indicator object that let you track the progress of a loop
+structure or other iterative computation.")
(license license:bsd-3)))
(define-public python-gh-md-to-html
@@ -3271,7 +3766,7 @@ point types:
(define-public python-glymur
(package
(name "python-glymur")
- (version "0.13.6")
+ (version "0.14.3")
(source
(origin
(method git-fetch) ; no tests data in PyPi package
@@ -3280,7 +3775,7 @@ point types:
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "06v6g0fwzmy2imhrvy0q4zrhrlrp24yhs098vi13r92ga63c72xl"))))
+ (base32 "0266gj8a2p8jkbgb34lgk8dwin7ib2g38vdh04b2p6yhqx8w3xg8"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -3311,15 +3806,14 @@ point types:
(list python-pytest
python-pytest-xdist
python-scikit-image
- python-setuptools
- python-wheel))
+ python-setuptools))
(inputs
(list openjpeg ; glymur/lib/openjp2.py
libtiff)) ; glymur/lib/tiff.py
(propagated-inputs
(list python-lxml
python-numpy
- python-packaging))
+ python-pillow ))
(home-page "https://github.com/quintusdias/glymur")
(synopsis "Python interface to OpenJPEG and LibTIFF")
(description
@@ -3356,19 +3850,37 @@ automatically generate the interface code.")
(package
(name "python-colour")
(version "0.1.5")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "colour" version))
- (sha256
- (base32
- "1visbisfini5j14bdzgs95yssw6sm4pfzyq1n3lfvbyjxw7i485g"))))
- (build-system python-build-system)
- (native-inputs
- (list python-d2to1))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/vaab/colour")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "01k2n3zp6j0bws78vdy7i9d6m4lz3bm8z7d7lv1czks1d4aamnr2"))
+ (patches (search-patches "python-colour-remove-d2to1.patch"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #f ; No tests.
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (substitute* "autogen.sh"
+ (("if ! \"\\$git\".*")
+ "if false ; then\n")
+ (("depends git grep")
+ "depends grep")
+ (("version=\\$\\(\"\\$git\" describe --tags\\)")
+ (format #f "version=~s" #$version))))))))
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/vaab/colour")
(synopsis "Convert and manipulate various color representations")
- (description "Pythonic way to manipulate color representations (HSL, RVB,
-web, X11, ...).")
+ (description
+ "This package provides a pythonic way to manipulate color representations
+(HSL, RVB,web, X11, ...).")
(license license:expat)))
(define-public python-d2to1
@@ -3441,21 +3953,28 @@ interacting with the low-level LibRaw C APIs.")
(package
(name "python-easygui")
(version "0.98.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "easygui" version))
- (sha256
- (base32
- "1zmvmwgxyzvm83818skhn8b4wrci4kmnixaax8q3ia5cn7xrmj6v"))))
- (build-system python-build-system)
- (propagated-inputs
- (list `(,python "tk")))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/robertlugg/easygui")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1vwd0dvldl993sp7b24h5yn269vykq7mmp9khdssqryfchfbajx6"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; XXX: There seem to be no tests upstream, although the package itself
+ ;; seems to provide a lot of demo elements.
+ (list #:tests? #f))
+ (native-inputs (list python-pytest python-setuptools))
+ (propagated-inputs (list `(,python "tk")))
(home-page "https://github.com/robertlugg/easygui")
(synopsis "GUI programming module for Python")
- (description "EasyGUI is a module for very simple, very easy GUI
-programming in Python. EasyGUI is different from other GUI generators in that
-EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by
-simple function calls.")
+ (description
+ "EasyGUI is a module for easy GUI programming in Python. EasyGUI is
+different from other GUI generators in that EasyGUI is NOT event-driven.
+Instead, all GUI interactions are invoked by simple function calls.")
(license license:bsd-3)))
(define-public python-echo
@@ -3502,15 +4021,17 @@ state changes.")
(version "0.4.6.0b1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pymd4c" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dominickpastore/pymd4c")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "07s3arn85ri92im6x3ipljdmrxmpik7irs06i6lm17j1x6j9841d"))))
- (build-system python-build-system)
- (inputs
- (list md4c))
- (native-inputs
- (list python-flake8 python-pkgconfig pkg-config))
+ (base32 "0skmdn2bxfc546djxapdgb0bjvlr3c7a3kkv7j3bpx9zw09m0rcs"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ; No tests.
+ (inputs (list md4c))
+ (native-inputs (list pkg-config python-pkgconfig python-setuptools))
(home-page "https://github.com/dominickpastore/pymd4c")
(synopsis "Python bindings for MD4C")
(description
@@ -3527,33 +4048,24 @@ to CommonMark.")
(method url-fetch)
(uri (pypi-uri "pymediainfo" version))
(sha256
- (base32
- "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
- (build-system python-build-system)
- (native-inputs
- (list python-setuptools-scm python-pytest))
- (inputs
- (list libmediainfo))
+ (base32 "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-libmediainfo
- (lambda _
- (substitute* "pymediainfo/__init__.py"
- (("libmediainfo.so.0")
- (search-input-file %build-inputs
- "/lib/libmediainfo.so.0")))))
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- ;; Skip the only failing test "test_parse_url" because it tries
- ;; to access the internet.
- (invoke "pytest" "-vv" "-k" "not test_parse_url")))))))
- (home-page
- "https://github.com/sbraz/pymediainfo")
- (synopsis
- "Python wrapper for the mediainfo library")
+ (list
+ ;; The only failing test requires internet access.
+ #:test-flags
+ #~(list "-k" "not test_parse_url")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-libmediainfo
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "pymediainfo/__init__.py"
+ (("libmediainfo.so.0")
+ (search-input-file inputs "/lib/libmediainfo.so.0"))))))))
+ (native-inputs (list python-pytest python-setuptools))
+ (inputs (list libmediainfo))
+ (home-page "https://github.com/sbraz/pymediainfo")
+ (synopsis "Python wrapper for the mediainfo library")
(description
"This package provides a Python wrapper for the mediainfo library to
access the technical and tag data for video and audio files.")
@@ -3562,18 +4074,20 @@ access the technical and tag data for video and audio files.")
(define-public python-psutil
(package
(name "python-psutil")
- (version "5.9.2")
+ (version "7.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "psutil" version))
(sha256
- (base32 "0p1bf6ndcssqh0ic828ggwhzhm67mzj3ffq6043v0fvc1fhn3f7y"))))
- (build-system python-build-system)
+ (base32 "0mn42p9pzh0wynhk9i18iyvp8h54hbcsyczajmjcpv4blgmw7sbv"))))
+ (build-system pyproject-build-system)
(arguments
;; FIXME: some tests do not return and time out. Some tests fail because
;; some processes survive kill().
'(#:tests? #f))
+ (native-inputs
+ (list python-setuptools))
(home-page "https://github.com/giampaolo/psutil")
(synopsis "Library for retrieving information on running processes")
(description
@@ -3586,18 +4100,6 @@ top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat,
iotop, uptime, pidof, tty, taskset, pmap.")
(license license:bsd-3)))
-(define-public python-psutil-7
- (package
- (inherit python-psutil)
- (name "python-psutil")
- (version "7.0.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "psutil" version))
- (sha256
- (base32 "0mn42p9pzh0wynhk9i18iyvp8h54hbcsyczajmjcpv4blgmw7sbv"))))))
-
(define-public python-scapy
(package
(name "python-scapy")
@@ -3634,13 +4136,16 @@ attacks or network discovery.")
(version "3.0.4")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "icmplib" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ValentinBELYN/icmplib")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1phnlgbb5di79ijm55pyd5jj1ggss4b6nn6mw701h501vcn8z1jp"))))
- (arguments
- '(#:tests? #f)) ;test data not present
- (build-system python-build-system)
+ (base32 "04h877ryg22vsgvq35dqwpf0b1v8hvfl2gc857zxqzig4ld5qw1y"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ; No tests.
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/ValentinBELYN/icmplib")
(synopsis
"Python implementation of the Internet Control Message Protocol (ICMP)")
@@ -3651,45 +4156,65 @@ utilities such as ping(1).")
(license license:lgpl3)))
(define-public python-iron-core
- (package
- (name "python-iron-core")
- (version "1.2.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "iron-core" version))
- (sha256
- (base32 "158vdymq6nbym0v1f9l5gz42j1gsq09b9yw9hgd70m5ymy30n6dp"))))
- (build-system pyproject-build-system)
- (propagated-inputs (list python-dateutil python-requests))
- (native-inputs (list python-setuptools python-wheel))
- (home-page "https://www.github.com/iron-io/iron_core_python")
- (synopsis "Universal classes and methods for Iron.io API wrappers")
- (description
- "This package provides universal classes and methods for the Iron.io API
-wrappers to build on.")
- (license license:bsd-2)))
+ (let ((commit "5a5f3011da09769a812c6a1c44781ef852abc19b")
+ (revision "0"))
+ (package
+ (name "python-iron-core")
+ (version (git-version "1.2.1" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://www.github.com/iron-io/iron_core_python")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "030ibimgqvc6hywh7g3k7qn147ckagi0wbdiqcpdf1c85xqrj5zq"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; XXX: Tests are run, but they seem too old/not updated.
+ #:tests? #f
+ #:test-backend #~'unittest))
+ (propagated-inputs (list python-dateutil python-requests))
+ (native-inputs (list python-setuptools))
+ (home-page "https://www.github.com/iron-io/iron_core_python")
+ (synopsis "Universal classes and methods for Iron.io API wrappers")
+ (description
+ "This package provides universal classes and methods for the Iron.io
+API wrappers to build on.")
+ (license license:bsd-2))))
(define-public python-iron-mq
- (package
- (name "python-iron-mq")
- (version "0.9")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "iron-mq" version))
- (sha256
- (base32 "1ypc71xppidy5lx3mbfj1zc685na3jns441q6il8kh6rfbc42169"))))
- (build-system pyproject-build-system)
- (propagated-inputs (list python-iron-core))
- (native-inputs (list python-setuptools python-wheel))
- (home-page "https://github.com/iron-io/iron_mq_python")
- (synopsis "Client library for IronMQ, a message queue in the cloud")
- (description
- "This package provides Python language bindings for IronMQ. IronMQ is an
+ (let ((commit "e6ff76ac0068c3184d9003e3163b94ffc839dbe8")
+ (revision "0"))
+ (package
+ (name "python-iron-mq")
+ (version (git-version "0.9" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/iron-io/iron_mq_python")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0bb8gpzb3jr2r6i367jspwcxrz5ygdf40a67nl9aj5n79hg1aq8x"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; XXX: Tests are broken and require network access.
+ #:tests? #f
+ #:test-backend #~'unittest))
+ (propagated-inputs (list python-iron-core))
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/iron-io/iron_mq_python")
+ (synopsis "Client library for IronMQ, a message queue in the cloud")
+ (description
+ "This package provides Python language bindings for IronMQ. IronMQ is an
elastic message queue for managing data and event flow within cloud
applications and between systems.")
- (license license:bsd-2)))
+ (license license:bsd-2))))
(define-public python-rasterio
(package
@@ -3740,7 +4265,7 @@ with Numpy and SciPy.")
(define-public python-rich-tables
(package
(name "python-rich-tables")
- (version "0.6.1")
+ (version "0.8.0")
(source
(origin
(method git-fetch) ; no tests data in PyPi package
@@ -3749,8 +4274,13 @@ with Numpy and SciPy.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1wqr6sldf97ycs4gfvsqhbh1ki2kgsaicsy44g9lspvlda5nfcp1"))))
+ (base32 "1gkwgxcjnghn0alqw53kgb4ixf047dnb49kc0af3blvcwnmfmb5f"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; TypeError: can't subtract offset-naive and offset-aware datetimes
+ #~(list "--deselect=tests/test_outputs.py::test_outputs[tests/json/album.json]")))
(native-inputs
(list python-freezegun
python-poetry-core
@@ -3758,6 +4288,7 @@ with Numpy and SciPy.")
python-pytest-cov))
(propagated-inputs
(list python-funcy
+ python-humanize
python-multimethod
python-platformdirs
python-rgbxy
@@ -3878,21 +4409,39 @@ and function call return values in a human-readable way.")
(define-public python-clyent
(package
(name "python-clyent")
- (version "1.2.1")
+ (version "1.2.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "clyent" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Anaconda-Platform/clyent")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj"))))
- (build-system python-build-system)
+ (base32 "0vi9nkd4hnvycwwpz9xip1drc5zn7bdwff1pz3azmyvh8v4hsias"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-backend #~'unittest
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Replace version manually because clyent uses
+ ;; versioneer, which requires git metadata.
+ (add-after 'unpack 'versioneer
+ (lambda _
+ (invoke "versioneer" "install")
+ (substitute* "setup.py"
+ (("version=versioneer.get_version\\(),")
+ (string-append "version='" #$version "',"))))))))
(native-inputs
- (list python-mock))
+ (list python-mock
+ python-setuptools
+ python-versioneer))
(home-page "https://github.com/Anaconda-Platform/clyent")
(synopsis "Command line client library")
- (description "Clyent is a Python command line utility library. It is used
-by @code{binstar}, @code{binstar-build}, and @code{chalmers}.")
+ (description
+ "Clyent is a Python command line utility library. It is used by
+@code{binstar}, @code{binstar-build}, and @code{chalmers}.")
(license license:bsd-3)))
(define-public python-babel
@@ -3963,8 +4512,8 @@ for working with bidirectional mappings in Python.")
(uri (pypi-uri "bip39" version))
(sha256
(base32 "18m7d3gi7vj2zi0bl1z7m0nhcj6i8j9vj4vil276siagnpkv64ry"))))
- (build-system python-build-system)
- (native-inputs (list python-pytest))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/de-centralized-systems/python-bip39/")
(synopsis "Self-contained and simple BIP39 implementation in Python")
(description
@@ -4241,22 +4790,25 @@ interface utility to parse @url{https://hjson.github.io/, HJSON}) documents.")
(version "0.5.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "hnswlib" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nmslib/hnswlib")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0wf1cwmxmdzfqmfhrkqdxb5spf21ylgl2bidswhzjrqhwf35c9qf"))))
- (build-system python-build-system)
+ (base32 "1ixhpsqlikjf7id1zlgqakq2ihpvq5h3npxj7mqjbx09ncsjam1m"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'disable-native-optimization
- (lambda _
- (substitute* "setup.py"
- ((", '-march=native'") "")))))))
- (propagated-inputs
- (list python-numpy))
- (native-inputs
- (list pybind11))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-native-optimization
+ (lambda _
+ (substitute* "setup.py"
+ ((", '-march=native'")
+ "")))))))
+ (propagated-inputs (list python-numpy))
+ (native-inputs (list pybind11 python-pytest python-setuptools))
(home-page "https://github.com/nmslib/hnswlib")
(synopsis "Fast approximate nearest neighbor search")
(description "Hnswlib is a header-only C++ implementation of fast
@@ -4336,6 +4888,45 @@ Unicode-to-LaTeX conversion.")
(define-public python-sh
(package
(name "python-sh")
+ (version "2.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "sh" version))
+ (sha256
+ (base32
+ "0nxnkvmrl6vlan6lsvjymmxpr0gf8k0gnwr1632lwa0sqjkjfck5"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" (string-join
+ ;; These tests are shaky.
+ (list "not test_bad_sig_raise_exception"
+ "test_doesnt_execute_directories"
+ "test_environment"
+ "test_ok_code_ignores_bad_sig_exception"
+ "test_unicode_path")
+ " and not ")
+ "tests")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list python-poetry-core python-pytest))
+ (home-page "https://github.com/amoffat/sh")
+ (synopsis "Python subprocess replacement")
+ (description "This package provides a replacement for Python's
+@code{subprocess} feature.")
+ (license license:expat)))
+
+;; Old version just for python-dotenv-0.13.0 for docker-compose; remove once
+;; that is updated.
+(define-public python-sh-1
+ (package
+ (inherit python-sh)
(version "1.14.2")
(source
(origin
@@ -4344,7 +4935,7 @@ Unicode-to-LaTeX conversion.")
(sha256
(base32
"03gyss1rhj4in7pgysg4q0hxp3230whinlpy1532ljs99lrx0ywx"))))
- (build-system python-build-system)
+ ;(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
@@ -4354,12 +4945,7 @@ Unicode-to-LaTeX conversion.")
(setenv "HOME" "/tmp")
(invoke "python" "sh.py" "test"))))))
(native-inputs
- (list python-coverage))
- (home-page "https://github.com/amoffat/sh")
- (synopsis "Python subprocess replacement")
- (description "This package provides a replacement for Python's
-@code{subprocess} feature.")
- (license license:expat)))
+ (list python-setuptools))))
(define-public python-cftime
(package
@@ -4538,56 +5124,49 @@ conventions and aliases in the same expression.")
(define-public python-limits
(package
(name "python-limits")
- (version "4.0.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "limits" version))
- (sha256
- (base32 "0nkdwkvn2rs5swnd4ihv6yg6b5124apqzrrymqcm75pwil2mqkx5"))))
- (build-system pyproject-build-system)
- (propagated-inputs (list python-deprecated python-packaging
- python-typing-extensions))
- (native-inputs (list python-setuptools python-wheel))
- (home-page "https://limits.readthedocs.io/")
- (synopsis "Rate limiting utilities")
- (description "This package provides a Python library to perform rate
-limiting with commonly used storage backends.")
- (license license:expat)))
-
-(define-public python-wand
- (package
- (name "python-wand")
- (version "0.6.13")
+ (version "5.5.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "Wand" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/alisaifee/limits")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1jpwm956vm35hmgjndr2jwrcql0bwvpsl88q5nr0x8ppxa2380gm"))))
+ (base32 "1ykld43q1pbvds4wsb18wagh852byzjpcjqg1xwa5cldigmkc2x0"))))
(build-system pyproject-build-system)
(arguments
(list
- #:test-flags
- ;; These two tests fail even though the signatures are identical.
- '(list "-k" "not fourier_transform")
+ ;; XXX: Despite running only unit tests, pytest exits with an error code.
+ #:tests? #f
+ #:test-flags #~(list "-m" "unit")
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'hardcode-lib-path
+ (add-after 'unpack 'ignore-K-pytest-option
(lambda _
- (substitute* "wand/api.py"
- (("os\\.environ\\.get\\('MAGICK_HOME'\\)")
- (string-append "\"" #$(this-package-input "imagemagick") "\""))
- (("os\\.environ\\.get\\('WAND_MAGICK_LIBRARY_SUFFIX'\\)")
- "\".Q16\"")))))))
+ (substitute* "pytest.ini"
+ (("-K") "")))))))
+ (propagated-inputs (list python-deprecated python-packaging))
(native-inputs
- (list python-setuptools python-pytest python-wheel))
- (inputs
- (list imagemagick))
- (home-page "https://docs.wand-py.org/")
- (synopsis "MagickWand API binding for Python")
+ (list ; python-etcd3
+ python-flaky
+ python-pytest
+ python-pytest-asyncio
+ python-pytest-benchmark
+ python-pytest-cov
+ python-pytest-lazy-fixtures
+ python-pytest-xdist
+ ;; python-pymemcache
+ ;; python-pymongo
+ ;; python-redis
+ python-setuptools
+ ;; python-valkey
+ ))
+ (home-page "https://limits.readthedocs.io/")
+ (synopsis "Rate limiting utilities")
(description
- "Wand is a ctypes-based binding for ImageMagick's MagickWand library.")
+ "This package provides a Python library to perform rate limiting with
+commonly used storage backends.")
(license license:expat)))
(define-public python-lockfile
@@ -4690,23 +5269,27 @@ diagrams.")
(define-public python-semantic-version
(package
(name "python-semantic-version")
- (version "2.8.5")
+ (version "2.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "semantic_version" version))
(sha256
- (base32
- "0m4avx8zdkzc7qglv5zlr54g8yna5vl098drg5396ql7aph2vjyj"))))
- (build-system python-build-system)
+ (base32 "0704smz9k6hdd6i5xh0xf0sk47kannjb77abilvvp34r6v9vdaxx"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:test-backend #~'custom
+ #:test-flags #~(list "-m" "nose2")))
+ (native-inputs
+ (list python-nose2
+ python-setuptools))
(home-page "https://github.com/rbarrois/python-semanticversion")
(synopsis "Semantic versioning module for Python")
(description
"The @code{semantic_version} class is a small library for handling
@uref{https://semver.org/, semantic versioning} (@dfn{SemVer}) in Python.
-It can compare versions, generate a new version that represents a bump in one of
-the version levels, and check whether any given string is a proper semantic
+It can compare versions, generate a new version that represents a bump in one
+of the version levels, and check whether any given string is a proper semantic
version identifier.")
(license license:bsd-3)))
@@ -4716,13 +5299,18 @@ version identifier.")
(version "1.41")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "serpent" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/irmen/Serpent")
+ (commit (string-append "serpent-" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "15bhxpihxvbphsvp4wyh2kwfz7xasmki9zwcsj3l6r66wdgh61q4"))))
+ (base32 "081bm13pdxp3rxis24j2mjka06fzi4kap51wmnf21q69fsikbza8"))))
(build-system pyproject-build-system)
+ (arguments (list #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "-s" "tests")))
(native-inputs
- (list python-attrs python-pytz python-setuptools python-wheel))
+ (list python-attrs python-pytz python-setuptools))
(home-page "https://github.com/irmen/Serpent")
(synopsis "Serializer for literal Python expressions")
(description
@@ -4738,101 +5326,27 @@ other machines, such as over the network.")
(define-public python-setuptools-declarative-requirements
(package
(name "python-setuptools-declarative-requirements")
- (version "1.2.0")
+ (version "1.3.0")
(source
(origin
(method url-fetch)
- (uri (pypi-uri
- "setuptools-declarative-requirements"
- version))
+ (uri (pypi-uri "setuptools-declarative-requirements" version))
(sha256
- (base32
- "1l8zmcnp9h8sp8hsw7b81djaa1a9yig0y7i4phh5pihqz1gdn7yi"))))
- (build-system python-build-system)
+ (base32 "1xwqp37ii9kql49agmkipawjbndwxg6y8sxax1wc4l6kkaxvk9ap"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;requir dated inputs
(native-inputs
- (list python-pytest python-setuptools-scm))
+ (list python-setuptools-scm))
(propagated-inputs
- (list python-toml python-wheel))
- (home-page
- "https://github.com/s0undt3ch/setuptools-declarative-requirements")
+ (list python-setuptools))
+ (home-page "https://github.com/s0undt3ch/setuptools-declarative-requirements")
(synopsis "File support for setuptools declarative setup.cfg")
(description
"This package provides file support for setuptools declarative
@code{setup.cfg}.")
(license license:asl2.0)))
-;; The setuptools provided by Python 3.9 is too new for Tensorflow.
-(define-public python-setuptools-for-tensorflow
- (hidden-package
- (package
- (inherit python-setuptools)
- (version "39.1.0")
- (source (origin
- (inherit (package-source python-setuptools))
- (uri (pypi-uri "setuptools" version ".zip"))
- (sha256
- (base32
- "1mzdhvfhnv4lggxa8rjl0dzqxvfx377gg5sqs57v89wrp09lwj65"))))
- (arguments
- `(#:tests? #f ; tests require vendored resources
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'compatibility-fixes
- (lambda _
- ;; Python 3.9 no longer has HTMLParser
- (substitute* "setuptools/py33compat.py"
- (("html_parser.HTMLParser\\(\\).unescape")
- "html.unescape"))
- ;; collections classes have moved in Python 3.10
- (substitute* "pkg_resources/_vendor/pyparsing.py"
- (("collections.MutableMapping")
- "collections.abc.MutableMapping")
- (("collections.Iterable")
- "collections.abc.Iterable"))
- ;; This needs distutils.msvc9compiler
- (delete-file "setuptools/tests/test_msvc.py")
- ;; See https://github.com/pypa/setuptools/issues/2558
- (delete-file "setuptools/command/bdist_wininst.py")
- (substitute* "setuptools/command/install_scripts.py"
- (("bw_cmd =.*") "\n")
- (("is_wininst =.*")
- "is_wininst = False\n")))))))
- (native-inputs
- (list python-pytest python-mock python-six)))))
-
-(define-public python-uniseg
- (package
- (name "python-uniseg")
- (version "0.7.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "uniseg" version ".zip"))
- (sha256
- (base32
- "05jsazvz6nbmh6l3v1rph5ydkqn1hzx1pyggdyvgp2qgmgrnmiz2"))))
- (build-system python-build-system)
- (arguments
- '(#:tests? #f)) ; The test suite requires network access.
- (native-inputs
- (list unzip))
- (home-page
- "https://bitbucket.org/emptypage/uniseg-python")
- (synopsis
- "Python library to determine Unicode text segmentations")
- (description
- "Uniseg is a Python package used to determine Unicode text segmentations.
-Supported segmentations include:
-@enumerate
-@item @dfn{Code point} (any value in the Unicode codespace)
-@item @dfn{Grapheme cluster} (user-perceived character made of a single or
-multiple Unicode code points, e.g. \"G\" + acute-accent)
-@item Word break
-@item Sentence break
-@item Line break
-@end enumerate")
- (license license:expat)))
-
(define-public python-humanfriendly
(package
(name "python-humanfriendly")
@@ -4956,14 +5470,16 @@ your Python package version as a calendar version.")
(define-public python-can
(package
(name "python-can")
- (version "4.2.0")
+ (version "4.6.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "python-can" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/hardbyte/python-can")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1w5sdzxivpd3pw4pypwnjlksvfimdb93qnlddbrh5f13flhsgg8g"))))
+ (base32 "0i89hzc9n1h8i63wa333ahh5j1xqxq9v4ymcx7mcsg6ygji5wllr"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -4974,16 +5490,17 @@ your Python package version as a calendar version.")
;;
;; Disable tests which require specific CAN drivers we have no
;; package for in Guix.
- "--ignore" "test/test_interface_canalystii.py"
+ "--ignore=test/test_interface_canalystii.py"
;; These tests fail with "OSError: [Errno 19] No such device".
- "-k" "not BasicTestUdpMulticastBusIPv")))
- (propagated-inputs
- (list python-msgpack python-typing-extensions python-wrapt
- python-setuptools))
+ "-k" "not BasicTestUdpMulticastBusIPv")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+ (propagated-inputs (list python-packaging python-wrapt))
(native-inputs
(list ;; python-canalystii ; Not packed yet
- python-codecov
- python-coverage
python-future
python-hypothesis
python-mock
@@ -4991,13 +5508,14 @@ your Python package version as a calendar version.")
python-pyserial
python-pytest
python-pytest-cov
- python-pytest-runner
python-pytest-timeout
- python-wheel))
+ python-setuptools
+ python-setuptools-scm))
(home-page "https://github.com/hardbyte/python-can")
(synopsis "Controller Area Network (CAN) interface module for Python")
- (description "This package defines the @code{can} module, which provides
-controller area network (CAN) support for Python developers; providing common
+ (description
+ "This package defines the @code{can} module, which provides controller
+area network (CAN) support for Python developers; providing common
abstractions to different hardware devices, and a suite of utilities for
sending and receiving messages on a CAN bus.")
(license license:lgpl3+)))
@@ -5017,8 +5535,7 @@ sending and receiving messages on a CAN bus.")
(base32 "05l0hi279y1dc8ifm2223lpn7z9dx2h7kk599bkymvasb2qa1xrx"))))
(build-system pyproject-build-system)
(native-inputs
- (list python-pathlib2
- python-pytest
+ (list python-pytest
python-pytest-cov
python-pytest-timeout
python-setuptools
@@ -5046,15 +5563,18 @@ converting and comparing CAN databases.")
(define-public python-canopen
(package
(name "python-canopen")
- (version "2.3.0")
+ (version "2.4.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "canopen" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/canopen-python/canopen")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "09xqqrb8vfyj3bw61nlgpl1qy86fnm72vpbd80m5p38k7jlq883r"))))
+ (base32 "0vw6si83m4329p0k0q4b54gn1pindfzkmx6wxqy03bixd94bxw5y"))))
(build-system pyproject-build-system)
- (native-inputs (list python-pytest python-wheel))
+ (native-inputs (list python-pytest python-setuptools))
(propagated-inputs (list python-can))
(home-page "https://github.com/canopen-python/canopen")
(synopsis "CANopen stack implementation")
@@ -5144,30 +5664,9 @@ help formatter.")
(assoc-ref py:%standard-phases 'build))
(add-after 'build-python-module 'install-python-module
(assoc-ref py:%standard-phases 'install)))
- #:cargo-inputs
- `(("rust-ahash" ,rust-ahash-0.8)
- ("rust-arrayvec" ,rust-arrayvec-0.7)
- ("rust-associative-cache" ,rust-associative-cache-1)
- ("rust-beef" ,rust-beef-0.5)
- ("rust-bytecount" ,rust-bytecount-0.6)
- ("rust-chrono" ,rust-chrono-0.4)
- ("rust-compact-str" ,rust-compact-str-0.7)
- ("rust-encoding-rs" ,rust-encoding-rs-0.8)
- ("rust-itoa" ,rust-itoa-1)
- ("rust-itoap" ,rust-itoap-1)
- ("rust-once-cell" ,rust-once-cell-1)
- ("rust-pyo3-ffi" ,rust-pyo3-ffi-0.19)
- ("rust-ryu" ,rust-ryu-1)
- ("rust-serde" ,rust-serde-1)
- ("rust-serde-json" ,rust-serde-json-1)
- ("rust-simdutf8" ,rust-simdutf8-0.1)
- ("rust-smallvec" ,rust-smallvec-1)
- ("rust-cc" ,rust-cc-1)
- ("rust-pyo3-build-config" ,rust-pyo3-build-config-0.19)
- ("rust-version-check" ,rust-version-check-0.9))
#:install-source? #false))
(inputs
- (list maturin))
+ (cons maturin (cargo-inputs 'python-orjson)))
(native-inputs
(list python-wrapper))
(home-page "https://github.com/ijl/orjson")
@@ -5228,7 +5727,7 @@ for the standard @code{argparse} library.")
(build-system pyproject-build-system)
(native-inputs
(list python-pytest
- python-setuptools-next
+ python-setuptools
python-wheel))
(home-page "https://github.com/eerimoq/bitstruct")
(synopsis "Python values to and C bit field structs converter")
@@ -5242,18 +5741,16 @@ of primitive data types like @code{char}, @code{int}, etc.")
(define-public python-cantools
(package
(name "python-cantools")
- (version "40.2.3")
+ (version "40.5.0")
(source
(origin
- ;; We take the sources from the Git repository as the documentation is
- ;; not included with the PyPI archive.
(method git-fetch)
(uri (git-reference
(url "https://github.com/eerimoq/cantools")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "09cpsma0qgra7yjvcppripsrhr70ivc2bgcg1vqi64125dpi8a3x"))))
+ (base32 "0ldqdsvkvy7vmplyiqcfqqwbh8v88ha98hgdrnlm09g4qbylh5d4"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -5267,11 +5764,11 @@ of primitive data types like @code{char}, @code{int}, etc.")
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs
- (list python-parameterized
+ (list python-freezegun
+ python-parameterized
python-pytest
python-setuptools
- python-setuptools-scm
- python-wheel))
+ python-setuptools-scm))
(propagated-inputs
(list python-argparse-addons
python-bitstruct
@@ -5282,8 +5779,9 @@ of primitive data types like @code{char}, @code{int}, etc.")
python-textparser))
(home-page "https://github.com/eerimoq/cantools")
(synopsis "Tools for the Controller Area Network (CAN) bus protocol")
- (description "This package includes Controller Area Network (CAN) related
-tools that can be used to:
+ (description
+ "This package includes Controller Area Network (CAN) related tools that
+can be used to:
@itemize
@item parse DBC, KCD, SYM, ARXML 4 and CDD files
@item encode and decode CAN messages
@@ -5348,59 +5846,6 @@ for additional processing.")
"Fastprogress is a progress bar for Jupyter Notebook and console.")
(license license:asl2.0)))
-(define-public python-case
- (package
- (name "python-case")
- (version "1.5.3")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "case" version))
- (sha256
- (base32
- "1cagg06vfph864s6l5jb0zqliwxh647bki8j6lf4a4qrv40jnhs8"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-mock python-nose python-six))
- (native-inputs
- (list python-coverage))
- (home-page "https://github.com/celery/case")
- (synopsis "Unittest utilities and convenience methods")
- (description
- "The @code{case} package provides utilities on top of unittest, including
-some helpful Python 2 compatibility convenience methods.")
- (license license:bsd-3)))
-
-(define-public python-verboselogs
- (package
- (name "python-verboselogs")
- (version "1.7")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "verboselogs" version))
- (sha256
- (base32
- "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- ;; Do not run pylint plugin test, as astroid is an old
- ;; unsupported version.
- (invoke "pytest" "-v" "-k" "not test_pylint_plugin"
- "verboselogs/tests.py"))))))
- (native-inputs
- (list python-mock python-pytest))
- (home-page "https://verboselogs.readthedocs.io")
- (synopsis "Verbose logging level for Python's logging module")
- (description
- "The @code{verboselogs} package extends Python's @code{logging} module to
-add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.")
- (license license:expat)))
-
(define-public python-coloredlogs
(package
(name "python-coloredlogs")
@@ -5492,10 +5937,39 @@ command-line script you can get the latest strip of a webcomic, catch-up to the
downloaded, or download a strip for a particular date or index, if possible.")
(license license:expat)))
+(define-public python-etcd3
+ (package
+ (name "python-etcd3")
+ (version "0.12.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kragniz/python-etcd3")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "06hw0kcl77v8px5w2hfnf2l9gjnjrspjb49kx3jqa382z7wzdkk0"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; XXX: Tests require the etcd package.
+ #:tests? #f
+ #:test-backend #~'custom
+ #:test-flags ; Taken from tox.ini.
+ #~(list "pifpaf" "-e" "python" "run" "etcd" "--cluster" "--" "pytest")))
+ (propagated-inputs (list python-grpcio python-protobuf python-tenacity))
+ (native-inputs (list python-mock python-pifpaf python-pytest python-setuptools))
+ (home-page "https://github.com/kragniz/python-etcd3")
+ (synopsis "Python client for the etcd3 API")
+ (description
+ "This package provide a Python client for the @code{etcd3} API.")
+ (license license:asl2.0)))
+
(define-public python-et-xmlfile
(package
(name "python-et-xmlfile")
- (version "1.1")
+ (version "2.0.0")
(source
(origin
;; Use a checkout because the PyPI archive does not contain tests.
@@ -5505,17 +5979,12 @@ downloaded, or download a strip for a particular date or index, if possible.")
(changeset version)))
(file-name (string-append name "-" version "-checkout"))
(sha256
- (base32 "09r8rjc5bhkqrm5c4n9jrlvad8vrvbyswl9g0wrc1qc7nzh9mpw7"))))
- (build-system python-build-system)
- (arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
+ (base32 "03pmmg6k2ajd83zhki8f0c1ndi7pq23bj9hm6f8hhd07maqksf5w"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-pytest python-lxml)) ;used for the tests
+ (list python-pytest
+ python-lxml
+ python-setuptools))
(home-page "https://bitbucket.org/openpyxl/et_xmlfile")
(synopsis "Low memory implementation of @code{lxml.xmlfile}")
(description "This Python library is based upon the @code{xmlfile} module
@@ -5627,18 +6096,19 @@ server.")
;; PyPI releases.
(method hg-fetch)
(uri (hg-reference
- (url "https://foss.heptapod.net/openpyxl/openpyxl")
- (changeset version)))
+ (url "https://foss.heptapod.net/openpyxl/openpyxl")
+ (changeset version)))
(file-name (string-append name "-" version "-checkout"))
(sha256
(base32 "17z6rrvv3q1axy9r13c2hln2pazfn9n5bhkzrbjcjakgbfjl6mss"))))
(build-system pyproject-build-system)
- (native-inputs (list python-lxml
- python-pillow
- python-pytest
- python-setuptools
- python-wheel))
- (propagated-inputs (list python-et-xmlfile python-jdcal))
+ (native-inputs
+ (list python-lxml-4.9
+ python-pillow
+ python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-et-xmlfile))
(home-page "https://openpyxl.readthedocs.io")
(synopsis "Python library to read/write Excel 2010 XLSX/XLSM files")
(description
@@ -5667,28 +6137,31 @@ in the current session, Python, and the OS.")
(license license:bsd-3)))
(define-public python-six
- (package/inherit python-six-bootstrap
+ (package
(name "python-six")
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "pytest" "-v"))))))
+ (version "1.17.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "six" version))
+ (sha256
+ (base32 "109ajcsfhrz33lbwbb337w34crc3lb9rjnxrcpnbczlf8rfk6w7z"))))
+ (build-system pyproject-build-system)
(native-inputs
- `(("python-pytest" ,python-pytest-bootstrap)))))
+ (list python-pytest-bootstrap
+ python-setuptools
+ python-wheel))
+ (home-page "https://pypi.org/project/six/")
+ (synopsis "Python 2 and 3 compatibility utilities")
+ (description
+ "Six is a Python 2 and 3 compatibility library. It provides utility
+functions for smoothing over the differences between the Python versions with
+the goal of writing Python code that is compatible on both Python versions.
+Six supports every Python version since 2.5. It is contained in only one
+Python file, so it can be easily copied into your project.")
+ (license license:x11)))
-(define-public python2-six
- (let ((base (package-with-python2 python-six)))
- (package
- (inherit base)
- ;; Reduce Python 2 closure by disabling tests and removing the native
- ;; inputs.
- (arguments (substitute-keyword-arguments (package-arguments base)
- ((#:phases phases)
- `(modify-phases ,phases
- (delete 'check)))))
- (native-inputs '()))))
+(define-public python-six-bootstrap python-six)
(define-public python-schedule
(package
@@ -5713,6 +6186,11 @@ any other callable) periodically at pre-determined intervals using a simple,
human-friendly syntax.")
(license license:expat)))
+;; XXX: This project is unmaintained since 2020, see:
+;; <https://github.com/scour-project/scour/issues/321>.
+;;
+;; The only user is Inkscape, see:
+;; <https://gitlab.com/inkscape/inkscape-docs/documentation/-/issues/43>.
(define-public python-scour
(package
(name "python-scour")
@@ -5722,21 +6200,27 @@ human-friendly syntax.")
(method git-fetch)
(uri
(git-reference
- (url "https://github.com/scour-project/scour")
- (commit
- (string-append "v" version))))
+ (url "https://gitlab.com/inkscape/extras/scour")
+ (commit
+ (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0mmfvx4wqp8gkpv0kbih89zfs9njvmd3v4dxfqii62xddpxq0f1k"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "test_scour.py")))
+ (native-inputs
+ (list python-setuptools))
(propagated-inputs
(list python-six))
- (build-system python-build-system)
- (home-page "https://github.com/scour-project/scour")
+ (home-page "https://gitlab.com/inkscape/extras/scour")
(synopsis "Scour is an SVG optimizer/cleaner written in Python")
- (description "The goal of Scour is to output a file that renders
-identically at a fraction of the size by removing a lot of redundant
-information created by most SVG editors. Optimization options are typically
-lossless but can be tweaked for more aggressive cleaning.")
+ (description
+ "The goal of Scour is to output a file that renders identically at a
+fraction of the size by removing a lot of redundant information created by
+most SVG editors. Optimization options are typically lossless but can be
+tweaked for more aggressive cleaning.")
(license license:asl2.0)))
(define-public python-mechanize
@@ -5843,36 +6327,6 @@ videos in a notebook.")
audio playback capability for Python 3 on OSX, Windows, and Linux.")
(license license:expat))) ; MIT license
-(define-public python-wavefile
- (package
- (name "python-wavefile")
- (version "1.6.2")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "wavefile" version))
- (sha256
- (base32
- "04mdcxq7n1vnwb9y65j0cwpy91ik5rh9vki1f45xqnh4ygz91n75"))))
- (build-system python-build-system)
- (arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'patch-libsndfile-path
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "wavefile/libsndfile.py"
- (("'libsndfile")
- (string-append "'" (assoc-ref inputs "libsndfile")
- "/lib/libsndfile"))))))))
- (inputs
- (list libsndfile portaudio))
- (propagated-inputs (list python-numpy python-pyaudio))
- (home-page "https://github.com/vokimon/python-wavefile")
- (synopsis "Pythonic audio file reader and writer")
- (description
- "This package provides pythonic libsndfile wrapper to read and write audio
-files.")
- (license license:gpl3+)))
-
(define-public python-jsonalias
(package
(name "python-jsonalias")
@@ -5955,17 +6409,17 @@ in Golang.")
(define-public python-simplejson
(package
(name "python-simplejson")
- (version "3.17.6")
+ (version "3.20.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "simplejson" version))
(sha256
(base32
- "19pqqn01y6qmhhv8q6dh4p1acav49kl923kklnns2qxz5a6h766g"))))
- (build-system python-build-system)
+ "0z838dqnh5c81ib6cvfqfhd82ax2apzclzgz8b0j87sgxjs3jhg6"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-toml))
+ (list python-pytest python-setuptools))
(home-page "https://simplejson.readthedocs.io/en/latest")
(synopsis
"Json library for Python")
@@ -6009,19 +6463,21 @@ Prefix) - Encode and decode data structures.")
(define-public python-pyicu
(package
(name "python-pyicu")
- (version "2.14")
+ (version "2.15.2")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "PyICU" version))
+ (uri (pypi-uri "pyicu" version))
(sha256
- (base32
- "0ci1l21b79xka80lf0bgmahfskqa8mw6k714fzalwmawpn9fpixc"))))
- (build-system python-build-system)
+ (base32 "13srrv5lczr0s74hx2kffwdhfg6flpvi2qpj75lfqz7ivzp7f7jn"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list pkg-config
+ python-pytest
+ python-setuptools
+ python-six))
(inputs
(list icu4c))
- (native-inputs
- (list python-pytest python-six))
(home-page "https://gitlab.pyicu.org/main/pyicu")
(synopsis "Python extension wrapping the ICU C++ API")
(description
@@ -6083,9 +6539,11 @@ other Python program.")
(base32
"0skrs5i5pvpzvihgxw766zi1c9bbp33aisdldxgj470mlchvdgyy"))))
(build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "tests/functional/tests.py")))
(native-inputs
- (list python-setuptools
- python-wheel))
+ (list python-setuptools))
(home-page "https://agateau.com/projects/doxyqml")
(synopsis "Doxygen input filter for QML files")
(description
@@ -6497,44 +6955,41 @@ defined.")
(define-public python-extension-helpers
(package
(name "python-extension-helpers")
- (version "1.2.0")
+ (version "1.4.0")
(source
(origin
(method git-fetch) ; no tests in the PyPI tarball
(uri (git-reference
- (url "https://github.com/astropy/extension-helpers")
- (commit (string-append "v" version))))
+ (url "https://github.com/astropy/extension-helpers")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1cfzh3ijjp18as2qnmm1nnw6a3daqd7a2q17i0c6h1wq2jbawxxa"))))
+ (base32 "0ljvfv9p7jay4j31awx1h714xhyn5hbfgyhn4nm71xrkz9la113j"))))
(build-system pyproject-build-system)
(arguments
(list
- ;; It tries to install it via pip: E ModuleNotFoundError: No module named
- ;; 'helpers_test_package_fd9cc3a9_11fa_4a1a_b80e_c5b043949604'
- #:test-flags #~(list "-k" "not test_only_pyproject and not test_no_setup_py")
+ #:test-flags
+ #~(list "--pyargs" "extension_helpers"
+ "-k" (string-join
+ ;; XXX: Tests try to check various compilation options and
+ ;; fail with some incomparability or trying to download
+ ;; missing modules.
+ (list "not test_only_pyproject"
+ "test_no_setup_py"
+ "test_limited_api")
+ " and not "))
#:phases
#~(modify-phases %standard-phases
;; LookupError: setuptools-scm was unable to detect version for
;; /tmp/guix-build-python-extension-helpers-1.2.0.drv-0/source.
(add-before 'build 'set-version
(lambda _
- (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
- (replace 'check
- (lambda* (#:key tests? test-flags #:allow-other-keys)
- (when tests?
- (setenv "HOME" "/tmp")
- (with-directory-excursion "/tmp"
- (apply invoke "pytest" "-v" test-flags))))))))
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs
(list python-pytest
- python-pytest-astropy
- python-pytest-cov
- python-setuptools-scm
- python-tomli
- python-setuptools
- python-wheel
- python-pip))
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-setuptools))
(home-page "https://extension-helpers.readthedocs.io")
(synopsis "Astropy ecosystem utilities for building and installing packages")
(description
@@ -6544,39 +6999,20 @@ developed by the Astropy project but is intended to be general and usable by
any Python package.")
(license license:bsd-3)))
-(define-public python-extras
- (package
- (name "python-extras")
- (version "1.0.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "extras" version))
- (sha256
- (base32
- "0khvm08rcwm62wc47j8niyl6h13f8w51c8669ifivjdr23g3cbhk"))))
- (build-system python-build-system)
- (arguments
- ;; FIXME: Circular dependency on testtools.
- '(#:tests? #f))
- (home-page "https://github.com/testing-cabal/extras")
- (synopsis "Useful extensions to the Python standard library")
- (description
- "Extras is a set of extensions to the Python standard library.")
- (license license:expat)))
-
(define-public python-types-colorama
(package
(name "python-types-colorama")
- (version "0.4.15.20240311")
+ (version "0.4.15.20250801")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "types-colorama" version))
+ (uri (pypi-uri "types_colorama" version))
(sha256
- (base32 "0ylwp6r6k69icsd96zbsan7i1x0rwj427lv5jpxi8avxs6c7z3m2"))))
+ (base32 "1xapqdq6450ngzp18nvvkwbs68nnxksk1wyk6wid2qw9sq9msmh2"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
+ (native-inputs
+ (list python-setuptools))
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for colorama")
(description "This package provides typing stubs for colorama.")
@@ -6585,18 +7021,28 @@ any Python package.")
(define-public python-milc
(package
(name "python-milc")
- (version "1.9.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "milc" version))
- (sha256
- (base32
- "1kkiric668mikc5d3jn1x27jrasqlqlyj8lh6d7zp8a866icjan0"))))
+ (version "1.9.1")
+ (source
+ (origin
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/clueboard/milc")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ms9ks0xn1ikd48352bifnbfahfnw3gh4qs1ckmmwbpiq2czca3g"))))
(build-system pyproject-build-system)
- (propagated-inputs (list python-appdirs python-argcomplete python-colorama
- python-halo python-spinners python-platformdirs
- python-types-colorama))
- (native-inputs (list python-setuptools python-wheel python-pip))
+ (native-inputs
+ (list python-pytest
+ python-semver
+ python-setuptools))
+ (propagated-inputs
+ (list python-argcomplete
+ python-colorama
+ python-halo
+ python-platformdirs
+ python-spinners
+ python-types-colorama))
(home-page "https://github.com/clueboard/milc")
(synopsis "Python library for command line interface programs")
(description "MILC is a Python library for developing command line
@@ -6625,23 +7071,18 @@ automatic tab-completion, color support, logging to @code{std}, etc.")
(define-public python-mimeparse
(package
(name "python-mimeparse")
- (version "1.6.0")
+ (version "2.0.0")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "python-mimeparse" version))
+ (uri (pypi-uri "python_mimeparse" version))
(sha256
- (base32
- "0y2g6cl660bpz11srgqyvvm8gmywpgyx8g0xfvbiyr0af0yv1r3n"))))
- (build-system python-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "./mimeparse_test.py"))))))
- (home-page
- "https://github.com/dbtsai/python-mimeparse")
+ (base32 "00xk5jir6dm4r3qm8dg8vh8lhq00f35zaryn3gina958gb7rv6jv"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (home-page "https://github.com/falconry/python-mimeparse")
(synopsis "Python library for parsing MIME types")
(description
"Mimeparse provides basic functions for parsing MIME type names and
@@ -6748,30 +7189,6 @@ and informative visualizations, including scales, transformations and color
palettes.")
(license license:bsd-3)))
-(define-public python-pafy
- (package
- (name "python-pafy")
- (version "0.5.3.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pafy" version))
- (sha256
- (base32
- "1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim"))))
- (build-system python-build-system)
- (arguments
- `(#:tests? #f)) ; Currently pafy can not find itself in the tests
- (propagated-inputs
- ;; Youtube-dl is a python package which is imported in the file
- ;; "backend_youtube_dl.py", therefore it needs to be propagated.
- (list youtube-dl))
- (home-page "https://np1.github.io/pafy/")
- (synopsis "Retrieve YouTube content and metadata")
- (description
- "@code{pafy} is a python library to retrieve YouTube content and metadata.")
- (license license:lgpl3+)))
-
(define-public python-miniupnpc
(package
(name "python-miniupnpc")
@@ -6849,62 +7266,35 @@ port forwards using @acronym{UPnP, Universal Plug and Play}.")
code introspection, and logging.")
(license license:expat)))
-;; Recent versions of python-fixtures and python-testrepository need
-;; python-pbr for packaging, which itself needs these two packages for
-;; testing.
-;; To fix this circular dependency, we use a build of python-pbr, based on the
-;; same source, just without any test dependencies and with tests disabled.
-;; python-pbr-minmal is then used to package python-fixtures and
-;; python-testrepository.
-;; Strictly speaking we currently could remove the test-requirements from the
-;; normal python-pbr package (and save this package) since test are disabled
-;; there anyway. But this may change in future.
-(define-public python-pbr-minimal
+(define-public python-pbr
(package
- (name "python-pbr-minimal")
- (version "5.5.1")
+ (name "python-pbr")
+ (version "7.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pbr" version))
(sha256
- (base32
- "1j8k5d4rdhy5bw5ai1vkjzln2albah94in3vvyvxa0n42fv81baz"))))
- (build-system python-build-system)
- (arguments
- `(#:tests? #f))
- (home-page "https://docs.openstack.org/pbr/latest/")
- (synopsis "Minimal build of python-pbr used for bootstrapping")
- (description
- "Used only for bootstrapping python2-pbr, you should not need this.")
- (license license:asl2.0)))
-
-(define-public python-pbr
- (package
- (inherit python-pbr-minimal)
- (name "python-pbr")
+ (base32 "0mvy1z1dyl28w0brns1vdhc98hzbn5b3fsw1xj41amdqs88wpjry"))))
+ (build-system pyproject-build-system)
(arguments
`(#:tests? #f)) ;; Most tests seem to use the Internet.
+ ;; Message from upstream:
+ ;;
+ ;; DO NOT add any other dependencies as PBR is meant to be minimalist to
+ ;; avoid problems with bootstrapping build environments.
+ ;;
+ ;; See: <https://opendev.org/openstack/pbr/src/tag/7.0.1/requirements.txt>.
(propagated-inputs
- (list git-minimal/pinned)) ;; pbr actually uses the "git" binary.
- (native-inputs
- `(("python-fixtures" ,python-fixtures-bootstrap)
- ;; discover, coverage, hacking, subunit
- ("python-mock" ,python-mock)
- ("python-six" ,python-six)
- ("python-sphinx" ,python-sphinx)
- ("python-testrepository" ,python-testrepository-bootstrap)
- ("python-testresources" ,python-testresources-bootstrap)
- ("python-testscenarios" ,python-testscenarios-bootstrap)
- ("python-testtools" ,python-testtools-bootstrap)
- ("python-virtualenv" ,python-virtualenv)))
+ (list python-setuptools))
+ (home-page "https://docs.openstack.org/pbr/latest/")
(synopsis "Enhance the default behavior of Python’s setuptools")
(description
- "Python Build Reasonableness (PBR) is a library that injects some useful
+ "Python Build Reasonableness (PBR) is a library that injects some useful
and sensible default behaviors into your setuptools run. It will set
versions, process requirements files and generate AUTHORS and ChangeLog file
-from git information.
-")))
+from git information.")
+ (license license:asl2.0)))
(define-public python-pbr-next
(hidden-package
@@ -7007,23 +7397,21 @@ interfaces.")
(define-public python-click
(package
(name "python-click")
- (version "8.1.7")
+ (version "8.1.8")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "click" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pallets/click")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1pm6khdv88h764scik67jki98xbyj367h591j8hpwy4y8nnm766a"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
- (native-inputs (list python-pytest))
+ (base32 "1wqkkim5gmhdrc62c79s5gbzz2x60l1bf9aacpakfv6rr1zjl054"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list less
+ python-flit-core
+ python-pytest))
(home-page "https://palletsprojects.com/p/click/")
(synopsis "Command line library for Python")
(description
@@ -7043,7 +7431,9 @@ with sensible defaults out of the box.")
(uri (pypi-uri "click" version))
(sha256
(base32 "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"))))
- (arguments `())))
+ (arguments (list #:tests? #f)) ;no tests in PyPI
+ (native-inputs
+ (list python-setuptools))))
(define-public python-clickgen
(package
@@ -7166,52 +7556,6 @@ and configurable such as option groups, constraints, subcommand aliases,
subcommands sections and a themeable HelpFormatter.")
(license license:bsd-3)))
-(define-public python-vcversioner
- (package
- (name "python-vcversioner")
- (version "2.16.0.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "vcversioner" version))
- (sha256
- (base32
- "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
- (build-system python-build-system)
- (synopsis "Python library for version number discovery")
- (description "Vcversioner is a Python library that inspects tagging
-information in a variety of version control systems in order to discover
-version numbers.")
- (home-page "https://github.com/habnabit/vcversioner")
- (license license:isc)))
-
-(define-public python-jdcal
- (package
- (name "python-jdcal")
- (version "1.4.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "jdcal" version))
- (sha256
- (base32
- "1j6g19jf21qprjsr8h0r7nsbss366gy8j9izq8cz53gbjvh74a27"))))
- (build-system python-build-system)
- (arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
- (native-inputs
- (list python-pytest))
- (home-page "https://github.com/phn/jdcal")
- (synopsis "Functions to convert between Julian dates Gregorian dates")
- (description "This Python library provides functions for converting
-between Julian dates and Gregorian dates.")
- (license license:bsd-2)))
-
(define-public python-jsondiff
(package
(name "python-jsondiff")
@@ -7259,13 +7603,9 @@ diff, and patch JSON and JSON-like structures in Python.")
(base32 "1nh8m6rxslwk05daxshxmgk41qfp18yynydba49b13l4m8dnh634"))))
(build-system pyproject-build-system)
(native-inputs
- (list python-codecov
- python-coveralls
- python-pytest
+ (list python-pytest
python-pytest-cov
- python-setuptools
- python-tox
- python-wheel))
+ python-setuptools))
(propagated-inputs (list python-pyparsing))
(home-page "https://github.com/shinichi-takii/ddlparse")
(synopsis "Parses and converts DDL to BigQuery JSON schema")
@@ -7436,6 +7776,7 @@ something else) to Python data-types.")
(base32
"10zqvpaky51kgb8nd42bk7jwl8cn2zvayxjpdc1wwmpybj92x67s"))))))
+;; XXX: See: <https://codeberg.org/guix/guix/issues/3029>.
(define-public python-kconfiglib
(package
(name "python-kconfiglib")
@@ -7447,9 +7788,10 @@ something else) to Python data-types.")
(sha256
(base32 "0g690bk789hsry34y4ahvly5c8w8imca90ss4njfqf7m2qicrlmy"))))
(build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;tests require complex set up
(native-inputs
(list python-setuptools
- python-wheel
`(,python "tk")))
(home-page "https://github.com/ulfalizer/Kconfiglib")
(synopsis
@@ -7536,28 +7878,6 @@ Capabilities include:
@end itemize")
(license license:expat)))
-(define-public python-unidecode
- (package
- (name "python-unidecode")
- (version "1.3.8")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "Unidecode" version))
- (sha256
- (base32
- "1x620s4dk4d501pivhlfzbi2d1r5fnm9cssqwkn76f7d8sfk9nyg"))))
- (build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
- (home-page "https://pypi.org/project/Unidecode/")
- (synopsis "ASCII transliterations of Unicode text")
- (description
- "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
-useful when integrating with legacy code that doesn't support Unicode, or for
-ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
-machine identifiers from human-readable Unicode strings that should still be
-somewhat intelligible.")
- (license license:gpl2+)))
-
(define-public python-text-unidecode
(package
(name "python-text-unidecode")
@@ -7613,29 +7933,30 @@ memory usage and transliteration quality.")
(license license:expat)))
(define-public python-pymsgbox
- (package
- (name "python-pymsgbox")
- (version "1.0.6")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- ;; LICENSE.txt is not present on pypi
- (url "https://github.com/asweigart/PyMsgBox")
- (commit "55926b55f46caa969c5ddb87990ebea2737bd66f")))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0zy7rjfpwlrd8b64j7jk2lb8m2npc21rnpwakpfvwgl4nxdy80rg"))))
- (arguments
- ;; Circular dependency to run tests:
- ;; Tests need pyautogui, which depends on pymsgbox.
- '(#:tests? #f))
- (build-system python-build-system)
- (home-page "https://github.com/asweigart/PyMsgBox")
- (synopsis "Python module for JavaScript-like message boxes")
- (description
- "PyMsgBox is a simple, cross-platform, pure Python module for
+ (let ((commit "944b7cdc67058d005ce5fd011c66f2d87d25aba0")
+ (revision "1"))
+ (package
+ (name "python-pymsgbox")
+ (version (git-version "1.0.6" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/asweigart/PyMsgBox")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1bhipfvnc06l8hiadk302v74yin38nwz1r47njliwk8kz103yl3g"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; Circular dependency to run tests:
+ ;; Tests need pyautogui, which depends on pymsgbox.
+ '(#:tests? #f))
+ (native-inputs (list python-setuptools python-wheel))
+ (home-page "https://github.com/asweigart/PyMsgBox")
+ (synopsis "Python module for JavaScript-like message boxes")
+ (description
+ "PyMsgBox is a simple, cross-platform, pure Python module for
JavaScript-like message boxes. Types of dialog boxes include:
@enumerate
@item alert
@@ -7644,7 +7965,7 @@ JavaScript-like message boxes. Types of dialog boxes include:
@item password
@end enumerate
")
- (license license:bsd-3)))
+ (license license:bsd-3))))
(define-public python-pympler
(package
@@ -7708,17 +8029,21 @@ environments and back.")
(define-public python-pyyaml
(package
(name "python-pyyaml")
- (version "6.0.1")
+ (version "6.0.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyYAML" version))
(sha256
- (base32
- "0hsa7g6ddynifrwdgadqcx80khhblfy94slzpbr7birn2w5ldpxz"))))
- (build-system python-build-system)
+ (base32 "0gmwggzm0j0iprx074g5hah91y2f68sfhhldq0f8crddj7ndk16m"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-cython-3
+ python-pytest
+ python-setuptools
+ python-wheel))
(inputs
- (list libyaml python-cython))
+ (list libyaml))
(home-page "https://pyyaml.org")
(synopsis "YAML parser and emitter for Python")
(description
@@ -7728,98 +8053,6 @@ API, and sensible error messages. PyYAML supports standard YAML tags and
provides Python-specific tags that represent an arbitrary Python object.")
(license license:expat)))
-(define-public python-pyyaml-5
- (package
- (inherit python-pyyaml)
- (version "5.4.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "PyYAML" version))
- (sha256
- (base32
- "0pm440pmpvgv5rbbnm8hk4qga5a292kvlm1bh3x2nwr8pb5p8xv0"))))))
-
-(define-public python-vine
- (package
- (name "python-vine")
- (version "5.1.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "vine" version))
- (sha256
- (base32 "1q31krwxdvwawdn1kfqmpplix31d4jhs0qng26908hawsf0yjqlb"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- ;; AttributeError: 'test_barrier' object has no attribute 'ps'.
- #~(list "-k" (string-join
- (list "not test_evaluate"
- "test_reverse"
- "test_cancel"
- "test_throw")
- " and not "))))
- (native-inputs
- (list python-pytest python-setuptools python-wheel))
- (home-page "https://github.com/celery/vine")
- (synopsis "Promises for Python")
- (description
- "@code{vine} provides a special implementation of promises in that it can
-be used both for \"promise of a value\" and lazy evaluation. The biggest
-upside for this is that everything in a promise can also be a promise,
-e.g. filters, callbacks and errbacks can all be promises.")
- (license license:bsd-3)))
-
-(define-public python-virtualenv
- (package
- (name "python-virtualenv")
- (version "20.29.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "virtualenv" version))
- (sha256
- (base32
- "0dfwnn8i1y33kgxhi4xyhsj4yr5vsin7zf9c343bcbyk700rgf5q"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- #~(list "-k" (string-join
- (list
- ;; These tests require Internet access.
- "not test_seed_link_via_app_data"
- ;; AssertionError: assert 'python' in ['python3',
- ;; 'python3.11'].
- ;;
- ;; PythonInfo() returns: 'system_executable':
- ;; '/gnu/store/...-python-wrapper-3.11.11/bin/python'
- "test_fallback_existent_system_executable")
- " and not "))))
- (native-inputs
- (list python-flaky
- python-hatch-vcs
- python-hatchling
- python-packaging
- python-pytest
- python-pytest-env
- python-pytest-freezer
- python-pytest-mock
- python-pytest-timeout
- python-setuptools
- python-time-machine))
- (propagated-inputs
- (list python-distlib
- python-filelock
- python-platformdirs))
- (home-page "https://virtualenv.pypa.io/")
- (synopsis "Virtual Python environment builder")
- (description
- "Virtualenv is a tool to create isolated Python environments.")
- (license license:expat)))
-
(define-public python-crossenv
(package
(name "python-crossenv")
@@ -7842,68 +8075,6 @@ modules. It creates a special virtual environment such that @command{pip} or
work on your part.")
(license license:expat)))
-;; XXX: No new release since 2021, no updates on default branch since 2023, no
-;; users in Guix; consider to remove if it keeps failing to build.
-(define-public python-virtualenv-clone
- (package
- (name "python-virtualenv-clone")
- (version "0.5.7")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/edwardgeorge/virtualenv-clone")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "0p0d1y3axvjfnxlgwjx2374gikc8bmc82g0m7yashihbikh7pcxa"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- #~(list "-k" (string-join
- ;; UnicodeDecodeError: 'utf-8' codec can't decode byte
- ;; 0xba in position 10: invalid start byte
- (list "not test_clone_contents"
- ;; AssertionError: All versions were skipped.
- "test_clone_syspath"
- "test_clone_version"
- "test_virtualenv_syspath"
- "test_virtualenv_versions")
- " and not "))))
- (native-inputs
- (list python-pytest
- python-setuptools
- python-tomli
- python-virtualenv
- python-wheel))
- (home-page "https://github.com/edwardgeorge/virtualenv-clone")
- (synopsis "Clone a non-relocatable virtualenv cleanly")
- (description
- "Clone non-relocatable virtualenvs without breaking site-packages.")
- (license license:expat)))
-
-(define-public python-uc-micro-py
- (package
- (name "python-uc-micro-py")
- (version "1.0.1")
- (source (origin
- (method git-fetch) ;for tests
- (uri (git-reference
- (url "https://github.com/tsutsu3/uc.micro-py")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "17f55gi55rg47nm88fn3f8851ph03dgykdp011lxr3j6hk18lyfv"))))
- (build-system pyproject-build-system)
- (native-inputs (list python-pytest python-setuptools python-wheel))
- (home-page "https://github.com/tsutsu3/uc.micro-py")
- (synopsis "Unicode data files for linkify-it-py projects")
- (description "This package contains a micro subset of Unicode data files
-for linkify-it-py projects.")
- (license license:expat)))
-
(define-public python-linkify-it-py
(package
(name "python-linkify-it-py")
@@ -7987,24 +8158,16 @@ possible.")
(define-public python-markupsafe
(package
(name "python-markupsafe")
- (version "2.1.1")
+ (version "3.0.2")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "MarkupSafe" version))
+ (uri (pypi-uri "markupsafe" version))
(sha256
- (base32
- "0jqxp5sfrc0byp6bk0gwdmildi4mck2gprp42afri3z4r5y1k4bz"))))
- (build-system python-build-system)
- (arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
- (native-inputs
- (list python-pytest))
- (home-page "https://github.com/mitsuhiko/markupsafe")
+ (base32 "1w1b1a5pskpqhx1mb53rgpv9srplhrrkr4hsl67f8rq1z3nx6mgf"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools python-wheel))
+ (home-page "https://markupsafe.palletsprojects.com")
(synopsis "XML/HTML/XHTML markup safe string implementation for Python")
(description
"Markupsafe provides an XML/HTML/XHTML markup safe string implementation
@@ -8057,7 +8220,7 @@ templates. A format string can be provided to control the output.")
(define-public python-pypugjs
(package
(name "python-pypugjs")
- (version "5.9.12")
+ (version "5.12.0")
(source
(origin
(method git-fetch)
@@ -8066,28 +8229,15 @@ templates. A format string can be provided to control the output.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0zj7a560h973cl7brfw1nmyhgm8rp8j80wnih0shvhmw4ql23lpa"))))
+ (base32 "008wxvh2p08i8mlgak8hz3z057m06m4ydrca2ickl2m593476xi4"))))
(build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags '(list "pypugjs/testsuite/")
- #:phases #~(modify-phases %standard-phases
- (add-after 'unpack 'disable-pyramid
- (lambda _
- ;; pyramid is outdated and pyramid-mako is unpackaged.
- (substitute* "setup.cfg"
- (("'(pyramid|pyramid-mako)[^']*',") "")))))))
- (native-inputs (list python-coverage
- python-django
+ (native-inputs (list python-django
python-jinja2
- python-flake8
python-flask
python-mako
- python-nose
python-poetry-core
python-pytest
- python-tornado-6
- python-wheel))
+ python-tornado-6))
(propagated-inputs (list python-charset-normalizer python-six))
(home-page "https://github.com/kakulukia/pypugjs")
(synopsis "Convert Pug source files into different template languages")
@@ -8146,27 +8296,26 @@ bookmarks using a declarative input in the form of a markdown file.")
(define-public python-joblib
(package
(name "python-joblib")
- (version "1.4.2")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "joblib" version))
- (sha256
- (base32
- "03izdcvc3fa355cclzgvzmjnfwylvblz9q091b9gndi6df0wb0i3"))))
+ (version "1.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "joblib" version))
+ (sha256
+ (base32 "0i5lfraj19fx0dqb5z5ahp1cxr0ymzcc7wm9686kvzir3wsnxy7l"))))
(build-system pyproject-build-system)
(arguments
(list
- #:test-flags ; disabled to avoid having to depend on ipython/jupyter
- #~(list
- "--numprocesses" (number->string (parallel-job-count))
- "-k"
- (string-append
- "not test_parallel_call_cached_function_defined_in_jupyter"
- ;; XXX This test times out.
- " and not test_no_resource_tracker_on_import"))))
+ #:test-flags
+ #~(list "--numprocesses" (number->string (parallel-job-count))
+ ;; Disabled to avoid having to depend on ipython/jupyter.
+ "-k" "not test_parallel_call_cached_function_defined_in_jupyter")))
(native-inputs
- (list python-pytest python-pytest-xdist python-setuptools python-wheel))
- (propagated-inputs (list python-psutil))
+ (list python-pytest
+ python-pytest-asyncio
+ python-pytest-xdist
+ python-setuptools
+ python-wheel))
(home-page "https://joblib.readthedocs.io/")
(synopsis "Using Python functions as pipeline jobs")
(description
@@ -8179,39 +8328,39 @@ logging and tracing of the execution.")
(define-public python-daemon
(package
(name "python-daemon")
- (version "3.0.1")
+ (version "3.1.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "python-daemon" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://pagure.io/python-daemon")
+ (commit (string-append "release/" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1rfsnij687hk97ppzs2q6mwmxgr632nh672ajd0gzsppf8ilamvc"))))
- (build-system python-build-system)
+ (base32 "0rfchh68pxg68s02idc0qcm2s9yn587hv0b83r4isy5ccb3g60y4"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'adjust-tests
- (lambda _
- ;; FIXME: Determine why test fails
- (substitute* "test/test_daemon.py"
- (("test_detaches_process_context")
- "skip_test_detaches_process_context"))
- (substitute* "test/scaffold.py"
- (("test_exception_instance")
- "skip_test_exception_instance")
- (("test_exception_types")
- "skip_test_exception_types")))))))
- (propagated-inputs
- (list python-lockfile python-packaging python-setuptools))
- (native-inputs
- (list python-docutils
- python-testscenarios
- python-testtools))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'discard-dynamic-metadata
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("^dynamic = " all)
+ (format #f "version = ~s~%~a" #$version all))
+ (("\"(description|readme|version|maintainers)\",")
+ ""))
+ (for-each delete-file
+ '("setup.py"
+ "test/test_util_metadata.py"
+ "test/test_setup.py")))))))
+ (propagated-inputs (list python-lockfile))
+ (native-inputs (list python-testscenarios python-setuptools))
(home-page "https://pagure.io/python-daemon/")
(synopsis "Python library for making a Unix daemon process")
- (description "Python-daemon is a library that assists a Python program to
-turn itself into a well-behaved Unix daemon process, as specified in PEP 3143.
+ (description
+ "Python-daemon is a library that assists a Python program to turn itself
+into a well-behaved Unix daemon process, as specified in PEP 3143.
This library provides a @code{DaemonContext} class that manages the following
important tasks for becoming a daemon process:
@@ -8229,6 +8378,7 @@ important tasks for becoming a daemon process:
;; Only setup.py is gpl3+, everything else is apache 2.0 licensed.
(license (list license:asl2.0 license:gpl3+))))
+;; XXX: See: <https://codeberg.org/guix/guix/issues/3027>.
(define-public python-elevate
(package
(name "python-elevate")
@@ -8241,13 +8391,14 @@ important tasks for becoming a daemon process:
(base32 "02g23lxzzl64j1b4fsnrdxqiahl9lnrqyxpqwcfzn0g33px1kbak"))))
(build-system pyproject-build-system)
(arguments
- `(#:phases
+ `(#:tests? #f ;no tests in PyPI
+ #:phases
(modify-phases %standard-phases
(add-after 'unpack 'clean-up
(lambda _
;; Uses stuff we don't have.
(delete-file "elevate/windows.py"))))))
- (native-inputs (list python-setuptools python-wheel))
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/barneygale/elevate")
(synopsis "Python library for requesting root privileges")
(description "This package provides a Python library for requesting
@@ -8281,7 +8432,7 @@ alternative representations which do not require this package.")
(define-public python-anytree
(package
(name "python-anytree")
- (version "2.12.0")
+ (version "2.13.0")
(source
(origin
(method git-fetch) ; no tests data in PyPi package
@@ -8290,7 +8441,7 @@ alternative representations which do not require this package.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0fagd6h6nixvzf3ps8pbfkxvp9xnpq8hpmzaaq1zab4dzqnpsrgj"))))
+ (base32 "0xp13r0jrz1kdmi9h10bmgqzc7wjil3ghf6gqsi9m0lsqlj5hlwh"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -8302,10 +8453,11 @@ alternative representations which do not require this package.")
(mkdir-p "tests/dotexport/"))))))
(native-inputs
(list graphviz ;for 'dot'
- python-poetry-core
- python-pytest))
- (propagated-inputs
- (list python-six))
+ python-pdm-backend
+ python-pytest
+ python-pytest-cov
+ python-pyyaml
+ python-test2ref))
(home-page "https://github.com/c0fec0de/anytree")
(synopsis "Lightweight tree data library")
(description
@@ -8435,25 +8587,19 @@ browser.")
(define-public python-dm-tree
(package
(name "python-dm-tree")
- (version "0.1.8")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "dm-tree" version))
- (sha256
- (base32 "0c4l9gpaqd7j34qwnpjibv53j9sm0nyl0wcy8dvh76772jxspjhg"))))
+ (version "0.1.9")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "dm_tree" version))
+ (sha256
+ (base32 "0arlspn0122igcz5sq6lqrw6zkdhqqkgr0xkwkas599m74yxpix4"))))
(build-system pyproject-build-system)
- ;; We link the static abseil libraries here to avoid problems in
- ;; downstream libraries using potentially different variants of
- ;; abseil-cpp. This is also what's done in the upstream CMake build.
- (inputs (list pybind11 static-abseil-cpp python))
- (propagated-inputs (list python-wheel
- python-absl-py
- python-attrs
- python-numpy
- python-wrapt))
(arguments
(list #:tests? #f
#:phases
+ ;; TODO: Build against shared libraries with USE_SYSTEM_ABSEIL=true
+ ;; and USE_SYSTEM_PYBIND11=true.
#~(modify-phases %standard-phases
(add-before 'build 'build-shared-lib
(lambda _
@@ -8494,6 +8640,20 @@ browser.")
(string-append abseil-cpp "/lib/libabsl_strings_internal.a")
(string-append abseil-cpp "/lib/libabsl_throw_delegate.a")
"-o" "build/lib/tree/_tree.so")))))))
+ ;; We link the static abseil libraries here to avoid problems in
+ ;; downstream libraries using potentially different variants of
+ ;; abseil-cpp. This is also what's done in the upstream CMake build.
+ (native-inputs
+ (list python-setuptools))
+ (inputs
+ (list pybind11
+ static-abseil-cpp
+ python))
+ (propagated-inputs
+ (list python-absl-py
+ python-attrs
+ python-numpy
+ python-wrapt))
(home-page "https://github.com/deepmind/tree")
(synopsis "Work with nested data structures in Python")
(description "Tree is a python library for working with nested data
@@ -8516,8 +8676,8 @@ leaf preserving the overall structure.")
(file-name (git-file-name name version))
(sha256
(base32 "0gbx9wmqsxdx85v5sg79lv2zxmy16j5dwi8bip07i1nyvzc5gvn0"))))
- (build-system python-build-system)
- (native-inputs (list python-pytest))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/dadadel/pyment/")
(synopsis "Convert Python docstrings automatically")
(description "Pyment is a command line tool and library that can be
@@ -8545,21 +8705,20 @@ Google and Numpydoc format.")
(define-public python-docutils
(package
(name "python-docutils")
- (version "0.19")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "docutils" version))
- (sha256
- (base32
- "1rprvir116g5rz2bgzkzgyn6mv0z8582rz7bgxbpy2y3adkmm69k"))))
- (build-system python-build-system)
+ (version "0.21.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "docutils" version))
+ (sha256
+ (base32 "0vwqzbmzdvwx23myx4cg8s8mdkrqnfxpa9yi7jm2s66z5rrihsrs"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (if tests?
- (invoke "python" "test/alltests.py")
- (format #t "test suite not run~%")))))))
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "test/alltests.py")))
+ (native-inputs
+ (list python-flit-core))
(home-page "https://docutils.sourceforge.net/")
(synopsis "Python Documentation Utilities")
(description
@@ -8587,18 +8746,32 @@ via commands such as @command{rst2man}, as well as supporting Python code.")
;; tests contain Python 2 syntax.
(arguments '(#:tests? #false))
(native-inputs
- (list python-setuptools))))
+ (list python-setuptools python-wheel))))
+
+(define-public python-docutils-0.19
+ (hidden-package
+ (package
+ (inherit python-docutils)
+ (version "0.19")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "docutils" version))
+ (sha256
+ (base32
+ "1rprvir116g5rz2bgzkzgyn6mv0z8582rz7bgxbpy2y3adkmm69k"))))
+ (native-inputs
+ (list python-setuptools python-wheel)))))
(define-public python-docx
(package
(name "python-docx")
- (version "1.1.2")
+ (version "1.2.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "python_docx" version))
(sha256
(base32
- "1z9ffsvksaaxr90ijzq4k3adzb6p5ipy2j3rrbfjl05rjlpg5w8c"))))
+ "1ki0cbw3hbiz51ww3fi3vi770lk5r0c62889r819r756v2vxgjbv"))))
(build-system pyproject-build-system)
(native-inputs
(list behave
@@ -8625,8 +8798,12 @@ Microsoft Word (.docx) documents.")
(sha256
(base32 "0xzz1aw2smy8hdszrq8yhnklx6w1r1mf55061kalw3iq35gafa84"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "repoze")))
(native-inputs
- (list python-coverage python-nose python-setuptools python-wheel))
+ (list python-setuptools))
(home-page "https://www.repoze.org")
(synopsis "Tiny LRU cache implementation and decorator")
(description
@@ -8639,12 +8816,16 @@ Microsoft Word (.docx) documents.")
(version "0.11.8")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "reretry" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/leshchenko1979/reretry")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1qrjsjzah8gw1bciqn8bhrj80fjjg13qg8jks7qs4bjipv71yygj"))))
+ (base32 "15c6275mcrkrq3zs0gyx06gr3xsg9ldrpyknfy4mbypgwjy6fp38"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (native-inputs
+ (list python-pytest python-pytest-asyncio python-setuptools))
(home-page "https://github.com/leshchenko1979/reretry")
(synopsis "Functional decorator for retrying on exceptions")
(description
@@ -8656,33 +8837,24 @@ decorator for retrying on exceptions.")
(define-public python-restructuredtext-lint
(package
(name "python-restructuredtext-lint")
- (version "1.3.0")
+ (version "1.4.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "restructuredtext-lint" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/twolfson/restructuredtext-lint")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "026rdy5h82ng4vqxk8fnprii9d6qxf7hkygiv0a8afjvdlsxmcwp"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (delete 'check)
- (add-after 'install 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (invoke "nosetests" "-v"))
- #t)))))
- (propagated-inputs
- (list python-docutils))
- (native-inputs
- (list python-nose))
+ (base32 "19ncbmnq2rnkqxhc9wf0q9whji34iyfv1pz6z61vnv4qhhdrn33v"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:test-backend #~'nose))
+ (propagated-inputs (list python-docutils))
+ (native-inputs (list python-nose python-setuptools))
(home-page "https://github.com/twolfson/restructuredtext-lint")
(synopsis "Linter")
- (description "This package provides a linter for the reStructuredText
-format.")
+ (description
+ "This package provides a linter for the reStructuredText format.")
(license license:unlicense)))
(define-public python-click-repl
@@ -8721,6 +8893,7 @@ format.")
(sha256
(base32 "1c0z4snkjiyl1iq4m1k6liwg0b4pdv2as4bfyvcm0mpjzki6na3s"))))
(build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
(native-inputs (list python-setuptools python-wheel))
(home-page "https://github.com/cs01/pygdbmi")
(synopsis "Parse gdb machine interface output with Python")
@@ -8731,80 +8904,78 @@ with Python.")
(define-public python-pygments
(package
(name "python-pygments")
- (version "2.15.1")
+ (version "2.19.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "Pygments" version))
+ (uri (pypi-uri "pygments" version))
(sha256
(base32
- "0p3p28fif7m2w5mkd0z99zk9xwgrs3m61x85415qk0fl3ly4vkla"))))
+ "07qm8mx3y5r8ri6zpn0hp9zx5g02bydhi7pkv54hdp3nhlm6vhb1"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
- ;; Some tests require sphinx, which depends on this, so we only run
- ;; basic tests.
- '(list "--ignore-glob=tests/*/*")))
+ ;; 4568 passed, 16 skipped, 597 deselected
+ ;;
+ ;; Ignore tests requiring "wcag_contrast_ratio"
+ #~(list "--ignore=tests/contrast/test_contrasts.py"
+ ;; Tests fail with not matched diff.
+ "--ignore=tests/examplefiles/awk/test.awk"
+ "--ignore=tests/examplefiles/bash/example.sh"
+ "--ignore=tests/examplefiles/make/Makefile"
+ "--ignore=tests/examplefiles/phix/example.exw"
+ "--ignore=tests/examplefiles/sed/all_sorts_of_syntax.sed"
+ "--ignore=tests/examplefiles/sed/count_words.sed"
+ "--ignore=tests/examplefiles/sed/increment_number.sed"
+ "--ignore=tests/examplefiles/sed/reverse.sed"
+ "--ignore=tests/examplefiles/slurm/example.sl"
+ ;; Assertion error to find example file by following symlink:
+ ;; assert p.is_file(), f"Example file {p} not found"
+ "--deselect=tests/test_basic_api.py::test_lexer_classes")))
(native-inputs
- (list python-pytest python-setuptools python-wheel))
+ (list python-hatchling python-pytest-bootstrap))
(home-page "https://pygments.org/")
(synopsis "Syntax highlighting")
(description
"Pygments is a syntax highlighting package written in Python.")
(license license:bsd-2)))
-(define-public python-vdf
- (package
- (name "python-vdf")
- (version "3.4")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "vdf" version))
- (sha256
- (base32
- "1bz2gn04pl6rj2mawlzlirz1ygg4rdypq0pxbyg018873vs1jm7x"))))
- (build-system pyproject-build-system)
- (native-inputs
- (list python-setuptools python-wheel))
- (home-page "https://github.com/ValvePython/vdf")
- (synopsis "Work with Valve's VDF text format")
- (description "This package provides @code{python-vdf}, a library for
-working with Valve's VDF text format.")
- (license license:expat)))
-
-(define-public python-pygments-github-lexers
- (package
- (name "python-pygments-github-lexers")
- (version "0.0.5")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pygments-github-lexers" version))
- (sha256
- (base32
- "0cz14clcc9z4pn79ll8hp3xzgsrfjscak5zfsvlgrz6ngkkmgjma"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-pygments))
- (home-page "https://github.com/liluo/pygments-github-lexers")
- (synopsis "Pygments Github custom lexers")
- (description "This package installs Github custom lexers to Pygments.")
- (license license:bsd-3)))
+(define-public python-pygments-bootstrap
+ (package/inherit python-pygments
+ (name "python-pygments-bootstrap")
+ (native-inputs
+ (list python-hatchling))
+ (arguments `(#:tests? #f))))
(define-public python-pygtrie
(package
(name "python-pygtrie")
(version "2.5.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "pygtrie" version))
- (sha256
- (base32
- "1qm4xdmzd4q5pc9h5gjdpr5m7lg06k8dvqnjn7d07d3fhani8d90"))))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mina86/pygtrie")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00m4h2faslm242hsp98d21n6jmc8h616m69p2n6ga2rz37jqmh45"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (arguments
+ (list
+ #:test-backend #~'unittest
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (delete-file "version.py")
+ (substitute* "setup.py"
+ (("import version")
+ "")
+ (("version\\.get_version\\(\\)")
+ (format #f "~s" #$version))))))))
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/mina86/pygtrie")
(synopsis "Pure Python trie data structure implementation")
(description
@@ -8814,18 +8985,25 @@ working with Valve's VDF text format.")
(define-public python-bump2version
(package
(name "python-bump2version")
- (version "1.0.1")
+ (properties '((commit . "1044c085ba7d32d73c9cd7ca4561a7ec624c6b19")
+ (revision . "1")))
+ (version (git-version "1.0.1"
+ (assoc-ref properties 'revision)
+ (assoc-ref properties 'commit)))
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "bump2version" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/c4urself/bump2version")
+ (commit (assoc-ref properties 'commit))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1rinm4gv1fyh7xjv3v6r1p3zh5kl4ry2qifz5f7frx31mnzv4b3n"))))
- (build-system python-build-system)
+ (base32 "1m5c5rdz9723irwdl46mg7si5syddlzna0ldkz2ps6dphkmqsv7j"))))
+ (build-system pyproject-build-system)
(arguments
- ;; XXX: Tests fail with "bumpversion: error: the following arguments are
- ;; required: --new-version".
- `(#:tests? #false))
+ ;; XXX: Single flaky failing test.
+ (list #:test-flags #~(list "-k" "not test_usage_string")))
+ (native-inputs (list python-pytest python-setuptools python-testfixtures))
(home-page "https://github.com/c4urself/bump2version")
(synopsis "Version-bump your software with a single command!")
(description
@@ -8870,7 +9048,7 @@ software version simply.")
(propagated-inputs
(list python-wrapt))
(native-inputs
- (list python-bumpversion python-pytest python-setuptools python-wheel))
+ (list python-pytest python-setuptools python-wheel))
(home-page "https://github.com/tantale/deprecated")
(synopsis "Python decorator to deprecate classes, functions or methods")
(description "The @code{deprecated} decorator provides a convenient way to deprecate
@@ -8880,10 +9058,8 @@ to deprecate classes, functions or methods.")
(define-public python-pygithub
(package
(name "python-pygithub")
- (version "1.55")
+ (version "2.8.1")
(source
- ;; We fetch from the Git repo because there are no tests in the PyPI
- ;; archive.
(origin
(method git-fetch)
(uri (git-reference
@@ -8891,21 +9067,26 @@ to deprecate classes, functions or methods.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "082bxffpy4h97dsay3l75cpgfjj10kywkvicnm6xscwvah285q9y"))))
- (build-system python-build-system)
+ (base32 "0c5qp69qfkfcp8lfmfh0a2rcb1azsrlrc525qd8blnkrmz2mmayz"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest"))
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(propagated-inputs
- (list python-cryptography python-deprecated python-pyjwt
- python-pynacl python-requests))
+ (list python-pyjwt
+ python-pynacl
+ python-requests
+ python-typing-extensions
+ python-urllib3))
(native-inputs
- (list nss-certs-for-test python-httpretty python-pytest))
+ (list python-responses
+ python-pytest
+ python-setuptools
+ python-setuptools-scm))
(home-page "https://pygithub.readthedocs.io/en/latest/")
(synopsis "Python library for the GitHub API")
(description "This library allows managing GitHub resources such as
@@ -8938,7 +9119,7 @@ ecosystem, but can naturally be used also by other projects.")
(define-public python-robotframework
(package
(name "python-robotframework")
- (version "7.2.2")
+ (version "7.3.2")
(source
(origin
(method git-fetch) ; no tests in the PyPI archive
@@ -8947,7 +9128,7 @@ ecosystem, but can naturally be used also by other projects.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1a34dv5gpaiqbddblfnirp1ja2a1069n9nifasn4g26kcj69fpra"))))
+ (base32 "0azis3dj7lfiwrr5gr1gr78z5m05vvl8n20rw3bz93s05z94h5i7"))))
(outputs '("out" "doc"))
(build-system pyproject-build-system)
(arguments
@@ -8987,6 +9168,7 @@ ecosystem, but can naturally be used also by other projects.")
python-jsonschema
python-pygments
python-rellu
+ python-typing-extensions
python-setuptools
`(,python "tk") ;used when building the HTML doc
python-wheel))
@@ -9156,29 +9338,41 @@ utility, a static analysis tool (linter) for Robot Framework source files.")
(license license:asl2.0)))
(define-public python-sshtunnel
- (package
- (name "python-sshtunnel")
- (version "0.4.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "sshtunnel" version))
- (sha256
- (base32
- "1z7rdgpp9m36ysh9pfzrn3vyiaj05bkjvcjdhj8vz0fvfjkhxjz7"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests? (invoke "pytest" "-vv" "tests")))))))
- (propagated-inputs (list python-paramiko))
- (native-inputs (list openssh python-pytest python-mock))
- (home-page "https://github.com/pahaz/sshtunnel")
- (synopsis "Python SSH tunnels library")
- (description "@code{sshtunnel} is a Python module for easily creating SSH
+ (let ((commit "dc0732884379a19a21bf7a49650d0708519ec54f")
+ (revision "0"))
+ (package
+ (name "python-sshtunnel")
+ (version (git-version "0.4.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pahaz/sshtunnel")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0fzq7pbqa6fjamzp61gjpd2hzph2ag7r507dlwpqilp6w8ipz49a"))
+ (patches (search-patches "python-sshtunnel-pep518.patch"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-deprecated-dsskey
+ (lambda _
+ (substitute* "sshtunnel.py"
+ (("'dsa': paramiko\\.DSSKey,")
+ "")
+ (("paramiko\\.DSSKey, ")
+ "")))))))
+ (propagated-inputs (list python-paramiko))
+ (native-inputs
+ (list openssh python-mock python-pytest python-setuptools))
+ (home-page "https://github.com/pahaz/sshtunnel")
+ (synopsis "Python SSH tunnels library")
+ (description "@code{sshtunnel} is a Python module for easily creating SSH
tunnels in the background, using Python.")
- (license license:expat)))
+ (license license:expat))))
(define-public python-robotframework-sshtunnellibrary
(package
@@ -9420,48 +9614,62 @@ outside the standard library.")
(define-public python-scp
(package
(name "python-scp")
- (version "0.13.3")
+ (version "0.15.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "scp" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jbardin/scp.py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1m2v09m407p097cy3xy5rxicqfzrqjwf8v5rd4qhfqkk7lllimwb"))))
- (build-system python-build-system)
- (arguments
- '(#:tests? #f)) ;tests require an SSH server
- (propagated-inputs
- (list python-paramiko))
+ (base32 "03mdkiwfxvi1xfsw9qjdjf0jgljs991jn29lia9fka68x1ngwnw9"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;tests require an SSH server
+ (native-inputs (list python-setuptools))
+ (propagated-inputs (list python-paramiko))
(home-page "https://github.com/jbardin/scp.py")
(synopsis "SCP protocol module for Python and Paramiko")
- (description "The scp module extends the Paramiko library to send and
-receive files via the SCP1 protocol, as implemented by the OpenSSH
-@command{scp} program.")
+ (description
+ "The scp module extends the Paramiko library to send and receive files
+via the SCP1 protocol, as implemented by the OpenSSH @command{scp} program.")
(license license:gpl2+)))
-(define-public python-rst.linker
+(define-public python-rst-linker
(package
- (name "python-rst.linker")
- (version "1.11")
+ (name "python-rst-linker")
+ (version "2.6.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "rst.linker" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jaraco/rst.linker")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0pqsfqqx8h0pq21k8l3k62kznrgaj2ala93c64s4d9rpbr4mgkd2"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-dateutil python-six))
+ (base32 "1pcnhib881p0vgm0s8jj6inzzs98raz70sc2z6m6wlgrj9ivv5jj"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+ (propagated-inputs (list python-jaraco-context))
(native-inputs
- (list python-setuptools-scm))
- ;; Test would require path.py, which would introduce a cyclic dependence.
- (arguments `(#:tests? #f))
- ;; Note: As of version 1.7 the documentation is not worth building.
+ (list python-path
+ python-jaraco-vcs
+ python-pytest
+ python-pytest-subprocess
+ python-setuptools-scm
+ python-setuptools))
(home-page "https://github.com/jaraco/rst.linker")
(synopsis "Sphinx plugin to add links and timestamps")
- (description "rst.linker automatically replaces text by a
-reStructuredText external reference or timestamps. It's primary purpose is to
-augment the changelog, but it can be used for other documents, too.")
+ (description
+ "rst.linker automatically replaces text by a reStructuredText external
+reference or timestamps. It's primary purpose is to augment the changelog,
+but it can be used for other documents, too.")
(license license:expat)))
(define-public python-sshpubkeys
@@ -9599,22 +9807,9 @@ errors when data is invalid.")
(list
#:test-flags
#~(list "--ignore=tests/test_docs.py" ; no pytest_examples
- ;; These tests include hashes that keep changing depending on
- ;; package versions.
- "--ignore=tests/benchmarks/test_north_star.py"
+ "--ignore-glob=tests/benchmarks/*"
;; Unimportant difference in one test's error message.
- "--ignore=tests/test_networks.py")
- #:phases
- #~(modify-phases %standard-phases
- (add-before 'check 'pre-check
- (lambda _
- ;; Remove the addopts from pyproject.toml, it breaks the 'check
- ;; phase.
- (substitute* "pyproject.toml"
- (("'--benchmark") "#'--benchmark")
- ;; Do not fail on deprecation warnings.
- (("ignore:path is deprecated.*:DeprecationWarning:")
- "ignore::DeprecationWarning")))))))
+ "--ignore=tests/test_networks.py")))
(native-inputs
(list tzdata-for-tests
python-dirty-equals
@@ -9654,33 +9849,12 @@ errors when data is invalid.")
(assoc-ref py:%standard-phases 'build))
(add-after 'build-python-module 'install-python-module
(assoc-ref py:%standard-phases 'install)))
- #:cargo-inputs
- `(("rust-ahash" ,rust-ahash-0.8)
- ("rust-base64" ,rust-base64-0.21)
- ("rust-enum-dispatch" ,rust-enum-dispatch-0.3)
- ("rust-idna" ,rust-idna-0.5)
- ("rust-jiter" ,rust-jiter-0.7)
- ("rust-num-bigint" ,rust-num-bigint-0.4)
- ("rust-python3-dll-a" ,rust-python3-dll-a-0.2)
- ("rust-pyo3" ,rust-pyo3-0.20)
- ("rust-pyo3-build-config" ,rust-pyo3-build-config-0.20)
- ("rust-regex" ,rust-regex-1)
- ("rust-strum" ,rust-strum-0.25)
- ("rust-strum-macros" ,rust-strum-macros-0.25)
- ("rust-serde" ,rust-serde-1)
- ("rust-serde-json" ,rust-serde-json-1)
- ("rust-smallvec" ,rust-smallvec-1)
- ("rust-speedate" ,rust-speedate-0.15)
- ("rust-url" ,rust-url-2)
- ("rust-uuid" ,rust-uuid-1)
- ("rust-version-check" ,rust-version-check-0.9))
- #:cargo-development-inputs
- `(("rust-pyo3" ,rust-pyo3-0.20))
#:install-source? #false))
(native-inputs
(list maturin python-typing-extensions python-wrapper))
(propagated-inputs
(list python-typing-extensions))
+ (inputs (cargo-inputs 'python-pydantic-core))
(home-page "https://github.com/pydantic/pydantic-core")
(synopsis "Core validation logic for pydantic")
(description "This package provides the core functionality for pydantic
@@ -9927,14 +10101,14 @@ and integrated feature-set for programming Python effectively.")
(define-public python-black
(package
(name "python-black")
- (version "24.10.0")
+ (version "25.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "black" version))
(sha256
(base32
- "0xa8vkgbvmkdh4vsk967xh81i6g47fcqf5vngdkvrqxgjx6acvl4"))))
+ "0ri6xhcrm39c7q5si4wvx1fkq98mvbl4larmj4rxfai2s5f6sj9k"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -9951,16 +10125,14 @@ and integrated feature-set for programming Python effectively.")
(string-append
"#!" (search-input-file inputs "/bin/python3")))))))))
(propagated-inputs
- (list python-click
+ (list python-aiohttp
+ python-click
python-mypy-extensions
python-packaging
python-pathspec
- python-platformdirs
- python-tomli
- python-typing-extensions))
+ python-platformdirs))
(native-inputs
(list python-pytest
- python-pytest-aiohttp
python-pytest-xdist
python-hatch-fancy-pypi-readme
python-hatch-vcs
@@ -9976,14 +10148,25 @@ and integrated feature-set for programming Python effectively.")
(version "1.3.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "black-macchiato" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/wbolster/black-macchiato")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1drp5p697ni1xn5y2lbjpalgpkzy2i4cyxjj5pk4dxr0vk97dd7i"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-black))
+ (base32 "0lc9w50nlbmlzj44krk7kxcia202fhybbnwfh77xixlc7vb4rayl"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'ignore-failing-tests
+ (lambda _
+ (substitute* "test_macchiato.py"
+ (("\\(.*\\n'\\)," all)
+ (string-append "# " all))))))))
+ (native-inputs (list python-pytest python-setuptools))
+ (propagated-inputs (list python-black))
(home-page "https://github.com/wbolster/black-macchiato")
(synopsis "Partial @code{python-black} formatting")
(description
@@ -10062,39 +10245,6 @@ Markdown input files, and more. Pelican uses Jinja2 for templating
and is very extensible.")
(license license:agpl3+)))
-(define-public mallard-ducktype
- (package
- (name "mallard-ducktype")
- (version "1.0.2")
- (source
- (origin
- (method git-fetch)
- ;; git-reference because tests are not included in pypi source tarball
- ;; https://issues.guix.gnu.org/issue/36755#2
- (uri (git-reference
- (url "https://github.com/projectmallard/mallard-ducktype")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1jk9bfz7g04ip78s03b0xak6d54rj4h9zpgadkziy1ji216g6y4c"))))
- (build-system python-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (with-directory-excursion "tests"
- (invoke "sh" "runtests")))))))
- (home-page "http://projectmallard.org")
- (synopsis "Convert Ducktype to Mallard documentation markup")
- (description
- "Ducktype is a lightweight syntax that can represent all the semantics
-of the Mallard XML documentation system. Ducktype files can be converted to
-Mallard using the @command{ducktype} tool. The yelp-tools package
-provides additional functionality on the produced Mallard documents.")
- (license license:expat)))
-
(define-public python-cykhash
(package
(name "python-cykhash")
@@ -10106,9 +10256,11 @@ provides additional functionality on the produced Mallard documents.")
(sha256
(base32 "1xwpxff4whfvkwvcyhzhdcj5zzq89vvdjmnqy664s4a9yp4lnydl"))))
(build-system pyproject-build-system)
- (native-inputs (list python-cython
- python-setuptools
- python-wheel))
+ (arguments
+ (list #:tests? #f)) ;no tests in PyPI, 2.0.1 is not tagged in git
+ (native-inputs
+ (list python-cython
+ python-setuptools))
(home-page "https://github.com/realead/cykhash")
(synopsis "Khash-sets and maps")
(description
@@ -10123,90 +10275,23 @@ For some datatypes the overhead can be reduced by using khash by factor 4-8.")
(license license:expat)))
(define-public python-cython
+ ;; TODO: Move to python-build.
(package
(name "python-cython")
- (version "0.29.32")
+ (version "3.1.2")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "Cython" version))
+ (uri (pypi-uri "cython" version))
(sha256
- (base32 "1xqsihpqnfal29nb5kmw8z71nd4jbsnbz7p3lkr094xpb13wycw7"))))
- (build-system python-build-system)
- ;; we need the full python package and not just the python-wrapper
- ;; because we need libpython3.3m.so
- (inputs
- (list python))
- (native-inputs
- ;; Needed for some tests that link against it.
- (list libxcrypt))
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'set-HOME
- ;; some tests require access to "$HOME/.cython"
- (lambda _ (setenv "HOME" "/tmp")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- ;; Disable compiler optimizations to greatly reduce the running
- ;; time of the test suite.
- (setenv "CFLAGS" "-O0")
-
- (when tests?
- (invoke "python" "runtests.py" "-vv"
- "-j" (number->string (parallel-job-count))
- ;; XXX: On 32-bit architectures, running the parallel tests
- ;; fails on many-core systems, see
- ;; <https://github.com/cython/cython/issues/2807>.
- ,@(if (not (target-64bit?))
- '("-x" "run.parallel")
- '())
- ,@(if (system-hurd?)
- '("-x" "test_class_ref"
- "-x" "test_compiler_directives"
- "-x" "test_lang_version")
- '())
- ;; This test fails when running on 24 cores.
- "-x" "cpp_stl_conversion")))))))
- (home-page "https://cython.org/")
- (synopsis "C extensions for Python")
- (description "Cython is an optimising static compiler for both the Python
-programming language and the extended Cython programming language. It makes
-writing C extensions for Python as easy as Python itself.")
- (license license:asl2.0)))
-
-;; Needed for scipy and numpy
-(define-public python-cython-0.29.35
- (package
- (inherit python-cython)
- (name "python-cython")
- (version "0.29.35")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "Cython" version))
- (sha256
- (base32
- "09y5r22nyswqpwc02agla1bnzh2jx2db25pnq9pc5cq8pyh1yf3f"))))
- (properties '())))
-
-(define-public python-cython-3
- (package
- (inherit python-cython)
- ;; Cython 3 is not officially released yet, so distinguish the name
- ;; for now.
- (name "python-cython-next")
- (version "3.0.11")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "cython" version))
- (sha256
- (base32
- "1zzsn60cl1qcz11h6c3miqayb7yfxdm1x19i2fk4qav8z0mdsiki"))))
+ (base32 "108k6gsn63qkz98xhnm4440ir9ab0lxmw0gcrpz2sxm67yapmgvb"))))
(build-system pyproject-build-system)
(arguments
(list
+ #:test-backend #~'custom
#:test-flags
- #~(list "-vv"
+ #~(list "runtests.py"
+ "-vv"
"-j" (number->string (parallel-job-count))
"-x" (string-join
(list "annotate_html"
@@ -10218,11 +10303,14 @@ writing C extensions for Python as easy as Python itself.")
"complex_numbers_cpp"
;; This test fails when running on 24 cores.
"cpp_stl_conversion"
- ;; XXX: On 32-bit architectures, running the
- ;; parallel tests fails on many-core systems, see
- ;; <https://github.com/cython/cython/issues/2807>.
#$@(if (not (target-64bit?))
- '("run.parallel")
+ ;; XXX: On 32-bit architectures, running the
+ ;; parallel tests fails on many-core systems.
+ ;; See: <https://github.com/cython/cython/issues/2807>.
+ '("run.parallel"
+ ;; Test cpp_stl_any.cast_test fails.
+ ;; See: <https://github.com/cython/cython/issues/5928>.
+ "cpp_stl_any")
'())
#$@(if (system-hurd?)
'("test_class_ref"
@@ -10232,25 +10320,71 @@ writing C extensions for Python as easy as Python itself.")
"|"))
#:phases
#~(modify-phases %standard-phases
- (replace 'check
+ (add-before 'check 'pre-check
(lambda* (#:key tests? test-flags #:allow-other-keys)
;; Disable compiler optimizations to greatly reduce the running
;; time of the test suite.
(setenv "CFLAGS" "-O0")
;; Some tests require access to "$HOME/.cython".
- (setenv "HOME" "/tmp")
- (when tests?
- (apply invoke "python" "runtests.py" test-flags)))))))
+ (setenv "HOME" "/tmp"))))))
(native-inputs
- ;; does not compile with gcc-14
+ (list libxcrypt
+ python-setuptools
+ python-wheel))
+ ;; we need the full python package and not just the python-wrapper
+ ;; because we need libpython3.3m.so
+ (inputs
+ (list python))
+ (home-page "https://cython.org/")
+ (synopsis "C extensions for Python")
+ (description "Cython is an optimising static compiler for both the Python
+programming language and the extended Cython programming language. It makes
+writing C extensions for Python as easy as Python itself.")
+ (license license:asl2.0)))
+
+(define-public python-cython-0
+ (package
+ (inherit python-cython)
+ ;; It's the latest version of 0.29. See
+ ;; <https://github.com/cython/cython/blob/0.29.37/CHANGES.rst>.
+ (version "0.29.37")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Cython" version))
+ (sha256
+ (base32 "1ysca2r23h12ai9wrym4ci0nvgwm3lfijrpj9xfyxbclvnkd84zq"))))
+ (arguments
(list
- (cond
- ((target-x86-32?) gcc-11)
- (else gcc-13))
- libxcrypt
- python-setuptools
- python-wheel))
- (properties '())))
+ #:test-backend #~'custom
+ #:test-flags
+ #~(list "runtests.py"
+ "-vv"
+ "-j" (number->string (parallel-job-count))
+ ;; XXX: On 32-bit architectures, running the parallel tests
+ ;; fails on many-core systems, see
+ ;; <https://github.com/cython/cython/issues/2807>.
+ #$@(if (not (target-64bit?))
+ #~("-x" "run.parallel")
+ #~())
+ #$@(if (system-hurd?)
+ #~("-x" "test_class_ref"
+ "-x" "test_compiler_directives"
+ "-x" "test_lang_version")
+ #~())
+ ;; This test fails when running on 24 cores.
+ "-x" "cpp_stl_conversion")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ ;; some tests require access to "$HOME/.cython"
+ (lambda _
+ (setenv "HOME" "/tmp")
+ ;; Disable compiler optimizations to greatly reduce the running
+ ;; time of the test suite.
+ (setenv "CFLAGS" "-O0"))))))))
+
+(define-public python-cython-3 python-cython)
;; NOTE: when upgrading numpy please make sure that python-numba,
;; python-pandas and python-scipy still build, as these three packages are
@@ -10266,7 +10400,7 @@ writing C extensions for Python as easy as Python itself.")
;; - URL <https://raw.githubusercontent.com/numpy/numpy>
;; - commit :: 2f3549c9d7c5048621568e431c86bc7530742723
;; - file <doc/source/building/understanding_meson.rst>
- (version "1.26.4")
+ (version "1.26.4") ;; This is the last planned release in the 1.26.x series.
(source
(origin
(method url-fetch)
@@ -10406,14 +10540,14 @@ include_dirs = ~:*~a/include~%"
(native-inputs
(list meson-python
pkg-config
- python-cython-0.29.35 ;overwrite Cython from meson-python
+ python-cython
python-hypothesis
python-mypy
python-pytest
python-pytest-xdist
- python-setuptools
+ python-setuptools-67 ;see: <https://github.com/numpy/numpy/issues/27531>
python-typing-extensions
- python-wheel
+ python-wheel-0.40
;; XXX: Avoid to: 'fenv_t' has not been declared in '::' 58 | using ::fenv_t;
;; See <https://github.com/numpy/numpy/issues/21075#issuecomment-1047976197>,
;; <https://github.com/numpy/numpy/issues/24318>.
@@ -10435,7 +10569,7 @@ capabilities.")
(package
(inherit python-numpy)
(name "python-numpy")
- (version "2.2.5")
+ (version "2.3.1")
(source
(origin
(method url-fetch)
@@ -10443,7 +10577,7 @@ capabilities.")
"https://github.com/numpy/numpy/releases/download/v"
version "/numpy-" version ".tar.gz"))
(sha256
- (base32 "14f28cpmw3z8sk4lp5pylrk58220fclqnbkprfqr3n8cd2adkh59"))))
+ (base32 "0aqx8hsw54wfp7iv0h0ljlpsygvmrmi3rjic6rsa6v92lhhaxj8y"))))
(arguments
(list
#:modules '((guix build utils)
@@ -10451,7 +10585,11 @@ capabilities.")
(ice-9 format))
#:test-flags
#~(list "-m" "not slow"
- "--numprocesses" (number->string (min 8 (parallel-job-count))))
+ "--numprocesses" (number->string (min 8 (parallel-job-count)))
+ ;; See: <https://github.com/numpy/numpy/issues/27531>,
+ ;; <https://github.com/numpy/numpy/issues/17685>,
+ ;; <https://github.com/numpy/numpy/issues/17635>.
+ "-k" "not test_api_importable")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-executable-paths
@@ -10513,40 +10651,39 @@ include_dirs = ~:*~a/include~%" #$(this-package-input "openblas"))))))
(package
(name "python-numpysane")
(version "0.42")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/dkogan/numpysane.git")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0s38fm88bmq08j5qxfka1wyjs2r9s9arzd1c3c4ixa8k3pisnihr"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dkogan/numpysane.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0s38fm88bmq08j5qxfka1wyjs2r9s9arzd1c3c4ixa8k3pisnihr"))))
+ (build-system pyproject-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'patch
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "Makefile.common.header"
- ;; numpy 2.0 has this--but we don't use numpy 2.0.
- (("pkg-config --cflags-only-I numpy")
- (string-append "echo -I"
- (assoc-ref inputs "python-numpy")
- "/lib/python"
- #$(version-major+minor
- (package-version python))
- "/site-packages/numpy/core/include")))))
- (replace 'check
- (lambda _
- (setenv "CC" #$(cc-for-target))
- (invoke "make" "check"))))))
- (propagated-inputs
- (list python-numpy))
- (native-inputs
- (list perl pkg-config))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((numpy (assoc-ref inputs "python-numpy"))
+ (site (site-packages inputs `(("out" . ,numpy)))))
+ (substitute* "Makefile.common.header"
+ ;; numpy 2.0 has this--but we don't use numpy 2.0.
+ (("pkg-config --cflags-only-I numpy")
+ (format #f "echo -I~a/numpy/core/include" site))))))
+ (replace 'check
+ (lambda _
+ (setenv "CC"
+ #$(cc-for-target))
+ (invoke "make" "check"))))))
+ (propagated-inputs (list python-numpy))
+ (native-inputs (list perl pkg-config python-setuptools))
+ (home-page "https://github.com/dkogan/numpysane")
(synopsis "More-reasonable core functionality for numpy")
- (description "This package provides more-reasonable core functionality for numpy.
+ (description
+ "This package provides more-reasonable core functionality for numpy.
A lot of numpysane functionality is inspired by PDL (Perl Data Language).
@@ -10562,7 +10699,6 @@ numpysane has:
@item broadcast-aware matrix multiplication
@end itemize
")
- (home-page "https://github.com/dkogan/numpysane")
(license license:lgpl2.0+)))
(define-public python-numpy-documentation
@@ -10601,47 +10737,50 @@ numpysane has:
"texmf-dist/fonts/opentype/public/gnu-freefont"))
(setenv "GUIX_TEXMF" (string-append (getenv "GUIX_TEXMF") ":"
(getcwd) "/texmf-dist"))))
- (delete 'build)
+ (replace 'build
+ (lambda _
+ (chdir "doc")
+ (let ((sphinxopts (string-append
+ "SPHINXOPTS=-j"
+ (number->string (parallel-job-count)))))
+ ;; Do not treat warnings as errors.
+ (substitute* "Makefile"
+ ((" -WT ") " -T "))
+ (setenv "HOME" "/tmp")
+ ;; Build the PDF documentation.
+ (invoke "make" "latex-build" sphinxopts)
+ ;; FIXME: PDF build fails
+ ;; (invoke "make" "-C" "build/latex" "all-pdf" sphinxopts)
+ ;; Build the HTML documentation
+ (invoke "make" "html" sphinxopts)
+ ;; Build the Info documentation. The issues worked around
+ ;; below can be tracked at
+ ;; https://github.com/numpy/numpy/issues/12278.
+ (substitute* "source/conf.py"
+ ;; The root document should be "index", not "contents".
+ (("\"contents\"") "'index'")
+ ;; Disable Sphinx extensions that produce broken Texinfo.
+ ((".*'numpydoc'.*") "")
+ ((".*'sphinx.ext.autodoc'.*") "")
+ ((".*'sphinx.ext.autosummary'.*") ""))
+ (invoke "make" "info" sphinxopts))))
(replace 'install
(lambda _
(let* ((data (string-append #$output "/share"))
(doc (string-append data "/doc/numpy"))
(html (string-append doc "/html"))
- (info (string-append data "/info"))
- (sphinxopts (string-append
- "SPHINXOPTS=-j"
- (number->string (parallel-job-count)))))
- (with-directory-excursion "doc"
- ;; Do not treat warnings as errors.
- (substitute* "Makefile"
- ((" -WT ") " -T "))
- (setenv "HOME" "/tmp")
- ;; Build the PDF documentation.
- (invoke "make" "latex-build" sphinxopts)
- (invoke "make" "-C" "build/latex" "all-pdf" sphinxopts)
- ;; Build the HTML documentation
- (invoke "make" "html" sphinxopts)
- ;; Build the Info documentation. The issues worked around
- ;; below can be tracked at
- ;; https://github.com/numpy/numpy/issues/12278.
- (substitute* "source/conf.py"
- ;; The root document should be "index", not "contents".
- (("\"contents\"") "'index'")
- ;; Disable Sphinx extensions that produce broken Texinfo.
- ((".*'numpydoc'.*") "")
- ((".*'sphinx.ext.autodoc'.*") "")
- ((".*'sphinx.ext.autosummary'.*") ""))
- (invoke "make" "info" sphinxopts)
- ;; Install the HTML documentation.
- (mkdir-p html)
- (copy-recursively "build/html" html)
- ;; Install the PDF reference and user manuals.
- (install-file "build/latex/numpy-ref.pdf" doc)
- (install-file "build/latex/numpy-user.pdf" doc)
- ;; Install the info manual.
- (install-file "build/texinfo/numpy.info" info)
- (symlink (string-append html "/_images")
- (string-append info "/numpy-figures")))))))))
+ (info (string-append data "/info")))
+ ;; Install the HTML documentation.
+ (mkdir-p html)
+ (copy-recursively "build/html" html)
+ ;; Install the PDF reference and user manuals.
+ ;; FIXME:
+ ;; (install-file "build/latex/numpy-ref.pdf" doc)
+ ;; (install-file "build/latex/numpy-user.pdf" doc)
+ ;; Install the info manual.
+ (install-file "build/texinfo/numpy.info" info)
+ (symlink (string-append html "/_images")
+ (string-append info "/numpy-figures"))))))))
(native-inputs
(list font-gnu-freefont
perl
@@ -10655,11 +10794,11 @@ numpysane has:
python-scipy ;used by matplotlib
python-sphinx
python-sphinx-design
- python-sphinx-panels
texinfo
(texlive-local-tree
(list texlive-cbfonts
texlive-cm-super
+ texlive-cmap
texlive-expdlist
texlive-fandol
texlive-greek-fontenc
@@ -10671,7 +10810,7 @@ numpysane has:
(propagated-inputs '())
(synopsis "Documentation for the @code{python-numpy} package")
(description "This package provides the complete NumPy documentation in
-the Texinfo, HTML, and PDF formats.")))
+the Texinfo, and HTML formats.")))
(define-public python-numpy-stl
(package
@@ -10753,21 +10892,23 @@ methods is arguably lacking. This package provides drop-in wrappers
objects.")
(license license:expat)))
-(define-public python-colormath
+(define-public python-colormath2
(package
- (name "python-colormath")
- (version "3.0.0")
+ (name "python-colormath2")
+ (version "3.0.3")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "colormath" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/bkmgit/python-colormath2")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "05qjycgxp3p2f9n6lmic68sxmsyvgnnlyl4z9w7dl9s56jphaiix"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-networkx python-numpy))
- (home-page "https://github.com/gtaylor/python-colormath")
+ (base32 "0xxhmmx1mzjggapjmpz8v166lj86xrkq7kak83akcirnq0pz9ihv"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs (list python-networkx python-numpy))
+ (native-inputs (list python-nose2 python-setuptools))
+ (home-page "https://github.com/bkmgit/python-colormath2")
(synopsis "Color math and conversion library")
(description
"This is a Python library for color math and conversions.")
@@ -10776,24 +10917,18 @@ objects.")
(define-public python-spectra
(package
(name "python-spectra")
- (version "0.0.11")
+ (version "0.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "spectra" version))
(sha256
- (base32
- "1f322x914bhkg6r5gv1vmnir3iy0k5kih0fd2gp3rdkw32jn5cwf"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _ (invoke "nosetests" "-v"))))))
+ (base32 "0gva48a1rn5yxj6dgy76dnndqaf09k5q2l9r41h2a66b84rf6c3a"))))
+ (build-system pyproject-build-system)
(propagated-inputs
- (list python-colormath))
+ (list python-colormath2))
(native-inputs
- (list python-nose))
+ (list python-pytest python-setuptools python-wheel))
(home-page "https://github.com/jsvine/spectra")
(synopsis "Color scales and color conversion")
(description
@@ -10884,100 +11019,81 @@ humans, and implementation simplicity.")
(version "0.0.15")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "merge3" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/breezy-team/merge3")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1brb97v24i5ym3cfxsv416a0m1n78s1aqllmwg4xymjdv09w5snk"))))
+ (base32 "0p52fdzra86d03p5gwz7wmb2pgzkv0frgdhhg9wfld8qr0611wp4"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (arguments (list #:test-backend #~'unittest))
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/breezy-team/merge3")
(synopsis "Python implementation of 3-way merge")
- (description
- "This Python library implements 3-way merge for text.")
+ (description "This Python library implements 3-way merge for text.")
(license license:gpl2+)))
-(define-public python-wmctrl
- (package
- (name "python-wmctrl")
- (version "0.4")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "wmctrl" version))
- (sha256
- (base32
- "1q0l1sqnj5wma87k3dsgmsyph464syjc6fl8qcpa41nan1rgzjv6"))))
- (build-system python-build-system)
- (arguments
- `(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'patch-paths
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((wmctrl (assoc-ref inputs "wmctrl")))
- (substitute* "wmctrl.py"
- (("'wmctrl")
- (string-append "'" wmctrl "/bin/wmctrl")))))))))
- (inputs (list wmctrl))
- (propagated-inputs (list python-attrs))
- (home-page "https://github.com/antocuni/wmctrl")
- (synopsis "Tool to programmatically control Xorg windows")
- (description "This package provides a library for programmatically
-controlling Xorg windows using Python. The library relies on the
-@command{wmctrl} to do so.")
- (license license:expat)))
-
(define-public python-fancycompleter
(package
(name "python-fancycompleter")
(version "0.9.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "fancycompleter" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pdbpp/fancycompleter")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0wkj4h01pxa8prv59zl09a0i3w26k835bfpjgvyvsai4mswgxq09"))))
- (build-system python-build-system)
+ (base32 "04gbnpm2m86wgigaqf03mphacawg203gdgpljx5xzax3vhm8qnxw"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'fix-setup.py
- (lambda _
- (substitute* "setup.py"
- ((".*setupmeta.*")
- "")
- (("versioning=.*")
- (string-append "version='" ,version "',"))
- ((".*pyrepl.*") ;broken on Python 3
- "")))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-setup.py
+ (lambda _
+ (substitute* "setup.py"
+ ((".*setupmeta.*")
+ "")
+ (("versioning=.*")
+ (string-append "version='" #$version "',"))
+ ((".*pyrepl.*") ; broken on Python 3
+ "")))))))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/pdbpp/fancycompleter")
(synopsis "TAB completion library for Python")
- (description "@code{fancycompleter} is a module that adds TAB completion
-to the interactive prompt. It is an extension of the @code{rlcompleter}
-module from the standard Python library.")
+ (description
+ "@code{fancycompleter} is a module that adds TAB completion to the
+interactive prompt. It is an extension of the @code{rlcompleter} module from
+the standard Python library.")
(license license:bsd-3)))
(define-public python-ipdb
(package
(name "python-ipdb")
- (version "0.13.9")
+ (version "0.13.13")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "ipdb" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gotcha/ipdb")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1ibql99agjf2gj7y0svzd5m0h81hailf4p3sj3yl9i1i8ykdj6wm"))))
- (build-system python-build-system)
- (arguments
- (list #:phases #~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "-m" "unittest" "discover")))))))
+ (base32 "151cw13kgfgv2is7kx10zzwp17kkvzz6658srdhgnzm6d5kjjrxk"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:test-backend #~'unittest))
+ (native-inputs (list python-setuptools))
(propagated-inputs (list python-ipython python-toml python-decorator))
(home-page "https://github.com/gotcha/ipdb")
(synopsis "IPython-enhanced Python debugger (pdb)")
- (description "@code{ipdb} exports functions to access the IPython
-debugger, which features tab completion, syntax highlighting, better
-tracebacks and better introspection than Python's standard @command{pdb}
-debugger, with which it shares the same interface.")
+ (description
+ "@code{ipdb} exports functions to access the IPython debugger, which
+features tab completion, syntax highlighting, better tracebacks and better
+introspection than Python's standard @command{pdb} debugger, with which it
+shares the same interface.")
(license license:bsd-3)))
(define-public python-ipfsspec
@@ -11036,23 +11152,28 @@ debugger, with which it shares the same interface.")
(version "1.0.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pluginbase" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mitsuhiko/pluginbase")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "11z2vvbp13828y0x3w39f29p9r9xcix7h7c4fff2w8yfiylk6v7z"))))
- (build-system python-build-system)
+ (base32 "16c089ka8z4wb4mnx6a3dbvibibgzvawm8zgkp7ppadsgb3lc357"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "make" "test")))))))
- (native-inputs (list python-pytest))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "make" "test")))))))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/mitsuhiko/pluginbase")
(synopsis "Simple but flexible plugin system for Python")
- (description "PluginBase is a library useful in the development of
-flexible plugin systems in Python.")
+ (description
+ "PluginBase is a library useful in the development of flexible plugin
+systems in Python.")
(license license:bsd-3)))
(define-public python-node-semver
@@ -11061,34 +11182,40 @@ flexible plugin systems in Python.")
(version "0.8.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "node-semver" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/podhmo/python-node-semver")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "000ypfns5x72b41w5f9pk6k3jnr35scliqfbvmilyvv0178005i8"))))
- (build-system python-build-system)
- (native-inputs
- (list python-pytest))
+ (base32 "0az6v4y8awl3dhgrfyikgz2vc8p1k15qwsq6yb8azp54m1fbh5hs"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/podhmo/python-node-semver")
(synopsis "Python port of node-semver")
- (description "This module provides a Python version of node-semver, a
-semantic version parser for Node.js.")
+ (description
+ "This module provides a Python version of node-semver, a semantic version
+parser for Node.js.")
(license license:expat)))
(define-public python-norns
(package
(name "python-norns")
(version "0.1.6")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "norns" version))
- (sha256
- (base32
- "1r1lcq59v6l75wkbp7mypanr69a6fv6m58v6dw3v6b4vwz5nqg0z"))))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/simonvh/norns")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0x488xd2dp1clnzpb3gikx416g0fh1bjs25bwi0jmsvqmd80hmb0"))
+ (patches
+ (search-patches "python-norns-nose.patch"))))
(build-system pyproject-build-system)
- (propagated-inputs (list python-appdirs python-nose python-pyyaml
- python-setuptools))
- (native-inputs (list python-wheel))
+ (propagated-inputs (list python-appdirs python-pynose python-pyyaml))
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/simonvh/norns")
(synopsis "Simple YAML-based config module")
(description "This package provides a simple YAML-based config module.")
@@ -11100,25 +11227,24 @@ semantic version parser for Node.js.")
(version "1.18.1")
(source
(origin
- (method git-fetch) ;no tests in PyPI archive
+ (method git-fetch)
(uri (git-reference
(url "https://github.com/conan-io/python-patch-ng")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32
- "1kr3h0bkcr02zyfsmwmxfv5b4b9vf3bhsvrlwp6cwrfy3q3qnyq8"))))
- (build-system python-build-system)
+ (base32 "1kr3h0bkcr02zyfsmwmxfv5b4b9vf3bhsvrlwp6cwrfy3q3qnyq8"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "tests/run_tests.py" "-v")))))))
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "tests/run_tests.py" "-v")))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/conan-io/python-patch-ng")
(synopsis "Python library to parse and apply unified diffs")
- (description "Patch NG (New Generation) is a command and Python library to
-parse and apply unified diffs. It has features such as:
+ (description
+ "Patch NG (New Generation) is a command and Python library to parse and
+apply unified diffs. It has features such as:
@itemize
@item automatic correction of common patch formatting corruption
@item patch format detection (SVN, Hg, Git)
@@ -11158,27 +11284,28 @@ parse and apply unified diffs. It has features such as:
(define-public python-numexpr
(package
(name "python-numexpr")
- (version "2.9.0") ; starting from 2.10.0, NumPy 2+ is required
+ (version "2.12.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "numexpr" version))
(sha256
- (base32 "1w5ampdamlwj8ix1ipzxngmrlqpnmcmk95gbi6839kijqkv147gj"))))
+ (base32 "1aslzx2mzgk1xxxpm3mrvl8ngfxj7dxlz4q2xbqx20gh1bnzlfg2"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
- (add-before 'check 'build-extensions
- (lambda _
- (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion #$output
+ (apply invoke "pytest" "-vv" test-flags))))))))
(native-inputs
(list python-pytest
- python-setuptools
- python-wheel))
+ python-setuptools))
(propagated-inputs
- (list python-numpy))
+ (list python-numpy-2))
(home-page "https://github.com/pydata/numexpr")
(synopsis "Fast numerical expression evaluator for NumPy")
(description
@@ -11193,20 +11320,20 @@ transcendental functions).")
(define-public python-cycler
(package
(name "python-cycler")
- (version "0.10.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "cycler" version))
- (sha256
- (base32
- "1n69n23fak1gjxlrbhqisi2b9pv3ckrfj98llx3p53953082syyd"))))
- (build-system python-build-system)
- (arguments
- ;; XXX: The current version requires 'coveralls' which we don't have.
- ;; Enable this for the next release which uses 'python-pytest'.
- '(#:tests? #f))
- (propagated-inputs
- (list python-six))
+ (version "0.12.1")
+ (source
+ (origin
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/matplotlib/cycler")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "061b8vxd2kp016pnwik9jg6zqng8khzmg0p298wrz65z50yh1gg4"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
(home-page "https://matplotlib.org/cycler/")
(synopsis "Composable keyword argument iterator")
(description
@@ -11230,17 +11357,11 @@ To address this and enable easy cycling over arbitrary @code{kwargs}, the
(file-name (git-file-name name version))
(sha256
(base32 "0x7nkphr6g5ql5fvgss8l56rgiyjgh6fm8zzs73i94ci9wzlm63w"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(propagated-inputs
(list python-numpy))
(native-inputs
- (list python-nose))
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "nosetests" "--all-modules" "-v" "colorspacious"))))))
+ (list python-nose python-setuptools python-wheel))
(home-page "https://github.com/njsmith/colorspacious")
(synopsis "Python library for colorspace conversions")
(description "@code{colorspacious} is a Python library that lets you
@@ -11291,19 +11412,22 @@ properties for Python 3.9+.")
(version "0.0.3")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "proto_matcher" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dayfine/proto-matcher")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1644x0hrl398ji3281n44ymfgc3cspzfagjckhqjn4nja5nlikxg"))))
- (build-system python-build-system)
- (arguments
- `(#:tests? #f)) ;no test suite
- (propagated-inputs
- (list python-protobuf python-pyhamcrest))
+ (base32 "1l0dqnicpk4gpfspdlng026sxnkgzy68x416aw7camwq0513mq5l"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools))
+ (arguments (list #:tests? #f)) ; The test suite seems broken (missing data).
+ (propagated-inputs (list python-protobuf python-pyhamcrest))
(home-page "https://github.com/dayfine/proto-matcher")
(synopsis "PyHamcrest test matchers for protocol buffers")
- (description "This package provides the following PyHamcrest test
-matchers, that enable matching a protocol buffer message:
+ (description
+ "This package provides the following PyHamcrest test matchers, that
+enable matching a protocol buffer message:
@table @code
@item equals_proto
Test the argument equals the given protobuf message.
@@ -11406,6 +11530,11 @@ reason=\"unknown minor image differences\")\n" match)))
;; non-deterministically when run in parallel (see:
;; https://github.com/matplotlib/matplotlib/issues/22992).
"lib/matplotlib/tests/test_compare_images.py"))))
+ (add-after 'unpack 'patch-dlopen
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/_c_internal_utils.c"
+ (("libX11.so.6")
+ (search-input-file inputs "lib/libX11.so.6")))))
(add-before 'build 'configure-environment
(lambda* (#:key inputs #:allow-other-keys)
;; Fix rounding errors when using the x87 FPU.
@@ -11419,7 +11548,7 @@ system_freetype = true
system_qhull = true
[rc_options]
-backend=Agg
+backend=TkAgg
[directories]
basedirlist = ~a,~a
@@ -11465,7 +11594,6 @@ tests = True~%" #$(this-package-input "tcl") #$(this-package-input "tk"))))))
python-pytest-xdist
python-setuptools
python-setuptools-scm
- python-setuptools-scm-git-archive
python-wheel))
(home-page "https://matplotlib.org/")
(synopsis "2D plotting library for Python")
@@ -11486,16 +11614,20 @@ toolkits.")
#:tests? #f ;we're only generating documentation
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'avoid-external-deps
+ (lambda _
+ ;; XXX: Avoid theme-switcher to avoid sphinx error
+ ;; TemplateNotFound('theme-switcher.html')
+ ;; XXX: Avoid version-switcher because it depends on an
+ ;; external file, and we pack only one version anyway.
+ (substitute* "doc/conf.py"
+ (("\
+\"navbar_end\": \\[\"theme-switcher\", \"version-switcher\", ")
+ "\"navbar_end\": ["))))
(replace 'build
(lambda _
(setenv "HOME" "/tmp")
(chdir "doc")
- (substitute* "conf.py"
- ;; The sphinx_panels extension causes a "TypeError: first
- ;; argument must be callable" to be raised when generating the
- ;; info target; remove it (see:
- ;; https://github.com/executablebooks/sphinx-panels/issues/74).
- ((".*'sphinx_panels',.*") ""))
(invoke "make" "html" "info"
;; Don't abort on warnings; build in parallel.
(format #f "SPHINXOPTS=-j~a" (parallel-job-count)))))
@@ -11518,43 +11650,56 @@ toolkits.")
inkscape/pinned
python-colorspacious
python-ipython
+ python-ipykernel
python-ipywidgets
python-mpl-sphinx-theme
python-numpydoc
python-scipy
python-sphinx
python-sphinx-copybutton
+ python-sphinx-design
python-sphinx-gallery
python-sphinxcontrib-svg2pdfconverter
texinfo
- texlive-amsfonts
- texlive-amsmath
- texlive-babel
- texlive-etoolbox
- texlive-expdlist
- texlive-fontspec
- texlive-times
- texlive-type1cm
- texlive-underscore
- texlive-unicode-math))
+ texlive-dvipng-bin
+ (texlive-local-tree
+ (list texlive-amsfonts
+ texlive-amsmath
+ texlive-babel
+ texlive-cm-super
+ texlive-etoolbox
+ texlive-expdlist
+ texlive-fontspec
+ texlive-times
+ texlive-type1cm
+ texlive-underscore
+ texlive-unicode-math))))
(synopsis "Documentation for the @code{python-matplotlib} package")))
(define-public python-matplotlib-inline
(package
(name "python-matplotlib-inline")
- (version "0.1.3")
+ (version "0.1.7")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "matplotlib-inline" version))
+ (uri (pypi-uri "matplotlib_inline" version))
(sha256
- (base32 "1vilzwj3xp00mxprmmn1hlafm3p23vn56s46kx3ra4qd5signjx0"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-matplotlib python-traitlets))
+ (base32 "145bl0ppy4cz1fii3pfixd0fi1jfmkcbsq3bw4b3vgk6qqzb48w4"))))
+ (build-system pyproject-build-system)
(arguments
- ;; Tests disabled because of a circular dependency with ipython.
- `(#:tests? #f))
+ (list
+ ;; Tests disabled because of a circular dependency with IPython.
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Disabled because of a circular dependency with IPython.
+ (delete 'sanity-check))))
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-matplotlib
+ python-traitlets))
(home-page "https://github.com/ipython/matplotlib-inline")
(synopsis "Inline Matplotlib backend for Jupyter")
(description
@@ -11683,15 +11828,19 @@ and generate a data structure representing the class.")
(define-public python-cppy
(package
(name "python-cppy")
- (version "1.2.1")
+ (version "1.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cppy" version))
(sha256
- (base32 "06zysv86j7wqb1rl88ab4clbjf7iahhv9gfyqlasr18hggqkpd43"))))
+ (base32 "0s3d7bjgr9af571y7czswjymnymnihwnyf9ml4p28kw725y31dam"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
(home-page "https://github.com/nucleic/cppy")
(synopsis "C++ header library for Python extension modules")
(description "This package is a small C++ header library which makes it
@@ -11724,33 +11873,6 @@ snippets with input parameters (e.g., the size of an array) and plotting
the results.")
(license license:gpl3+)))
-(define-public python-wurlitzer
- (package
- (name "python-wurlitzer")
- (version "2.0.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "wurlitzer" version))
- (sha256
- (base32 "0hvmbc41kdwrjns8z1s4a59a4azdvzb8q3vs7nn1li4qm4l0g3yh"))))
- (build-system python-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "pytest" "-vv" "test.py"))))))
- (native-inputs
- (list python-mock python-pytest))
- (home-page "https://github.com/minrk/wurlitzer")
- (synopsis "Capture C-level output in context managers")
- (description
- "This library helps to redirect @code{sys.stdout} to a stream or a file
-while executing some piece of code, including C code running within a Python
-process.")
- (license license:expat)))
-
(define-public python-socksipy-branch
(package
(name "python-socksipy-branch")
@@ -11760,41 +11882,40 @@ process.")
(method url-fetch)
(uri (pypi-uri "SocksiPy-branch" version))
(sha256
- (base32
- "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
- (build-system python-build-system)
- (arguments
- `(#:tests? #f)) ; There are no tests
+ (base32 "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ; There are no tests
+ (native-inputs (list python-setuptools))
(home-page "https://code.google.com/archive/p/socksipy-branch/")
(synopsis "Python SOCKS module")
(description
- "SocksiPy - A Python SOCKS client module. It provides a
-socket-like interface that supports connections to any TCP
-service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
-The original version was developed by Dan Haim, this is a
-branch created by Mario Vilas to address some open issues,
-as the original project seems to have been abandoned circa 2007.")
+ "SocksiPy - A Python SOCKS client module. It provides a socket-like
+interface that supports connections to any TCP service through the use of a
+SOCKS4, SOCKS5 or HTTP proxy. The original version was developed by Dan Haim,
+this is a branch created by Mario Vilas to address some open issues,as the
+original project seems to have been abandoned circa 2007.")
(license license:bsd-3)))
(define-public python-socksipychain
(package
(name "python-socksipychain")
- (version "2.1.2")
+ (properties '((commit . "570c75c55661db175bd733996ed1ab68fc4e3b33")
+ (revision . "0")))
+ (version (git-version "2.1.3"
+ (assoc-ref properties 'revision)
+ (assoc-ref properties 'commit)))
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/pagekite/PySocksipyChain")
- (commit (string-append "v" version))))
+ (url "https://github.com/pagekite/PySocksipyChain")
+ (commit (assoc-ref properties 'commit))))
(file-name (git-file-name name version))
(sha256
- (base32
- "02pp994qmiivkdx4y6az5q80l6rzy8g6d2ipvp7kns7lsxvmc2y7"))))
- (build-system python-build-system)
- (arguments
- `(#:tests? #f)) ; Tests try to access the network.
- (propagated-inputs
- (list python-six))
+ (base32 "1fi82id1qgh63wm8k1gcxpkaa8ic0mwliq7x3iy9lxihaqmr0zww"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ; Tests try to access the network.
+ (native-inputs (list python-setuptools))
(home-page "http://pagekite.net/wiki/Floss/PySocksipyChain/")
(synopsis "Python SOCKS module with chained proxies support")
(description
@@ -11934,7 +12055,8 @@ where key might be occurred more than once in the container.")
(propagated-inputs
(list python-six))
(native-inputs
- (list python-flake8 python-pycodestyle python-setuptools python-wheel))
+ (list python-pytest
+ python-setuptools))
(home-page "https://github.com/gruns/orderedmultidict")
(synopsis "Python Ordered Multivalue Dictionary - omdict")
(description "This package contains a library for ordered multivalue
@@ -11946,27 +12068,16 @@ multivalue dictionary that retains the order of insertions and deletions.")
(define-public python-autocommand
(package
(name "python-autocommand")
- (version "2.2.1")
+ (version "2.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "autocommand" version))
(sha256
- (base32 "03qp9xx4dq81ljhf56r21gp5j0lpqs1vaw99g0d84i97s3lj1m7y"))))
- (build-system python-build-system)
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; This test fails with an invalid syntax error on 'task1 =
- ;; asyncio.async(coro_1())' (see:
- ;; https://github.com/Lucretiel/autocommand/issues/20).
- (delete-file "test/test_autoasync.py")
- (invoke "pytest" "-vv")))))))
- (native-inputs (list python-pytest python-pytest-asyncio))
+ (base32 "0d2zjms5xm236k46la5pnl7i7hs3a12jlp12cw8lk5jm7i1fk3c7"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest python-setuptools))
(home-page "https://github.com/Lucretiel/autocommand")
(synopsis "Python library to build a command-line from a function")
(description "@code{autocommand} is library to automatically generate and
@@ -12008,39 +12119,6 @@ run simple @code{argparse} parsers from function signatures.")
from a program in a @dfn{pager} such as @command{less}.")
(license license:asl2.0)))
-(define-public python-autopep8
- (package
- (name "python-autopep8")
- (version "2.0.4")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "autopep8" version))
- (sha256
- (base32
- "037yhzmc9lssmn6cifa5gvw23f1c0hgsfgn83jfl3cwppm50c4r9"))))
- (build-system pyproject-build-system)
- (propagated-inputs
- (list python-pycodestyle python-tomli))
- (native-inputs
- (list python-setuptools python-wheel))
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'prepare-check
- (lambda _
- (setenv "HOME" "/tmp"))))))
- (home-page "https://github.com/hhatto/autopep8")
- (synopsis "Format Python code according to the PEP 8 style guide")
- (description
- "@code{autopep8} automatically formats Python code to conform to
-the PEP 8 style guide. It uses the pycodestyle utility to determine
-what parts of the code needs to be formatted. @code{autopep8} is
-capable of fixing most of the formatting issues that can be reported
-by pycodestyle.")
- (license (license:non-copyleft
- "https://github.com/hhatto/autopep8/blob/master/LICENSE"))))
-
(define-public python-dirty-equals
(package
(name "python-dirty-equals")
@@ -12134,6 +12212,8 @@ used as the basis for third-party packaging tools.")
(base32
"0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
(build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;tests are outdated and broken
(native-inputs (list python-setuptools python-wheel))
(home-page "https://launchpad.net/python-distutils-extra/")
(synopsis "Enhancements to Python's distutils")
@@ -12146,17 +12226,20 @@ Python's distutils.")
(define-public python-olefile
(package
(name "python-olefile")
- (version "0.46")
+ (version "0.47")
(source
(origin
- (method url-fetch)
- (uri (string-append "https://github.com/decalage2/olefile/releases/"
- "download/v" version "/olefile-" version ".tar.gz"))
- (file-name (string-append name "-" version ".tar.gz"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/decalage2/olefile")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1kjxh4gr651hpqkjfv89cfzr40hyvf3vjlda7mifiail83j7j07m"))))
- (build-system python-build-system)
+ (base32 "1ardfp32jgijha6vk7znvnpwgi710c6gj02lk4drv45xj4mw71hv"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
(home-page "https://www.decalage.info/python/olefileio")
(synopsis "Read and write Microsoft OLE2 files")
(description
@@ -12247,34 +12330,41 @@ Python list with elements of type @code{PIL.Image} (from the
(define-public python-pikepdf
(package
(name "python-pikepdf")
- (version "7.2.0")
+ (version "8.15.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pikepdf" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pikepdf/pikepdf")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1vp3q85l2w7wpc8kqs26ijg3ivvvgj50z7g14p3pc0zdz8vbi0md"))))
- (build-system python-build-system)
+ (base32 "0hpnb63xp8yaflah3i1z5azh6mg36rz0liy27km47417w2q72v0c"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #false)) ;require python-xmp-toolkit
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs
(list pybind11
python-attrs
- python-coverage
python-hypothesis
python-setuptools-scm
python-psutil
python-pytest
- python-pytest-cov
python-pytest-timeout
python-pytest-xdist
python-dateutil
- ;; python-xmp-toolkit
- python-tomli))
+ python-xmp-toolkit
+ python-tomli
+ python-setuptools))
(inputs
(list qpdf))
(propagated-inputs
- (list python-deprecation python-lxml python-packaging python-pillow))
+ (list python-deprecated python-lxml python-packaging python-pillow))
(home-page "https://github.com/pikepdf/pikepdf")
(synopsis "Read and write PDFs with Python")
(description
@@ -12371,57 +12461,61 @@ a general image processing tool.")
and a plugin for Pillow.")
(license license:bsd-3)))
-(define-public python-pillow-2.9
- (package
- (inherit python-pillow)
- (version "2.9.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "Pillow" version))
- (sha256
- (base32
- "0ada7lf3lmbdsqm3b7ja920p1pllyfhmqndr85ikpj77fmz9s5qg"))))
- (arguments
- (substitute-keyword-arguments (package-arguments python-pillow)
- ((#:tests? _ #f) #f)))
- (properties '((hidden? #t)))))
-
(define-public python-pillow-simd
(package
- (inherit python-pillow)
(name "python-pillow-simd")
(version "10.0.1.post0")
- ;; The PyPI tarball does not include test files.
(source
(origin
- (method git-fetch)
+ (method git-fetch) ;no tests in PyPI tarball
(uri (git-reference
- (url "https://github.com/uploadcare/pillow-simd")
- (commit (string-append "v" version))))
+ (url "https://github.com/uploadcare/pillow-simd")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "16pr4qifb661spf58b7g2lyraask9wf944v4kwk3llg32djvb09b"))))
+ (build-system pyproject-build-system)
(arguments
(list
#:test-flags
;; Got different content.
'(list "-k" (string-append "not test_open"
" and not test_consistency_3x3"
- " and not test_consistency_5x5"))
+ " and not test_consistency_5x5"
+ " and not test_close"))
#:phases
'(modify-phases %standard-phases
- (add-after 'unpack 'patch-ldconfig
- (lambda _
- (substitute* "setup.py"
- (("\\['/sbin/ldconfig', '-p'\\]") "['true']")))))))
+ (add-after 'unpack 'patch-ldconfig
+ (lambda _
+ (substitute* "setup.py"
+ (("\\['/sbin/ldconfig', '-p'\\]") "['true']")))))))
+ (native-inputs
+ (list python-check-manifest
+ python-defusedxml
+ python-markdown2
+ python-olefile
+ python-packaging
+ python-pytest
+ python-pytest-timeout
+ python-setuptools
+ python-trove-classifiers))
(inputs
- (modify-inputs (package-inputs python-pillow)
- (prepend libraqm libimagequant)))
+ (list freetype
+ lcms
+ libimagequant
+ libjpeg-turbo
+ libraqm
+ libtiff
+ libwebp
+ openjpeg
+ zlib))
(home-page "https://github.com/uploadcare/pillow-simd")
(synopsis "Fork of the Python Imaging Library (Pillow)")
(description "This package is a fork of Pillow which adds support for SIMD
-parallelism.")))
+parallelism.")
+ (license (license:x11-style
+ "http://www.pythonware.com/products/pil/license.htm"
+ "The PIL Software License"))))
(define-public python-pixelmatch
(package
@@ -12429,101 +12523,104 @@ parallelism.")))
(version "0.3.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pixelmatch" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/whtsky/pixelmatch-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "16b0cz136dcmj4dbr505igpql8dmqmr9vni5nbaa5kygjfjkdynh"))))
- (build-system python-build-system)
- (native-inputs (list python-pillow))
+ (base32 "0d4579hh5rwdh9djq5j9lf448x68c1iz80wavxiq7sxpmwm1j23a"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; XXX: PIL.UnidentifiedImageError despite images being present.
+ (list #:tests? #f))
+ (native-inputs
+ (list python-poetry-core
+ python-pillow
+ python-pytest
+ python-pytest-benchmark))
(home-page "https://github.com/whtsky/pixelmatch-py")
(synopsis "Pixel-level image comparison library")
- (description "This package provides a pixel-level image comparison library
-for Python, originally created to compare screenshots in tests. Its features
-include accurate anti-aliased pixels detection and perceptual color difference
+ (description
+ "This package provides a pixel-level image comparison library for Python,
+originally created to compare screenshots in tests. Its features include
+accurate anti-aliased pixels detection and perceptual color difference
metrics.")
(license license:isc)))
(define-public python-imagecodecs
(package
(name "python-imagecodecs")
- (version "2021.3.31")
+ (version "2025.8.2")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "imagecodecs" version))
- (sha256
- (base32
- "0q7pslb6wd56vbcq2mdxwsiha32mxjr7mgqqfbq5w42q601p9pi0"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- ;; Unbundle 3rd party modules.
- (delete-file-recursively "3rdparty")
- ;; Delete pre-generated Cython files.
- (for-each delete-file (find-files "imagecodecs" "_.*\\.c$"))
- #t))))
- (build-system python-build-system)
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "imagecodecs" version))
+ (sha256
+ (base32 "0v7yglk100fnk0m9m5bnfph2vm1jpnxzrzz2lwk06dqcr6m75wia"))
+ (modules '((guix build utils)))
+ (snippet #~(for-each delete-file
+ ;; Delete pre-generated Cython files.
+ (find-files "imagecodecs" "_.*\\.c$")))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f ; Tests are disabled, because dependencies are missing.
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'create-configuration
- (lambda* (#:key inputs #:allow-other-keys)
- ;; By default everything is enabled. We can selectively disable
- ;; extensions (and thus dependencies) by deleting them from the
- ;; EXTENSIONS dictionary. This is upstream’s preferred way.
- (call-with-output-file "imagecodecs_distributor_setup.py"
- (lambda (port)
- (format port "\
+ (list
+ #:test-flags
+ ;; Some of those tests are flaky.
+ #~(list "-k" "not test_cms_identity_transforms")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'create-configuration
+ (lambda _
+ ;; By default everything is enabled. We can selectively disable
+ ;; extensions (and thus dependencies) by deleting them from the
+ ;; EXTENSIONS dictionary. This is upstream’s preferred way.
+ (call-with-output-file "imagecodecs_distributor_setup.py"
+ (lambda (port)
+ (format port "\
def customize_build(EXTENSIONS, OPTIONS):
- del EXTENSIONS['aec']
- del EXTENSIONS['avif']
- del EXTENSIONS['bitshuffle']
- del EXTENSIONS['deflate']
- del EXTENSIONS['jpeg2k']
- del EXTENSIONS['jpeg12']
- del EXTENSIONS['jpegls']
- del EXTENSIONS['jpegxl']
- del EXTENSIONS['jpegxr']
- del EXTENSIONS['lerc']
- del EXTENSIONS['ljpeg']
- del EXTENSIONS['lzf']
- del EXTENSIONS['zfp']
- del EXTENSIONS['zopfli']
- OPTIONS['cythonize']
-")))))
- ;; XXX: The installed scripts import packages that depend on
- ;; this package; disable import check to avoid the cycle.
- (delete 'sanity-check))))
+~{ del EXTENSIONS[~s]~%~}~%"
+ (list "apng" "lzo" "tiff" ; FIXME Wrong version?
+ ;; Those rely on unpackaged inputs.
+ "aec" "avif" "bitshuffle" "brunsli" "deflate"
+ "jetraw" "jpeg2k" "jpegls" "jpegxl" "jpegxr"
+ "jpegxs" "lerc" "ljpeg" "lzf" "lzham" "mozjpeg"
+ "pcodec" "sperr" "sz3" "szip" "ultrahdr" "zfp"
+ "zlibng" "zopfli"))))))
+ (add-after 'unpack 'fix-sanity-check
+ (lambda _
+ ;; XXX: Don't exit twice. The generated script already does that.
+ (substitute* "imagecodecs/__main__.py"
+ (("sys\\.exit\\(main\\(\\)\\)")
+ ""))))
+ (add-before 'check 'configure-tests
+ (lambda _
+ (setenv "HOME" (getcwd)))))))
(inputs
- (list c-blosc
- giflib
- brotli
- libjpeg-turbo
- libpng
- libtiff
- libwebp
- lz4
- snappy
- xz
- zlib
- `(,zstd "lib")))
+ (list c-blosc
+ giflib
+ brotli
+ lcms
+ libheif
+ libjpeg-turbo
+ libpng
+ libtiff
+ libwebp
+ lz4
+ lzfse
+ python-blosc2
+ snappy
+ xz
+ zlib
+ `(,zstd "lib")))
(propagated-inputs
- ;; For the Python library.
- (list python-numpy))
+ (list python-numpy python-matplotlib python-tifffile))
(native-inputs
- ;; For building.
- (list python-cython
- ;; For testing. Incomplete.
- ;("python-numcodecs" ,python-numcodecs)
- ;("python-zarr" ,python-zarr)
- ;("python-pytest" ,python-pytest)
- ))
+ (list python-cython python-pytest python-setuptools))
(home-page "https://www.lfd.uci.edu/~gohlke/")
- (synopsis
- "Image transformation, compression, and decompression codecs")
+ (synopsis "Image transformation, compression, and decompression codecs")
(description
- "Imagecodecs is a Python library that provides block-oriented, in-memory
+ "Imagecodecs is a Python library that provides block-oriented, in-memory
buffer transformation, compression, and decompression functions for use in the
tifffile, czifile, and other scientific image input/output modules.")
(license license:bsd-3)))
@@ -12534,46 +12631,61 @@ tifffile, czifile, and other scientific image input/output modules.")
(version "3.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "property-manager" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/xolox/python-property-manager")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0m3w4spr8f39xnm65naw29ncal4r453kn7ndqb63rwbsmslnvrwk"))))
- (build-system python-build-system)
- (native-inputs
- (list python-pytest-cov))
+ (base32 "1v7hjm7qxpgk92i477fjhpcnjgp072xgr8jrgmbrxfbsv4cvl486"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools))
(propagated-inputs
(list python-verboselogs
python-humanfriendly
python-coloredlogs))
(home-page "https://github.com/xolox/python-property-manager")
(synopsis "Useful property variants for Python programming")
- (description "The @code{property-manager} package defines several custom
-property variants for Python programming including required properties,
-writable properties, cached properties, etc.")
- (license license:expat))) ; MIT license
+ (description
+ "The @code{property-manager} package defines several custom property
+variants for Python programming including required properties,writable
+properties, cached properties, etc.")
+ (license license:expat)))
(define-public python-executing
(package
(name "python-executing")
- (version "2.1.0")
+ (version "2.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "executing" version))
(sha256
- (base32 "1axrwh7kr7nshzjw6vj9w9hn3rqh9af2c257ll7iba0d4vfpv8lf"))))
+ (base32 "0mb74ajjfhzscvwxr9qazjs2q7il2fvyicm7s58jbzh8h418q42x"))))
(build-system pyproject-build-system)
(arguments
(list
- ;; AssertionError: assert 'test failure' in ''
- #:test-flags #~(list "-k" "not test_two_statement_lookups")))
+ #:test-flags
+ ;; Test needs IPython
+ #~(list "-k" "not test_two_statement_lookups")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ (lambda _
+ ;; See: <https://github.com/alexmojaki/executing/issues/99>.
+ (substitute* "pyproject.toml"
+ (("ignore_missing_imports = true.*")
+ "ignore_missing_imports = true
+
+[tool.pytest.ini_options]
+python_functions = \"test_\"\n")))))))
(native-inputs
(list python-asttokens
python-littleutils
python-pytest
+ python-rich
python-setuptools
python-setuptools-scm
- python-toml
python-wheel))
(home-page "https://github.com/alexmojaki/executing")
(synopsis "Get information about what a Python frame is currently doing")
@@ -12587,13 +12699,17 @@ currently doing, particularly the AST node being executed.")
(version "23.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "executor" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/xolox/python-executor")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0g83yr54j0vcwhy6h7n0jsd7q0q630kwa6v9kqzlzrm9xj6c3ip1"))))
- (build-system python-build-system)
+ (base32 "1mr0662c5l5zx0wjapcprp8p2xawfd0im3616df5sgv79fqzwfqs"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ; TODO: tests require root/sudo
+ (list #:tests? #f)) ;TODO: tests require root/sudo
+ (native-inputs (list python-mock python-pytest python-setuptools))
(propagated-inputs
(list python-six
python-property-manager
@@ -12601,27 +12717,27 @@ currently doing, particularly the AST node being executed.")
python-virtualenv))
(home-page "https://github.com/xolox/python-executor")
(synopsis "Programmer friendly subprocess wrapper")
- (description "The @code{executor} package is a simple wrapper for Python’s
-subprocess module that makes it very easy to handle subprocesses on UNIX
-systems with proper escaping of arguments and error checking currently doing,
-particularly the AST node being executed.")
- (license license:expat))) ; MIT license
+ (description
+ "The @code{executor} package is a simple wrapper for Python’s subprocess
+module that makes it very easy to handle subprocesses on UNIX systems with
+proper escaping of arguments and error checking currently doing, particularly
+the AST node being executed.")
+ (license license:expat)))
(define-public python-roifile
(package
(name "python-roifile")
- (version "2020.11.28")
+ (version "2025.5.10")
(source
(origin
(method url-fetch)
(uri (pypi-uri "roifile" version))
(sha256
- (base32
- "04argnc7qccybkrj9ww18bf81ghsghhh93hnqy3p111rcdlyn66p"))))
- (build-system python-build-system)
- (arguments `(#:tests? #f)) ; there are none
- (propagated-inputs
- (list python-numpy))
+ (base32 "1kiwylcmxckzrqj3xn5ljcjfyx6y2s8bnqjd5psmkb4mjrwiypcf"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ; There are none.
+ (native-inputs (list python-setuptools))
+ (propagated-inputs (list python-numpy))
(home-page "https://www.lfd.uci.edu/~gohlke/")
(synopsis "Read and write ImageJ ROI format")
(description "Roifile is a Python library to read, write, create, and plot
@@ -12632,29 +12748,43 @@ regions of interest, geometric shapes, paths, text, etc for image overlays.")
(define-public python-tifffile
(package
(name "python-tifffile")
- (version "2023.12.9")
+ (version "2025.10.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tifffile" version))
(sha256
- (base32
- "1f6d8qdlq0zlksfdhp1mhj9icpwhw4cz47r4i80m6r0a328xmlcx"))))
- (build-system python-build-system)
+ (base32 "0f1ybmr2jz19gjg92p9vz3qib49m0x4ipxvrvjyfa6r1mcb7qhrf"))))
+ (build-system pyproject-build-system)
;; Tests require lfdfiles, which depends on tifffile
- (arguments `(#:tests? #f))
+ (arguments (list #:tests? #f))
(propagated-inputs
(list python-numpy))
(native-inputs
- (list python-pytest))
+ (list python-setuptools))
(home-page "https://www.lfd.uci.edu/~gohlke/")
(synopsis "Read and write TIFF(r) files")
- (description "This package lets you read image and metadata from many
-bio-scientific formats such as plain TIFF, BigTIFF, OME-TIFF, STK, LSM, SGI,
-NIH, ImageJ, MicroManager, MD GEL, and FluoView files. It also lets you write
-numpy arrays to TIFF, BigTIFF, and ImageJ hyperstack compatible files.")
+ (description
+ "This package lets you read image and metadata from many bio-scientific
+formats such as plain TIFF, BigTIFF, OME-TIFF, STK, LSM, SGI,NIH, ImageJ,
+MicroManager, MD GEL, and FluoView files. It also lets you write numpy arrays
+to TIFF, BigTIFF, and ImageJ hyperstack compatible files.")
(license license:bsd-3)))
+(define-public python-tifffile-for-dask-image
+ ;; It's for python-dask-image@2024.5.3, remove when no longer required.
+ (hidden-package
+ (package
+ (inherit python-tifffile)
+ (name "python-tifffile")
+ (version "2023.12.9")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "tifffile" version))
+ (sha256
+ (base32 "1f6d8qdlq0zlksfdhp1mhj9icpwhw4cz47r4i80m6r0a328xmlcx")))))))
+
(define-public python-tiktoken
(package
(name "python-tiktoken")
@@ -12669,12 +12799,6 @@ numpy arrays to TIFF, BigTIFF, and ImageJ hyperstack compatible files.")
(arguments
(list
#:install-source? #false
- #:cargo-inputs
- (list rust-pyo3-0.22
- rust-fancy-regex-0.13
- rust-regex-1
- rust-rustc-hash-1
- rust-bstr-1)
#:imported-modules
(append %pyproject-build-system-modules
%cargo-build-system-modules)
@@ -12698,6 +12822,7 @@ numpy arrays to TIFF, BigTIFF, and ImageJ hyperstack compatible files.")
(replace 'install
(assoc-ref py:%standard-phases 'install)))))
(propagated-inputs (list python-regex python-requests))
+ (inputs (cargo-inputs 'python-tiktoken))
(native-inputs
(list python-setuptools
python-setuptools-rust
@@ -12713,26 +12838,22 @@ numpy arrays to TIFF, BigTIFF, and ImageJ hyperstack compatible files.")
(define-public python-lfdfiles
(package
(name "python-lfdfiles")
- (version "2021.2.22")
+ (version "2025.9.17")
(source
(origin
(method url-fetch)
(uri (pypi-uri "lfdfiles" version))
(sha256
- (base32
- "12fxm4v805dgjrih7x6jnl1wd7y7jw1rkhjs3d4am8s6qk1cbar2"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- ;; Delete pre-generated Cython files.
- (for-each delete-file (find-files "lfdfiles" "_.*\\.c$"))
- #t))))
- (build-system python-build-system)
+ (base32 "0b363vv146icsn86gxc04grq2d5r7xzzabr03xsc7aq9wybgvgqp"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Delete pre-generated Cython files.
+ #~(for-each delete-file (find-files "lfdfiles" "_.*\\.c$")))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ; No tests exist, despite a test dependency on pytest.
- (propagated-inputs
- (list python-click python-numpy python-tifffile))
- (native-inputs (list python-cython))
+ (list #:tests? #f)) ; No tests, despite a test dependency on pytest.
+ (native-inputs (list python-setuptools))
+ (propagated-inputs (list python-click python-numpy python-tifffile))
(home-page "https://www.lfd.uci.edu/~gohlke/")
(synopsis "Work with LFD data files")
(description
@@ -12829,10 +12950,9 @@ experimental data and metadata at the Laboratory for Fluorescence Dynamics.")
python-numpy
python-pillow
python-pytest
- python-setuptools-next
+ python-setuptools
python-wheel))
- (inputs
- (list ffmpeg-7))
+ (inputs (list ffmpeg))
(home-page "https://github.com/PyAV-Org/PyAV")
(synopsis "Pythonic bindings for FFmpeg's libraries")
(description
@@ -12897,33 +13017,39 @@ arguments. It handles arbitrarily large (directed-acyclic) signal graphs.")
(define-public python-imageio-ffmpeg
(package
- (name "python-imageio-ffmpeg")
- (version "0.5.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "imageio-ffmpeg" version))
- (sha256
- (base32
- "0k284r1xsdp5h1s4k6nfsfzbkphf8g6r2llwjafhq2sn3yrskmqf"))))
- (arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'hardcode-ffmpeg
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "imageio_ffmpeg/_utils.py"
- (("os\\.getenv\\(\"IMAGEIO_FFMPEG_EXE\".*\\)" all)
- (string-append "(" all " or \""
- (search-input-file inputs "bin/ffmpeg")
- "\")"))))))))
- (inputs (list ffmpeg))
- (native-inputs (list python-setuptools python-wheel))
- (build-system python-build-system)
- (home-page "https://github.com/imageio/imageio-ffmpeg")
- (synopsis "FFMPEG wrapper for Python")
- (description "This package provides an FFMPEG wrapper for working with video
-files. It implements generator functions for reading and writing data to and
-from FFMPEG, reliably terminating the process when done.")
- (license license:bsd-2)))
+ (name "python-imageio-ffmpeg")
+ (version "0.6.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "imageio_ffmpeg" version))
+ (sha256
+ (base32 "0m8ppa4ap5vnic3jb25hsrq2gn0283x7mfr5z6ln8m80ivnnnmg2"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #f ;XXX: tests requrie network access to get FFmpeg data
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'hardcode-ffmpeg
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "imageio_ffmpeg/_utils.py"
+ (("os\\.getenv\\(\"IMAGEIO_FFMPEG_EXE\".*\\)" all)
+ (string-append "(" all " or \""
+ (search-input-file inputs "bin/ffmpeg")
+ "\")"))))))))
+ (native-inputs
+ (list python-setuptools
+ python-wheel))
+ (inputs
+ (list ffmpeg))
+ (home-page "https://github.com/imageio/imageio-ffmpeg")
+ (synopsis "FFMPEG wrapper for Python")
+ (description
+ "This package provides an FFMPEG wrapper for working with video files.
+It implements generator functions for reading and writing data to and from
+FFMPEG, reliably terminating the process when done.")
+ (license license:bsd-2)))
(define-public python-imageio-freeimage
(package
@@ -13029,7 +13155,6 @@ data, and scientific formats.")
(build-system pyproject-build-system)
(native-inputs
(list pkg-config
- python-pyperf
python-pytest
python-setuptools
python-wheel))
@@ -13044,36 +13169,39 @@ a multithreaded image-processing system with low memory needs.")
(license license:expat)))
;; WARNING: This package is a dependency of mesa.
+;; There are no users in python-xyz for this package, consider to adopt closer
+;; to Mesa.
(define-public python-pycparser
(package
(name "python-pycparser")
- (version "2.21")
+ (version "2.22")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pycparser" version))
- (sha256
- (base32
- "01kjlyn5w2nn2saj8w1rhq7v26328pd91xwgqn32z1zp2bngsi76"))))
+ (method url-fetch)
+ (uri (pypi-uri "pycparser" version))
+ (sha256
+ (base32
+ "1xhhxjg460f70ldki4prxmb7zl1bfl3mnjplbc7kkxa0q3lqn729"))))
(outputs '("out" "doc"))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "python" "-m" "unittest" "discover")))
- (add-after 'install 'install-doc
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
- (doc (string-append data "/doc/" ,name "-" ,version))
- (examples (string-append doc "/examples")))
- (mkdir-p examples)
- (for-each (lambda (file)
- (copy-file (string-append "." file)
- (string-append doc file)))
- '("/README.rst" "/CHANGES" "/LICENSE"))
- (copy-recursively "examples" examples)))))))
+ (list
+ #:test-backend #~'unittest
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'install-doc
+ (lambda _
+ (let* ((data (string-append #$output:doc "/share"))
+ (doc (string-append data "/doc/" #$name "-" #$version))
+ (examples (string-append doc "/examples")))
+ (mkdir-p examples)
+ (for-each (lambda (file)
+ (copy-file (string-append "." file)
+ (string-append doc file)))
+ '("/README.rst" "/CHANGES" "/LICENSE"))
+ (copy-recursively "examples" examples)))))))
+ (native-inputs
+ (list python-setuptools))
(home-page "https://github.com/eliben/pycparser")
(synopsis "C parser in Python")
(description
@@ -13083,32 +13211,25 @@ a front-end for C compilers or analysis tools.")
(license license:bsd-3)))
(define-public python2-pycparser
- (package-with-python2 python-pycparser))
-
-(define-public python-xlsxwriter
- (package
- (name "python-xlsxwriter")
- (version "3.2.0")
- (source
- (origin
- ;; There are no tests in the PyPI tarball.
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/jmcnamara/XlsxWriter")
- (commit (string-append "RELEASE_" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1g16xb4nsjd807qcm8756ixlxxvdjmbr2v7r6wxkajw1h4m8id0w"))))
- (build-system pyproject-build-system)
- (native-inputs
- (list python-setuptools
- python-wheel))
- (home-page "https://github.com/jmcnamara/XlsxWriter")
- (synopsis "Python module for creating Excel XLSX files")
- (description
- "XlsxWriter is a Python module that can be used to write text, numbers,
-formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.")
- (license license:bsd-2)))
+ (let ((base (package
+ (inherit python-pycparser)
+ (version "2.18")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pycparser" version))
+ (sha256
+ (base32
+ "09mjyw82ibqzl449g7swy8bfxnfpmas0815d2rkdjlcqw81wma4r"))))
+ ;; FIXME: package-with-python2 needs to be updated to accept
+ ;; pyproject-build-system packages.
+ (build-system python-build-system)
+ (arguments
+ (cons* #:tests? #f
+ (strip-keyword-arguments
+ '(#:test-backend)
+ (package-arguments python-pycparser)))))))
+ (package-with-python2 base)))
(define-public python-pywavelets
(package
@@ -13165,15 +13286,17 @@ localized only in frequency instead of in time and frequency.")
(file-name (git-file-name name version))
(sha256
(base32 "039m7dch479hlwddynacdrr0klz6a5bdly5swqbs94hfimficiyf"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-home-directory
(lambda _
;; Tests fail with "Permission denied: '/homeless-shelter'".
- (setenv "HOME" "/tmp")
- #t)))))
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
(inputs
(list imagemagick))
(home-page "https://github.com/dylanaraps/pywal")
@@ -13184,6 +13307,35 @@ in an image. It then applies the colors system-wide and on-the-fly in all of
your favourite programs.")
(license license:expat)))
+(define-public python-pywal16
+ (package
+ (name "python-pywal16")
+ (version "3.8.10")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pywal16" version))
+ (sha256
+ (base32 "0836ya6zw0dglh0yldd9apsfvh5f9cxvmy8nc7aw2w8s491yancf"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (add-before 'check 'set-HOME
+ (lambda _ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list imagemagick
+ python-pytest
+ python-setuptools))
+ (home-page "https://github.com/eylles/pywal16")
+ (synopsis "16 colors fork of pywal")
+ (description
+ "Pywal16 is a tool that generates a color palette from the dominant
+colors in an image. It then applies the colors system-wide and on-the-fly in
+all of your favorite programs.")
+ (license license:expat)))
+
(define-public python-click-didyoumean
(package
(name "python-click-didyoumean")
@@ -13354,24 +13506,28 @@ PNG, PostScript, PDF, and SVG file output.")
(define-public python-decorator
(package
(name "python-decorator")
- (version "5.0.9")
+ (version "5.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "decorator" version))
(sha256
- (base32 "1mcy64hllgm938v8k1x2a4g0q9swsnrfnsvhz59kr28a6ajgpv3j"))))
- (build-system python-build-system)
+ (base32 "0q03vavcj2hxnv6006wiqnw7bbqq8rpw90yclyq39xsj6wa6dwk5"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "tests/test.py")))
+ (native-inputs
+ (list python-setuptools))
(home-page "https://pypi.org/project/decorator/")
(synopsis "Python module to simplify usage of decorators")
(description
- "The aim of the decorator module is to simplify the usage of decorators
+ "The aim of the decorator module is to simplify the usage of decorators
for the average programmer, and to popularize decorators usage giving examples
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
etc. The core of this module is a decorator factory.")
(license license:expat)))
-
(define-public python-drmaa
(package
(name "python-drmaa")
@@ -13433,10 +13589,10 @@ memoizing PEG/Packrat parser in Python.")
(define-public python-grandalf
(package
(name "python-grandalf")
- (version "0.7")
+ ;; `guix refresh` will try to upgrade to v0.55555, but that is older.
+ (version "0.8")
(source
(origin
- ;; There's no source tarball on PyPI.
(method git-fetch)
(uri (git-reference
(url "https://github.com/bdcht/grandalf")
@@ -13444,16 +13600,18 @@ memoizing PEG/Packrat parser in Python.")
(file-name (git-file-name name version))
(sha256
(base32
- "03p8w8ljpb87qbyldm3s6b7qi30hfcn43h33iwlgqcf31fjsyr4g"))))
- (build-system python-build-system)
+ "199f86hz3g4p237ma4j27rzwmska3bxzsbgq20i4l4pczf9v7ax0"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "python" "setup.py" "pytest"))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'patch-requirements
+ (lambda _
+ (substitute* "setup.py"
+ (("install_requires=\\['pyparsing'],") "")))))))
(native-inputs
- (list python-pytest python-pytest-runner))
+ (list python-setuptools python-pytest))
(propagated-inputs
(list python-numpy python-ply))
(home-page "https://github.com/bdcht/grandalf")
@@ -13561,7 +13719,7 @@ displayed.")
(base32 "0bmpd7qxcvin8szblilxmw50v7mygf6a6i180h82123s893gk092"))))
(build-system pyproject-build-system)
(native-inputs
- (list python-setuptools python-wheel))
+ (list python-pytest python-setuptools))
(home-page "https://www.hsluv.org")
(synopsis "Human-friendly HSL colour space implemented in Python")
(description
@@ -13722,79 +13880,24 @@ all the newest features of the standard @code{pathlib} can be used also on
older Python versions.")
(license license:expat)))
-(define-public python-pathy
- (package
- (name "python-pathy")
- (version "0.10.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "pathy" version))
- (sha256
- (base32
- "12v196q3rai33cfzrmb9pqfqv7ailngssjdrzdf8gzym9hdygmjc"))))
- (build-system pyproject-build-system)
- (propagated-inputs
- (list python-smart-open python-typer))
- (native-inputs (list python-mock python-pytest python-setuptools
- python-wheel))
- (home-page "https://github.com/justindujardin/pathy")
- (synopsis "Path interface for local and cloud bucket storage")
- (description "Pathy is a python package (with type annotations) for
-working with Cloud Bucket storage providers using a @code{pathlib} interface.
-It provides @code{pathlib.Path} subclasses for local and cloud bucket
-storage.")
- (license license:asl2.0)))
-
(define-public python-importlib-resources
(package
(name "python-importlib-resources")
- (version "5.12.0")
+ (version "6.5.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "importlib_resources" version))
(sha256
(base32
- "1xi2ggdfdj1bg7w728lvy6j3rjqhklalaanzmscpj7awpy4jbs2b"))))
+ "0b7dizkjyjpwqm2dsmb40fy7iskwl3xv93yr9622ik2vxynqfpqq"))))
(build-system pyproject-build-system)
- (arguments
- (list
- #:phases
- '(modify-phases %standard-phases
- ;; The build system insists on ignoring the existing environment and
- ;; running "pip install".
- (add-after 'unpack 'do-not-use-pip-install
- (lambda _
- (substitute* "pyproject.toml"
- (("^build-backend.*") "\
-build-backend = \"backend\"
-backend_path = [\"_custom_build\"]\n")
- (("requires = .*") "requires = []\n"))
- (mkdir-p "_custom_build")
- (with-output-to-file "_custom_build/backend.py"
- (lambda _
- (display "\
-from setuptools import build_meta as _orig
-from setuptools.build_meta import *
-def get_requires_for_build_wheel(config_settings=None):
- return []
-def get_requires_for_build_sdist(config_settings=None):
- return []
-")))
- (setenv "PYTHONPATH"
- (string-append (getcwd) "/_custom_build")))))))
(native-inputs
- (list python-flake8
+ (list python-jaraco-test
+ python-jaraco-collections
python-pytest
- python-pytest-black
- python-pytest-checkdocs
- python-pytest-cov
- python-pytest-enabler
- python-pytest-flake8
- python-pytest-mypy
python-setuptools
- python-setuptools-scm))
- (propagated-inputs
- (list python-zipp))
+ python-setuptools-scm
+ python-zipp))
(home-page "https://importlib-resources.readthedocs.io/")
(synopsis "Read resources from Python packages")
(description
@@ -13805,41 +13908,26 @@ def get_requires_for_build_sdist(config_settings=None):
(define-public python-importlib-metadata
(package
(name "python-importlib-metadata")
- (version "5.2.0")
+ (version "8.7.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "importlib_metadata" version))
(sha256
(base32
- "1kf7qclcz820xl5wwjpzcwpfy6shj7ymwh4xzxvpl2xs5gb4hka0"))))
- (build-system python-build-system)
+ "004h71gl22rg57wxd0hgy72pdksn62ng4waldjhhm29v4anq2fyi"))))
+ (build-system pyproject-build-system)
(arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- ;; XXX: PEP 517 manual build/install procedures copied from
- ;; python-isort.
- (replace 'build
- (lambda _
- ;; ZIP does not support timestamps before 1980.
- (setenv "SOURCE_DATE_EPOCH" "315532800")
- (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((whl (car (find-files "dist" "\\.whl$"))))
- (invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--no-deps" "--prefix" #$output whl))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv" "tests")))))))
- (propagated-inputs (list python-zipp))
+ (list #:test-flags #~(list "tests")))
(native-inputs
- (list python-pypa-build
+ (list python-jaraco-test
+ python-packaging-bootstrap
python-pyfakefs
- python-pytest
+ python-pytest-bootstrap
+ python-setuptools
python-setuptools-scm))
+ (propagated-inputs
+ (list python-zipp))
(home-page "https://importlib-metadata.readthedocs.io/")
(synopsis "Read metadata from Python packages")
(description
@@ -13923,28 +14011,22 @@ enforced method signatures and consistent documentation.")
(define-public python-jaraco-classes
(package
(name "python-jaraco-classes")
- (version "3.2.1")
+ (version "3.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jaraco.classes" version))
(sha256
- (base32 "0d6g7qvfv1jlzbzh6asprqdblqd59grvlvr3nwbdqdqrmwlbfm7d"))))
+ (base32 "1k9s7wxhsy15730qab8bry7kpgl4yk3wch45ikfw0f823nsj9827"))))
(build-system pyproject-build-system)
(arguments
(list ; Do not test the myproject.toml build as it pulls dependencies.
#:test-flags '(list "-k" "not project")))
(native-inputs
(list python-pytest
- python-pytest-black
- python-pytest-checkdocs
- python-pytest-cov
- python-pytest-flake8
- python-pytest-mypy
- python-setuptools
- python-setuptools-scm
- python-wheel))
- (propagated-inputs (list python-more-itertools))
+ python-setuptools))
+ (propagated-inputs
+ (list python-more-itertools))
(home-page "https://github.com/jaraco/jaraco.classes")
(synopsis "Utility functions for Python class constructs")
(description "This Python library contains utility functions for Python
@@ -13954,29 +14036,25 @@ class constructs.")
(define-public python-jaraco-collections
(package
(name "python-jaraco-collections")
- (version "5.0.0")
+ (version "5.2.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "jaraco.collections" version))
+ (uri (pypi-uri "jaraco_collections" version))
(sha256
- (base32 "0s7y3jr7c173k38pck1b17kxnvx2fl0qh9m9gdf64pr9kz8fi00n"))))
+ (base32 "1v8qza70spm4d822bm7wq3j2cyd33nqg2i87n99spw6np9q1kf6s"))))
(build-system pyproject-build-system)
;; Do not test pyproject.toml with python-pytest-checkdocs as it tries to
;; download dependencies.
(arguments
'(#:test-flags '("-k" "not project")))
- (propagated-inputs (list python-jaraco-text))
- ;; TODO: Add python-pytest-ruff to native-inputs once it has been
- ;; packaged.
- (native-inputs (list python-pytest
- python-pytest-black
- python-pytest-checkdocs
- python-pytest-cov
- python-pytest-enabler
- python-pytest-mypy
- python-setuptools
- python-wheel))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
+ (propagated-inputs
+ (list python-jaraco-text))
(home-page "https://github.com/jaraco/jaraco.collections")
(synopsis "Provides various collection objects")
(description
@@ -14017,28 +14095,22 @@ WeightedLookup: A specialized RangeMap for selecting an item by weights.
(define-public python-jaraco-context
(package
(name "python-jaraco-context")
- (version "4.1.1")
+ (version "6.0.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "jaraco.context" version))
+ (uri (pypi-uri "jaraco_context" version))
(sha256
- (base32 "0hbjm1rpxf4pzmbdp9rh3ali4zqnlcr8m97bhh1nizxvzcpxim7h"))))
+ (base32 "1cyija3n4481r1ykxdx342m07lrfyg4ygbn0in9i82yganjlxblv"))))
(build-system pyproject-build-system)
(arguments
- (list #:tests? (not (%current-target-system))
- ;; Do not test the myproject.toml build as it pulls dependencies.
- #:test-flags '(list "-k" "not project")))
+ (list #:tests? #f)) ;no tests in PyPI archive and Git checkout
(native-inputs
- (list python-pytest
- python-pytest-black
- python-pytest-checkdocs
- python-pytest-cov
- python-pytest-flake8
- python-pytest-mypy
- python-setuptools
+ (list python-setuptools
python-setuptools-scm
python-wheel))
+ (propagated-inputs
+ (list python-backports-tarfile))
(home-page "https://github.com/jaraco/jaraco.context")
(synopsis "Context managers Python library")
(description "This Python library provides context managers-related
@@ -14048,13 +14120,13 @@ procedures.")
(define-public python-jaraco-functools
(package
(name "python-jaraco-functools")
- (version "3.5.0")
+ (version "4.2.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "jaraco.functools" version))
+ (uri (pypi-uri "jaraco_functools" version))
(sha256
- (base32 "186xqzs3bqhjwajnprxy3sc3h0w5vdld8spc1dxjnn9720yykq1i"))))
+ (base32 "0lvk12qbl5zd1ikr6xzflj1jcs3vwgmwgy2k63x5dkmbrjzllqxy"))))
(build-system pyproject-build-system)
(arguments
(list #:tests? (not (%current-target-system))
@@ -14066,11 +14138,6 @@ procedures.")
(native-inputs
(list python-jaraco-classes
python-pytest
- python-pytest-black
- python-pytest-checkdocs
- python-pytest-cov
- python-pytest-flake8
- python-pytest-mypy
python-setuptools
python-setuptools-scm
python-wheel))
@@ -14084,26 +14151,25 @@ module with a few extra procedures.")
(define-public python-jaraco-packaging
(package
(name "python-jaraco-packaging")
- (version "6.1")
+ (version "9.4.0") ;the latest version compatible with python-pypa-build@0.9.0
(source
(origin
(method url-fetch)
(uri (pypi-uri "jaraco.packaging" version))
(sha256
(base32
- "0zimrnkh33b9g8ffw11mjh6kvs54cy5gcjw1h5cl1r7dc833dmkm"))))
+ "1djpwmw2gmb6i9by1bc4lh4qlkvifgsqfj5alb9xz7pa80fcm416"))))
(build-system pyproject-build-system)
(arguments
- (list #:test-flags
- '(list "-k" "not project and not test_revived_distribution")))
+ (list #:tests? #f)) ;no tests in PyPI archive
+ (native-inputs
+ (list python-setuptools
+ python-setuptools-scm))
(propagated-inputs
- (list python-pytest
- python-pytest-checkdocs
- python-pytest-flake8
- python-rst.linker
- python-setuptools
- python-setuptools-scm
- python-six
+ (list python-pypa-build
+ python-virtualenv
+ python-domdf-python-tools
+ python-jaraco-context
python-sphinx))
(home-page "https://github.com/jaraco/jaraco.packaging")
(synopsis "Tools to supplement packaging Python releases")
@@ -14112,6 +14178,35 @@ module with a few extra procedures.")
releases.")
(license license:expat)))
+(define-public python-jaraco-path
+ (package
+ (name "python-jaraco-path")
+ (version "3.7.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jaraco/jaraco.path")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "12bj9za1yp0yn0ppya6a4kwgmh7hvmw64x7ivp4y0sbv20r0vfdq"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+ (native-inputs
+ (list python-pytest python-setuptools python-setuptools-scm))
+ (home-page "https://github.com/jaraco/jaraco.path")
+ (synopsis "Miscellaneous path functions")
+ (description
+ "This package provides miscellaneous path functions for Python.")
+ (license license:expat)))
+
(define-public python-jaraco-test
(package
(name "python-jaraco-test")
@@ -14126,14 +14221,11 @@ releases.")
(arguments
(list #:test-flags '(list "-k" "http")))
(native-inputs
- (list python-jaraco-collections
- python-pytest
- python-pytest-checkdocs
- python-pytest-enabler
- python-setuptools
- python-wheel))
+ (list python-pytest
+ python-setuptools))
(propagated-inputs
- (list python-jaraco-context
+ (list python-jaraco-collections
+ python-jaraco-context
python-jaraco-functools))
(home-page "https://github.com/jaraco/jaraco.test")
(synopsis "Testing support by jaraco")
@@ -14143,31 +14235,28 @@ releases.")
(define-public python-jaraco-text
(package
(name "python-jaraco-text")
- (version "3.12.0")
+ (version "4.0.0")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "jaraco.text" version))
+ (uri (pypi-uri "jaraco_text" version))
(sha256
- (base32 "0b2rmx0sa61f75lkkr4nfaj3mkgmn3x9c1akpwarfbmksk42b7iq"))))
+ (base32 "1c0dy5jvhigcyryi2h8n1m87dnhyxr7w01n9shwzkdlslv7gwwav"))))
(build-system pyproject-build-system)
;; Do not test pyproject.toml with python-pytest-checkdocs as it tries to
;; download dependencies.
(arguments
'(#:test-flags '("-k" "not project")))
- (propagated-inputs (list python-autocommand python-inflect
- python-jaraco-context python-jaraco-functools
- python-more-itertools))
- ;; TODO: Add python-pytest-ruff to native-inputs once it has been
- ;; packaged.
- (native-inputs (list python-pytest
- python-pytest-black
- python-pytest-checkdocs
- python-pytest-cov
- python-pytest-enabler
- python-pytest-mypy
- python-setuptools
- python-wheel))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-autocommand
+ python-inflect
+ python-jaraco-context
+ python-jaraco-functools
+ python-more-itertools))
(home-page "https://github.com/jaraco/jaraco.text")
(synopsis "Provides various routines for text manipulation")
(description
@@ -14177,6 +14266,78 @@ removal, line continuation, indentation, comment processing, identifier
processing, values parsing, case insensitive comparison, and more.")
(license license:expat)))
+(define-public python-jaraco-vcs
+ (package
+ (name "python-jaraco-vcs")
+ (version "2.4.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference (url "https://github.com/jaraco/jaraco.vcs")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256 (base32 "1n9f0l4zp8dbbq2ha93bd9z6gb9y7gsmbd4jkl5gcm51qpsq4vpm"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; Ignore doctests.
+ #~(list "--ignore-glob=jaraco/vcs/*.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+ (propagated-inputs (list python-jaraco-classes
+ python-jaraco-path
+ python-jaraco-versioning
+ python-more-itertools
+ python-packaging
+ python-dateutil
+ python-tempora))
+ (native-inputs (list python-pygments
+ python-pytest
+ python-pytest-home
+ python-setuptools
+ python-setuptools-scm))
+ (home-page "https://github.com/jaraco/jaraco.vcs")
+ (synopsis "Utilities for working with VCS repositories")
+ (description
+ "This package provides facilities for working with VCS repositories in
+Python.")
+ (license license:expat)))
+
+(define-public python-jaraco-versioning
+ (package
+ (name "python-jaraco-versioning")
+ (version "1.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jaraco/jaraco.versioning")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "12svnpa5sl3r5lci9bybzy5gb8pd4clfkl65x5hsap00ada2w91r"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+ (propagated-inputs (list python-packaging))
+ (native-inputs
+ (list python-pytest python-setuptools python-setuptools-scm))
+ (home-page "https://github.com/jaraco/jaraco.versioning")
+ (synopsis "Version manipulation utils")
+ (description
+ "This package builds upon @code{python-packaging} to provide more
+sophisticated version manipulation.")
+ (license license:expat)))
+
(define-public python-pypytools
(package
(name "python-pypytools")
@@ -14233,8 +14394,10 @@ standard library.")
(uri (pypi-uri "ipython_genutils" version))
(sha256
(base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments `(#:tests? #f)) ; no tests
+ (native-inputs
+ (list python-setuptools))
(home-page "https://ipython.org")
(synopsis "Vestigial utilities from IPython")
(description
@@ -14433,13 +14596,15 @@ without using the configuration machinery.")
(version "1.8.0")
(source
(origin
- (method git-fetch) ; no tests in PyPI
+ (method git-fetch)
(uri (git-reference
(url "https://github.com/caesar0301/treelib")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0jd3rdaq8v7ykb626cm1gxa03higqnn2pmnv46fc0lc55xbrkxlf"))))
+ (base32 "0jd3rdaq8v7ykb626cm1gxa03higqnn2pmnv46fc0lc55xbrkxlf"))
+ (patches
+ (search-patches "python-treelib-remove-python2-compat.patch"))))
(build-system pyproject-build-system)
(native-inputs (list python-poetry-core python-pytest))
(home-page "https://github.com/caesar0301/treelib")
@@ -14497,53 +14662,51 @@ container data structures in Python).")
(arguments
(list
#:test-flags
- '(list "-k"
- (string-append
- ;; XXX: These tests fail with "ModuleNotFoundError: No
- ;; module named 'jupyter_core'".
- "not test_argv0"
- " and not test_path_priority "
- " and not test_not_on_path"
-
- ;; These fail with: An incompatible sibling of 'AsyncTornadoApp'
- ;; is already instantiated as singleton: SyncTornadoApp
- " and not test_async_app"
- " and not test_async_tornado_app"
-
- ;; Fails with a deprecation warning
- " and not test_sync_tornado_run"))
+ #~(list "-k" (string-join
+ ;; XXX: These tests fail with "ModuleNotFoundError: No
+ ;; module named 'jupyter_core'".
+ (list "not test_argv0"
+ "test_path_priority "
+ "test_not_on_path"
+ ;; These fail with: An incompatible sibling of
+ ;; 'AsyncTornadoApp' is already instantiated as
+ ;; singleton: SyncTornadoApp
+ "test_async_app"
+ "test_async_tornado_app"
+ ;; Fails with a deprecation warning
+ "test_sync_tornado_run"
+ ;; Expecting pip in the PATH.
+ "test_troubleshoot")
+ " and not "))
#:phases
- '(modify-phases %standard-phases
- (add-before 'check 'pre-check
- ;; Some tests write to $HOME.
- (lambda _ (setenv "HOME" "/tmp")))
- ;; Migration is running whenever etc/jupyter exists, but the
- ;; Guix-managed directory will never contain any migratable IPython
- ;; config files and cannot be written to anyway, so just pretend we
- ;; already did that.
- (add-after 'install 'disable-migration
- (lambda* (#:key outputs #:allow-other-keys)
- (mkdir-p (string-append (assoc-ref outputs "out") "/etc/jupyter"))
- (invoke "touch"
- (string-append
- (assoc-ref outputs "out")
- "/etc/jupyter/migrated")))))))
- (propagated-inputs (list python-platformdirs python-traitlets))
- (native-inputs (list python-hatchling
- python-pip
- python-pre-commit
- python-pytest
- python-pytest-cov
- python-pytest-timeout))
+ #~(modify-phases %standard-phases
+ ;; Some tests write to $HOME.
+ (add-before 'check 'pre-check
+ (lambda _ (setenv "HOME" "/tmp")))
+ ;; Migration is running whenever etc/jupyter exists, but the
+ ;; Guix-managed directory will never contain any migratable IPython
+ ;; config files and cannot be written to anyway, so just pretend we
+ ;; already did that.
+ (add-after 'install 'disable-migration
+ (lambda _
+ (mkdir-p (string-append #$output "/etc/jupyter"))
+ (invoke "touch" (string-append #$output "/etc/jupyter/migrated")))))))
+ (native-inputs
+ (list python-hatchling
+ python-pytest
+ python-pytest-timeout))
+ (propagated-inputs
+ (list python-platformdirs
+ python-traitlets))
;; This package provides the `jupyter` binary and thus also exports the
;; search paths.
(native-search-paths
(list (search-path-specification
- (variable "JUPYTER_CONFIG_PATH")
- (files '("etc/jupyter")))
+ (variable "JUPYTER_CONFIG_PATH")
+ (files '("etc/jupyter")))
(search-path-specification
- (variable "JUPYTER_PATH")
- (files '("share/jupyter")))))
+ (variable "JUPYTER_PATH")
+ (files '("share/jupyter")))))
(home-page "https://jupyter.org/")
(synopsis "Jupyter base package")
(description
@@ -14768,13 +14931,13 @@ to Python code.")
(define-public python-asttokens
(package
(name "python-asttokens")
- (version "2.4.1")
+ (version "3.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "asttokens" version))
(sha256
- (base32 "182b4l8sys07a46icg68h7b3d8iqkzvgsjqkgq1fp9m9idqnjf5h"))))
+ (base32 "1ixv6n8cg08n9h6rwyhd3lkzyjiwpbfv56dk338w3c32inm8pk8d"))))
(build-system pyproject-build-system)
(native-inputs
(list python-astroid
@@ -14782,8 +14945,6 @@ to Python code.")
python-setuptools
python-setuptools-scm
python-wheel))
- (propagated-inputs
- (list python-six))
(home-page "https://github.com/gristlabs/asttokens")
(synopsis "Python library to annotate abstract syntax trees")
(description "The @code{asttokens} module annotates Python abstract syntax
@@ -14796,14 +14957,19 @@ for automated refactoring or highlighting.")
(define-public python-littleutils
(package
(name "python-littleutils")
- (version "0.2.2")
+ (version "0.2.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "littleutils" version))
(sha256
- (base32 "0vwijrylppmk0nbddqvn527r9cg3zw8d6zk6r58hslry42jf7jp6"))))
- (build-system python-build-system)
+ (base32 "069xlm6vp1rprgrl4gsg3fd2vg0nzdw7v2qij7i45v8c080mp0y7"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPIi archive or Git checkout
+ (native-inputs
+ (list python-setuptools
+ python-setuptools-scm
+ python-wheel))
(home-page "https://github.com/alexmojaki/littleutils")
(synopsis "Python utility function collection")
(description "@code{littleutils} is a small collection of Python utility
@@ -14823,6 +14989,13 @@ functions, useful in the context of writing unit tests among other uses.")
(build-system pyproject-build-system)
(arguments
(list
+ #:test-flags
+ #~(list "-k" (string-join
+ ;; XXX: Tests fail with HTML diff.
+ (list "not test_executing_style_defs"
+ "test_pygments_example"
+ "test_example")
+ " and not "))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'set-home-env
@@ -14851,7 +15024,7 @@ than the default.")
(define-public python-ipython
(package
(name "python-ipython")
- (version "8.29.0")
+ (version "8.37.0") ;it's the latest version in 8.*.* series
(source
(origin
(method git-fetch)
@@ -14860,14 +15033,21 @@ than the default.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "03yrq0wsi98y1v3rf7ai013xhv46i7167dccp1244sfvrsrs4962"))))
+ (base32 "02jrmqalcbj0vg887ssavlk6hqyiqkkk4y0cha8vcfbzwibp7lhc"))))
(build-system pyproject-build-system)
(arguments
(list
+ ;; 1523 passed, 90 skipped, 5 deselected, 3 xfailed, 722 warnings
#:test-flags
- '(list "-k"
- ;; These need git.
- "not test_json_getsysinfo and not IPython.utils.sysinfo.sys_info")
+ #~(list "-k" (string-join
+ ;; These need git.
+ (list "not test_json_getsysinfo"
+ "IPython.utils.sysinfo.sys_info"
+ ;; Failed: DID NOT RAISE
+ "test_timeit_raise_on_interrupt"
+ "test_script_raise_on_interrupt"
+ "test_time_raise_on_interrupt")
+ " and not "))
#:phases
'(modify-phases %standard-phases
(add-after 'unpack 'make-docs-reproducible
@@ -14903,7 +15083,7 @@ than the default.")
python-pandas
python-pickleshare
python-pytest
- python-pytest-asyncio
+ python-pytest-asyncio-0.21
python-setuptools
python-testpath
python-wheel))
@@ -15014,133 +15194,6 @@ computing.")
code.")
(license license:bsd-3)))
-(define-public python-uri-template
- (package
- (name "python-uri-template")
- (version "1.3.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "uri-template" version))
- (sha256
- (base32 "1ixczlgnsjv2850r6w0cb2npwcwzdqri8njr1pi7v371cpmzh00f"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:phases
- '(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python3" "test.py")))))))
- (native-inputs
- (list python-setuptools
- python-setuptools-scm
- python-wheel))
- (home-page "https://gitlab.linss.com/open-source/python/uri-template")
- (synopsis "RFC 6570 URI Template Processor")
- (description "This package implements URI Template expansion in strict
-adherence to RFC 6570, but adds a few extensions.")
- (license license:expat)))
-
-(define-public python-urwid
- (package
- (name "python-urwid")
- (version "2.6.16")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "urwid" version))
- (sha256
- (base32
- "18ijvgf1l7jvmg45x1cysn3c9rdrg1w0405acig3hk7476cj7bck"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- #~(list "tests"
- ;; According to Debian these tests are cursed.
- ;; https://salsa.debian.org/python-team/packages/urwid/-/blob/debian/2.1.2-2/debian/changelog#L141
- "--ignore=tests/test_vterm.py")))
- (native-inputs
- (list python-pytest
- python-pytest-cov
- python-setuptools
- python-setuptools-scm
- python-wheel))
- (propagated-inputs
- (list python-typing-extensions
- python-wcwidth
-
- ;; Optional, but tests need them.
- python-pygobject
- python-tornado
- python-trio
- python-pyzmq
- python-twisted))
- (home-page "https://urwid.org")
- (synopsis "Console user interface library for Python")
- (description
- "Urwid is a curses-based UI/widget library for Python. It includes many
-features useful for text console applications.")
- (license license:lgpl2.1+)))
-
-(define-public python-urwid-3
- (package
- (inherit python-urwid)
- (name "python-urwid")
- (version "3.0.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "urwid" version))
- (sha256
- (base32
- "0y7bh77ad94i4i1nrdggrvk7vvl1fp2l6zm5lmwmgx3z3sx71jz7"))))))
-
-(define-public python-urwid-readline
- (package
- (name "python-urwid-readline")
- (version "0.13")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/rr-/urwid_readline")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0y9k86p31mlr9rwnrbljvfgl183r5j60yaj0r3scljn1m0mlg8qg"))))
- (build-system pyproject-build-system)
- (propagated-inputs (list python-urwid))
- (native-inputs (list python-pytest python-setuptools python-wheel))
- (home-page "https://github.com/rr-/urwid_readline")
- (synopsis "Text input widget for urwid that supports readline shortcuts")
- (description
- "This package provides a textbox edit widget for @code{python-urwid} that
-supports @code{readline} shortcuts.")
- (license license:expat)))
-
-(define-public python-urwidgets
- (package
- (name "python-urwidgets")
- (version "0.2.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "urwidgets" version))
- (sha256
- (base32 "1vrydw9h8c5gi89dnv12a9cdyyxaffvxl1kq51f118cxjk9brwpr"))))
- (build-system pyproject-build-system)
- (propagated-inputs (list python-urwid))
- (native-inputs (list python-setuptools python-wheel))
- (home-page "https://github.com/AnonymouX47/urwidgets")
- (synopsis "Collection of widgets for urwid")
- (description
- "This package provides a collection of widgets for urwid.")
- (license license:expat)))
-
(define-public python-textdistance
(package
(name "python-textdistance")
@@ -15159,7 +15212,7 @@ supports @code{readline} shortcuts.")
(arguments
(list
#:test-flags
- #~(list "--numprocesses" (number->string (parallel-job-count)))))
+ #~(list "--numprocesses" (number->string (min 4 (parallel-job-count))))))
(native-inputs
(list python-numpy
python-pytest
@@ -15179,78 +15232,6 @@ supports @code{readline} shortcuts.")
distance between two or more sequences by many algorithms.")
(license license:expat)))
-(define-public python-urwidtrees
- (package
- (name "python-urwidtrees")
- (version "1.0.4")
- (source
- (origin
- (method git-fetch)
- ;; package author intends on distributing via github rather than pypi:
- ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
- (uri (git-reference
- (url "https://github.com/pazz/urwidtrees")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "17k0gx8i7wrzw6skzdjh9b8v3n6lb5zvg9jrybc3d09p8ipvc31i"))))
- (build-system pyproject-build-system)
- (arguments
- '(#:tests? #f)) ; no tests
- (propagated-inputs (list python-urwid))
- (native-inputs (list python-mock python-setuptools python-wheel))
- (home-page "https://github.com/pazz/urwidtrees")
- (synopsis "Tree widgets for urwid")
- (description "Urwidtrees is a Widget Container API for the @code{urwid}
-toolkit. Use it to build trees of widgets.")
- (license license:gpl3+)))
-
-(define-public python-ua-parser
- (package
- (name "python-ua-parser")
- (version "0.10.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "ua-parser" version))
- (sha256
- (base32
- "0csh307zfz666kkk5idrw3crj1x8q8vsqgwqil0r1n1hs4p7ica7"))))
- (build-system python-build-system)
- (arguments
- `(#:tests? #f)) ;no test suite in release
- (native-inputs
- (list python-pyyaml))
- (home-page "https://github.com/ua-parser/uap-python")
- (synopsis "User agent parser")
- (description
- "@code{ua-parser} is a Python port of Browserscope's user agent parser.")
- (license license:asl2.0)))
-
-(define-public python-user-agents
- (package
- (name "python-user-agents")
- (version "2.2.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "user-agents" version))
- (sha256
- (base32
- "09mddriffm9rkwr30081fy9n3cn976ms8pwc8p8hhlxnilbjavfk"))))
- (build-system python-build-system)
- (arguments
- `(#:tests? #f)) ;missing devices.json test file in release
- (propagated-inputs
- (list python-ua-parser))
- (home-page "https://github.com/selwin/python-user-agents")
- (synopsis "User Agent strings parsing library")
- (description
- "A library to identify devices (phones, tablets) and their capabilities by
-parsing (browser/HTTP) user agent strings.")
- (license license:expat)))
-
(define-public python-pydbus
(package
(name "python-pydbus")
@@ -15373,24 +15354,29 @@ the GObject Introspection bindings to libnotify for non-GTK applications.")
(define-public python-beautifulsoup4
(package
(name "python-beautifulsoup4")
- (version "4.12.3")
+ (version "4.13.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "beautifulsoup4" version))
(sha256
(base32
- "0l8hg3vz9q5fx7gav8sj5zr90d5k7xpc91c1fhhhs1ywis9d3qvl"))))
+ "159niwk99m9lbcxb9sl6jfqy9mb39bss4l1lwcypq3lkh89i6w2y"))))
(build-system pyproject-build-system)
(native-inputs
(list python-hatchling
python-pytest))
(propagated-inputs
- (list python-soupsieve python-html5lib python-lxml))
- (home-page
- "https://www.crummy.com/software/BeautifulSoup/bs4/")
- (synopsis
- "Python screen-scraping library")
+ (list python-soupsieve
+ python-typing-extensions
+ ;; [optional]
+ python-cchardet
+ python-chardet
+ python-charset-normalizer
+ python-html5lib
+ python-lxml))
+ (home-page "https://www.crummy.com/software/BeautifulSoup/bs4/")
+ (synopsis "Python screen-scraping library")
(description
"Beautiful Soup is a Python library designed for rapidly setting up
screen-scraping projects. It offers Pythonic idioms for navigating,
@@ -15399,27 +15385,30 @@ dissecting a document and extracting what you need. It automatically
converts incoming documents to Unicode and outgoing documents to UTF-8.")
(license license:expat)))
+(define-public python-beautifulsoup4-bootstrap
+ (hidden-package
+ (package/inherit python-beautifulsoup4
+ (arguments
+ (list #:tests? #f))
+ (native-inputs
+ (list python-hatchling))
+ (propagated-inputs '()))))
+
(define-public python-soupsieve
(package
(name "python-soupsieve")
- (version "2.2.1")
+ (version "2.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "soupsieve" version))
(sha256
- (base32
- "1k70gpn2d3vgdyxbdy536dgm4kchcraxz6lmgsfg3324iy2789q5"))))
- (build-system python-build-system)
- (arguments
- ;;XXX: 2 tests fail currently despite claming they were to be
- ;;skipped. Also, beautifulsoup4 may depend on this in the future, so we
- ;;don't want to create a circular dependency.
- (list #:tests? #f
- #:phases
- #~(modify-phases %standard-phases
- ;; Circular dependency with python-beautifulsoup4.
- (delete 'sanity-check))))
+ (base32 "0shjmvk8yz2ljc16pmizg16bqhk1i8n5al27mlp6sa16d6djya5d"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-beautifulsoup4-bootstrap
+ python-hatchling
+ python-pytest))
(home-page "https://github.com/facelessuser/soupsieve")
(synopsis "CSS selector library")
(description
@@ -15514,19 +15503,22 @@ Python.")
(define-public python-amply
(package
(name "python-amply")
- (version "0.1.4")
+ (version "0.1.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "amply" version))
(sha256
- (base32
- "0f1db9zp0rsfzxvaz55xwh8h5rfdgr9a2a715g06ic8nknsdq4nb"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-docutils python-pyparsing))
+ (base32 "195fg1n5nsl722hk33f6a7ak3n0hfs8yfpqi2xkhdqgqrh1i2hk1"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-setuptools-scm))
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
+ (propagated-inputs
+ (list python-docutils
+ python-pyparsing))
(home-page "https://github.com/willu47/amply")
(synopsis "Load and manipulate AMPL/GLPK data as Python data structures")
(description
@@ -15724,31 +15716,29 @@ SVG, EPS, PNG and terminal output.")
(define-public python-seaborn
(package
(name "python-seaborn")
- (version "0.13.1")
+ (version "0.13.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "seaborn" version))
(sha256
(base32
- "0ycibcs6kvd3xi4zsxna81claqifyb9dn6z6jwc5x7lqqplnbbdz"))))
+ "1xzzxrbxsmmk39647vcx7avzdbzxw9vz8pc8yklnakcgk100mrlk"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; 2358 passed, 16 skipped, 6 xfailed, 17 warnings
+ #:test-flags
+ #~(list "--numprocesses" (number->string (parallel-job-count)) )))
+ (native-inputs
+ (list python-flit-core
+ python-pytest
+ python-pytest-xdist))
(propagated-inputs
(list python-matplotlib
python-numpy
python-pandas
python-scipy
python-statsmodels))
- (native-inputs
- (list python-flake8
- python-flit-core
- python-ipykernel
- python-nbconvert
- python-numpydoc
- python-mypy
- python-pytest
- python-pytest-cov
- python-pytest-xdist
- python-pyyaml))
(home-page "https://seaborn.pydata.org/")
(synopsis "Statistical data visualization")
(description
@@ -15780,32 +15770,21 @@ session, Python, and the OS.")
(define-public python-mpmath
(package
(name "python-mpmath")
- (version "1.2.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/fredrik-johansson/mpmath")
- (commit "c6a35f9ee7c294bcf4e0517bc76b268843db9499")))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0ifw59fjjls3mas104rh0frilvab2fhk1dkjraxlqni5n9l676im"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'set-version
- (lambda _
- (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version)
- ;; ZIP does not support timestamps before 1980.
- (setenv "SOURCE_DATE_EPOCH" "315532800")))
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-vv")))))))
+ (version "1.3.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/fredrik-johansson/mpmath")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "058ahp0z0gn0z1hwvggrmiir1xag6rzgrfgfg138kjnk5ml9q4gl"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-pytest python-setuptools-scm))
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm))
(home-page "https://mpmath.org")
(synopsis "Arbitrary-precision floating-point arithmetic in python")
(description
@@ -15877,38 +15856,6 @@ multiprecision arithmetic.")
function signatures.")
(license license:bsd-3)))
-(define-public python-yte
- (package
- (name "python-yte")
- (version "1.7.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/koesterlab/yte")
- (commit (string-append "v" version))))
- (sha256
- (base32 "01hxl47bfb0jp2rh6qb6wrm6m8p5rfk21gksqb8qxxv9a037dnsv"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:phases
- '(modify-phases %standard-phases
- (add-after 'unpack 'set-HOME
- (lambda _ (setenv "HOME" "/tmp")))
- (replace 'check
- (lambda* (#:key tests? test-flags #:allow-other-keys)
- (when tests?
- (apply invoke "pytest"
- (append test-flags (list "tests.py")))))))))
- (propagated-inputs (list python-dpath python-plac python-pyyaml))
- (native-inputs (list python-numpy python-poetry-core python-pytest))
- (home-page "https://github.com/koesterlab/yte")
- (synopsis "YAML template engine with Python expressions")
- (description
- "This package provides a YAML template engine with Python expressions.")
- (license license:expat)))
-
(define-public python-syllables
(package
(name "python-syllables")
@@ -15983,76 +15930,31 @@ falling into the Python interpreter.")
(define-public python-qnorm
(package
(name "python-qnorm")
- (version "0.8.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "qnorm" version))
- (sha256
- (base32
- "1iykxrvlg32h78d3cr0137x93w8krcwc8gdqyfj55id917pz7ck1"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:tests? #false ;there are none
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'fix-pyproject-format
- (lambda _
- (substitute* "pyproject.toml"
- (("url = .*") (string-append "version = \"" #$version "\""))
- (("python_requires.*") "")
- (("packages =.*") "")
- (("install_requires") "dependencies")
- (("\"Maarten van der Sande <maartenvandersande@hotmail.com>\"")
- "{ name = \"Maarten van der Sande\", email = \"maartenvandersande@hotmail.com\"}")
- (("license = \"MIT\"") "license = { file = \"LICENSE\"}")))))))
- (propagated-inputs (list python-numba python-numpy python-pandas))
- (native-inputs (list python-setuptools python-wheel python-toml))
- (home-page "https://github.com/Maarten-vd-Sande/qnorm")
- (synopsis "Quantile normalization")
- (description "This tool implements quantile normalization. It properly
-resolves rank ties, which is important when ties happen frequently, such as
-when working with discrete numbers (integers) in count tables. This
-implementation should be relatively fast, and can use multiple cores to sort
-the columns and tie-resolvement is accelerated by numba.")
- (license license:expat)))
-
-(define-public python-xlib
- (package
- (name "python-xlib")
- (version "0.29")
+ (version "0.9.0")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/python-xlib/python-xlib")
- (commit version)))
+ (url "https://github.com/Maarten-vd-Sande/qnorm")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "17cwd2knqm2vwrii3kqii9abwsnydhpg4byqx1vy7rjs6i1vbqfc"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'start-xserver
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((xorg-server (assoc-ref inputs "xorg-server")))
- ;; There must be a running X server and make check doesn't
- ;; start one. Therefore we must do it.
- (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
- (setenv "DISPLAY" ":1")
- #t))))))
- (native-inputs
- (list python-mock python-setuptools-scm xorg-server))
+ (base32 "0bgqxmqq8d3il0gnbvlb5sik50f6z8myx7p652lpv4llj9hrl2w8"))))
+ (build-system pyproject-build-system)
(propagated-inputs
- (list python-six))
- (home-page "https://github.com/python-xlib/python-xlib")
- (synopsis "Python X11 client library")
+ (list python-numba python-numpy python-pandas
+ ;; XXX: pandas optional dependencies.
+ python-tables python-pyarrow python-fastparquet))
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/Maarten-vd-Sande/qnorm")
+ (synopsis "Quantile normalization")
(description
- "The Python X Library is intended to be a fully functional
-X client library for Python programs. It is useful to implement
-low-level X clients. It is written entirely in Python.")
- (license license:gpl2+)))
+ "This tool implements quantile normalization. It properly resolves rank
+ties, which is important when ties happen frequently, such as when working
+with discrete numbers (integers) in count tables. This implementation should
+be relatively fast, and can use multiple cores to sort the columns and
+tie-resolvement is accelerated by numba.")
+ (license license:expat)))
(define-public python-singledispatch
(package
@@ -16120,99 +16022,44 @@ This is due, for the most part, to the difference between str in
Python 2 and Python 3.")
(license license:psfl)))
-(define-public python-waf
- (package
- (name "python-waf")
- (version "2.0.19")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://waf.io/"
- "waf-" version ".tar.bz2"))
- (sha256
- (base32
- "19dvqbsvxz7ch03dh1v0znklrwxlz6yzddc3k9smzrrgny4jch6q"))))
- (build-system python-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'build
- (lambda _
- ;; XXX: Find a way to add all extra tools.
- (let ((tools '("gccdeps"
- "clang_compilation_database")))
- (invoke "python" "waf-light" "configure" "build"
- (string-append "--tools="
- (string-join tools ","))))))
- (replace 'check
- (lambda _
- (invoke "python" "waf" "--version")))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (install-file "waf" (string-append out "/bin")))
- #t))
- ;; waf breaks when it is wrapped.
- (delete 'wrap))))
- (home-page "https://waf.io/")
- (synopsis "Python-based build system")
- (description
- "Waf is a Python-based framework for configuring, compiling and installing
-applications.")
- (license license:bsd-3)))
-
(define-public python-pyzmq
(package
(name "python-pyzmq")
- (version "25.1.0")
+ (version "27.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyzmq" version))
(sha256
- (base32 "0mw9zf0h9sgn2cchw24vyxgyi2nfpyfacr0mh072hdjx8qii1i40"))
- (snippet
- #~(begin
- (use-modules (guix build utils))
- ;; The bundled zeromq source code.
- (delete-file-recursively "bundled")
- ;; Delete cythonized files.
- (for-each delete-file
- (list "zmq/backend/cython/context.c"
- "zmq/backend/cython/_device.c"
- "zmq/backend/cython/error.c"
- "zmq/backend/cython/message.c"
- "zmq/backend/cython/_poll.c"
- "zmq/backend/cython/_proxy_steerable.c"
- "zmq/backend/cython/socket.c"
- "zmq/backend/cython/utils.c"
- "zmq/backend/cython/_version.c"
- "zmq/devices/monitoredqueue.c"))))))
- (build-system python-build-system)
+ (base32 "0jznvl7v41241pbbvwzjxi028mrfy1n5ymfjzy2783n29ch4kia5"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:configure-flags
- (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'configure
- (lambda _
- ;; Our zeromq package is built with '--enable-drafts'; also
- ;; enable draft support for pyzmq so the draft test passes.
- (setenv "ZMQ_DRAFT_API" "1")))
- (add-before 'check 'build-extensions
- (lambda _
- ;; Cython extensions have to be built before running the tests.
- (invoke "python" "setup.py" "build_ext" "--inplace")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
- (inputs (list zeromq))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'configure
+ (lambda _
+ ;; Our zeromq package is built with '--enable-drafts'; also
+ ;; enable draft support for pyzmq so the draft test passes.
+ (setenv "ZMQ_DRAFT_API" "1")
+ ;; Make sure to prevent building bundled libzmq.
+ (setenv "PYZMQ_NO_BUNDLE" "1")))
+ (add-before 'check 'delete-source
+ ;; To prevent loading it and skip build extensions one more times.
+ (lambda _
+ (delete-file-recursively "zmq"))))))
(native-inputs
- (list pkg-config
+ (list cmake-minimal
+ ;; python-cffi ; for PyPy
python-cython
+ python-packaging
python-pytest
python-pytest-asyncio
- python-tornado-6))
+ python-scikit-build-core
+ python-tornado))
+ (inputs
+ (list libsodium
+ zeromq))
(home-page "https://github.com/zeromq/pyzmq")
(synopsis "Python bindings for 0MQ")
(description
@@ -16298,55 +16145,6 @@ addition to a bunch of aliases.")
command pipeline functionality.")
(license license:bsd-3)))
-(define-public python-zipfly
- (package
- (name "python-zipfly")
- (version "6.0.5")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "zipfly" version))
- (sha256
- (base32
- "1h7g922a8lsqd69j8blgcgg0lcd8kz51b2p4glfqmgx4vi1nkick"))))
- (build-system pyproject-build-system)
- (arguments
- (list #:tests? #f)) ; no tests
- (native-inputs (list python-setuptools python-wheel))
- (home-page "https://github.com/sandes/zipfly")
- (synopsis "Zip archive generator")
- (description "ZipFly is a zip archive generator. It was created to
-generate very large zip archives for immediate sending out to clients, or
-for writing large zip archives without memory inflation.")
- (license license:bsd-2)))
-
-(define-public python-zipstream-new
- (package
- (name "python-zipstream-new")
- (version "1.1.8")
- (source
- (origin
- (method git-fetch) ; no tests in PyPI release
- (uri (git-reference
- (url "https://github.com/arjan-s/python-zipstream")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "14vhgg8mcjqi8cpzrw8qzbij2fr2a63l2a8fhil21k2r8vzv92cv"))))
- (build-system python-build-system)
- (native-inputs
- (list python-nose))
- (home-page "https://github.com/arjan-s/python-zipstream")
- (synopsis "Zipfile generator that takes input files as well as streams")
- (description "@code{zipstream.py} is a zip archive generator based on
-@code{zipfile.py}. It was created to generate a zip file generator for
-streaming. This is beneficial for when you want to provide a downloadable
-archive of a large collection of regular files, which would be infeasible
-to generate the archive prior to downloading or of a very large file that
-you do not want to store entirely on disk or on memory.")
- ;; No copyright headers in the source. The LICENSE file indicates GPL3.
- (license license:gpl3)))
-
(define-public python-sentry-sdk
(package
(name "python-sentry-sdk")
@@ -16411,7 +16209,6 @@ you do not want to store entirely on disk or on memory.")
python-pytest
python-pytest-cov
python-pytest-django
- python-pytest-forked
python-pytest-localserver
python-setuptools
python-werkzeug
@@ -16897,17 +16694,17 @@ It also removes useless @code{pass} statements.")
(define-public python-mistune
(package
(name "python-mistune")
- (version "3.0.2")
+ (version "3.1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "mistune" version))
(sha256
- (base32
- "1s4ba1m69yldrhnyfj8lm4bl3axbi95g1dicxya27j9hv7g96zzw"))))
+ (base32 "1802kx9hdbqmbd9acxx4dx6wn77q7mfz5y32psvfqarbg0hmq0x7"))))
(build-system pyproject-build-system)
(native-inputs
- (list python-setuptools
+ (list python-pytest
+ python-setuptools
python-wheel))
(home-page "https://github.com/lepture/mistune")
(synopsis "Markdown parser in pure Python")
@@ -16918,17 +16715,18 @@ Python.")
(define-public python-markdown
(package
(name "python-markdown")
- (version "3.3.4")
+ (version "3.8.2")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "Markdown" version))
+ (uri (pypi-uri "markdown" version))
(sha256
(base32
- "0jbs73nincha8fkfxx267sfxac6pl0ckszjbqbb8gk4dhs8v9d9i"))))
- (build-system python-build-system)
+ "0ibw4didlgfffpzc807rak96df3mwqijbrhw8dkpzqhjvmq9lyr4"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-nose python-pyyaml))
+ (list python-pyyaml
+ python-setuptools))
(home-page "https://python-markdown.github.io/")
(synopsis "Python implementation of Markdown")
(description
@@ -16941,22 +16739,31 @@ markdown_py is also provided to convert Markdown files to HTML.")
(define-public python-markdown2
(package
(name "python-markdown2")
- (version "2.5.2")
+ (version "2.5.3")
(source
(origin
(method git-fetch) ; no tests data in PyPi package
(uri (git-reference
- (url "https://github.com/trentm/python-markdown2")
- (commit version)))
+ (url "https://github.com/trentm/python-markdown2")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "01ll612yq7kjmj5p2zi9sf4l2wg6rm1ldcr6h0m2d9j180j7ggs8"))))
+ (base32 "136lwfhrbgdy3ci7qrkvcm5qx5c4xv4zwbnn57yfqg37pymflima"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "test.py" "--" "-knownfailure")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ (chdir "test"))))))
(native-inputs
- (list python-pygments
- python-pytest
- python-setuptools
- python-wheel))
+ (list ;; python-pygments ;optinal, tests fail when added
+ ;; python-wavedrom ;optinal, not packaged
+ ;; python-latex2mathml ;optinal, not packaged
+ python-setuptools))
(home-page "https://github.com/trentm/python-markdown2")
(synopsis "Fast and complete Python implementation of Markdown")
(description
@@ -17037,7 +16844,7 @@ pseudo terminal (pty), and interact with both the process and its pty.")
;; XXX: Snippet below is required because on v1.1.30 the source code
;; has configshell_fb as softlink to configshell and guix
;; pyproject-build-system doesn't work with symlinks very well.
- ;;
+ ;;
;; This package is only used in spdk for now and it's crucial to keep
;; it locked on version and keep the snipped for spdk to build
;; successfully.
@@ -17172,6 +16979,8 @@ blocks or callables with two context managers and two decorators.")
(license license:expat)))
(define-public python-timeout-decorator
+ ;; TODO: Remove when python-requests-caches releses a fresh version dropping
+ ;; it, see, <https://github.com/requests-cache/requests-cache/pull/1111>.
(package
(name "python-timeout-decorator")
(version "0.5.0")
@@ -17182,6 +16991,7 @@ blocks or callables with two context managers and two decorators.")
(sha256
(base32 "1mxk2qyydhzncm93z08kvj5ssxq3fr2n7pkrrji28nqwvdc2ybva"))))
(build-system pyproject-build-system)
+ (arguments (list #:tests? #f))
(native-inputs (list python-setuptools python-wheel))
(home-page "https://github.com/pnpnpn/timeout-decorator")
(synopsis "Timeout decorator")
@@ -17341,16 +17151,14 @@ number of lines in the contained files easily.")
(hidden-package
(package
(name "python-fonttools-minimal")
- (version "4.39.3")
+ (version "4.59.2")
(source (origin
(method url-fetch)
- (uri (pypi-uri "fonttools" version ".zip"))
+ (uri (pypi-uri "fonttools" version ".tar.gz"))
(sha256
(base32
- "1msibi5cmi5znykkg66dq7xshl07lkqjxhrz5hcipqvlggsvjd4j"))))
+ "08pgq9nrj3r81gzb6gbf5mcak0xyqrj26cw0rc5za4v1n14hfb77"))))
(build-system python-build-system)
- (native-inputs
- (list unzip))
(arguments '(#:tests? #f))
(home-page "https://github.com/fonttools/fonttools")
(synopsis "Tools to manipulate font files")
@@ -17377,14 +17185,17 @@ from an XML-based format.")
(when tests?
(invoke "pytest" "-vv"
"-k"
- ;; XXX: These tests need .trm files that are
- ;; not shipped with the PyPI release.
+ ;; XXX: These tests need data files that are not
+ ;; shipped with the PyPI release.
(format #f "not ~a"
(string-join
- '("test_read_fontdimens_mathsy"
+ '("test_cli_vtp"
+ "test_group_order"
+ "test_read_fontdimens_mathsy"
"test_read_fontdimens_mathex"
"test_read_fontdimens_vanilla"
"test_read_boundary_char"
+ "test_reading_supplement_encoding"
"fontTools.tfmLib"
;; The MtiTest tests fail for unknown
;; reasons (see:
@@ -17398,7 +17209,7 @@ from an XML-based format.")
(propagated-inputs
(list python-brotli
python-fs
- python-lxml-4.9
+ python-lxml
python-lz4
python-scipy
python-unicodedata2
@@ -17436,12 +17247,12 @@ provided that can be used to do various manipulations with LilyPond files.")
(method url-fetch)
(uri (pypi-uri "appdirs" version))
(sha256
- (base32
- "0hfzmwknxqhg20aj83fx80vna74xfimg8sk18wb85fmin9kh2pbx"))))
- (build-system python-build-system)
+ (base32 "0hfzmwknxqhg20aj83fx80vna74xfimg8sk18wb85fmin9kh2pbx"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:test-backend #~'unittest))
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/ActiveState/appdirs")
- (synopsis
- "Determine platform-specific dirs, e.g. a \"user data dir\"")
+ (synopsis "Determine platform-specific dirs, e.g. a \"user data dir\"")
(description
"This module provides a portable way of finding out where user data
should be stored on various operating systems.")
@@ -17459,7 +17270,7 @@ should be stored on various operating systems.")
(base32 "0vm1r1jlaiagj0l9yf7j6zn9w3733dr2169911c0svgrr3gwiwn9"))))
(build-system pyproject-build-system)
(propagated-inputs (list python-six))
- (native-inputs (list python-setuptools python-wheel))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/google/pasta")
(synopsis "AST-based Python refactoring library")
(description "This package provides \"pasta\", an AST-based Python
@@ -17510,27 +17321,16 @@ third-party code.")
(define-public python-msgpack
(package
(name "python-msgpack")
- (version "1.0.4")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "msgpack" version))
- (sha256
- (base32
- "0pqzy1zclyhd42gfibhkcqymbspy5a6v421g87mh40h3iz0nkn7m"))))
- (build-system python-build-system)
- (arguments
- `(#:modules ((guix build utils)
- (guix build python-build-system)
- (ice-9 ftw)
- (srfi srfi-1)
- (srfi srfi-26))
- #:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "pytest" "-v" "test"))))))
+ (version "1.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "msgpack" version))
+ (sha256
+ (base32 "1k84s6w17i1ylrcm39wi1djjv832vn08w3299xcv5nib9birrdvp"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-pytest))
+ (list python-pytest python-setuptools))
(synopsis "MessagePack (de)serializer")
(description "MessagePack is a fast, compact binary serialization format,
suitable for similar data to JSON. This package provides CPython bindings for
@@ -17538,91 +17338,48 @@ reading and writing MessagePack data.")
(home-page "https://pypi.org/project/msgpack/")
(license license:asl2.0)))
-;; This msgpack library's name changed from "python-msgpack" to "msgpack" with
-;; release 0.5. Some packages like poetry still call it by the old name for now.
-;; <https://bugs.gnu.org/30662>
-(define-public python-msgpack-transitional
- (package
- (inherit python-msgpack)
- (name "python-msgpack-transitional")
- (version "0.5.6")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "msgpack" version))
- (sha256
- (base32
- "1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f"))))
- (arguments
- (substitute-keyword-arguments (package-arguments python-msgpack)
- ((#:phases phases)
- `(modify-phases ,phases
- (add-after 'unpack 'configure-transitional
- (lambda _
- ;; Keep using the old name.
- (substitute* "setup.py"
- (("TRANSITIONAL = False")
- "TRANSITIONAL = 1"))
- ;; This old version is not compatible with Python 3.9
- (substitute* '("test/test_buffer.py" "test/test_extension.py")
- ((".tostring\\(") ".tobytes("))
- (substitute* '("test/test_buffer.py" "test/test_extension.py")
- ((".fromstring\\(") ".frombytes("))
- #t))))))))
+(define-public python-msgpack-for-borg
+ (hidden-package
+ (package
+ (inherit python-msgpack)
+ (version "1.0.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "msgpack" version))
+ (sha256
+ (base32 "0pqzy1zclyhd42gfibhkcqymbspy5a6v421g87mh40h3iz0nkn7m")))))))
(define-public python-openstep-plist
- (package
- (name "python-openstep-plist")
- (version "0.3.0")
- (home-page "https://github.com/fonttools/openstep-plist")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url home-page)
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1rxjgzh0p069ncsr2986rn32vhdqyq35irbqg2559jh18456mkca"))))
- (build-system python-build-system)
- (arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'pretend-version
- (lambda _
- (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
- #$(package-version this-package))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
- (native-inputs
- (list python-cython python-pytest python-setuptools-scm))
- (synopsis "OpenStep plist parser and writer")
- (description
- "This package provides a parser for the \"old style\" OpenStep property
-list format (also known as ASCII plist), written in Cython.")
- (license license:expat)))
-
-(define-public python-wrapt
(package
- (name "python-wrapt")
- (version "1.17.0")
+ (name "python-openstep-plist")
+ (version "0.3.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "wrapt" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/fonttools/openstep-plist")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "00886b7ry1vdbvpc2wi880y563xf6y4mxwwfm1q12wvw66i7l60n"))))
+ (base32 "1rxjgzh0p069ncsr2986rn32vhdqyq35irbqg2559jh18456mkca"))))
(build-system pyproject-build-system)
- (native-inputs (list python-pytest python-setuptools python-wheel))
- (home-page "https://github.com/GrahamDumpleton/wrapt")
- (synopsis "Module for decorators, wrappers and monkey patching")
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'pretend-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
+ #$(package-version this-package)))))))
+ (native-inputs (list python-cython-0 python-pytest python-setuptools-scm
+ python-setuptools))
+ (home-page "https://github.com/fonttools/openstep-plist")
+ (synopsis "OpenStep plist parser and writer")
(description
- "The aim of the wrapt module is to provide a transparent object proxy for
- Python, which can be used as the basis for the construction of function
- wrappers and decorator functions.")
- (license license:bsd-2)))
+ "This package provides a parser for the \"old style\" OpenStep property
+list format (also known as ASCII plist), written in Cython.")
+ (license license:expat)))
(define-public python-resolvelib
(package
@@ -17651,6 +17408,8 @@ list format (also known as ASCII plist), written in Cython.")
dependency resolution logic.")
(license license:isc)))
+;; XXX: Deprecated package: this project was archived by the owner on Mar 26,
+;; 2022. It is now read-only.
(define-public python-commonmark
(package
(name "python-commonmark")
@@ -17661,14 +17420,9 @@ dependency resolution logic.")
(uri (pypi-uri "commonmark" version))
(sha256
(base32 "0q7d39lm8kcingpmykk5r959hrwwj6v2icyw3mihczxyb749sbs5"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "python" "setup.py" "test"))))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-setuptools))
(home-page "https://github.com/readthedocs/commonmark.py")
(synopsis "Python parser for the CommonMark Markdown spec")
(description
@@ -17677,63 +17431,6 @@ Markdown parser and renderer for the CommonMark specification, using only
native modules.")
(license license:bsd-3)))
-(define-public python-xlrd
- (package
- (name "python-xlrd")
- (version "2.0.1")
- (source (origin
- ;; The tests are not included in the PyPI archive.
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/python-excel/xlrd")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "170asszffvf6rh5w169ic4h5kxgjkmdl3060vw737d4g1qfifvzz"))))
- (build-system python-build-system)
- (native-inputs
- (list python-pytest))
- (home-page "https://www.python-excel.org/")
- (synopsis "Library for extracting data from Excel files")
- (description "This package provides a library to extract data from
-spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
-@samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
-Unicode-aware. It is not intended as an end-user tool.")
- (license license:bsd-3)))
-
-;;; Note: this package is unmaintained since 2018 (archived on GitHub).
-(define-public python-xlwt
- (package
- (name "python-xlwt")
- (version "1.3.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "xlwt" version))
- (sha256
- (base32 "123c2pdamshkq75wwvck8fq0cjq1843xd3x9qaiz2a4vg9qi56f5"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (setenv "GUIX_PYTHONPATH"
- (string-append (getcwd) "/build/lib:"
- (getenv "GUIX_PYTHONPATH")))
- (invoke "nosetests" "-v")))))))
- (native-inputs
- `(("nose" ,python-nose)))
- (home-page "https://www.python-excel.org/")
- (synopsis "Library for creating spreadsheet Excel files")
- (description "@code{xlwt} is a library for writing data and formatting
-information to older Excel files (i.e. .xls). The package itself is pure
-Python with no dependencies on modules or packages outside the standard Python
-distribution. It is not intended as an end-user tool.")
- (license license:bsd-3)))
-
(define-public python-immutables
(package
(name "python-immutables")
@@ -17845,18 +17542,20 @@ tasks, sockets, files, locks, and queues.")
(define-public python-tables
(package
(name "python-tables")
- (version "3.10.1")
+ (version "3.10.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tables" version))
(sha256
(base32
- "1kr6y4qivqy462gva4bqym3x4alhxijfqjplxax3gh5r6k3pm82a"))
+ "0469jrkmp0qv8cmlqkizm3b8imyc97mk9pfn66ldpyl6f4m82i15"))
(snippet '(begin
(use-modules (guix build utils))
+ ;; TODO: Unbundle.
+ ;; (delete-file-recursively "hdf5-blosc")
(delete-file-recursively "c-blosc")))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
#:phases
@@ -17875,25 +17574,48 @@ tasks, sockets, files, locks, and queues.")
"\""
(search-input-file inputs "/lib/libblosc2.so")
"\",\n" m)))))
- (add-before 'build 'set-LD_LIBRARY_PATH
+ (add-before 'build 'pre-build
(lambda _
- ;; The setup.py build system makes use of ctypes.CDLL, which
- ;; uses dlopen, which looks up library names from standard
- ;; locations or LD_LIBRARY_PATH.
- (setenv "LD_LIBRARY_PATH" (getenv "LIBRARY_PATH"))))
+ (invoke "make" "distclean") ;Regenerate C code with Cython
+ (setenv "BLOSC2_DIR" #$(this-package-input "cblosc2"))
+ (setenv "BLOSC_DIR" #$(this-package-input "c-blosc"))
+ (setenv "BZIP2_DIR" #$(this-package-input "bzip2"))
+ (setenv "HDF5_DIR" #$(this-package-input "hdf5"))
+ (setenv "LZO_DIR" #$(this-package-input "lzo"))))
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "HOME" "/tmp")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
- (invoke "python" "setup.py" "check")))))))
+ (with-directory-excursion "/tmp"
+ ;; Performing only a light (yet comprehensive) subset of the
+ ;; test suite. If you want a more complete test, try
+ ;; passing the --heavy flag to this script (or set the
+ ;; 'heavy' parameter in case you are using tables.test()
+ ;; call). The whole suite will take more than 4 hours to
+ ;; complete on a relatively modern CPU and around 512 MB of
+ ;; main memory.
+ (invoke "python" "-m" "tables.tests.test_all"))))))))
+ (native-inputs
+ (list pkg-config
+ python-cython
+ python-pytest
+ python-setuptools
+ python-sphinx))
+ (inputs
+ (list bzip2
+ c-blosc
+ c-blosc2
+ hdf5
+ lzo))
(propagated-inputs
(list python-blosc2
- python-numpy
python-numexpr
+ python-numpy
python-packaging
python-py-cpuinfo
python-typing-extensions))
- (native-inputs (list pkg-config python-cython))
- (inputs (list c-blosc c-blosc2 hdf5-1.10 bzip2 lzo zlib))
(home-page "https://www.pytables.org/")
(synopsis "Hierarchical datasets for Python")
(description "PyTables is a package for managing hierarchical datasets and
@@ -17968,15 +17690,15 @@ asyncio.")
(define-public python-geojson
(package
(name "python-geojson")
- (version "3.1.0")
+ (version "3.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "geojson" version))
(sha256
- (base32 "1b5df7skx3906046j12yjv8gdbcy17q9y3lbqbpmi83yf90gm9sq"))))
+ (base32 "00s9h22vs4ppncwg3a0gh90czb2dd6d99qznypw72vwc3sxblq5q"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/jazzband/geojson")
(synopsis "Python bindings and utilities for GeoJSON")
(description
@@ -18028,31 +17750,33 @@ structures.")
(source
(origin
(method git-fetch)
- (uri (git-reference (url home-page)
- (commit commit)))
+ (uri (git-reference
+ (url home-page)
+ (commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1dmr85plx8zr6s14ym3r32g6crwxghkval5a24ah90ijx4dbn5q5"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:use-setuptools? #f ; no setup.py
- #:tests? #f ; no test suite
- #:phases
- (modify-phases %standard-phases
- (delete 'build)
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin"))
- (share (string-append out "/share")))
- (mkdir-p share)
- (substitute* "wfetch/wfetch.py"
- (("os.sep, 'opt', 'wfetch'") (string-append "'" share "'")))
- ; The documentation expects the executable to be named
- ; 'wfetch', not 'wfetch.py'.
- (rename-file "wfetch/wfetch.py" "wfetch/wfetch")
- (install-file "wfetch/wfetch" bin)
- (copy-recursively "wfetch/icons" share)))))))
+ (list
+ #:tests? #f ;no test suite
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'build)
+ (replace 'install
+ (lambda _
+ (let ((bin (string-append #$output "/bin"))
+ (share (string-append #$output "/share")))
+ (mkdir-p share)
+ (substitute* "wfetch/wfetch.py"
+ (("os.sep, 'opt', 'wfetch'")
+ (string-append "'" share "'")))
+ ;; The documentation expects the executable to be named
+ ;; 'wfetch', not 'wfetch.py'.
+ (rename-file "wfetch/wfetch.py" "wfetch/wfetch")
+ (install-file "wfetch/wfetch" bin)
+ (copy-recursively "wfetch/icons" share)))))))
+ (native-inputs (list python-setuptools))
(inputs (list python-pyowm python-fire python-termcolor python-requests))
(synopsis "Command-line tool to display weather info")
(description
@@ -18063,7 +17787,8 @@ To use it, you must first run:
@example
export WEATHER_CLI_API=@var{your OpenWeatherMap API key}
-@end example\n")
+@end example
+")
(license license:gpl3+))))
(define-public python-get-version
@@ -18202,7 +17927,11 @@ primary use case is APIs defined before keyword-only parameters existed.")
(sha256
(base32 "1805svvb7xjm4sf1j7b6nc3409x37pd1xmabfwwjf1ldkzwgxhfb"))))
(build-system pyproject-build-system)
- (native-inputs (list python-pytest python-setuptools python-wheel))
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-six))
(home-page "https://github.com/Mimino666/langdetect")
(synopsis "Language detection library")
(description
@@ -18213,16 +17942,21 @@ primary use case is APIs defined before keyword-only parameters existed.")
(define-public python-pyasn1
(package
(name "python-pyasn1")
- (version "0.4.8")
+ (version "0.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyasn1" version))
(sha256
(base32
- "1fnhbi3rmk47l9851gbik0flfr64vs5j0hbqx24cafjap6gprxxf"))))
- (build-system python-build-system)
- (home-page "https://pyasn1.sourceforge.net/")
+ "0d5h500ig8sp72pabd1wcyglc4951xalbkqahf056dl4vlmhsn3g"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "tests")))
+ (native-inputs
+ (list python-setuptools))
+ (home-page "https://github.com/pyasn1/pyasn1")
(synopsis "ASN.1 types and codecs")
(description
"This is an implementation of ASN.1 types and codecs in Python. It is
@@ -18232,43 +17966,29 @@ suitable for a wide range of protocols based on the ASN.1 specification.")
(define-public python-pyasn1-modules
(package
(name "python-pyasn1-modules")
- (version "0.2.8")
+ (version "0.4.2")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "pyasn1-modules" version))
+ (uri (pypi-uri "pyasn1_modules" version))
(sha256
(base32
- "0pp6dcagd8c2c9qx3lahc1rdwlnmm0y0siqr5icjq2r32b3q8pwh"))))
- (build-system python-build-system)
+ "1rj1x4333b20chwslljsihngllj6yls63jmi8klam00ahzg92w37"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "tests")))
+ (native-inputs
+ (list python-setuptools))
(propagated-inputs
(list python-pyasn1))
- (home-page "https://sourceforge.net/projects/pyasn1/")
+ (home-page "https://github.com/pyasn1/pyasn1-modules")
(synopsis "ASN.1 codec implementations")
(description
"Pyasn1-modules is a collection of Python modules providing ASN.1 types and
implementations of ASN.1-based codecs and protocols.")
(license license:bsd-3)))
-(define-public python-ipaddress
- (package
- (name "python-ipaddress")
- (version "1.0.23")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "ipaddress" version))
- (sha256
- (base32
- "1qp743h30s04m3cg3yk3fycad930jv17q7dsslj4mfw0jlvf1y5p"))))
- (build-system python-build-system)
- (home-page "https://github.com/phihag/ipaddress")
- (synopsis "IP address manipulation library")
- (description
- "This package provides a fast, lightweight IPv4/IPv6 manipulation library
- in Python. This library is used to create, poke at, and manipulate IPv4 and
- IPv6 addresses and networks.")
- (license license:psfl)))
-
(define-public python-asn1tools
(package
(name "python-asn1tools")
@@ -18315,15 +18035,17 @@ for OER and UPER.")
(define-public python-idna
(package
(name "python-idna")
- (version "3.3")
+ (version "3.10")
(source
(origin
(method url-fetch)
(uri (pypi-uri "idna" version))
(sha256
(base32
- "0v8f6qjfi5i7qc5icsbv2pi24qy6k6m8wjqjvdf2sxjvlpq3yr4x"))))
- (build-system python-build-system)
+ "1a9yn40rph0amwq61j7j3nqm472baz6673ng6pfadg8a8ydmrxhj"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-flit-core))
(home-page "https://github.com/kjd/idna")
(synopsis "Internationalized domain names in applications")
(description
@@ -18459,15 +18181,10 @@ invoked on those path objects directly.")
(native-inputs
(modify-inputs (package-native-inputs python-path-bootstrap)
(append python-appdirs
+ python-more-itertools
python-packaging
python-pygments
- python-pytest
- python-pytest-black
- python-pytest-checkdocs
- python-pytest-cov
- python-pytest-enabler
- python-pytest-flake8
- python-pytest-mypy)))
+ python-pytest)))
(properties (alist-delete 'hidden?
(package-properties
python-path-bootstrap)))))
@@ -18481,19 +18198,24 @@ invoked on those path objects directly.")
(version "1.0.9")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pretend" version))
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/alex/pretend")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "040vm94lcbscg5p81g1icmwwwa2jm7wrd1ybmxnv1sz8rl8bh3n9"))))
- (build-system python-build-system)
+ (base32 "156l685r9mg7i4xyrk9ql3sxk088irxlg8x7md5i0d05hdw1z8rs"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
(home-page "https://github.com/alex/pretend")
(synopsis "Library for stubbing in Python")
(description
"Pretend is a library to make stubbing with Python easier. Stubbing is a
-technique for writing tests. You may hear the term mixed up with mocks,
-fakes, or doubles. Basically, a stub is an object that returns pre-canned
-responses, rather than doing any computation.")
+technique for writing tests. You may hear the term mixed up with mocks,fakes,
+or doubles. Basically, a stub is an object that returns pre-canned responses,
+rather than doing any computation.")
(license license:bsd-3)))
;;; Variant used to break a dependency cycle with
@@ -18567,13 +18289,7 @@ $ rm -rf /tmp/env
(modify-inputs (package-native-inputs python-pip-run-bootstrap)
(append python-nbformat
python-pygments
- python-pytest
- python-pytest-black
- python-pytest-checkdocs
- python-pytest-cov
- python-pytest-enabler
- python-pytest-flake8
- python-pytest-mypy)))
+ python-pytest)))
(properties (alist-delete 'hidden? (package-properties
python-pip-run-bootstrap)))))
@@ -18890,7 +18606,7 @@ and other @acronym{IDEs, Integrated Development Environments}.")
(define-public python-debugpy
(package
(name "python-debugpy")
- (version "1.8.9")
+ (version "1.8.16")
(source
(origin
(method git-fetch)
@@ -18905,11 +18621,11 @@ and other @acronym{IDEs, Integrated Development Environments}.")
(patches (search-patches "python-debugpy-unbundle-pydevd.patch"))
(sha256
(base32
- "0rq9ndsg4za0np5lnlkdwaqlizay8ndm8ki2m7r7awji262dzzlx"))))
- (build-system python-build-system)
+ "18dkzw2cvsvjrn6ly08pqwrn04fmvqnjjv0gff6795fnl3xzjvfd"))))
+ (build-system pyproject-build-system)
(arguments
(list
- #:tests? #f ; Fail on systems with YAMA LSM’s ptrace scope > 0.
+ #:tests? #f ;FIXME: Fail on systems with YAMA LSM’s ptrace scope > 0.
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-sh-in-tests
@@ -18927,34 +18643,11 @@ and other @acronym{IDEs, Integrated Development Environments}.")
(lambda _
;; This adjusts the behavior of debugpy to load pydevd from
;; Python site packages.
- (setenv "DEBUGPY_BUNDLING_DISABLED" "1")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv"
- "-n" (number->string (parallel-job-count))
- "-k"
- (string-append
- ;; These tests cannot be run in parallel because their
- ;; test data would not be copied by xdist and lead to
- ;; import errors. (see:
- ;; https://github.com/microsoft/debugpy/issues/342 and
- ;; https://github.com/microsoft/debugpy/issues/880).
- "not test_custom_python_args "
- "and not test_autokill "))))))))
+ (setenv "DEBUGPY_BUNDLING_DISABLED" "1"))))))
(native-inputs
- ;; See: https://raw.githubusercontent.com/microsoft/debugpy/
- ;; main/tests/requirements.txt.
- (list python-django
- python-gevent
- python-flask
- python-psutil
- python-pytest
- python-pytest-cov
- python-pytest-timeout
- python-pytest-xdist
- python-requests))
- (propagated-inputs (list python-pydevd))
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-pydevd))
(home-page "https://aka.ms/debugpy")
(synopsis "Debug Adapter Protocol Python implementation")
(description "An implementation of the Debug Adapter Protocol for
@@ -19015,32 +18708,33 @@ Debian-related files, such as:
(define-public python-json-spec
(package
(name "python-json-spec")
- (version "0.11.0")
+ (version "0.12.0")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "json_spec" version))
- (sha256
- (base32
- "0fwxirzxx5s9l0lwnjl6ki39xw1fsjm0vr6cm67ws27fkmcxcry7"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-importlib-metadata
- python-termcolor))
+ (origin
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/johnnoone/json-spec")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "14lzvpfi8vpwn2hsizljcyiiywfc1fssj0hh079jxw4xwjkm9328"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-pytest))
+ (list python-pytest
+ python-poetry-core))
+ (propagated-inputs
+ (list python-termcolor)) ;for the CLI
(home-page "https://json-spec.readthedocs.io/")
- (synopsis
- "JSON Schema, JSON Pointer and JSON Reference for Python")
+ (synopsis "JSON Schema, JSON Pointer and JSON Reference for Python")
(description
- "This Python library implements several JSON specs, like JSON Schema,
+ "This Python library implements several JSON specs, like JSON Schema,
JSON Reference and JSON Pointer.")
(license license:bsd-3)))
(define-public python-fastbencode
(package
(name "python-fastbencode")
- (version "0.3.1")
+ (version "0.3.2") ;the last non Rust version
(source
(origin
(method url-fetch)
@@ -19049,9 +18743,15 @@ JSON Reference and JSON Pointer.")
;; Delete pre-generated Cython C files.
(snippet '(for-each delete-file (find-files "." "\\.c$")))
(sha256
- (base32 "15x1in22gwam7wwga5lbj1pd8hc9jk741pia3pv1m29n2xywpq2z"))))
+ (base32 "1daal7xgsl2sjxq8pcilcas9wd9j9796wd4rlkhrvv5h0k2k4k53"))))
(build-system pyproject-build-system)
- (native-inputs (list python-cython-3 python-setuptools python-wheel))
+ (arguments
+ (list
+ #:test-backend #~'unittest
+ #:test-flags #~(list "fastbencode.tests.test_suite")))
+ (native-inputs
+ (list python-cython
+ python-setuptools))
(home-page "https://github.com/breezy-team/fastbencode")
(synopsis "Python Bencode (de)serializer with optional fast C extensions")
(description
@@ -19072,7 +18772,7 @@ significantly better performance.")
(define-public python-fastjsonschema
(package
(name "python-fastjsonschema")
- (version "2.20.0")
+ (version "2.21.1")
(source
(origin
(method git-fetch) ; no tests in PyPI release
@@ -19081,17 +18781,14 @@ significantly better performance.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0aqj7hf1fgana9hh9la475wiyivcr46fra1bvigp00805g14k599"))))
+ (base32 "1j7dc8hlvrlhzkiv0vqzd6shhjaf14g9v3zlfn7x17j04c1g3iz7"))))
(build-system pyproject-build-system)
(native-inputs
- (list python-colorama
- python-json-spec
+ (list python-json-spec
python-jsonschema
python-pytest
python-pytest-benchmark
- python-pytest-cache
- python-setuptools
- python-wheel))
+ python-setuptools))
(home-page "https://github.com/horejsek/python-fastjsonschema")
(synopsis "Fast Python implementation of JSON schema")
(description
@@ -19170,13 +18867,13 @@ systems, as a command line tool, and as a Python library.")
(define-public python-bleach
(package
(name "python-bleach")
- (version "6.0.0")
+ (version "6.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bleach" version))
(sha256
- (base32 "054lp46iymchq3np0nar3k2h4da3wq4rzw652kdxh1syb70qa6hs"))
+ (base32 "07wrbzlmd6x63dz7lcdih9c4xkn79inimv6kh3yrk9dq310qjghj"))
(snippet
#~(begin
(use-modules (guix build utils))
@@ -19184,8 +18881,12 @@ systems, as a command line tool, and as a Python library.")
(("bleach\\._vendor\\.html5lib") "html5lib"))
(delete-file-recursively "bleach/_vendor/html5lib")))))
(build-system pyproject-build-system)
- (propagated-inputs (list python-html5lib python-tinycss2))
- (native-inputs (list python-pytest python-setuptools python-wheel))
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-html5lib
+ python-webencodings))
(home-page "https://github.com/mozilla/bleach")
(synopsis "Whitelist-based HTML-sanitizing tool")
(description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
@@ -19194,29 +18895,17 @@ systems, as a command line tool, and as a Python library.")
(define-public python-entrypoints
(package
(name "python-entrypoints")
- (version "0.3")
+ (version "0.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "entrypoints" version))
(sha256
- (base32
- "0lc4si3xb7hza424414rdqdc3vng3kcrph8jbvjqb32spqddf3f7"))))
- (build-system python-build-system)
- ;; The package does not come with a setup.py file, so we have to generate
- ;; one ourselves.
- (arguments
- `(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'create-setup.py
- (lambda _
- (call-with-output-file "setup.py"
- (lambda (port)
- (format port "\
-from setuptools import setup
-setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
-" ,version))))))))
+ (base32 "1m5crkagmbvlgdwqv7nan64pbcjvy0c6idb7rpmik2i1m7dfs1mp"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-flit-core
+ python-pytest))
(home-page "https://github.com/takluyver/entrypoints")
(synopsis "Discover and load entry points from installed Python packages")
(description "Entry points are a way for Python packages to advertise
@@ -19309,14 +18998,14 @@ time.")
(define-public python-nbconvert
(package
(name "python-nbconvert")
- (version "7.16.4")
+ (version "7.16.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "nbconvert" version))
(sha256
(base32
- "1x7pz43nhlq3hwjn7cv753gapzwav6wwb9kgr66l82kb4sx93jl6"))))
+ "10pmq31p2srwcdrc7k71dj0l6hl42xnadvsy8swaf3a8qqvpwsjp"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -19380,7 +19069,6 @@ time.")
;; Adding ipywidgets would create a cycle.
;;python-ipywidgets
python-pytest
- python-pytest-xdist
(texlive-local-tree
(list texlive-adjustbox
texlive-booktabs
@@ -19478,28 +19166,6 @@ convert an @code{.ipynb} notebook file into various static formats including:
@end enumerate\n")
(license license:bsd-3)))
-(define-public python-widgetsnbextension
- (package
- (name "python-widgetsnbextension")
- (version "4.0.10")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "widgetsnbextension" version))
- (sha256
- (base32
- "13v88h3cvlf4cs70j568abr04w0bzckl56k9iqx1iadrydgnq6b4"))))
- (build-system pyproject-build-system)
- (native-inputs
- (list python-jupyter-packaging
- python-setuptools
- python-wheel))
- (home-page "https://ipython.org")
- (synopsis "IPython HTML widgets for Jupyter")
- (description "This package provides interactive HTML widgets for Jupyter
-notebooks.")
- (license license:bsd-3)))
-
(define-public python-ipywidgets
(package
(name "python-ipywidgets")
@@ -19660,36 +19326,28 @@ automatically detect a wide range of file encodings.")
(define-public python-charset-normalizer
(package
(name "python-charset-normalizer")
- (version "2.1.0")
+ (version "3.4.2")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "charset-normalizer" version))
+ (uri (pypi-uri "charset_normalizer" version))
(sha256
- (base32 "04zlajr77f6c7ai59l46as1idi0jjgbvj72lh4v5wfpz2s070pjp"))))
- (build-system python-build-system)
+ (base32 "0qqfk84ka3d9hh0yf7n8y0qa0yn08ncdacjjckzix8ybkv5cxbjv"))))
+ (build-system pyproject-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- ;; This package provides a 'normalizer' executable that only
- ;; depends on Python, so customize the wrap phase to avoid
- ;; adding pytest and friends in order to save size.
- ;; (See also <https://bugs.gnu.org/25235>.)
- (replace 'wrap
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((sitedir (site-packages inputs outputs))
- (python (dirname (dirname
- (search-input-file
- inputs "bin/python"))))
- (python-sitedir
- (string-append python "/lib/python"
- (python-version python)
- "/site-packages")))
- (wrap-program (string-append #$output "/bin/normalizer")
- `("GUIX_PYTHONPATH" ":" suffix
- ,(list sitedir python-sitedir)))))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; https://github.com/jawah/charset_normalizer/issues/625
+ ;; https://github.com/jawah/charset_normalizer/pull/626
+ (add-after 'unpack 'fix-scripts
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("charset_normalizer:cli.cli_detect")
+ "charset_normalizer.cli:cli_detect")))))))
(native-inputs
- (list python-pytest))
+ (list python-pytest
+ python-setuptools))
(home-page "https://github.com/ousret/charset_normalizer")
(synopsis "Universal Charset Detector, alternative to Chardet")
(description "This library helps you read text from an unknown charset
@@ -19698,35 +19356,8 @@ taking a new approach. All IANA character set names for which the Python core
library provides codecs are supported.")
(license license:expat)))
-(define-public python-charset-normalizer-3
- (package
- (inherit python-charset-normalizer)
- (name "python-charset-normalizer")
- (version "3.4.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "charset_normalizer" version))
- (sha256
- (base32 "0qqfk84ka3d9hh0yf7n8y0qa0yn08ncdacjjckzix8ybkv5cxbjv"))))
- (build-system pyproject-build-system)
- (arguments
- (substitute-keyword-arguments (package-arguments
- python-charset-normalizer)
- ((#:phases phases
- '%standard-phases)
- #~(modify-phases #$phases
- ;; https://github.com/jawah/charset_normalizer/issues/625
- ;; https://github.com/jawah/charset_normalizer/pull/626
- (add-after 'unpack 'fix-scripts
- (lambda _
- (substitute* "pyproject.toml"
- (("charset_normalizer:cli.cli_detect")
- "charset_normalizer.cli:cli_detect"))))))))
- (native-inputs
- (list python-pytest
- python-setuptools
- python-wheel))))
+(define-deprecated/public-alias python-charset-normalizer-3
+ python-charset-normalizer) ;may be removed after 2025-12-01
(define-public python-docopt
(package
@@ -19734,32 +19365,23 @@ library provides codecs are supported.")
(version "0.6.2")
(source
(origin
- (method git-fetch)
- ;; The release on PyPI does not include tests.
+ (method git-fetch) ;no tests in PyPI archive
(uri (git-reference
(url "https://github.com/docopt/docopt")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32
- "0aad9gbswnnhssin2q0m5lmpm0ahyf80ahs2zjigbn5y7fvljnd0"))
+ (base32 "0aad9gbswnnhssin2q0m5lmpm0ahyf80ahs2zjigbn5y7fvljnd0"))
(patches (search-patches "python-docopt-pytest6-compat.patch"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(native-inputs
- (list python-pytest))
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "py.test")))))))
+ (list python-pytest python-setuptools))
(home-page "http://docopt.org")
(synopsis "Command-line interface description language for Python")
- (description "This library allows the user to define a command-line
-interface from a program's help message rather than specifying it
-programmatically with command-line parsers like @code{getopt} and
-@code{argparse}.")
+ (description
+ "This library allows the user to define a command-line interface from a
+program's help message rather than specifying it programmatically with
+command-line parsers like @code{getopt} and @code{argparse}.")
(license license:expat)))
(define-public python-pythonanywhere
@@ -19888,54 +19510,65 @@ config files.")
(license license:bsd-3)))
(define-public python-omegaconf
- (package
- (name "python-omegaconf")
- (version "2.3.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/omry/omegaconf")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (modules '((guix build utils)))
- (snippet #~(begin
- (delete-file-recursively "build_helpers/bin")
- (substitute* "build_helpers/build_helpers.py"
- (("java") "antlr4")
- (("\"-jar\",") "")
- (("str\\(build_dir / \"bin\" / \"antlr.*\"\\),") ""))))
- (sha256
- (base32
- "0cpkkzda919f24y9s04mi15v9zksvln95ics8cr31rcpi2wbh5j3"))))
- (build-system pyproject-build-system)
- (arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'loosen-requirements
- (lambda _
- (substitute* "requirements/base.txt"
- (("antlr4-python3-runtime==.*")
- "antlr4-python3-runtime >=4.9\n"))
- ;; Ignore deprecation warnings.
- (substitute* "pyproject.toml"
- (("-Werror") "")))))))
- (native-inputs
- (list icedtea
- antlr4
- python-pytest
- python-pytest-mock
- python-setuptools
- python-wheel))
- (propagated-inputs
- (list java-antlr4-runtime-python
- python-pydevd
- python-pyyaml))
- (home-page "https://github.com/omry/omegaconf")
- (synopsis "Flexible configuration system")
- (description "OmegaConf is a hierarchical configuration system and
-supports merging configurations from multiple sources. It provides a
-consistent API regardless of how the configuration was created.")
- (license license:bsd-3)))
+ (let ((commit "117f7de07285e4d1324b9229eaf873de15279457")
+ (revision "0"))
+ (package
+ (name "python-omegaconf")
+ (version (git-version "2.3.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/omry/omegaconf")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ (delete-file-recursively "build_helpers/bin")
+ (substitute* "build_helpers/build_helpers.py"
+ (("java") "antlr4")
+ (("\"-jar\",") "")
+ (("str\\(build_dir / \"bin\" / \"antlr.*\"\\),") ""))))
+ (sha256
+ (base32 "0f922dar5dwyyfk1bwsbs9gws0vyj1w2h9n3148hcfa8c4hg2ysv"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; XXX: Those tests currently fail collection.
+ #~(list "--ignore=tests/structured_conf/test_structured_config.py"
+ "--ignore=tests/test_basic_ops_list.py"
+ "--ignore=tests/test_merge.py"
+ "--ignore=tests/test_select.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'loosen-requirements
+ (lambda _
+ (substitute* "requirements/base.txt"
+ (("antlr4-python3-runtime==.*")
+ "antlr4-python3-runtime >=4.9\n"))
+ ;; Ignore deprecation warnings.
+ (substitute* "pyproject.toml"
+ (("-Werror") "")))))))
+ (native-inputs
+ (list icedtea
+ antlr4
+ python-pytest
+ python-pytest-mock
+ python-setuptools
+ python-wheel))
+ (propagated-inputs
+ (list java-antlr4-runtime-python
+ python-pydevd
+ python-pyyaml))
+ (home-page "https://github.com/omry/omegaconf")
+ (synopsis "Flexible configuration system")
+ (description
+ "OmegaConf is a hierarchical configuration system and supports merging
+configurations from multiple sources. It provides a consistent API regardless
+of how the configuration was created.")
+ (license license:bsd-3))))
(define-public python-configargparse
(package
@@ -19981,12 +19614,15 @@ connection pool.")
(version "2.0.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "argparse_dataclass" version))
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/mivade/argparse_dataclass")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0zr9r4n00x2wi5kyzw3bxvrdp5k113jw7f9p4f414bsaj4f69aq9"))))
+ (base32 "0fbxs2a4jk5bvy42jlnqw4l02zs1s6mmfn4sr8rknyc4ngl4y9q1"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (native-inputs (list python-pytest python-setuptools python-wheel))
(home-page "https://github.com/mivade/argparse_dataclass")
(synopsis "Declarative command-line interfaces using argparse and dataclasses")
(description
@@ -19997,18 +19633,22 @@ and dataclasses.")
(define-public python-argparse-manpage
(package
(name "python-argparse-manpage")
- (version "4.5")
+ (version "4.7")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "argparse-manpage" version))
+ (uri (pypi-uri "argparse_manpage" version))
(sha256
- (base32
- "1nq4sq1zk1xzdsqq61hd27jhj978ys136aba1zjg02x1g0c0cg11"))))
+ (base32 "0clb20scp408gxac675v731vnj89pk9d5fb7pcy7bj1a45mvgshx"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; Tests require PIP.
+ #~(list "--ignore=tests/test_examples.py")))
(native-inputs
- (list python-pip python-pytest python-setuptools python-tomli
- python-wheel))
+ (list python-pytest
+ python-setuptools))
(home-page "https://github.com/praiskup/argparse-manpage")
(synopsis "Build manual page from Python's ArgumentParser object")
(description
@@ -20016,29 +19656,6 @@ and dataclasses.")
@code{ArgumentParser} object.")
(license license:asl2.0)))
-(define-public python-contexttimer
- (package
- (name "python-contexttimer")
- (version "0.3.3")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/brouberol/contexttimer")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "00a9h06a1wj66935n863qlk4jpl9gvdvzkkhl8xmgqwdkwv0js54"))))
- (build-system pyproject-build-system)
- (propagated-inputs (list python-decorator python-unittest2))
- (native-inputs (list python-mock python-setuptools python-wheel))
- (home-page "https://github.com/brouberol/contexttimer")
- (synopsis "Timer as a context manager")
- (description
- "This package offers utilities to measure code block or function
-execution time.")
- (license license:gpl3)))
-
(define-public python-texttable
(package
(name "python-texttable")
@@ -20184,14 +19801,14 @@ explicit subcommand name.")
(define-public python-structlog
(package
(name "python-structlog")
- (version "23.1.0")
+ (version "25.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "structlog" version))
(sha256
(base32
- "0swh5wxghpzdkncsl3zhiq5bblkj4i5r3g00lldw2qyiswfnh397"))))
+ "1r09fhpshvkrnyn6v93045q32shxvx56d5bh84ljwxmfm2qd2v0q"))))
(build-system pyproject-build-system)
(native-inputs
(list ;; For the build
@@ -20199,13 +19816,10 @@ explicit subcommand name.")
python-hatch-vcs
python-hatchling
;; For the tests
- python-coverage
python-freezegun
python-pretend
python-pytest
- python-pytest-asyncio
- python-simplejson
- python-twisted))
+ python-pytest-asyncio))
(home-page "https://www.structlog.org/")
(synopsis "Structured Logging for Python")
(description "@code{structlog} changes logging in Python by adding structure
@@ -20215,21 +19829,50 @@ to your log entries.")
(define-public python-apipkg
(package
(name "python-apipkg")
- (version "1.5")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "apipkg" version))
- (sha256
- (base32
- "1xhak74yj3lqflvpijg15rnkklrigvsp5q7s4as4h6a157d8q8ip"))))
- (build-system python-build-system)
+ (version "3.0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "apipkg" version))
+ (sha256
+ (base32 "03ay7j57mfh4sa8vh9qwid1ggwdc0lasyw3ycsmgv5r6z2j63an7"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI archvie
(native-inputs
- (list python-pytest python-setuptools-scm))
+ (list python-hatch-vcs
+ python-hatchling))
+ (home-page "https://github.com/pytest-dev/apipkg")
(synopsis "Namespace control and lazy-import mechanism")
(description "With apipkg you can control the exported namespace of a Python
package and greatly reduce the number of imports for your users. It is a small
pure Python module that works on virtually all Python versions.")
- (home-page "https://github.com/pytest-dev/apipkg")
+ (license license:expat)))
+
+(define-public python-essentials
+ (package
+ (name "python-essentials")
+ (version "1.1.8")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Neoteroi/essentials")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1k8ybgxh0xvwxjc22pkmyvdhm0jgmj77rlg656r81iiibc0l7zj8"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-hatchling
+ python-pydantic
+ python-pytest-asyncio))
+ (home-page "https://github.com/Neoteroi/essentials/wiki")
+ (synopsis
+ "Utility functions, exceptions, and classes for Python applications")
+ (description
+ "Essentials is a collection of functions, exceptions, and classes for Python
+applications. Examples of utilities are exceptions for common scenarios,
+friendly JSON encoder, decorators for retries and logging.")
(license license:expat)))
(define-public python-execnet
@@ -20562,6 +20205,7 @@ for the module to work under Python 3.3.")
text.")
(license license:bsd-3)))
+;; XXX: Not maintained since 2012.
(define-public python-monthdelta
(package
(name "python-monthdelta")
@@ -20573,7 +20217,9 @@ text.")
(sha256
(base32 "0iwcsk7ryjw5h1wp10ykwd01f3am8gdlga6461q1v1njsk0rxh41"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (arguments
+ (list #:test-backend #~'unittest))
+ (native-inputs (list python-setuptools))
(home-page "http://packages.python.org/MonthDelta")
(synopsis "Date computations with months")
(description
@@ -20583,17 +20229,19 @@ text.")
(define-public python-moto
(package
(name "python-moto")
- (version "5.0.25")
+ (version "5.1.5")
(source (origin
(method url-fetch)
(uri (pypi-uri "moto" version))
(sha256
- (base32 "1cp61k745dxyzck543lamh8mnwwxazsgzqascg4nanpcihaqpsny"))))
+ (base32 "0kpqdn96gw9h2bq05bp943q85f4lq89c4nk1gf71w60nkbm65cs2"))))
(build-system pyproject-build-system)
(arguments
(list
+ ;; tests: 10000 passed, 16 skipped, 2 xfailed, 42 warnings
#:test-flags
'(list "-m" "not network and not requires_docker"
+ "--numprocesses" (number->string (min 8 (parallel-job-count)))
;; This needs pycognito.
"--ignore-glob=tests/test_cognitoidp/*"
;; This needs Internet access.
@@ -20625,7 +20273,28 @@ text.")
" and not test_with_custom_request_header"
" and not test_dependencies"
" and not test_cancel_running_job"
- " and not test_container_overrides"))
+ " and not test_container_overrides"
+
+ ;; TypeError: Got unexpected keyword argument
+ ;; 'account_id_endpoint_mode'
+ " and not test_dynamodb_with_account_id_routing"
+
+ ;; botocore.exceptions.ParamValidationError: Parameter
+ ;; validation failed
+ " and not test_create_firewall"
+ " and not test_describe_logging_configuration"
+ " and not test_update_logging_configuration"
+ " and not test_list_firewalls"
+ ;; AttributeError: 'TimestreamInfluxDB' object has no attribute
+ ;; 'list_db_clusters'
+
+ " and not test_create_db_cluster"
+ " and not test_get_db_cluster"
+ " and not test_list_db_clusters"
+
+ ;; XXX: misc
+ " and not test_list_objects_v2_checksum_algo"
+ " and not test_upload_file_with_checksum_algorithm"))
#:phases
'(modify-phases %standard-phases
(add-after 'unpack 'compatibility
@@ -20647,6 +20316,7 @@ text.")
python-flask-cors
python-freezegun
python-pytest
+ python-pytest-xdist
python-setuptools
python-wheel))
(inputs
@@ -20666,6 +20336,7 @@ text.")
python-multipart
python-openapi-spec-validator
python-py-partiql-parser
+ python-pyparsing
python-requests
python-responses
python-werkzeug
@@ -20705,17 +20376,39 @@ library as well as on the command line.")
(version "1.7.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "plumbum" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tomerfiliba/plumbum")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1kidj821k79dw064rlxh84xamb9h79ychg3pgj81jlvm5hs48xri"))))
- (build-system python-build-system)
+ (base32 "1vlaiz4bwgrcay51knj6a20lh3lwihjqxhxhdk6nqkn9ijg0hc81"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ;no tests
+ (list
+ #:test-flags
+ #~(list "--ignore=tests/test_remote.py"
+ "--ignore=tests/test_putty.py"
+ "--ignore=tests/test_sudo.py"
+ "-k"
+ (string-join (list "not test_home"
+ "test_iter_lines_error"
+ "test_quoting"
+ "test_copy_move_delete")
+ " and not "))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs
- ;; XXX: Not actually used since there are no tests but required for
- ;; build.
- (list python-pytest))
+ (list procps
+ python-psutil
+ python-pytest
+ python-pytest-cov
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
(home-page "https://plumbum.readthedocs.io")
(synopsis "Python shell combinators library")
(description
@@ -20734,11 +20427,22 @@ code.")
(sha256
(base32
"1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-backend #~'unittest
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'drop-unittest2
+ ;; See: <https://github.com/briancurtin/deprecation/issues/54>.
+ (lambda _
+ (substitute* "tests/test_deprecation.py"
+ (("import unittest2")
+ "import unittest as unittest2")))))))
+ (native-inputs
+ (list python-setuptools))
(propagated-inputs
(list python-packaging))
- (native-inputs
- (list python-unittest2))
(home-page "https://deprecation.readthedocs.io/")
(synopsis "Python library to handle automated deprecations")
(description
@@ -20805,46 +20509,6 @@ document.")
manipulation library.")
(license license:expat)))
-(define-public python-uncertainties
- (package
- (name "python-uncertainties")
- (version "3.2.3")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "uncertainties" version))
- (sha256
- (base32
- "0c9hl35jvld1a1vinh9mdcpfgz4ykqinlm1dj917lqbgd0z6b9bn"))))
- (build-system pyproject-build-system)
- (native-inputs
- (list python-pytest python-setuptools python-setuptools-scm python-wheel))
- (propagated-inputs (list python-numpy))
- (home-page "https://uncertainties.readthedocs.io/en/latest/")
- (synopsis "Calculations with uncertainties")
- (description
- "The uncertainties package transparently handles calculations with
-numbers with uncertainties. It can also yield the derivatives of any
-expression.")
- (license license:bsd-3)))
-
-(define-public python-unicodedata2
- (package
- (name "python-unicodedata2")
- (version "15.0.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "unicodedata2" version))
- (sha256
- (base32 "0bcgls7m2zndpd8whgznnd5908jbsa50si2bh88wsn0agcznhv7d"))))
- (build-system python-build-system)
- (home-page "https://github.com/fonttools/unicodedata2")
- (synopsis "Python unicodedata backport")
- (description "This package corresponds to the latest @code{unicodedata}
-standard Python module.")
- (license license:asl2.0)))
-
(define-public python-asteval
(package
(name "python-asteval")
@@ -21102,202 +20766,29 @@ Amazon Web Services (AWS) API.")
in pure Python.")
(license license:expat)))
-(define-public python-xdg
- (package
- (name "python-xdg")
- (version "6.0.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "xdg" version))
- (sha256
- (base32
- "14hwk9j5zjc8rvirw95mrb07zdnpjaxjx2mj3rnq8pnlyaa809r4"))))
- (build-system pyproject-build-system)
- (arguments (list #:tests? #f)) ; No tests in PyPi tarball.
- (native-inputs
- (list python-poetry-core))
- (home-page "https://github.com/srstevenson/xdg-base-dirs")
- (synopsis "Variables defined by the XDG Base Directory Specification")
- (description "xdg-base-dirs is a Python module that provides functions to
-return paths to the directories defined by the XDG Base Directory
-Specification, to save you from duplicating the same snippet of logic in every
-Python utility you write that deals with user cache, configuration, or data
-files.")
- (license license:isc)))
-
-(define-public python-xdo
- (package
- (name "python-xdo")
- (version "0.3")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "http://http.debian.net/debian/pool/main/p/python-xdo/"
- "python-xdo_" version ".orig.tar.gz"))
- (sha256
- (base32
- "1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0"))))
- (build-system python-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-before 'install 'patch-libxdo-path
- ;; Hardcode the path of dynamically loaded libxdo library.
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((libxdo (string-append
- (assoc-ref inputs "xdotool")
- "/lib/libxdo.so"))
- (libc (string-append
- (assoc-ref inputs "libc")
- "/lib/libc.so.6")))
- (substitute* "xdo/_xdo.py"
- (("find_library\\(\"xdo\"\\)")
- (simple-format #f "\"~a\"" libxdo))
- (("ctypes\\.util\\.find_library\\('libc'\\)")
- (simple-format #f "\"~a\"" libc)))
- #t))))
- #:tests? #f)) ; no tests provided
- (propagated-inputs
- (list python-six))
- (inputs
- `(("xdotool" ,xdotool)
- ("libX11" ,libx11)))
- (home-page "https://tracker.debian.org/pkg/python-xdo")
- (synopsis "Python library for simulating X11 keyboard/mouse input")
- (description "Provides bindings to libxdo for manipulating X11 via simulated
-input. (Note that this is mostly a legacy library; you may wish to look at
-python-xdo for newer bindings.)")
- (license license:bsd-3)))
-
-(define-public python-xdoctest
- (package
- (name "python-xdoctest")
- (version "1.2.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "xdoctest" version))
- (sha256
- (base32 "0qsqxp9bpjzg8kb4k8n3sppzbzdr6l6n0vkm7z9qir4ii5nwmkyq"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (add-before 'check 'pre-check
- (lambda _
- ;; A writable HOME is needed by the 'import_module_from_path'
- ;; test.
- (setenv "HOME" "/tmp"))))))
- (native-inputs (list cmake-minimal
- ninja
- pybind11
- python-pytest
- python-pytest-cov
- python-scikit-build
- python-setuptools
- python-wheel))
- (home-page "https://github.com/Erotemic/xdoctest")
- (synopsis "Rewrite of the Python builtin doctest module")
- (description "This package provides a rewrite of the builtin doctest
-module which leverages the Python @acronym{AST, Abstract Syntax Tree} instead
-of @acronym{REGEXPs, regular expressions}.")
- (license license:asl2.0)))
-
(define-public python-mako
(package
(name "python-mako")
- (version "1.2.2")
+ (version "1.3.10")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "Mako" version))
+ (uri (pypi-uri "mako" version))
(sha256
- (base32
- "0gqnv9py1dqp01jmf5zxp0vj2dbhq1l9zy55fai319iv6sdqc91p"))))
- (build-system python-build-system)
- (arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (if tests?
- (invoke "pytest" "-vv")
- (format #t "test suite not run~%"))
- #t)))))
+ (base32 "0a7ala6k7kn094k3g02b85xfkr20yk0w6a0acgjsfgsq75prlmwr"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-wheel))
(propagated-inputs
(list python-markupsafe))
- (native-inputs
- (list python-mock python-pytest))
(home-page "https://www.makotemplates.org/")
(synopsis "Templating language for Python")
(description "Mako is a templating language for Python that compiles
templates into Python modules.")
(license license:expat)))
-(define-public python-waitress
- (package
- (name "python-waitress")
- (version "3.0.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "waitress" version))
- (sha256
- (base32
- "07y3xyx2006f2ni5d55byh3y7w4kcg9xww7vmfjasi0cmzralak8"))))
- (build-system pyproject-build-system)
- (arguments
- ;; https://github.com/Pylons/waitress/issues/443
- (list #:test-flags #~(list "-k" "not test_service_port")))
- (native-inputs
- (list python-coverage python-pytest python-pytest-cov
- python-setuptools python-wheel))
- (home-page "https://github.com/Pylons/waitress")
- (synopsis "Waitress WSGI server")
- (description
- "Waitress is meant to be a production-quality pure-Python WSGI server
-with very acceptable performance.")
- (license license:zpl2.1)))
-
-(define-public python-whatthepatch
- (package
- (name "python-whatthepatch")
- (version "1.0.5")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "whatthepatch" version))
- (sha256
- (base32 "024grf30vkpcfr3bq822zv3slhx12ifm51rmfv1inn0j50blqdvz"))))
- (build-system pyproject-build-system)
- (native-inputs (list python-pytest python-setuptools python-wheel))
- (home-page "https://github.com/cscorley/whatthepatch")
- (synopsis "Patch parsing and application library")
- (description
- "This package provides a patch parsing and application library.")
- (license license:expat)))
-
-(define-public python-whichcraft
- (package
- (name "python-whichcraft")
- (version "0.6.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "whichcraft" version))
- (sha256
- (base32
- "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
- (build-system python-build-system)
- (native-inputs
- (list python-pytest))
- (home-page "https://github.com/pydanny/whichcraft")
- (synopsis "Cross-platform cross-python shutil.which functionality")
- (description
- "This package provides a shim of the shutil.which function that's
-designed to work across multiple versions of Python.")
- (license license:bsd-3)))
-
(define-public python-cookiecutter
(package
(name "python-cookiecutter")
@@ -21362,8 +20853,23 @@ project template.")
"1brg6aawb9m5mdfmc6g7v5r6pczbx67r4l9cn5yh6bdi0qkvp501"))))
(build-system pyproject-build-system)
(arguments
- ;; This test requires network access.
- (list #:test-flags #~(list "-k" "not test_get")))
+ (list
+ #:test-flags
+ #~(list #$@(map (lambda (test) (string-append
+ "--deselect=tests/test_pyquery.py::"
+ test))
+ (list
+ ;; AssertionError: 'REQUEST_METHOD: POST' not found in ''
+ "TestWebScrapping::test_post"
+ ;; AssertionError: 'HTTP_X_FOO: bar' not found in ''
+ "TestWebScrapping::test_session"
+ ;; Assertion is not equal.
+ "TestManipulating::test_val_for_textarea"
+ "TestHTMLParser::test_replaceWith"
+ "TestHTMLParser::test_replaceWith_with_function"
+ ;; Network access is required.
+ "TestWebScrapping::test_get"
+ "TestWebScrappingEncoding::test_get")))))
(native-inputs
(list python-pytest
python-pytest-cov
@@ -21432,7 +20938,6 @@ CPUs required per given input size, and parameters for CWL workflows.")
(package
(name "python-beniget")
(version "0.4.2.post1")
- (home-page "https://github.com/serge-sans-paille/beniget")
(source
(origin
(method url-fetch)
@@ -21440,9 +20945,12 @@ CPUs required per given input size, and parameters for CWL workflows.")
(sha256
(base32 "1bjjl12pqbz4amnn8wvcpd4zjrx6cpw04s586gn18zjywqvqa9d0"))))
(build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
(propagated-inputs
(list python-gast))
- (native-inputs (list python-setuptools python-wheel))
+ (home-page "https://github.com/serge-sans-paille/beniget")
(synopsis "Extract semantic information about static Python code")
(description
"Beniget is a collection of analyzers for Python @acronym{AST,
@@ -21492,7 +21000,6 @@ applications.")
#~(list "--ignore" "t/unit/transport/test_azurestoragequeues.py")))
(native-inputs
(list python-botocore
- python-case
python-pyro4
python-pytest
python-pytest-sugar
@@ -21530,8 +21037,7 @@ RabbitMQ messaging server is the most popular implementation.")
'("billiard/popen_spawn_win32.py"
"billiard/_win.py")))))))
(native-inputs
- (list python-case python-psutil python-pytest python-setuptools
- python-wheel))
+ (list python-psutil python-pytest python-setuptools python-wheel))
(home-page "https://github.com/celery/billiard")
(synopsis "Python multiprocessing fork with improvements and bugfixes")
(description
@@ -21569,8 +21075,7 @@ Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
(("tzdata.*")
"tzdata\n")))))))
(native-inputs
- (list python-case
- python-dnspython
+ (list python-dnspython
python-flaky
python-google-cloud-storage
python-iniconfig
@@ -21730,63 +21235,6 @@ that, when set on the root @code{Logger}, will tunnel log records to the
main process so that they are handled correctly.")
(license license:lgpl3+)))
-(define-public python-vncdotool
- (package
- (name "python-vncdotool")
- (version "1.2.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "http://github.com/sibson/vncdotool")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1adsc263qsa3hcyk8mhv0wwq44h8zhcksx92chd5rr1wz37zmc22"))))
- (build-system pyproject-build-system)
- (propagated-inputs (list python-pillow python-pycryptodomex python-twisted))
- (native-inputs (list python-pexpect python-pytest python-pyvirtualdisplay
- python-setuptools python-wheel))
- (home-page "http://github.com/sibson/vncdotool")
- (synopsis "Command line VNC client")
- (description
- "This package provides a Python command line VNC client. It can be
-useful to automating interactions with virtual machines or hardware devices
-that are otherwise difficult to control.")
- (license license:expat)))
-
-(define-public python-vncdotool-bootstrap
- (hidden-package
- (package/inherit python-vncdotool
- (arguments (list #:tests? #f))
- (native-inputs (list python-pexpect python-pytest python-setuptools
- python-wheel)))))
-
-(define-public python-vobject
- (package
- (name "python-vobject")
- (version "0.9.6.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "vobject" version))
- (sha256
- (base32
- "0081g4gngw28j7vw8101jk600wz4gzfrhf5myrqvn2mrfkn2llcn"))))
- (build-system python-build-system)
- (arguments
- '(;; The test suite relies on some non-portable Windows interfaces.
- #:tests? #f))
- (propagated-inputs
- (list python-dateutil python-pyicu))
- (synopsis "Parse and generate vCard and vCalendar files")
- (description "Vobject is intended to be a full featured Python package for
-parsing and generating vCard and vCalendar files. Currently, iCalendar files
-are supported and well tested. vCard 3.0 files are supported, and all data
-should be imported, but only a few components are understood in a sophisticated
-way.")
- (home-page "https://eventable.github.io/vobject/")
- (license license:asl2.0)))
-
(define-public python-munkres
(package
(name "python-munkres")
@@ -21820,28 +21268,6 @@ algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
useful for solving the Assignment Problem.")
(license license:bsd-3)))
-(define-public python-whoosh
- (package
- (name "python-whoosh")
- (version "2.7.4")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "Whoosh" version))
- (sha256
- (base32
- "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
- (build-system python-build-system)
- (arguments '(#:tests? #f)) ; Test invocation is no longer supported by Python.
- (native-inputs
- (list python-pytest))
- (home-page "https://bitbucket.org/mchaput/whoosh")
- (synopsis "Full text indexing, search, and spell checking library")
- (description
- "Whoosh is a fast, pure-Python full text indexing, search, and spell
-checking library.")
- (license license:bsd-2)))
-
(define-public python-codespell
(package
(name "python-codespell")
@@ -22047,7 +21473,9 @@ representation.")
" and not test_python_render_simple_passing_lexer_instance"
" and not test_python_render_indent_guides"
" and not test_option_no_wrap"
- " and not test_syntax_highlight_ranges"))))
+ " and not test_syntax_highlight_ranges"
+ " and not test_inline_code"
+ " and not test_blank_lines"))))
(propagated-inputs
(list python-markdown-it-py python-pygments))
(native-inputs
@@ -22059,14 +21487,10 @@ representation.")
syntax highlighting, markdown and more to the terminal.")
(license license:expat)))
-;; TODO: Merge with python-rich-click on next python-team iteration.
-(define-public python-rich-click-next
- ;; Hidden from the CLI, so that we don't have warnings or surprises on
- ;; installation, but other packages can still refer to it.
- (hidden-package
- (package
- (name "python-rich-click")
- (version "1.8.9")
+(define-public python-rich-click
+ (package
+ (name "python-rich-click")
+ (version "1.8.9")
(source
(origin
(method git-fetch)
@@ -22076,33 +21500,14 @@ syntax highlighting, markdown and more to the terminal.")
(file-name (git-file-name name version))
(sha256
(base32 "0kc2wcb5dpgxhdcz8fy6gfhl7vra03xwgwfg7h0qxxibr8yzhmmq"))))
- (build-system pyproject-build-system)
- (propagated-inputs
- (list python-click python-importlib-metadata python-rich
- python-typing-extensions))
- (native-inputs (list python-pytest python-setuptools python-wheel))
- (home-page "https://github.com/ewels/rich-click")
- (synopsis "Format click help output nicely with rich")
- (description "Click is a \"Python package for creating beautiful command
-line interfaces\". Rich is a \"Python library for rich text and beautiful
-formatting in the terminal\". The intention of rich-click is to provide
-attractive help output from click, formatted with rich, with minimal
-customization required.")
- (license license:expat))))
-
-(define-public python-rich-click
- (package
- (name "python-rich-click")
- (version "1.6.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "rich-click" version))
- (sha256
- (base32
- "0zkp2sn0vz1hhjbv9bf8fifyzi8ib2d7v7sfak8n3qn67rlrdzzq"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
(propagated-inputs
- (list python-click python-importlib-metadata python-rich))
+ (list python-click
+ python-rich
+ python-typing-extensions))
(home-page "https://github.com/ewels/rich-click")
(synopsis "Format click help output nicely with rich")
(description "Click is a \"Python package for creating beautiful command
@@ -22164,23 +21569,6 @@ customization required.")
for Python inspired by modern web development.")
(license license:expat)))
-;; For cobib@5.3.0; there is a condition in requirements: textual>=1.0,<2.0.
-(define-public python-textual-1
- (hidden-package
- (package
- (inherit python-textual)
- (name "python-textual")
- (version "1.0.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/Textualize/textual")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "14s45p82ajak115lrkc6vwf5v1w7721sfmipykb7vx9a947594yy")))))))
-
(define-public python-magic
(package
(name "python-magic")
@@ -22250,19 +21638,26 @@ the same purpose: to provide Python bindings for libmagic.")
(file-name (git-file-name name version))
(sha256
(base32 "0rdgwwmmp8mdxc84bxq6k9a7v7z2qgc3df47djzs2b84gw81dglx"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'hide-wrapping
- (lambda _
- (substitute* "S3/MultiPart.py"
- (("sys\\.argv\\[0\\]") "\"s3cmd\""))
- (substitute* "s3cmd"
- (("optparser\\.get_prog_name\\(\\)") "\"s3cmd\"")))))))
- (inputs
- (list python-dateutil
- python-magic))
+ (list
+ #:tests? #f ; XXX: Tests require network access.
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'hide-wrapping
+ (lambda _
+ (substitute* "S3/MultiPart.py"
+ (("sys\\.argv\\[0\\]")
+ "\"s3cmd\""))
+ (substitute* "s3cmd"
+ (("optparser\\.get_prog_name\\(\\)")
+ "\"s3cmd\""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "run-tests.py")))))))
+ (native-inputs (list python-setuptools))
+ (inputs (list python-dateutil python-magic))
(home-page "https://s3tools.org/s3cmd")
(synopsis "Command line tool for S3-compatible storage services")
(description
@@ -22355,42 +21750,42 @@ development version of CPython that are not available in older releases.")
(define-public python-future
(package
(name "python-future")
- (version "0.18.2")
+ (version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "future" version))
(sha256
- (base32
- "0zakvfj87gy6mn1nba06sdha63rn4njm7bhh0wzyrxhcny8avgmi"))))
- (build-system python-build-system)
- ;; Many tests connect to the network or are otherwise flawed.
- ;; https://github.com/PythonCharmers/python-future/issues/210
+ (base32 "01bvq2a5vgxffq8555rvwhxw161m9y54z2j5w7d1x1h7jcq6hadx"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- (replace 'sanity-check
- (let ((sanity-check (assoc-ref %standard-phases 'sanity-check)))
- (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
- (let* ((files (find-files (site-packages inputs outputs)
- "top_level\\.txt"))
- (backups (map (lambda (f) (string-append f ".bak"))
- files)))
- (for-each copy-file files backups)
- (substitute* files
- ;; Nobody be usin' winreg on Guix
- ;; Also, don't force users to have tkinter when they don't
- ;; need it
- (("(winreg|tkinter)") ""))
- (apply sanity-check args)
- (for-each rename-file backups files))))))))
+ (list
+ #:test-flags
+ ;; Self tests failed.
+ #~(list "--ignore=tests/test_future/test_futurize.py"
+ "-k" (string-join
+ ;; Self tests failed.
+ (list "not test_division"
+ "test_functions_unchanged"
+ "test_mixed_annotations"
+ "test_multiple_param_annotations"
+ "test_print"
+ "test_range_slice"
+ ;; Network access is required.
+ "test_ftp"
+ "test_main"
+ "test_moves_urllib_request_http"
+ "test_urllib_request_http")
+ " and not "))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
(home-page "https://python-future.org")
(synopsis "Single-source support for Python 3 and 2")
(description
- "@code{python-future} is the missing compatibility layer between Python 2 and
-Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
-to support both Python 2 and Python 3 with minimal overhead.")
+ "@code{python-future} is the missing compatibility layer between Python 2
+and Python 3. It allows you to use a single, clean Python 3.x-compatible
+codebase to support both Python 2 and Python 3 with minimal overhead.")
(license license:expat)))
(define-public python-cysignals
@@ -22430,22 +21825,20 @@ respectively.")
(base32
"1078mkzivz45my8x2y5gxisr0vba630xj7yxx7anr068xhnpshsi"))))
(build-system pyproject-build-system)
- (propagated-inputs
- (list python-pytoolconfig))
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" "test_version_hash_varies_on_get_file_content")))
+ (propagated-inputs (list python-pytoolconfig))
(native-inputs
- (list python-pip
- python-pre-commit
- python-pytest
- python-pytest-cov
- python-pytest-timeout
- python-setuptools
- python-wheel))
+ (list python-pytest python-pytest-timeout python-setuptools))
(home-page "https://github.com/python-rope/rope")
(synopsis "Refactoring library for Python")
- (description "Rope is a refactoring library for Python. It facilitates
-the renaming, moving and extracting of attributes, functions, modules, fields
-and parameters in Python source code. These refactorings can also be applied
-to occurrences in strings and comments.")
+ (description
+ "Rope is a refactoring library for Python. It facilitates the renaming,
+moving and extracting of attributes, functions, modules, fields and parameters
+in Python source code. These refactorings can also be applied to occurrences
+in strings and comments.")
(license license:lgpl3+)))
(define-public python-py3status
@@ -22484,18 +21877,27 @@ own code, responding to click events and updating clock every second.")
(define-public python-tblib
(package
(name "python-tblib")
- (version "2.0.0") ; XXX: higher versions fail on 'check phase
+ (version "3.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tblib" version))
(sha256
- (base32 "1mzcf0fp7267yya9ni5qlr8dj190hsnmyxz0cszgi2y0fbr31px6"))))
+ (base32 "0lnnbicpxx774s29nkbic4rrqvy4rhxd8skx5pp6zxh7kwn4qh06"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; Don't run benchmark tests.
+ #:test-flags #~(list "--ignore=tests/test_perf.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-pytest-config
+ (lambda _
+ (substitute* "pytest.ini"
+ (("--benchmark-disable") "")))))))
(native-inputs
(list python-pytest
- python-setuptools
- python-wheel))
+ python-setuptools))
(home-page "https://github.com/ionelmc/python-tblib")
(synopsis "Traceback serialization library")
(description
@@ -22834,7 +22236,20 @@ format.")
python-hyperlink
python-incremental
python-typing-extensions
- python-zope-interface))
+ python-zope-interface
+ ;; [conch]
+ python-appdirs
+ python-bcrypt
+ python-cryptography
+ ;; [http2]
+ python-h2
+ python-priority
+ ;; [tls]
+ python-idna
+ python-pyopenssl
+ python-service-identity
+ ;; [serial]
+ python-pyserial))
(native-inputs
(list glibc-utf8-locales ;for OpenTestLogTests.test_utf8
python-coverage
@@ -22842,11 +22257,8 @@ format.")
python-hatchling
python-httpx
python-hypothesis
- python-pyflakes
python-pyhamcrest
- python-pytest
- python-sphinx
- python-sphinx-rtd-theme))
+ python-pytest))
(home-page "https://twistedmatrix.com/")
(synopsis "Asynchronous networking framework written in Python")
(description
@@ -22912,9 +22324,12 @@ network support library.")
(method url-fetch)
(uri (pypi-uri "ply" version))
(sha256
- (base32
- "18qx113g9bi1ac4indd5phma82zcdq601lxncp3vjn43m2mc3iq0"))))
- (build-system python-build-system)
+ (base32 "18qx113g9bi1ac4indd5phma82zcdq601lxncp3vjn43m2mc3iq0"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;XXX: not tests in PyPI archvie, there are in Git
+ (native-inputs
+ (list python-setuptools
+ python-wheel))
(home-page "http://www.dabeaz.com/ply/")
(synopsis "Python Lex & Yacc")
(description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
@@ -22991,30 +22406,6 @@ It includes Python implementations of Kafka producers and consumers, which
are optionally backed by a C extension built on librdkafka.")
(license license:asl2.0)))
-(define-public python-wcwidth
- (package
- (name "python-wcwidth")
- (version "0.2.13")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "wcwidth" version))
- (sha256
- (base32
- "1dbj74q1iz349sdkxrkc90f7xd4y7a9bdvgxg3cqdcly7430rskj"))))
- (build-system pyproject-build-system)
- (native-inputs (list python-pytest
- python-pytest-cov
- python-setuptools
- python-wheel))
- (home-page "https://github.com/jquast/wcwidth")
- (synopsis "Measure number of terminal column cells of wide-character codes")
- (description "Wcwidth measures the number of terminal column cells of
-wide-character codes. It is useful for those implementing a terminal emulator,
-or programs that carefully produce output to be interpreted by one. It is a
-Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
-specified in POSIX.1-2001 and POSIX.1-2008.")
- (license license:expat)))
-
(define-public python-columnize
(package
(name "python-columnize")
@@ -23026,7 +22417,7 @@ specified in POSIX.1-2001 and POSIX.1-2008.")
(sha256
(base32 "1clb3lfw694crq8m767q0yjaazkplcrbzdr9fr2w39hhndivhcd6"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/rocky/pycolumnize")
(synopsis "Format a simple (i.e. not nested) list into aligned columns.")
(description
@@ -23162,16 +22553,18 @@ docstring and colored output.")
(define-public python-tomlkit
(package
(name "python-tomlkit")
- (version "0.11.6")
+ (version "0.13.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tomlkit" version))
(sha256
- (base32 "0wsxnv9bs7jk8ig8blj9c438a1ygvdad7y9cn1zr720nfbjm5fbi"))))
- (build-system python-build-system)
+ (base32 "18fjmmhiv5jkkg1dwidmxd0sjqnkf675igizxsa2ppspxr3z4323"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-pytest python-pyyaml))
+ (list python-poetry-core
+ python-pytest
+ python-pyyaml))
(home-page "https://github.com/sdispater/tomlkit")
(synopsis "Style-preserving TOML library")
(description
@@ -23441,84 +22834,6 @@ powerful API: thread-safety; decorator syntax; support for memcached, redis,
database, file, dict stores. Cachy supports python versions 2.7+ and 3.2+.")
(license license:expat)))
-(define-public poetry
- (package
- (name "poetry")
- (version "1.8.4")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "poetry" version))
- (sha256
- (base32 "00ljr5r9h93wh68h4m242qw58mdai8gji4g0c3bfqznicvdgi42l"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- #~(list "--ignore=tests/installation/test_executor.py"
- "--ignore=tests/installation/test_chef.py"
- "-k" (string-join
- (list "not test_builder_setup_generation_runs_with_pip_editable"
- "test_check_invalid"
- "test_create_poetry_fails_on_invalid_configuration"
- "test_installer_with_pypi_repository"
- "test_shell"
- ;; RuntimeError: No lockfile found. Unable to read
- ;; locked packages
- "test_not_fresh_lock"
- ;; assert False is True
- "test_env_system_packages_are_relative_to_lib"
- ;; poetry.inspection.info.PackageInfoError: Unable
- ;; to determine package info for path
- "test_info_setup_complex_calls_script")
- " and not "))
- #:phases
- #~(modify-phases %standard-phases
- ;; Almost every dependency is pinned too strictly.
- (delete 'sanity-check))))
- (native-inputs
- (list nss-certs-for-test
- python-deepdiff
- python-httpretty
- python-pytest
- python-pytest-mock
- python-pytest-randomly
- python-pytest-xdist))
- (propagated-inputs
- (list python-cachecontrol
- python-cleo
- python-crashtest
- python-dulwich
- python-entrypoints
- python-fastjsonschema
- python-importlib-metadata
- python-installer
- python-keyring
- python-packaging
- python-pexpect
- python-pip
- python-pkginfo
- python-platformdirs
- python-poetry-core
- python-poetry-plugin-export
- python-pypa-build
- python-pyproject-hooks
- python-requests
- python-requests-toolbelt
- python-shellingham
- python-tomli
- python-tomlkit
- python-trove-classifiers
- python-virtualenv
- python-xattr))
- (home-page "https://python-poetry.org")
- (synopsis "Python dependency management and packaging made easy")
- (description
- "Poetry is a tool for dependency management and packaging in Python. It
-allows you to declare the libraries your project depends on and it will
-manage (install/update) them for you.")
- (license license:expat)))
-
(define-public python-pyproject-api
(package
(name "python-pyproject-api")
@@ -23559,19 +22874,18 @@ manage (install/update) them for you.")
(define-public python-pyproject-hooks
(package
(name "python-pyproject-hooks")
- (version "1.0.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "pyproject_hooks" version))
- (sha256
- (base32
- "1xaf4sharvacqlav6w3b38nc4j0rzg0p4axi7zamanbzp6cb4wgj"))))
+ (version "1.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pyproject_hooks" version))
+ (sha256
+ (base32 "1y511nblr0lslz1d5s46844f5raryjnp3n1dci499bhgqkarp18y"))))
(build-system pyproject-build-system)
(native-inputs
(list python-flit-core
- python-testpath
- python-pytest))
- (propagated-inputs (list python-tomli))
+ python-pytest
+ python-testpath))
(home-page "https://github.com/pypa/pyproject-hooks")
(synopsis "Low-level library for calling @file{pyproject.toml} backends")
(description
@@ -23655,22 +22969,6 @@ members = [
'(list "--manifest-path=native/Cargo.toml"
"--release"
"--no-default-features")
- #:cargo-inputs
- (list rust-chic-1
- rust-memchr-2
- rust-paste-1
- rust-peg-0.8
- rust-pyo3-0.22
- rust-quote-1
- rust-regex-1
- rust-syn-2
- rust-thiserror-1)
- #:cargo-development-inputs
- (list rust-criterion-0.5
- rust-difference-2
- rust-itertools-0.13
- rust-rayon-1
- rust-trybuild-1)
#:imported-modules `(,@%pyproject-build-system-modules
,@%cargo-build-system-modules)
#:modules `((guix build cargo-build-system)
@@ -23681,11 +22979,6 @@ members = [
(add-after 'unpack 'prepare-source
(lambda _
(delete-file "native/Cargo.lock")))
- (add-after 'configure 'dont-vendor-self
- (lambda* (#:key vendor-dir #:allow-other-keys)
- ;; Don't keep the whole tarball in the vendor directory
- (delete-file-recursively
- (string-append vendor-dir "/libcst-" #$version ".tar.zst"))))
(replace 'build
(assoc-ref py:%standard-phases 'build))
(add-after 'install 'wrap
@@ -23715,7 +23008,7 @@ members = [
python-setuptools-rust
python-setuptools-scm
python-wheel))
- (inputs (list maturin))
+ (inputs (cons maturin (cargo-inputs 'python-libcst)))
(propagated-inputs
(list python-pyyaml))
(home-page "https://github.com/Instagram/LibCST")
@@ -23838,16 +23131,17 @@ times.
(define-public python-lazy-object-proxy
(package
(name "python-lazy-object-proxy")
- (version "1.10.0")
+ (version "1.11.0")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "lazy-object-proxy" version))
+ (uri (pypi-uri "lazy_object_proxy" version))
(sha256
- (base32 "0sdc92bbzy6slcl432j04mr131cy8n0many26ppm4fpl8mnpn93q"))))
+ (base32 "174fswfrsqr7yj72f8fyry34qxgagbfw37vzljxbp7schq8l91qq"))))
(build-system pyproject-build-system)
(native-inputs
- (list python-pip
+ (list python-pytest
+ python-pytest-benchmark
python-setuptools
python-setuptools-scm
python-wheel))
@@ -24014,61 +23308,26 @@ simple, lightweight implementation.")
"This library validates email address syntax and deliverability.")
(license license:cc0)))
-(define-public python-ukpostcodeparser
- (package
- (name "python-ukpostcodeparser")
- (version "1.1.2")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "UkPostcodeParser" version))
- (sha256
- (base32
- "03jkf1ygbwq3akzbcjyjk1akc1hv2sfgx90306pq1nwklbpn80lk"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Tests for lowercase postcodes fail.
- (invoke "pytest" "-vv" "ukpostcodeparser/test/parser.py" "-k"
- (string-append "not test_091 "
- "and not test_097 "
- "and not test_098 "
- "and not test_125 "
- "and not test_131"))))))))
- (native-inputs
- (list python-pytest))
- (home-page "https://github.com/hamstah/ukpostcodeparser")
- (synopsis "UK Postcode parser for Python")
- (description
- "This library provides the @code{parse_uk_postcode} function for
-parsing UK postcodes.")
- (license license:expat)))
-
(define-public python-faker
(package
(name "python-faker")
- (version "33.1.0")
+ (version "37.4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "faker" version))
(sha256
- (base32 "1r518fmir10jwz29a9fsl66x834dr1w40l4bci3gqlbax305z4hw"))))
+ (base32 "02kbql0mgjh98ilz5crxlkrsl9qdqlfa5gmqjn46br9hxax1na4f"))))
(build-system pyproject-build-system)
+ ;; tests: 2104 passed, 12 skipped, 2 warnings
(native-inputs
(list python-freezegun
python-pytest
- python-random2
- python-ukpostcodeparser
python-setuptools
- python-validators
- python-wheel))
+ python-ukpostcodeparser
+ python-validators))
(propagated-inputs
- (list python-dateutil
- python-typing-extensions))
+ (list python-tzdata))
(home-page "https://github.com/joke2k/faker")
(synopsis "Python package that generates fake data")
(description
@@ -24079,16 +23338,17 @@ addresses, and phone numbers.")
(define-public python-pyaml
(package
(name "python-pyaml")
- (version "21.10.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "pyaml" version))
- (sha256
- (base32
- "10w3frzqir5sbpglc9bwb8w414dsivmcvji07yxy61mz2gp9ylf6"))))
- (build-system python-build-system)
+ (version "25.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pyaml" version))
+ (sha256
+ (base32 "16yrflm7iyz82igpzlba16cbvwfwny2fnarf14mvz0b8q57ac4z1"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-unidecode))
+ (list python-pytest
+ python-setuptools))
(propagated-inputs
(list python-pyyaml))
(home-page "https://github.com/mk-fg/pretty-yaml")
@@ -24119,28 +23379,28 @@ environment variables in YAML files.")
(define-public python-prompt-toolkit
(package
(name "python-prompt-toolkit")
- (version "3.0.43")
+ (version "3.0.51")
(source
(origin
(method url-fetch)
(uri (pypi-uri "prompt_toolkit" version))
(sha256
- (base32 "0zgzn02ffc9njpz0pfsin30nwmm3754cig20l1jvqv0h4spvf9rm"))))
- (build-system python-build-system)
+ (base32 "1valgcf324yy0sf7rrbm2ivc4a65n8gvnj0vdz491z177cp1c6lk"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; HOME is needed for the test
- ;; "test_pathcompleter_can_expanduser".
- (setenv "HOME" "/tmp")
- (invoke "pytest" "-vv")))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ ;; HOME is needed for the test
+ ;; "test_pathcompleter_can_expanduser".
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
(propagated-inputs
(list python-wcwidth))
- (native-inputs
- (list python-pytest))
(home-page "https://github.com/prompt-toolkit/python-prompt-toolkit")
(synopsis "Library for building command line interfaces in Python")
(description
@@ -24222,18 +23482,24 @@ as well.")
(package
(name "ptpython")
(version "3.0.20")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "ptpython" version))
- (sha256
- (base32
- "1mjfyr5gwrs1qbizh6nki0nv6hahmg8mhhqxi1qc6pfa4znlrzga"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jonathanslenders/ptpython")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0qbj7d4qkzl8l05kpmm19953lmqk379i17ab8g3sfnmfpsy3ji5m"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ;there are no tests
+ (list
+ ;; XXX: There is a tests/run_tests.py file but all it does is a
+ ;; sanity check.
+ #:tests? #f))
+ (native-inputs (list python-setuptools))
(propagated-inputs
- (list python-appdirs python-black python-jedi python-prompt-toolkit
- python-pygments))
+ (list python-appdirs python-jedi python-prompt-toolkit python-pygments))
(home-page "https://github.com/jonathanslenders/ptpython")
(synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
(description
@@ -24648,25 +23914,30 @@ pytest-fixtures-style dependency injection.")
(package
(name "python-binaryornot")
(version "0.4.4")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "binaryornot" version))
- (sha256
- (base32
- "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "binaryornot" version))
+ (sha256
+ (base32 "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-tests
- (lambda _
- ;; TypeError: binary() got an unexpected keyword argument
- ;; 'average_size'.
- (substitute* "tests/test_check.py"
- (("average_size=512") ""))
- #t)))))
+ (list
+ #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "tests")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-tests
+ (lambda _
+ ;; TypeError: binary() got an unexpected keyword argument
+ ;; 'average_size'.
+ (substitute* "tests/test_check.py"
+ (("average_size=512") "")))))))
+ (native-inputs
+ (list python-hypothesis
+ python-setuptools))
(propagated-inputs
- (list python-chardet python-hypothesis))
+ (list python-chardet))
(home-page "https://github.com/audreyr/binaryornot")
(synopsis "Package to check if a file is binary or text")
(description "Ultra-lightweight pure Python package to check if a file is
@@ -24724,15 +23995,13 @@ pytest-fixtures-style dependency injection.")
(sha256
(base32
"1vpy4rsvm3hhawvbg9rbw4j36ck8qylkhm8cjy0q6imvinkd2als"))))
- (build-system python-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "./test.py")))))))
- (propagated-inputs (list python-dateutil python-six))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-dateutil
+ python-six))
(home-page "https://github.com/py-bson/bson")
(synopsis "BSON (Binary JSON) codec for Python")
(description "@code{bson} is a Python library implementing a BSON (Binary
@@ -24769,16 +24038,41 @@ natural language processing libraries.")
(define-public python-pymongo
(package
(name "python-pymongo")
- (version "4.1.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "pymongo" version))
- (sha256
- (base32
- "1m9hc2a4kgg10xy3g5x00z4a7rrk9s0rbf5qfypwnhq0kdfg5f6p"))))
- (build-system python-build-system)
+ (version "4.14.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pymongo" version))
+ (sha256
+ (base32 "1ld18zyh4f6zxwswsc018d48lq7imf85zrf49w9wyy6fvlzlwrqm"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; tests: 1274 passed, 6231 skipped, 1441 deselected, 2 warnings
+ #:test-flags
+ ;; Tests need access to /etc/resolve.conf.
+ #~(list "--ignore=test/asynchronous/test_srv_polling.py"
+ "--ignore=test/test_srv_polling.py"
+ "-k" (string-join
+ ;; Tests need access to /etc/resolve.conf
+ (list "not test_connection_timeout_ms_propagates_to_DNS_resolver"
+ "test_detected_environment_warning"
+ ;; XXX: Tests fail with assertion is not equal.
+ "test_test_uri_options_srv-options_SRV_URI_with_custom_srvServiceName"
+ "test_test_uri_options_srv-options_SRV_URI_with_invalid_type_for_srvMaxHosts"
+ "test_test_uri_options_srv-options_SRV_URI_with_negative_integer_for_srvMaxHosts"
+ "test_test_uri_options_srv-options_SRV_URI_with_positive_srvMaxHosts_and_loadBalanced"
+ "test_test_uri_options_srv-options_SRV_URI_with_srvMaxHosts")
+ " and not "))))
+ (native-inputs
+ (list python-hatch-requirements-txt
+ python-hatchling
+ python-pytest
+ python-pytest-asyncio
+ python-setuptools))
(propagated-inputs
- (list python-certifi))
+ (list python-certifi
+ python-dnspython))
(home-page "https://github.com/mongodb/mongo-python-driver")
(synopsis "Python driver for MongoDB")
(description "Python driver for MongoDB.")
@@ -24886,36 +24180,22 @@ implementation of your Python package and its public API surface.")
(define-public python-natsort
(package
(name "python-natsort")
- (version "7.1.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "natsort" version))
- (sha256
- (base32
- "00y49bfsi7rrsd1s42gc2w95a6arl9ipdsx2493hr0v54fj07ih0"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'remove-test-hypothesis-deadlines
- (lambda _
- (substitute* "tests/test_utils.py"
- (("from hypothesis import given")
- "from hypothesis import given, settings")
- (("( +)@given" all spaces)
- (string-append spaces "@settings(deadline=None)\n" all)))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-v")))))))
+ (version "8.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "natsort" version))
+ (sha256
+ (base32 "10d53q50zn2s8iiszv01nr9r4imimc2dvplkl4ymj1sm1r52qca5"))))
+ (build-system pyproject-build-system)
(native-inputs
(list glibc-utf8-locales ;; Tests want en_US.UTF-8
- python-hypothesis
- python-pytest-cov
+ python-pytest
python-pytest-mock
- python-pytest))
- (propagated-inputs ; TODO: Add python-fastnumbers.
- (list python-pyicu))
+ python-setuptools))
+ (propagated-inputs
+ (list python-fastnumbers
+ python-pyicu))
(home-page "https://github.com/SethMMorton/natsort")
(synopsis "Natural sorting for python and shell")
(description
@@ -24931,35 +24211,47 @@ numbers, real numbers, mixed types and more, and comes with a shell command
(define-public glances
(package
- (name "glances")
- (version "4.1.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "glances" version))
- (sha256
- (base32 "10yjwbmwv2x4x1n3hr1631m8l6l9w8fa7rnvfz1vmzkjs199ihib"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- ;; Glances phones PyPI for weekly update checks by default.
- ;; Disable these. The user can re-enable them if desired.
- (substitute* "glances/outdated.py"
- (("^(.*)self\\.load_config\\(config\\)\n" line indentation)
- (string-append indentation
- "self.args.disable_check_update = True\n"
- line)))
- #t))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-defusedxml python-orjson python-packaging python-psutil))
- (home-page "https://github.com/nicolargo/glances")
- (synopsis "Cross-platform curses-based monitoring tool")
- (description
- "Glances is a curses-based monitoring tool for a wide variety of platforms.
+ (name "glances")
+ (version "4.1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nicolargo/glances")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00xyixi3wrajmkmqgd1rlaqypi6c1wskm6q0xbrw2k1zc7wi3kxl"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-update-checks
+ (lambda _
+ ;; Glances phones PyPI for weekly update checks by default.
+ ;; Disable these. The user can re-enable them if desired.
+ (substitute* "glances/outdated.py"
+ (("^(.*)self\\.load_config\\(config\\)\n" line
+ indentation)
+ (string-append indentation
+ "self.args.disable_check_update = True\n"
+ line)))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; XXX: Taken from tox.ini.
+ (invoke "python" "unittest-core.py")))))))
+ (native-inputs (list python-pytest python-setuptools))
+ (propagated-inputs (list python-defusedxml python-orjson python-packaging
+ python-psutil))
+ (home-page "https://github.com/nicolargo/glances")
+ (synopsis "Cross-platform curses-based monitoring tool")
+ (description
+ "Glances is a curses-based monitoring tool for a wide variety of platforms.
Glances uses the PsUtil library to get information from your system. It
monitors CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
- (license license:lgpl3+)))
+ (license license:lgpl3+)))
(define-public python-graphql-core
(package
@@ -25054,54 +24346,65 @@ numbers, real numbers, mixed types and more, and comes with a shell command
(define-public python-graphene
(package
(name "python-graphene")
- (version "3.0")
+ (version "3.4.3")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "graphene" version))
- (sha256
- (base32
- "08m1n2ydk48c18cvl8474v3pwwacjl1vgq61m9qs00122mp0cj5g"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-graphql-core python-graphql-relay python-aniso8601
- python-promise python-six))
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "graphene" version))
+ (sha256
+ (base32 "1aha3bnrafxd823q4swdmlvbprfb17v3fga4g3hffpz7ija8cdra"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ; no tests/ in the PyPI tarball
+ (list #:tests? #f)) ;XXX: tests fail to load
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-dateutil
+ python-graphql-core
+ python-graphql-relay
+ python-typing-extensions))
(home-page "https://graphene-python.org/")
(synopsis "GraphQL Framework for Python")
(description
- "Graphene is a Python library for building GraphQL schemas/types.
- A GraphQL schema describes your data model, and provides a GraphQL server
- with an associated set of resolve methods that know how to fetch data.")
+ "Graphene is a Python library for building GraphQL schemas/types. A
+GraphQL schema describes your data model, and provides a GraphQL server with
+an associated set of resolve methods that know how to fetch data.")
(license license:expat)))
-(define-public python-random2
+(define-public python-rodi
(package
- (name "python-random2")
- (version "1.0.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "random2" version ".zip"))
- (sha256
- (base32
- "01y0s4747plsx8fdnxy0nz83dp69naddz58m81r9h0s1qfm31b9l"))
- (patches
- (search-patches "python-random2-getrandbits-test.patch"))))
- (build-system python-build-system)
- (native-inputs (list unzip))
- (home-page "https://pypi.python.org/pypi/random2")
- (synopsis "Python 3 version of the Python 2 @code{random} module")
+ (name "python-rodi")
+ (version "2.0.8")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Neoteroi/rodi")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0kf98yjllrq7vqcp07r2gmkqcviqglsnai3sdigdsrwrfc0b44yp"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-hatchling
+ python-pytest
+ python-pytest-asyncio))
+ (home-page "https://github.com/Neoteroi/rodi")
+ (synopsis "Dependency injection framework for Python")
(description
- "This package provides a Python 3 ported version of Python 2.7’s
- @code{random} module. It has also been back-ported to work in Python 2.6.
+ "Rodi is a dependency injection framework for Python applications.
- In Python 3, the implementation of @code{randrange()} was changed, so that
- even with the same seed you get different sequences in Python 2 and 3.
+Its features include
- This package closes that gap, allowing stable random number generation
- between the different Python versions.")
- (license license:psfl)))
+@itemize
+@item Type resolution by signature types annotations.
+@item Type resolution by class annotations.
+@item Type resolution by names and aliases.
+@item Build graph of objects without the need for source code changes.
+@item Minimum overhead to obtain services, once the objects graph is built.
+@item Support for singleton, transient, and scoped services.
+@end itemize")
+ (license license:expat)))
;; XXX: The last time updated in 2015, consider to remove it when nothing is
;; depend on it.
@@ -25274,10 +24577,12 @@ Werman's implementation of the Earth Mover's Distance.")
(method url-fetch)
(uri (pypi-uri "imagesize" version))
(sha256
- (base32
- "0jndjx26p8qibrx997p3kb6vfbqbdxkv74jsrkav177vmx2085b9"))))
+ (base32 "0jndjx26p8qibrx997p3kb6vfbqbdxkv74jsrkav177vmx2085b9"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (arguments (list #:test-backend #~'unittest))
+ (native-inputs
+ (list python-setuptools
+ python-wheel))
(home-page "https://github.com/shibukawa/imagesize_py")
(synopsis "Gets image size of files in various formats in Python")
(description
@@ -25322,23 +24627,20 @@ JPEG2000 and GIF files in pure Python.")
(build-system pyproject-build-system)
(arguments
(list
+ #:test-backend #~'custom
+ #:test-flags #~(list "test/test.py" "-v")
#:phases
- '(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; pip: command not found
- (substitute* "test/test.py"
- (("def test_console_script")
- "def __disable_test_console_script"))
- (invoke "python3" "./test/test.py" "-v")))))))
+ #~(modify-phases %standard-phases
+ (add-before 'check 'disable-pip-tests
+ (lambda _
+ ;; pip: command not found
+ (substitute* "test/test.py"
+ (("def test_console_script")
+ "def __disable_test_console_script")))))))
(native-inputs
- (list python-coverage
- python-hatch-vcs
+ (list python-hatch-vcs
python-hatchling
- python-mypy
python-pexpect
- python-wheel
tcsh
fish
bash ;full Bash for 'test_file_completion'
@@ -25422,32 +24724,6 @@ module is a re-implementation aiming for speed, so it can be used at
runtime (rather than during a preprocessing step).")
(license license:asl2.0)))
-(define-public python-xopen
- (package
- (name "python-xopen")
- (version "1.7.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "xopen" version))
- (sha256
- (base32
- "17qda88irg77qdm2kkxq4zgdhwfgykcpdgd4cx3xfpp9k219q7wh"))))
- (build-system pyproject-build-system)
- (propagated-inputs
- (list pigz python-isal python-typing-extensions))
- (native-inputs
- (list python-pytest python-pytest-timeout python-setuptools-scm
- python-setuptools python-wheel))
- (home-page "https://github.com/marcelm/xopen/")
- (synopsis "Open compressed files transparently")
- (description "This module provides an @code{xopen} function that works
-like Python's built-in @code{open} function, but can also deal with compressed
-files. Supported compression formats are gzip, bzip2 and, xz, and are
-automatically recognized by their file extensions. The focus is on being as
-efficient as possible on all supported Python versions.")
- (license license:expat)))
-
(define-public python-cheetah
(package
(name "python-cheetah")
@@ -25808,46 +25084,6 @@ converting text with ANSI color codes to HTML or LaTeX.")
can even create animations with the cursor controls.")
(license license:expat)))
-(define-public python-pycountry
- (package
- (name "python-pycountry")
- (version "22.3.5")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pycountry" version))
- (sha256
- (base32
- "0ihnkh86zz01vi46gcwgq6h71jrpj7hq71zi13c98n2qdhj3l5mj"))))
- (build-system python-build-system)
- (home-page "https://bitbucket.org/flyingcircus/pycountry")
- (synopsis "ISO databases for languages, countries, currencies, etc.")
- (description
- "@code{pycountry} provides the ISO databases for the standards:
- @enumerate
- @item 639-3 (Languages)
- @item 3166 (Countries)
- @item 3166-3 (Deleted Countries)
- @item 3166-2 (Subdivisions of countries)
- @item 4217 (Currencies)
- @item 15924 (Scripts)
- @end enumerate
- It includes a copy from Debian’s pkg-isocodes and makes the data accessible
- through a Python API.")
- (license license:lgpl2.1+)))
-
-(define-public python-pycountry@20.7.3
- (package
- (inherit python-pycountry)
- (name "python-pycountry")
- (version "20.7.3")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pycountry" version))
- (sha256
- (base32 "0hnbabsmqimx5hqh0jbd2f64i8fhzhhbrvid57048hs5sd9ll241"))))))
-
(define-public python-pycosat
(package
(name "python-pycosat")
@@ -26036,14 +25272,19 @@ instead of servers and network commands.")
(define-public python-constantly
(package
(name "python-constantly")
- (version "15.1.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "constantly" version))
- (sha256
- (base32
- "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq"))))
- (build-system python-build-system)
+ (version "23.10.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "constantly" version))
+ (sha256
+ (base32 "1gbw3izhn1gx1rgc61jbfr4dr535fxhynifp7jrhpb726c5bg4ma"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;cycles with python-twisted
+ (native-inputs
+ (list python-setuptools
+ python-versioneer))
(home-page "https://github.com/twisted/constantly")
(synopsis "Symbolic constants in Python")
(description "Constantly is a Python library that provides symbolic
@@ -26054,32 +25295,20 @@ instead of servers and network commands.")
(define-public python-attrs
(package
(name "python-attrs")
- (version "24.2.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "attrs" version))
- (sha256
- (base32
- "0ik35wvcmapzhyzvwhlsrk53pgxnswh3zh5fkdb8dc5m928ipysw"))))
+ (version "25.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "attrs" version))
+ (sha256
+ (base32 "06xgyhxzsc0h3l0pqlkk168f072a9lnl9d415ixp8xmmgzycxmvm"))))
(build-system pyproject-build-system)
- (arguments
- (list
- #:phases
- '(modify-phases %standard-phases
- (add-after 'unpack 'remove-test-hypothesis-deadlines
- (lambda _
- (substitute* "tests/test_make.py"
- (("assume, given") "assume, given, settings")
- (("( +)@given" all spaces)
- (string-append spaces "@settings(deadline=None)\n" all))))))))
(native-inputs
- (list python-hatchling
- python-hatch-fancy-pypi-readme
+ (list python-hatch-fancy-pypi-readme
python-hatch-vcs
- python-pympler
- python-pytest
- python-pytest-xdist
- python-zope-interface))
+ python-hatchling
+ python-hypothesis
+ python-pytest))
(home-page "https://github.com/python-attrs/attrs/")
(synopsis "Attributes without boilerplate")
(description "@code{attrs} is a Python package with class decorators that
@@ -26125,45 +25354,10 @@ instead of servers and network commands.")
as parsing the command line for options, and iterating over input files.")
(license license:gpl2+)))
-(define-public python-ttystatus
- (package
- (name "python-ttystatus")
- (version "0.38")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "http://git.liw.fi/ttystatus")
- ;; There are no tags after ttystatus-0.36.
- (commit "e9fc573326c5d1348f5fe56263b4f7a8c32f58c9")))
- (sha256
- (base32 "0v49q839nrwdm19c83wfmj6n2kw80xslwq9k0n5509r2h7wzjiqj"))
- (file-name (git-file-name name version))))
- (build-system python-build-system)
- (native-inputs
- (list python-coverage-test-runner))
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- ;; check phase needs to be run before the build phase. If not,
- ;; coverage-test-runner looks for tests for the built source files,
- ;; and fails.
- (delete 'check)
- (add-before 'build 'check
- (lambda _ (invoke "make" "check"))))))
- (home-page "https://liw.fi/ttystatus/")
- (synopsis "Python library for progress reporting and
- status updates on terminals")
- (description "@code{ttystatus} is a Python library for showing progress
- reporting and status updates on terminals, for command line programs.
- Output is automatically adapted to the width of the terminal: truncated
- if it does not fit, and resized if the terminal size changes.")
- (license license:gpl3+)))
-
(define-public python-astroid
(package
(name "python-astroid")
- (version "3.3.4")
+ (version "3.3.11")
(source
(origin
(method git-fetch)
@@ -26172,10 +25366,18 @@ instead of servers and network commands.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "16cnfis2d0cyqxxx7iqi3n7ljhd55yv9v9yl1kl59k4a5jg4cnpx"))))
+ (base32 "1x5903kmi47pc87r949lym2cwl0xg885xyy730adxv0g6r083zwn"))))
(build-system pyproject-build-system)
+ (arguments
+ ;; UserWarning: pkg_resources is deprecated as an API. See
+ ;; https://setuptools.pypa.io/en/latest/pkg_resources.html. The
+ ;; pkg_resources package is slated for removal as early as
+ ;; 2025-11-30. Refrain from using this package or pin to Setuptools<81.
+ (list #:test-flags
+ #~(list "-k" "not test_identify_old_namespace_package_protocol")))
(native-inputs
- (list python-pytest
+ (list python-mypy-minimal
+ python-pytest
python-setuptools
python-wheel))
(propagated-inputs
@@ -26226,6 +25428,7 @@ builds partial trees by inspecting living objects.")
(sha256
(base32 "1n8vpa9fckhc5934kp7m83wq81dhkvw987v7mjg2fdbr2car0bxc"))))
(build-system pyproject-build-system)
+ (arguments '(#:tests? #f)) ;no tests in PyPI archive
(propagated-inputs (list python-arrow))
(native-inputs (list python-setuptools python-wheel))
(home-page "https://github.com/bolsote/isoduration")
@@ -26240,84 +25443,74 @@ package attempts to address the shortcomings of @code{isodate}.")
(define-public python-isort
(package
(name "python-isort")
- (version "5.13.2")
+ (version "6.0.1")
(source
(origin
- (method git-fetch)
+ (method git-fetch) ;no tests in PyPI archive
(uri (git-reference
- ;; Tests pass only from the Github sources
- (url "https://github.com/timothycrosley/isort")
- (commit version)))
+ (url "https://github.com/timothycrosley/isort")
+ (commit version)))
(file-name (git-file-name name version))
(modules '((guix build utils)))
(snippet '(for-each delete-file (find-files "." "\\.whl$")))
(sha256
- (base32
- "1d9cg5ms1qilhvpk2925zh87xgzd2ly29wywwxp0yisdddi8ln7z"))))
+ (base32 "1fcwv1dlq0d3is9s6scp6vy7yw4l845kk51ihxac8419n8hrpvpq"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
- #~(list "tests/unit/"
+ ;; Ignore benchmark and integration to reduce closure size.
+ #~(list "--ignore=tests/benchmark/"
+ "--ignore=tests/integration/"
+ "--ignore=tests/unit/profiles/test_black.py"
"-k" (string-join
- (list
- "not test_gitignore"
- ;; See <https://github.com/PyCQA/isort/issues/2234>.
- "test_isort_should_warn_on_empty_custom_config_issue_1433"
- ;; Fails because of an unexpected linebreak.
- "test_black_pyi_file")
- " and not ")
- "--ignore=tests/unit/test_deprecated_finders.py")
+ (list "not test_gitignore"
+ "test_isort_supports_shared_profiles_issue_970"
+ "test_requirements_dir"
+ "test_requirements_finder"
+ "test_sort_configurable_sort_issue_1732"
+ "test_sort_imports_error_handling")
+ " and not "))
+ ;; TODO: Package example plugins separately, available in PyPI:
+ ;; - example_isort_formatting_plugin
+ ;; - example_isort_sorting_plugin
+ ;; - example_shared_isort_profile
#:phases
#~(modify-phases %standard-phases
- (add-after 'install 'install-example-plugins
+ (add-before 'build 'pretend-version
(lambda _
- (for-each (lambda (source-directory)
- (invoke "python" "-m" "build" "--wheel"
- "--no-isolation" "--outdir=dist"
- source-directory))
- '("example_isort_formatting_plugin"
- "example_isort_sorting_plugin"
- "example_shared_isort_profile"))
- ;; Install them to temporary storage, for the test.
- (setenv "HOME" (getcwd))
- (let ((example-whls (find-files "dist" "^example.*\\.whl$")))
- (apply invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--user" "--no-deps" example-whls)))))))
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs
(list python-colorama
- python-black
- python-hypothesmith
- python-libcst-minimal
- python-natsort
- python-pip
- python-poetry-core
+ python-hatch-vcs
+ python-hatchling
+ python-hypothesis
python-pylama
- python-pypa-build
- python-pytest
- python-pytest-mock))
+ python-pytest))
(home-page "https://github.com/PyCQA/isort")
(synopsis "Python utility/library to sort python imports")
- (description "@code{python-isort} is a python utility/library to sort
- imports alphabetically, and automatically separated into sections. It
- provides a command line utility, a python library and plugins for various
- editors.")
+ (description
+ "@code{python-isort} is a python utility/library to sort imports
+alphabetically, and automatically separated into sections. It provides a
+command line utility, a python library and plugins for various editors.")
(license license:expat)))
(define-public python-configparser
(package
(name "python-configparser")
- (version "4.0.2")
+ (version "7.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "configparser" version))
(sha256
- (base32
- "1priacxym85yjcf68hh38w55nqswaxp71ryjyfdk222kg9l85ln7"))))
+ (base32 "0w3vichm4igwvh7r560rw58xi4s1yf9x1cyi6syszqqnx65cqadn"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-setuptools-scm))
- (build-system python-build-system)
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
(home-page "https://github.com/jaraco/configparser/")
(synopsis "Backport of configparser from python 3.5")
(description "@code{python-configparser} is a backport of
@@ -26328,15 +25521,18 @@ package attempts to address the shortcomings of @code{isodate}.")
(define-public python-iniconfig
(package
(name "python-iniconfig")
- (version "1.1.1")
+ (version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "iniconfig" version))
(sha256
- (base32
- "0ckzngs3scaa1mcfmsi1w40a1l8cxxnncscrxzjjwjyisx8z0fmw"))))
- (build-system python-build-system)
+ (base32 "1iz1fg3n6pv4q8jzv1q0izl5001diwqggizrg3p3ywrn1gix5frs"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI, tests introduce cycle with pytest
+ (native-inputs
+ (list python-hatch-vcs
+ python-hatchling))
(home-page "https://github.com/RonnyPfannschmidt/iniconfig")
(synopsis "Simple INI-file parser")
(description "The @code{iniconfig} package provides a small and simple
@@ -26353,31 +25549,21 @@ package attempts to address the shortcomings of @code{isodate}.")
(define-public python-mando
(package
(name "python-mando")
- (version "0.7.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "mando" version))
- (sha256
- (base32
- "001mikga36i811pbc95rb45m2kzivkx4xb0fn3pzl4xnnjcskfhq"))))
- (build-system python-build-system)
- (arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
- (propagated-inputs
- (list python-rst2ansi python-six))
+ (version "0.8.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "mando" version))
+ (sha256
+ (base32 "1ddn4h1fvc9f8z2p8l88jyazxnp0h7rmh711i2hwkipxlbcmk5jk"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-pytest))
+ (list python-pytest python-setuptools))
(home-page "https://mando.readthedocs.org/")
- (synopsis
- "Wrapper around argparse, allowing creation of complete CLI applications")
+ (synopsis "Wrapper around argparse, allowing creation of complete CLI applications")
(description
"This package is a wrapper around argparse, allowing you to write complete CLI
- applications in seconds while maintaining all the flexibility.")
+applications in seconds while maintaining all the flexibility.")
(license license:expat)))
(define-public python-mwclient
@@ -26425,40 +25611,6 @@ of x and y values, kneed will return the knee point of the function. The knee
point is the point of maximum curvature.")
(license license:bsd-3)))
-(define-public python-utils
- (package
- (name "python-utils")
- (version "3.9.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "python_utils" version))
- (sha256
- (base32 "18292j4p1bvlpbrfj2cgkdby6dpgnl5gbjwly0qb4pj1j914nmzb"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'fix-pytest-config
- (lambda _
- ;; Drop test coverage requirements.
- (substitute* "pytest.ini"
- ((".*--cov.*") "")))))))
- (native-inputs
- (list python-pytest
- python-setuptools
- python-wheel))
- (propagated-inputs
- (list python-loguru
- python-typing-extensions))
- (home-page "https://github.com/WoLpH/python-utils")
- (synopsis "Convenient utilities not included with the standard Python install")
- (description
- "Python Utils is a collection of small Python functions and classes
-which make common patterns shorter and easier.")
- (license license:bsd-2)))
-
(define-public python-diff-cover
(package
(name "python-diff-cover")
@@ -26620,19 +25772,20 @@ parts of the lines that were modified.")
(define-public python-factory-boy
(package
(name "python-factory-boy")
- (version "3.2.1")
+ (version "3.3.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "factory_boy" version))
(sha256
- (base32 "0pm5lbvnwm0kg5i6z611rg907yw1gy551f2advmpaz041ixjg3d9"))))
- (build-system python-build-system)
+ (base32 "00rx3v5y5l03vlkq6xqj4r7zbnlrx23h45mlyb3zm38j4v964s46"))))
+ (build-system pyproject-build-system)
(arguments
;; Tests are not included in the tarball.
`(#:tests? #f))
+ (native-inputs (list python-setuptools))
(propagated-inputs (list python-faker))
- (home-page "https://github.com/benhoyt/scandir")
+ (home-page "https://github.com/FactoryBoy/factory_boy")
(synopsis "Versatile test fixtures replacement")
(description "Factory_boy is a fixtures replacement based on thoughtbot’s
factory_girl. As a fixtures replacement tool, it aims to replace static, hard
@@ -26760,23 +25913,27 @@ functionality removed from @code{packaging}.")
(define-public python-relatorio
(package
(name "python-relatorio")
- (version "0.10.0")
+ (version "0.11.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "relatorio" version))
(sha256
- (base32
- "09nhrz80dfm60nssbvjgz4czzy4yzfa8gxczcdlzbgcnnvm914vb"))))
+ (base32 "0qa8f9xvvc60i41vpf386jqx65379dnn9xpjwp8zaibba5raz83v"))))
(build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
(propagated-inputs
- (list python-lxml python-magic python-genshi))
- (native-inputs (list python-setuptools python-wheel))
+ (list python-genshi
+ python-lxml
+ python-magic))
(home-page "https://relatorio.tryton.org/")
(synopsis "Templating library able to output ODT and PDF files")
- (description "Relatorio is a templating library which provides a way to
-easily output ODT, ODS, PNG, SVG and several other kinds of files. Support
-for more filetypes can be easily added by creating plugins for them.")
+ (description
+ "Relatorio is a templating library which provides a way to easily output
+ODT, ODS, PNG, SVG and several other kinds of files. Support for more
+filetypes can be easily added by creating plugins for them.")
(license license:gpl3+)))
(define-public python-radon
@@ -26830,9 +25987,10 @@ for more filetypes can be easily added by creating plugins for them.")
(sha256
(base32 "0c3dgm1rf7ih79pgkj7adffn8hlyqh5qah8rbzlq436kz3srk83q"))))
(build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests in PyPI or Git
(native-inputs
- (list python-setuptools
- python-wheel))
+ (list python-setuptools))
(home-page "https://github.com/benknight/hue-python-rgb-converter")
(synopsis "RGB conversion tool in Python")
(description
@@ -26872,26 +26030,28 @@ conversion: Gamut A, B, and C.")
(define-public python-jsonpointer
(package
(name "python-jsonpointer")
- (version "1.14")
+ (version "3.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jsonpointer" version))
(sha256
- (base32
- "0kdckqca8i2ly87mxwn0ggwfzig4xvadbvcanfvk3is56n1az0f6"))))
- (build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
- (home-page "https://github.com/stefankoegl/python-json-pointer")
- (synopsis "Identify specific nodes in a JSON document")
- (description "@code{jsonpointer} allows you to access specific nodes
+ (base32 "1vsrmwrbix3bnxf71g1zyil0pxkh33hq47xkqdhjslli42gp4b9b"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:test-backend #~'unittest))
+ (native-inputs
+ (list python-setuptools
+ python-wheel))
+ (home-page "https://github.com/stefankoegl/python-json-pointer")
+ (synopsis "Identify specific nodes in a JSON document")
+ (description "@code{jsonpointer} allows you to access specific nodes
by path in a JSON document (see RFC 6901).")
- (license license:bsd-3)))
+ (license license:bsd-3)))
(define-public python-jsonpatch
(package
(name "python-jsonpatch")
- (version "1.16")
+ (version "1.33")
(source
(origin
(method git-fetch)
@@ -26901,9 +26061,13 @@ conversion: Gamut A, B, and C.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32
- "0k9pff06lxama3nhsc7cdxbp83422bdy8ifs52i6xkas8hpyzfzr"))))
- (build-system python-build-system)
+ (base32 "0qidj3vrklygsid40y6qgxclssd85hbxnic1av833iy4hbml2w14"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "tests.py")))
+ (native-inputs
+ (list python-setuptools))
(propagated-inputs
(list python-jsonpointer))
(home-page "https://github.com/stefankoegl/python-json-patch")
@@ -26912,46 +26076,25 @@ conversion: Gamut A, B, and C.")
applying JSON Patches according to RFC 6902.")
(license license:bsd-3)))
-(define-public python-jsonpatch-0.4
- (package (inherit python-jsonpatch)
- (name "python-jsonpatch")
- (version "0.4")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/stefankoegl/python-json-patch")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1fq02y57kinyknxjcav0slcb0k9mwdffqw2hnlhdkpj7palh2mwk"))))))
-
(define-public python-rfc3986
(package
(name "python-rfc3986")
- (version "1.4.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "rfc3986" version))
- (sha256
- (base32
- "17dvx15m3r49bmif5zlli8kzjd6bys6psixzbp14sd5367d9h8qi"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "pytest" "-v"))))))
+ (version "2.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "rfc3986" version))
+ (sha256
+ (base32 "0716rg74cpmhi9f77ypnwcdsyfjplsgk1rnnmadq5zabpnfwzalp"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-pytest))
+ (list python-pytest python-setuptools))
(home-page "https://rfc3986.readthedocs.io/")
(synopsis "Parse and validate URI references")
(description
"@code{rfc3986} is a Python implementation of RFC@tie{}3986 including
- validation and authority parsing. This module also supports RFC@tie{}6874
- which adds support for zone identifiers to IPv6 addresses.")
+validation and authority parsing. This module also supports RFC@tie{}6874
+which adds support for zone identifiers to IPv6 addresses.")
(license license:asl2.0)))
(define-public python-rfc3986-validator
@@ -26966,12 +26109,9 @@ conversion: Gamut A, B, and C.")
(base32 "0mfh82r37ma5n54n8ibnqvmwr3j3f2ixqfjfmv1rwfqvjbkvsi1x"))))
(build-system pyproject-build-system)
(native-inputs
- (list python-pip
- python-pytest
- python-pytest-runner
+ (list python-pytest
python-rfc3987
- python-setuptools
- python-wheel))
+ python-setuptools))
(home-page "https://github.com/naimetti/rfc3986-validator")
(synopsis "Pure python rfc3986 validator")
(description "This package implements a URI validator according to RFC3986
@@ -26981,15 +26121,21 @@ in pure Python.")
(define-public python-rfc3987
(package
(name "python-rfc3987")
- (version "1.3.7")
+ (version "1.3.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rfc3987" version))
(sha256
(base32
- "192pclzs2y0yaywqkrlvd0x73740q310kvqvm6jldhi619mq59wi"))))
- (build-system python-build-system)
+ "0cx7bhyjaylwnf9armxrkb3r0s37vf0vqf3bhbll9mb0lmbx5i6k"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "-m" "doctest" "rfc3987.py")))
+ (native-inputs
+ (list python-setuptools))
+ ;; Source: <https://codeberg.org/atufi/rfc3987>.
(home-page "https://pypi.org/project/rfc3987/")
(synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)")
(description "@code{rfc3987} provides routines for parsing and
@@ -27091,33 +26237,42 @@ in pure Python.")
(define-public python-prov
(package
(name "python-prov")
- (version "2.0.1")
+ (version "2.1.1")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "prov" version))
- (sha256
- (base32
- "0zv1lllrm8ck0vnb5ym7s3cvyykg7pbvdcrrpmr5r9fi0la8q8qf"))))
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/trungdong/prov")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "14y58x4gqc4lyhgy6iamzxamwj02sqf2bkma6p5ddiqsnilc4wx7"))))
(build-system pyproject-build-system)
(arguments
(list
+ #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "-s" "src")
#:phases
#~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "setup.py" "test")))))))
- (propagated-inputs
- (list python-dateutil
- python-lxml
- python-networkx
- python-rdflib-6))
+ (add-before 'check 'disable-tests
+ (lambda _
+ ;; prov.model.ProvException: The provided identifier
+ ;; "http://www.example.org/bundle" is not valid
+ (substitute* "src/prov/tests/qnames.py"
+ (("test_namespace_inheritance")
+ "disabled_test_namespace_inheritance")
+ (("test_default_namespace_inheritance")
+ "disabled_test_default_namespace_inheritance")))))))
(native-inputs
+ (list python-setuptools))
+ (propagated-inputs
(list graphviz
+ python-dateutil
+ python-networkx
python-pydot
- python-setuptools
- python-wheel))
+ ;; optional dependencies, also needed for tests
+ python-lxml
+ python-rdflib))
(home-page "https://github.com/trungdong/prov")
(synopsis
"W3C Provenance Data Model supporting PROV-JSON, PROV-XML and PROV-O (RDF)")
@@ -27194,56 +26349,9 @@ in pure Python.")
accessible to users of Python 3 versions < 3.3 and all Python 2.x versions.")
(license license:expat)))
-(define-public python-validators
- (package
- (name "python-validators")
- (version "0.34.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "validators" version))
- (sha256
- (base32 "07vq3s77f5yndn7jfx39jbsaq5m8wqc3p52v4i6sgyasnh3y8zv4"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- ;; python-eth-hash is not packed yet.
- #:test-flags #~(list "--ignore=tests/crypto_addresses/test_eth_address.py")))
- (native-inputs
- (list python-pytest
- python-setuptools
- python-wheel))
- (propagated-inputs
- (list python-decorator
- ;; python-eth-hash ; optional, not packed yet.
- python-six))
- (home-page "https://github.com/kvesteri/validators")
- (synopsis "Data validation library")
- (description
- "This package contains validators for different things such as email
-addresses, IP addresses, URLs, hashes and more. It has been designed to be
-easy to use and not require defining a schema or form just to validate some
-input.")
- (license license:expat)))
-
-(define-public python-validate-email
- (package
- (name "python-validate-email")
- (version "1.3")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "validate_email" version))
- (sha256
- (base32
- "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"))))
- (build-system python-build-system)
- (home-page "https://github.com/syrusakbary/validate_email")
- (synopsis "Verifies if an email address is valid and really exists")
- (description "@code{validate_email} can be used to verify if an email
- address is valid and really exists.")
- (license license:lgpl3+)))
-
+;; XXX: Project has no updates since 2019, consider to remove when nothing
+;; depends on it in the next refresh cycle.
+;; See: <https://github.com/pipermerriam/flex/issues/237>.
(define-public python-flex
(package
(name "python-flex")
@@ -27255,7 +26363,10 @@ input.")
(sha256
(base32
"1sr91f5sqywj4040jm3cq4333fp8hbmmr7v6v05a3h0sgyixcbi9"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
+ (native-inputs
+ (list python-setuptools))
(propagated-inputs
(list python-click
python-jsonpointer
@@ -27273,23 +26384,29 @@ input.")
(define-public python-marshmallow
(package
(name "python-marshmallow")
- ;; XXX: The latest version requires missing timezones from python-pytz
- ;; which needs to be updated.
- (version "3.22.0")
+ (version "4.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "marshmallow" version))
(sha256
- (base32 "0gl2qmq5sqf1b3f84zd7yzkznaknr6j5lnbxcfw0n8ja20lzawj9"))))
+ (base32 "0mcd5aqs33hijapnj2a3g580pfaghp8h3vcpzdf979wrqam80viv"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'set-check-environment
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "TZ" "UTC")
+ (setenv "TZDIR"
+ (search-input-directory inputs
+ "share/zoneinfo")))))))
(native-inputs
- (list python-pytest
- python-pytz
+ (list python-flit-core
+ python-pytest
python-simplejson
- python-flit-core))
- (propagated-inputs
- (list python-packaging))
+ tzdata-for-tests))
(home-page "https://github.com/marshmallow-code/marshmallow")
(synopsis "Convert complex datatypes to and from native Python datatypes")
(description
@@ -27297,6 +26414,26 @@ input.")
to and from native Python datatypes.")
(license license:expat)))
+(define-public python-marshmallow-3
+ (package
+ (inherit python-marshmallow)
+ (version "3.22.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "marshmallow" version))
+ (sha256
+ (base32 "0gl2qmq5sqf1b3f84zd7yzkznaknr6j5lnbxcfw0n8ja20lzawj9"))))
+ (arguments '())
+ (native-inputs
+ (list python-pytest
+ python-pytz
+ python-simplejson
+ python-flit-core))
+ (propagated-inputs
+ (list python-packaging))))
+
+
;; XXX: Deprecated upstream: This repository has been archived by the owner on
;; Jun 6, 2024. It is now read-only.
;; Consider to remove when nothing is depend on it.
@@ -27330,21 +26467,21 @@ framework. It includes optional utilities to integrate with Flask.")
(define-public python-apispec
(package
(name "python-apispec")
- (version "6.7.1")
+ (version "6.8.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "apispec" version))
(sha256
- (base32 "0cxr10m3gj7nmipi3blsj31jz6qfjbfzjrwsnxaxzzhgyipqn6y0"))))
+ (base32 "09lza66036a3i1blwrc6qpvw48pzflmabhd0dfshq9ghzjwnjnyf"))))
(build-system pyproject-build-system)
(native-inputs
(list python-flit-core
- python-mypy
python-openapi-spec-validator
python-pytest))
(propagated-inputs
(list python-marshmallow
+ python-packaging
python-pyyaml))
(home-page "https://github.com/marshmallow-code/apispec")
(synopsis "Swagger/OpenAPI specification generator")
@@ -27386,28 +26523,20 @@ web frameworks.")
(name "python-flasgger")
(version "0.9.7.1")
(source
- (origin
- (method git-fetch)
- (uri (git-reference
+ (origin
+ (method git-fetch)
+ (uri (git-reference
(url "https://github.com/rochacbruno/flasgger")
(commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "08dnn19swfa5lsscj38hil41b3xnqvwgwnx9q2vg9kv26bs1zcah"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "08dnn19swfa5lsscj38hil41b3xnqvwgwnx9q2vg9kv26bs1zcah"))))
(build-system pyproject-build-system)
(arguments
(list
- ;; This test fails due to missing fixtures
- #:test-flags '(list "-k" "not test_swag")
- #:phases
- '(modify-phases %standard-phases
- (add-after 'unpack 'prepare-check
- (lambda _
- ;; This requires a dummy package "flasgger_package" to be installed.
- (delete-file "examples/package_example.py")
- ;; These fail with an internal server error
- (for-each delete-file '("examples/marshmallow_apispec.py"
- "examples/validation.py")))))))
+ #:test-flags
+ #~(list "--ignore=tests/test_examples.py"
+ "-k" "not test_swag")))
(propagated-inputs
(list python-flask
python-pyyaml
@@ -27415,16 +26544,8 @@ web frameworks.")
python-mistune
python-six))
(native-inputs
- (list python-apispec
- python-apispec-webframeworks
- python-decorator
- python-flask-restful
- python-flex
- python-marshmallow
- python-pytest
- python-pytest-cov
- python-setuptools
- python-wheel))
+ (list python-pytest
+ python-setuptools))
(home-page "https://github.com/rochacbruno/flasgger/")
(synopsis "Extract Swagger specs from your Flask project")
(description "@code{python-flasgger} allows extracting Swagger specs
@@ -27503,16 +26624,18 @@ class ShellOutSSHClientTests"))))
(define-public python-smmap
(package
(name "python-smmap")
- (version "3.0.1")
+ (version "5.0.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "smmap" version))
(sha256
- (base32 "0ijlnv60y8f41py1wnn5n1a1i81cxd9dfpdhr0k3cgkrcbz8850p"))))
- (build-system python-build-system)
+ (base32 "1mcai5vf9bgz389y4sqgj6w22wn7zmc7m33y3j50ryjq76h6bsi6"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-nosexcover))
+ (list python-pytest
+ python-setuptools
+ python-wheel))
(home-page "https://github.com/Byron/smmap")
(synopsis "Python sliding window memory map manager")
(description "@code{smmap} is a pure Python implementation of a sliding
@@ -27522,61 +26645,56 @@ class ShellOutSSHClientTests"))))
(define-public python-regex
(package
(name "python-regex")
- (version "2022.1.18")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "regex" version))
- (sha256
- (base32
- "05ir92d0cmv8wkafn3r05j5q47l6shg7cpdblp2a8m407b02vwwp"))))
- (build-system python-build-system)
+ (version "2024.11.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "regex" version))
+ (sha256
+ (base32 "06amb1sxhbab03cy73q7wcp131bsingngr44r0rh6an5cfq5kcbs"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "python" "-c"
- "from regex.test_regex import test_main ; test_main()"))))))
- (home-page "https://bitbucket.org/mrabarnett/mrab-regex")
- (synopsis "Alternative regular expression module")
- (description "This regular expression implementation is backwards-
-compatible with the standard @code{re} module, but offers additional
-functionality like full case-folding for case-insensitive matches in Unicode.")
- (license license:psfl)))
+ (list #:test-backend #~'unittest))
+ (native-inputs
+ (list python-setuptools))
+ (home-page "https://bitbucket.org/mrabarnett/mrab-regex")
+ (synopsis "Alternative regular expression module")
+ (description
+ "This regular expression implementation is backwards-compatible with the
+standard @code{re} module, but offers additional functionality like full
+case-folding for case-insensitive matches in Unicode.")
+ (license license:psfl)))
(define-public python-rencode
+ ;; TODO: Move to (gnu package serialization)
(package
- (name "python-rencode")
- (version "1.0.5")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "rencode" version))
- (sha256
- (base32
- "0mzwdq1is7kyyr32i5k4iz6g5xxdvmiyc132jnc60p9m6lnwjrpv"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'delete-bogus-test
- ;; This test requires /home/aresch/Downloads, which is not provided by
- ;; the build environment.
- (lambda _
- (delete-file "rencode/t.py")
- #t)))))
- (native-inputs (list pkg-config python-cython))
- (home-page "https://github.com/aresch/rencode")
- (synopsis "Serialization of heterogeneous data structures")
- (description
- "The @code{rencode} module is a data structure serialization library,
+ (name "python-rencode")
+ (version "1.0.8")
+ (source
+ (origin
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/aresch/rencode")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1dicbm8gdii2bjp85s2p4pnclf25k9x4b4kaj80y8ddhh87glrlk"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-cython
+ python-pytest
+ python-poetry-core
+ python-setuptools))
+ (home-page "https://github.com/aresch/rencode")
+ (synopsis "Serialization of heterogeneous data structures")
+ (description
+ "The @code{rencode} module is a data structure serialization library,
similar to @code{bencode} from the BitTorrent project. For complex,
heterogeneous data structures with many small elements, r-encoding stake up
significantly less space than b-encodings. This version of rencode is a
complete rewrite in Cython to attempt to increase the performance over the
pure Python module.")
- (license license:bsd-3)))
+ (license license:bsd-3)))
(define-public python-pysocks
(package
@@ -27589,8 +26707,10 @@ pure Python module.")
(sha256
(base32
"184sg65mbmih6ljblfsxcmq5js5l7dj3gpn618w9q5dy3rbh921z"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments `(#:tests? #f))
+ (native-inputs
+ (list python-setuptools))
(home-page "https://github.com/Anorov/PySocks")
(synopsis "SOCKS client module")
(description "@code{pysocks} is an updated and semi-actively maintained
@@ -27603,32 +26723,35 @@ version of @code{SocksiPy} with bug fixes and extra features.")
(version "0.25.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pydub" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jiaaro/pydub")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "03ykn2kp6qglsrzqi5h79z5cp3kl9mknasv0d6jv5jj9k77362lq"))))
- (build-system python-build-system)
+ (base32 "0xskllq66wqndjfmvp58k26cv3w480sqsil6ifwp4gghir7hqc8m"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-ffmpeg-path
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((ffmpeg (assoc-ref inputs "ffmpeg")))
- (substitute* '("pydub/utils.py")
- (("return \"ffmpeg\"")
- (string-append "return \"" ffmpeg "/bin/ffmpeg\""))
- (("return \"ffplay\"")
- (string-append "return \"" ffmpeg "/bin/ffplay\""))
- (("return \"ffprobe\"")
- (string-append "return \"" ffmpeg "/bin/ffprobe\""))
- (("warn\\(\"Couldn't find ff") "# warn\\(\"Couldn't find ff"))
- #t))))))
+ (list
+ #:test-backend ''unittest
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-ffmpeg-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((bin (dirname (search-input-file inputs "bin/ffmpeg"))))
+ (substitute* "pydub/utils.py"
+ (("return \"ffmpeg\"")
+ (string-append "return \"" bin "/ffmpeg\""))
+ (("return \"ffplay\"")
+ (string-append "return \"" bin "/ffplay\""))
+ (("return \"ffprobe\"")
+ (string-append "return \"" bin "/ffprobe\""))
+ (("warn\\(\"Couldn't find ff")
+ "# warn\\(\"Couldn't find ff"))))))))
+ (native-inputs (list python-setuptools))
(home-page "https://pydub.com")
- (inputs
- (list ffmpeg))
- (propagated-inputs
- (list python-scipy))
+ (inputs (list ffmpeg))
+ (propagated-inputs (list python-scipy))
(synopsis "Manipulate audio with a high level interface in Python")
(description
"@code{pydub} makes it easy to manipulate audio in Python. It relies on
@@ -27669,15 +26792,18 @@ design and layout.")
(define-public python-pkginfo
(package
(name "python-pkginfo")
- (version "1.10.0")
+ (version "1.12.1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pkginfo" version))
(sha256
(base32
- "15v2mycr7m4ld5wp1sl9flqjjv8zdgc5rkgfz1wxn44d74skixsx"))))
+ "0ysbl0rhy8chvx58zi5qb61jli76dcyblklnc0118vy39a15gnaw"))))
(build-system pyproject-build-system)
+ (arguments
+ ;; Wheel metatda version mismatched: AssertionError: assert '2.4' == '2.3'
+ (list #:test-flags #~(list "-k" "not test_installed_ctor_w_dist_info")))
(native-inputs
(list python-pytest
python-setuptools
@@ -27695,36 +26821,24 @@ created by running @code{python setup.py develop}).")
(define-public python-twine
(package
(name "python-twine")
- (version "5.1.1")
+ (version "6.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "twine" version))
(sha256
- (base32 "1nr24gd5gm22b0jzb5qmw4swh8bshixmqm0kv4s38ay0758q584s"))))
+ (base32 "1gcd990456sk0g05ln6x6mwn9z1jybnm3wlkxq3ivyggf9i4ycmy"))))
(build-system pyproject-build-system)
- (arguments
- (list #:test-flags ;; Disable failing tests.
- #~(list "-k" (string-append
- "not test_fails_rst_no_content"
- " and not test_fails_rst_syntax_error"
- " and not test_passes_markdown_description[text/markdown]"
- " and not test_passes_markdown_description[text/plain]"
- " and not test_passes_rst_description"
- " and not test_warns_missing_description[False]"
- " and not test_warns_missing_description[True]"
- " and not test_warns_missing_file"))))
(native-inputs
(list python-pretend
python-pytest
python-pytest-socket
python-setuptools
- python-setuptools-scm
- python-wheel))
+ python-setuptools-scm))
(propagated-inputs
- (list python-importlib-metadata
+ (list python-id
python-keyring
- python-pkginfo
+ python-packaging
python-readme-renderer
python-requests
python-requests-toolbelt
@@ -27739,72 +26853,20 @@ distributions. It authenticates the user over HTTPS, allows them to pre-sign
their files and supports any packaging format (including wheels).")
(license license:asl2.0)))
-(define-public python-linecache2
- (package
- (name "python-linecache2")
- (version "1.0.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "linecache2" version))
- (sha256
- (base32
- "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb"))))
- (build-system python-build-system)
- (arguments
- `(;; The tests depend on unittest2, and our version is a bit too old.
- #:tests? #f))
- (native-inputs
- `(("python-pbr" ,python-pbr-minimal)))
- (home-page
- "https://github.com/testing-cabal/linecache2")
- (synopsis "Backports of the linecache module")
- (description
- "The linecache module allows one to get any line from any file, while
-attempting to optimize internally, using a cache, the common case where many
-lines are read from a single file.")
- (license license:psfl)))
-
-(define-public python-traceback2
- (package
- (name "python-traceback2")
- (version "1.4.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "traceback2" version))
- (sha256
- (base32
- "0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05"))))
- (build-system python-build-system)
- (arguments
- `(;; python-traceback2 and python-unittest2 depend on one another.
- #:tests? #f))
- (native-inputs
- `(("python-pbr" ,python-pbr-minimal)))
- (propagated-inputs
- (list python-linecache2 python-six))
- (home-page
- "https://github.com/testing-cabal/traceback2")
- (synopsis "Backports of the traceback module")
- (description
- "This module provides a standard interface to extract, format and print
-stack traces of Python programs. It exactly mimics the behavior of the Python
-interpreter when it prints a stack trace.")
- (license license:psfl)))
-
(define-public python-tracerite
(package
(name "python-tracerite")
- (version "1.1.0")
+ (version "1.1.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "tracerite" version))
(sha256
(base32
- "0jwy5wwl0rcsgnx7hhq4z7ji3lx271sar4v2a1rmyh5vsj7sn784"))))
+ "07mkg0sl0h335kj6yjvxki2c19gxhb7rkks1zgzh7aj0y83c17qi"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-setuptools-scm python-wheel))
+ (arguments
+ (list #:tests? #f)) ;no tests in PyPI or Git
+ (native-inputs (list python-setuptools python-setuptools-scm))
(propagated-inputs (list python-html5tagger))
(home-page "https://github.com/sanic-org/tracerite")
(synopsis "Human-readable HTML tracebacks")
@@ -27910,58 +26972,30 @@ offset, or using offset reference
(version "0.3.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "jsonrpclib-pelix" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tcalmant/jsonrpclib")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "0f83z5zi7w32vprhk1dyc94ir1bh4hdd57bjdbwkq9ykng8qilhl"))))
- (build-system python-build-system)
+ (base32 "1mhnqmgcplsxc4zygxy4hm99si7p2rpyl4bpmilzqc51k2r3khzl"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ; no tests in PyPI tarball
- (home-page "https://github.com/tcalmant/jsonrpclib/")
+ (list
+ #:test-backend #~'unittest
+ #:test-flags #~(list "-k" "not test_multicall_success")))
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/tcalmant/jsonrpclib")
(synopsis "JSON-RPC 2.0 client library for Python")
(description
- "This library implements the JSON-RPC v2.0
-specification (backwards-compatible) as a client library for Python. This
-version is a fork of jsonrpclib by Josh Marshall, usable with Pelix remote
-services.")
+ "This library implements the JSON-RPC v2.0 specification
+(backwards-compatible) as a client library for Python. This version is a fork
+of jsonrpclib by Josh Marshall, usable with Pelix remote services.")
(license license:asl2.0)))
-(define-public python-setuptools-scm-git-archive
- (package
- (name "python-setuptools-scm-git-archive")
- (version "1.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "setuptools_scm_git_archive" version))
- (sha256
- (base32
- "1nii1sz5jq75ilf18bjnr11l9rz1lvdmyk66bxl7q90qan85yhjj"))))
- (build-system python-build-system)
- (arguments
- '(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'dont-install-defunct-egginfo
- (lambda _
- ;; When a ".git" directory is missing, the setup.py
- ;; script invokes setuptools.setup twice, once with
- ;; "0" as the version. Prevent that.
- (substitute* "setup.py"
- (("if not isdir\\('\\.git'\\):")
- "if False:")))))))
- (native-inputs
- (list python-pytest))
- (propagated-inputs
- (list python-setuptools-scm))
- (home-page "https://github.com/Changaco/setuptools_scm_git_archive/")
- (synopsis "Setuptools_scm plugin for git archives")
- (description
- "The setuptools_scm_git_archive package is a plugin to
-setuptools_scm, which supports obtaining versions from git archives that
-belong to tagged versions.")
- (license license:expat)))
-
(define-public python-setuptools-git
+ ;; XXX: The project is abandoned since 2018, consider to remove in the next
+ ;; refresh cycle.
(package
(name "python-setuptools-git")
(version "1.2")
@@ -27970,21 +27004,21 @@ belong to tagged versions.")
(method url-fetch)
(uri (pypi-uri "setuptools-git" version))
(sha256
- (base32
- "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
- (build-system python-build-system)
+ (base32 "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- ;; This is needed for tests.
- (add-after 'unpack 'configure-git
- (lambda _
- (setenv "HOME" "/tmp")
- (invoke "git" "config" "--global" "user.email" "guix")
- (invoke "git" "config" "--global" "user.name" "guix")
- #t)))))
+ (list
+ #:tests? #f ;no tests in PyPI
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; This is needed for tests.
+ (add-after 'unpack 'configure-git
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (invoke "git" "config" "--global" "user.email" "guix")
+ (invoke "git" "config" "--global" "user.name" "guix"))))))
(native-inputs
- `(("git" ,git-minimal)))
+ (list git-minimal/pinned python-setuptools python-wheel))
(home-page "https://github.com/msabramo/setuptools-git")
(synopsis "Setuptools revision control system plugin for Git")
(description
@@ -27995,18 +27029,19 @@ Git.")
(define-public python-setuptools-rust
(package
(name "python-setuptools-rust")
- (version "1.6.0")
+ (version "1.11.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "setuptools-rust" version))
+ (uri (pypi-uri "setuptools_rust" version))
(sha256
- (base32 "0qi274r0fcnvxa8vs8vyhcknnzhq8pd0ig5zk1wmjc63x96p6vn8"))))
+ (base32 "1h3nbg1nlshzrqy7vz4q4g9wbz85dqkn6385p0ad7kjj48ww9avx"))))
(build-system pyproject-build-system)
- (arguments '(#:tests? #f)) ;no tests
+ (arguments
+ (list #:tests? #f)) ;tests rquire Cargo
(propagated-inputs
- (list python-semantic-version python-typing-extensions))
- (native-inputs (list python-setuptools python-wheel))
+ (list python-semantic-version
+ python-setuptools))
(home-page "https://github.com/PyO3/setuptools-rust")
(synopsis "Setuptools plugin for Rust extensions")
(description
@@ -28020,14 +27055,15 @@ Rust Python extensions implemented with @code{PyO3} or @code{rust-cpython}.")
(version "0.1.14")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "setuptools_gettext" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/breezy-team/setuptools-gettext")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0b0d74cwa9lk32cajzpxxg9nwm5hch17xc6bzg6i4iqsygprkw23"))))
+ (base32 "1m6a3qjwvqbvlzwqap7050rqsxb7nwibl38iklnqz8363iclm76k"))))
(build-system pyproject-build-system)
- (native-inputs (list python-tomli
- python-setuptools
- python-wheel))
+ (native-inputs (list python-pytest python-tomli python-setuptools))
(home-page "https://github.com/breezy-team/setuptools-gettext")
(synopsis "Setuptools plugin for gettext")
(description "This package provides a plugin for Setuptools for gettext.")
@@ -28057,9 +27093,12 @@ Rust Python extensions implemented with @code{PyO3} or @code{rust-cpython}.")
(add-after 'unpack 'set-version
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" "0.2.2"))))))
- (native-inputs (list python-pytest python-setuptools
- python-setuptools-scm python-wheel))
- (propagated-inputs (list python-pyparsing-2.4.7))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-pyparsing))
(home-page "https://github.com/MatthieuDartiailh/pyclibrary")
(synopsis "Wrap dynamic libraries in Python")
(description
@@ -28071,29 +27110,33 @@ definitions to simplify the use of C bindings.")
(define-public python-pyclipper
(package
(name "python-pyclipper")
- (version "1.3.0.post3")
+ (version "1.3.0.post6")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pyclipper" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/greginvm/pyclipper")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0vqzbmq2di1jaj6230m5i1ld0mg6wdb1c6r6i5zli54varavr7v3"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- ;; This file is generated by Cython.
- (delete-file "src/pyclipper/_pyclipper.cpp") #t))))
- (build-system python-build-system)
+ (base32 "1ijr7sx3203b3ppvsn1zyy8nfz93nbi60l8dxj2hdd6sj25g8q5k"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'cythonize-sources
- (lambda _
- (with-directory-excursion "src/pyclipper"
- (invoke "cython" "--cplus" "_pyclipper.pyx")))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
+ (add-before 'build 'cythonize-sources
+ (lambda _
+ (with-directory-excursion "src/pyclipper"
+ (invoke "cython" "--cplus" "_pyclipper.pyx")))))))
(native-inputs
- (list python-cython python-setuptools-scm
- python-pytest python-pytest-runner))
+ (list python-cython
+ python-pytest
+ python-setuptools
+ python-setuptools-scm))
(home-page "https://github.com/greginvm/pyclipper")
(synopsis "Wrapper for Angus Johnson's Clipper library")
(description
@@ -28110,13 +27153,11 @@ Angus Johnson's polygon clipping Clipper library (ver. 6.4.2).")
(method url-fetch)
(uri (pypi-uri "tempdir" version))
(sha256
- (base32
- "13msyyxqbicr111a294x7fsqbkl6a31fyrqflx3q7k547gnq15k8"))))
- (build-system python-build-system)
+ (base32 "13msyyxqbicr111a294x7fsqbkl6a31fyrqflx3q7k547gnq15k8"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ; No tests.
+ (native-inputs (list python-setuptools))
(home-page "https://pypi.org/project/tempdir/")
- (arguments
- ;; the package has no tests
- '(#:tests? #f))
(synopsis "Python library for managing temporary directories")
(description
"This library manages temporary directories that are automatically
@@ -28127,34 +27168,27 @@ particularly convenient for use in tests.")
(define-public python-tempora
(package
(name "python-tempora")
- (version "5.0.1")
+ (version "5.8.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tempora" version))
(sha256
- (base32 "09wirlk5vmxlhl9rnxp7g5qz2nsd6b0gnzk5fczbz0s8lsbz386b"))))
+ (base32 "1k9d6qmlp0i4v3d0dcqcsndvmng3lfdh4y0p8gwy9i8cg7ndkddb"))))
(build-system pyproject-build-system)
(arguments
- ;; Do not test the myproject.toml build as it tries to pull
- ;; dependencies from the Internet.
- (list #:test-flags #~'("-k" "not project")))
+ (list
+ ;; Do not test the myproject.toml build as it tries to pull dependencies
+ ;; from the Internet.
+ #:test-flags #~(list "-k" "not project"
+ "tests")))
(native-inputs
(list python-freezegun
python-pytest
- python-pytest-black
- python-pytest-checkdocs
- python-pytest-cov
- python-pytest-enabler
- python-pytest-flake8
- python-pytest-freezegun
- python-pytest-mypy
- python-setuptools-scm
- python-types-freezegun
- python-types-pytz
python-setuptools
- python-wheel))
- (propagated-inputs (list python-jaraco-functools python-pytz))
+ python-setuptools-scm
+ python-tzdata))
+ (propagated-inputs (list python-dateutil python-jaraco-functools))
(home-page "https://github.com/jaraco/tempora")
(synopsis "Python date and time objects and routines")
(description "The @code{tempora} Python library contains miscellaneous
@@ -28249,16 +27283,27 @@ objects on other machines, also known as remote procedure calls (RPC).")
(version "8.13.37")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "phonenumbers" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/daviddrysdale/python-phonenumbers")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1whw3p0p90x1iyw5cqf2pval90zy20c26ry3ywb0bsls2pnmycdx"))))
- (build-system python-build-system)
- (home-page
- "https://github.com/daviddrysdale/python-phonenumbers")
- (synopsis
- "Python library for dealing with international phone numbers")
+ (base32 "1bgab6s7l2bqg671sns138c9qr9f8ndvjr4ig8l3ik9q054l9k9n"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "-m" "testwrapper")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "python"))))))
+ (propagated-inputs (list python-protobuf))
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/daviddrysdale/python-phonenumbers")
+ (synopsis "Python library for dealing with international phone numbers")
(description
"This package provides a Python port of Google's libphonenumber library.")
(license license:asl2.0)))
@@ -28274,7 +27319,9 @@ objects on other machines, also known as remote procedure calls (RPC).")
(sha256
(base32
"1dnd7v9adqd21bf4ih2wzn9a7b41m0nccb0vbxny9n037rxzb5c4"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (arguments (list #:test-backend #~'unittest))
+ (native-inputs (list python-setuptools))
(home-page "http://stutzbachenterprises.com/")
(synopsis "Heap with decrease-key and increase-key operations")
(description
@@ -28283,40 +27330,6 @@ like a regular Python @code{dict}. It’s designed to be used as a priority
queue.")
(license license:bsd-3)))
-(define-public python-zict
- (package
- (name "python-zict")
- (version "3.0.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "zict" version))
- (sha256
- (base32
- "19gvr41xi5fazkzkg33kwrk70sv50hygng0cg70ayym9nriy48g3"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- ;; This uses "importorskip", but it won't skip.
- '(list "--ignore=tests/test_lmdb.py")))
- (propagated-inputs
- (list python-heapdict))
- (native-inputs
- (list python-pytest
- python-pytest-asyncio
- python-pytest-repeat
- python-pytest-timeout
- python-setuptools
- python-wheel))
- (home-page "https://zict.readthedocs.io/en/latest/")
- (synopsis "Composable mutable mapping tools")
- (description "This package provides abstract @code{MutableMapping} classes
-that consume and build on other @code{MutableMappings}. Several of these can
-be composed with one another to form intuitive interfaces over complex storage
-systems policies.")
- (license license:bsd-3)))
-
(define-public python-send2trash
(package
(name "python-send2trash")
@@ -28351,15 +27364,26 @@ user's @file{~/Trash} directory.")
(version "0.1.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pyfavicon" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/bilelmoussaoui/pyfavicon")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "15wfpa99hvcfsv8j0m8iprmydi2p4qkhm86qfx485244y0ia5mgx"))))
- (build-system python-build-system)
+ (base32 "04mx8vbi6j9l8daqa18sv0kkcyqv4wbc9z4ma77w68baq6ss0jzf"))))
+ (build-system pyproject-build-system)
(arguments
- ;; There are no tests in the PyPI tarball and the tests from the
- ;; repository require online data.
- '(#:tests? #f))
+ (list
+ #:test-backend #~'unittest
+ #:test-flags
+ #~(list "-k" (string-join (list
+ ;; Socket name resolution fails.
+ "not test_url_icon_link_type"
+ "test_icon_sizes"
+ ;; Tuples differ.
+ "test_largest_icon")
+ " and not "))))
+ (native-inputs (list python-setuptools))
(propagated-inputs
(list python-aiohttp python-beautifulsoup4 python-pillow))
(home-page "https://github.com/bilelmoussaoui/pyfavicon")
@@ -28368,109 +27392,49 @@ user's @file{~/Trash} directory.")
"@code{pyfavicon} is an async favicon fetcher.")
(license license:expat)))
-(define-public python-yamllint
- (package
- (name "python-yamllint")
- (version "1.31.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "yamllint" version))
- (sha256
- (base32 "0rbs7xq7y7bp3k75z7jamrdrrfyp95hifsz0hwm1cgkk5z8z30rd"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-pathspec python-pyyaml python-setuptools))
- (home-page "https://github.com/adrienverge/yamllint")
- (synopsis "Linter for YAML files")
- (description
- "Yamllint is a linter for YAML files. yamllint does not only check for
-syntax validity, but for weirdnesses like key repetition and cosmetic problems
-such as lines length, trailing spaces, indentation, etc.")
- (license license:gpl3+)))
-
-(define-public python-yapf
- (package
- (name "python-yapf")
- (version "0.43.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "yapf" version))
- (sha256
- (base32
- "13i1sn0jfm7snfdzbyrawxl457bdmgsxkmg0n8h99zzdpwjamlq0"))))
- (build-system pyproject-build-system)
- (propagated-inputs
- (list python-platformdirs python-tomli))
- (native-inputs
- (list python-pytest python-setuptools python-wheel))
- (home-page "https://github.com/google/yapf")
- (synopsis "Formatter for Python code")
- (description "YAPF is a formatter for Python code. It's based off of
-@dfn{clang-format}, developed by Daniel Jasper. In essence, the algorithm
-takes the code and reformats it to the best formatting that conforms to the
-style guide, even if the original code didn't violate the style guide.")
- (license license:asl2.0)))
-
-(define-public python-yq
- (package
- (name "python-yq")
- (version "3.1.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "yq" version))
- (sha256
- (base32
- "1wklgs3d9si475nffw9agq5kgk8bdicbsmlj4sx4kiw64ji4ma1h"))))
- (build-system python-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "yq/__init__.py"
- (("Popen\\(\\[\"jq")
- (string-append
- "Popen([\""
- (assoc-ref inputs "jq")
- "/bin/jq")))
- #t)))))
- (inputs
- (list python-argcomplete python-pyyaml python-xmltodict python-toml jq))
- (native-inputs
- (list python-coverage python-flake8 python-setuptools-scm python-wheel))
- (home-page "https://github.com/kislyuk/yq")
- (synopsis "Command-line YAML/XML processor")
- (description
- "This package provides @command{yq} and @command{xq} for processing YAML
-and XML respectively. The processing is done through @command{jq}, @command{jq}
-filters can be used to process the data as it passes through.")
- (license license:asl2.0)))
-
(define-public python-gyp
- (let ((commit "9d09418933ea2f75cc416e5ce38d15f62acd5c9a")
- (revision "1"))
+ ;; Google does not release versions.
+ (let ((commit "1615ec326858f8c2bd8f30b3a86ea71830409ce4")
+ (revision "2"))
(package
(name "python-gyp")
- ;; Google does not release versions,
- ;; based on second most recent commit date.
(version (git-version "0.0.0" revision commit))
(source
(origin
- ;; Google does not release tarballs,
- ;; git checkout is needed.
(method git-fetch)
(uri (git-reference
(url "https://chromium.googlesource.com/external/gyp")
(commit commit)))
(file-name (git-file-name name version))
(sha256
- (base32
- "0ay99rc5msqjpjl7fy1l69f8mvn08wnh2pgr08ijdih9z88xaa5x"))))
- (build-system python-build-system)
- (propagated-inputs (list python-six))
+ (base32 "02rnmw7k2r33x5nbb5xb8kk170hk0s1wmwfqpsx4cij1wbi4bqhk"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "--ignore-glob=test/win/**/*.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-six-requirements
+ (lambda _
+ (substitute* "pylib/gyp/generator/ninja.py"
+ (("six\\.ensure_binary\\(outputs\\[0\\]\\)")
+ "outputs[0].encode('utf-8')")
+ (("import six")
+ ""))
+ (substitute* '("pylib/gyp/common.py"
+ "pylib/gyp/msvs_emulation.py"
+ "test/lib/TestGyp.py")
+ (("from six\\.moves import collections_abc")
+ "import collections")
+ (("collections_abc")
+ "collections.abc"))))
+ (add-before 'check 'configure-tests
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append (getcwd) "/test/lib:"
+ (getenv "GUIX_PYTHONPATH"))))))))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://gyp.gsrc.io/")
(synopsis "GYP is a Meta-Build system")
(description
@@ -28479,28 +27443,6 @@ It can be used to generate XCode projects, Visual Studio projects, Ninja build
files, and Makefiles.")
(license license:bsd-3))))
-(define-public python-whatever
- (package
- (name "python-whatever")
- (version "0.7")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/Suor/whatever")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1x5b4r3fppp208v52hn8inf2988w4llbkw9kvfc3w81dhmrf5fvq"))))
- (build-system pyproject-build-system)
- (native-inputs
- (list python-pytest python-setuptools python-wheel))
- (home-page "https://github.com/Suor/whatever")
- (synopsis "Make anonymous functions by partial application of operators")
- (description "@code{whatever} provides an easy way to make anonymous
-functions by partial application of operators.")
- (license license:bsd-3)))
-
(define-public python-funcy
(package
(name "python-funcy")
@@ -28552,9 +27494,10 @@ Examples are:
(method url-fetch)
(uri (pypi-uri "isoweek" version))
(sha256
- (base32
- "1s7zsf0pab0l9gn6456qadnz5i5h90hafcjwnhx5mq23qjxggwvk"))))
- (build-system python-build-system)
+ (base32 "1s7zsf0pab0l9gn6456qadnz5i5h90hafcjwnhx5mq23qjxggwvk"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:test-backend #~'unittest))
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/gisle/isoweek")
(synopsis "Objects representing a week")
(description "The @code{isoweek} module provide the class Week that
@@ -28563,68 +27506,21 @@ a notation for identifying weeks; yyyyWww (where the W is a literal).
Week instances stringify to this form.")
(license license:bsd-3)))
-(define-public python-pyzbar
+(define-public python-tokenize-rt
(package
- (name "python-pyzbar")
- (version "0.1.8")
+ (name "python-tokenize-rt")
+ (version "6.2.0")
(source
(origin
- ;; There's no source tarball on PyPI.
(method git-fetch)
(uri (git-reference
- (url "https://github.com/NaturalHistoryMuseum/pyzbar")
+ (url "https://github.com/asottile/tokenize-rt")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1fqlfg5p2v9lzzzi0si2sz54lblprk6jjjhjw54b64lp58c1yhsl"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'remove-failing-test
- (lambda _
- ;; This tests if find_library was called once, but we remove
- ;; the call in the stage below to make the library find libzbar.
- (delete-file "pyzbar/tests/test_zbar_library.py")
- #t))
- (add-before 'build 'set-library-file-name
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((libzbar (assoc-ref inputs "zbar")))
- (substitute* "pyzbar/zbar_library.py"
- (("find_library\\('zbar'\\)")
- (string-append "'" libzbar "/lib/libzbar.so.0'")))
- #t))))))
- (native-inputs
- (list pkg-config python-numpy python-pillow))
- (inputs
- (list zbar))
- (home-page "https://github.com/NaturalHistoryMuseum/pyzbar/")
- (synopsis "Read one-dimensional barcodes and QR codes")
- (description
- "Read one-dimensional barcodes and QR codes using the zbar library.
-
-Features:
-
-@itemize
-@item Pure python
-@item Works with PIL / Pillow images, OpenCV / numpy ndarrays, and raw bytes
-@item Decodes locations of barcodes
-@item No dependencies, other than the zbar library itself
-@end itemize")
- (license license:expat)))
-
-(define-public python-tokenize-rt
- (package
- (name "python-tokenize-rt")
- (version "2.0.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "tokenize-rt" version))
- (sha256
- (base32
- "1yjvbz7rvrz31zjyax1cgy3xhf4wb3j18jwnj4bnl77ca4gliyiw"))))
- (build-system python-build-system)
+ (base32 "1maa9sifma0a6v7kl7mmyqzj0jdclzlp4wjr0vkdx95raihxx4fv"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/asottile/tokenize-rt")
(synopsis "Wrapper around the stdlib tokenize which roundtrips")
(description
@@ -28734,21 +27630,19 @@ source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
(define-public python-typeguard
(package
(name "python-typeguard")
- (version "4.4.1")
+ (version "4.4.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "typeguard" version))
(sha256
- (base32 "06y22d1f5dhpyl71wbhsaibig5hvc2v44pw795yb8lxl02fsh8hd"))))
+ (base32 "0x2zkskia5lb1838ys0bhpp9v6y80jkhchzdz874spbhzggx4zrs"))))
(build-system pyproject-build-system)
(native-inputs
(list python-mypy
python-pytest
python-setuptools
- python-setuptools-scm
- python-typing-extensions
- python-wheel))
+ python-setuptools-scm))
(propagated-inputs
(list python-typing-extensions))
(home-page "https://github.com/agronholm/typeguard")
@@ -28761,13 +27655,13 @@ with PEP 484 argument (and return) type annotations.")
(define-public bpython
(package
(name "bpython")
- (version "0.24")
+ (version "0.25")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bpython" version))
(sha256
- (base32 "1g9xzl49skghd9q2a8b71gg1n97lfnj9in2kzcmzsj4cgbynywwq"))))
+ (base32 "0ny6cqhpil7z36djc4ixakri65kb1rdn3d4ckmpc5p7nks8gqin2"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -28785,24 +27679,23 @@ with PEP 484 argument (and return) type annotations.")
(for-each
(lambda (old new)
(symlink old (string-append #$output "/bin/" new)))
- '("bpython" "bpython-curses" "bpython-urwid" "bpdb")
- '("bpython3" "bpython3-curses" "bpython3-urwid" "bpdb3")))))))
+ '("bpython" "bpython-urwid" "bpdb")
+ '("bpython3" "bpython3-urwid" "bpdb3")))))))
(native-inputs
(list python-mock
python-pytest
- python-setuptools
- python-sphinx
- python-wheel))
+ python-setuptools))
(propagated-inputs
(list python-curtsies
python-cwcwidth
python-greenlet
- python-jedi
python-pygments
python-pyxdg
python-requests
- python-typing-extensions
- python-urwid
+ ;; [optional]
+ python-pyperclip
+ python-jedi
+ python-urwid-2
python-watchdog))
(home-page "https://bpython-interpreter.org/")
(synopsis "Fancy interface to the Python interpreter")
@@ -28913,6 +27806,7 @@ working with iterables.")
Python.")
(license license:expat)))
+;; XXX: Not maintained since 2020.
(define-public python-pybktree
(package
(name "python-pybktree")
@@ -28924,7 +27818,9 @@ Python.")
(sha256
(base32 "0asd2lw9c5l5wi4z24k7gkhlprpdkcvs8d94szk56x9xvmy07h7f"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (arguments
+ (list #:tests? #f)) ;no tests provided
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/Jetsetter/pybktree")
(synopsis "Pythonic BK-tree data structure")
(description
@@ -28960,6 +27856,32 @@ close matches in Python.")
in Python. You can simply type pybtex instead of bibtex.")
(license license:expat)))
+(define-public python-pybtex-apa-style
+ (package
+ (name "python-pybtex-apa-style")
+ (version "1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pybtex-apa-style" version))
+ (sha256
+ (base32 "1cmgcpcvs9jcw4yxhiy217hdngp9p9nlp5x6s2qmkwj0iwgd39iq"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-backend #~'custom
+ #:test-flags
+ #~(list "-c" (string-append "import sys, pybtex.plugin;"
+ " sys.exit('apa' not"
+ " in pybtex.plugin.enumerate_plugin_names"
+ "('pybtex.style.labels'))"))))
+ (native-inputs (list python-pybtex python-setuptools))
+ (home-page "https://github.com/naeka/pybtex-apa-style")
+ (synopsis "APA style for pybtex")
+ (description
+ "This package provides support for the APA style within pybtex.")
+ (license license:expat)))
+
(define-public python-onetimepass
(package
(name "python-onetimepass")
@@ -29045,23 +27967,23 @@ jmerle/competitive-companion.")
(version "11.5.1")
;; Source distributions are not uploaded to PyPI.
;; https://pypi.org/project/online-judge-tools/11.5.1/#files
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/online-judge-tools/oj")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0zkzmmjgjb6lyrzq1ip54cpnp7al9a7mcyjyi5vx58bvnx3q0c6m"))
- (patches (search-patches "online-judge-tools.patch"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/online-judge-tools/oj")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0zkzmmjgjb6lyrzq1ip54cpnp7al9a7mcyjyi5vx58bvnx3q0c6m"))
+ (patches (search-patches "online-judge-tools.patch"))))
+ (build-system pyproject-build-system)
(arguments
- (list #:phases #~(modify-phases %standard-phases
- ;; These tests require network connections
- (add-after 'unpack 'remove-failing-test
- (lambda _
- (delete-file "tests/command_version.py") #t)))))
+ (list
+ #:test-flags
+ ;; These tests require network connections
+ #~(list "--ignore=tests/command_version.py")))
+ (native-inputs (list python-pytest python-setuptools))
(inputs (list time))
(propagated-inputs (list python-online-judge-api-client python-colorama
python-requests))
@@ -29085,6 +28007,7 @@ submitting it.")
(sha256
(base32 "0ymdwrx544a6gn6wm9dixpgzbfrbpxvcj5ys7m41cgb4lvpvx691"))))
(build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;No test suite.
(native-inputs (list python-setuptools python-wheel))
(home-page "https://github.com/iwalton3/python-mpv-jsonipc")
(synopsis "Python API to control MPV using JSON IPC")
@@ -29149,9 +28072,9 @@ Parso is also able to list multiple syntax errors in your Python file.")
(sha256
(base32
"0i11f6z6lix8ixi3vsk6s76zvvpmgrw6zjrcwjm0m4hjdh83vfvf"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(native-inputs
- (list python-pytest))
+ (list python-pytest python-setuptools))
(home-page "https://github.com/python-trio/async_generator")
(synopsis "Async generators and context managers for Python 3.5+")
(description "@code{async_generator} back-ports Python 3.6's native async
@@ -29162,13 +28085,13 @@ generators and Python 3.7's context managers into Python 3.5.")
(define-public python-async-timeout
(package
(name "python-async-timeout")
- (version "4.0.3")
+ (version "5.0.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "async-timeout" version))
+ (uri (pypi-uri "async_timeout" version))
(sha256
- (base32 "0bsj4z28ggxh1b6h6dvhx2mk6yqgb88bg8lyslpd10jdx1mxjh26"))))
+ (base32 "1lvparrx5sfnapaq4mwk0ai7kqrwg6h2ykc2gqc5wsjs7mx1lcnr"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -29181,6 +28104,7 @@ generators and Python 3.7's context managers into Python 3.5.")
((".*--cov.*") "")))))))
(native-inputs
(list python-pytest
+ python-pytest-asyncio
python-setuptools
python-wheel))
(home-page "https://github.com/aio-libs/async-timeout")
@@ -29190,6 +28114,18 @@ generators and Python 3.7's context managers into Python 3.5.")
compatible with @code{asyncio}.")
(license license:asl2.0)))
+(define-public python-async-timeout-4
+ (package
+ (inherit python-async-timeout)
+ (name "python-async-timeout")
+ (version "4.0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "async-timeout" version))
+ (sha256
+ (base32 "0bsj4z28ggxh1b6h6dvhx2mk6yqgb88bg8lyslpd10jdx1mxjh26"))))))
+
(define-public python-glob2
(package
(name "python-glob2")
@@ -29198,12 +28134,24 @@ compatible with @code{asyncio}.")
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/miracle2k/python-glob2")
- (commit (string-append "v" version))))
+ (url "https://github.com/miracle2k/python-glob2")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "160nh2ay9lw2hi0rixpzb2k87r6ql56k0j2cm87lqz8xc8zbw919"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-tests-for-pytest8
+ ;; See: <https://github.com/miracle2k/python-glob2/issues/30>.
+ (lambda _
+ (substitute* "test.py"
+ (("setup\\(") "setup_method(")
+ (("teardown\\(") "teardown_method("))
+ (rename-file "test.py" "glob2_test.py"))))))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/miracle2k/python-glob2/")
(synopsis "Extended Version of the python buildin glob module")
(description "This is an extended version of the Python
@@ -29310,29 +28258,32 @@ supports the globstar @code{**} operator to match an arbitrary number of
path components.")
(license license:asl2.0)))
+;; XXX: Not maintained since 2021.
(define-public python-git-hammer
(package
(name "python-git-hammer")
- (version "0.3.1")
+ (version "0.3.2")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/asharov/git-hammer")
- (commit version)))
+ (url "https://github.com/asharov/git-hammer")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
- (base32
- "0f9xlk86ijzpdj25hr1q4wcy8k72v3w470ngwm9mpdkfj8ng84wr"))))
- (build-system python-build-system)
+ (base32 "0j0skpbhi7js45hp1w2n87093yz1hjdg5y3kicwvm84fb8i38gvx"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-setup.py
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
(lambda _
(substitute* "setup.py"
- (("setup\\(")
- "setup(\n test_suite=\"test\",")))))))
+ (("matplotlib <3.1") "matplotlib")))))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
(propagated-inputs
(list python-beautifultable
python-dateutil
@@ -29344,8 +28295,8 @@ path components.")
(home-page "https://github.com/asharov/git-hammer")
(synopsis "Provide statistics for git repositories")
(description
- "Git Hammer is a statistics tool for projects in git repositories.
-Its major feature is tracking the number of lines authored by each person for every
+ "Git Hammer is a statistics tool for projects in git repositories. Its major
+feature is tracking the number of lines authored by each person for every
commit, but it also includes some other useful statistics.")
(license license:asl2.0)))
@@ -29440,46 +28391,6 @@ interface to FUSE on various operating systems. It's just one file and is
implemented using @code{ctypes}.")
(license license:isc)))
-(define-public python-update-checker
- (package
- (name "python-update-checker")
- (version "0.18.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "update-checker" version))
- (sha256
- (base32 "04yb5a9mi45ax50m2m0ih6gdvkk1j7gfmy83dd58i1f59axlabba"))))
- (build-system python-build-system)
- (propagated-inputs (list python-requests))
- (native-inputs (list python-black python-flake8 python-pytest))
- (home-page "https://github.com/bboe/update_checker")
- (synopsis "Python module that will check for package updates")
- (description "This package provides a Python module that will check for
-package updates.")
- (license license:bsd-2)))
-
-(define-public python-userspacefs
- (package
- (name "python-userspacefs")
- (version "2.0.5")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "userspacefs" version))
- (sha256
- (base32
- "0v0qkdwfc61s2yiq7d7amin93x5biypfmi9pfhf8yj1rdpx5yvsx"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-fusepyng))
- (home-page "https://github.com/rianhunter/userspacefs")
- (synopsis "User-space file systems for Python")
- (description
- "@code{userspacefs} is a library that allows you to easily write
-user-space file systems in Python.")
- (license license:gpl3+)))
-
(define-public python-stone
(package
(name "python-stone")
@@ -29697,33 +28608,10 @@ and corruption checks.")
library to allow local file system access via @code{file://} URLs.")
(license license:asl2.0)))
-(define-public python-ukkonen
- (package
- (name "python-ukkonen")
- (version "1.0.1")
- (source
- (origin
- ;; There are no tests in the PyPI tarball.
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/asottile/ukkonen")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "17gspl2dsykg000275svvyam4k7wz9ypi9xrfrmsgcgryczravlc"))))
- (build-system pyproject-build-system)
- (native-inputs (list python-pytest python-setuptools python-wheel))
- (propagated-inputs (list python-cffi))
- (home-page "https://github.com/asottile/ukkonen")
- (synopsis "Implementation of bounded Levenshtein distance (Ukkonen)")
- (description "This package is an implementation of of bounded Levenshtein
-distance (Ukkonen).")
- (license license:expat)))
-
(define-public python-identify
(package
(name "python-identify")
- (version "2.5.36")
+ (version "2.6.14")
(source
(origin
;; There are no tests in the PyPI tarball.
@@ -29733,18 +28621,12 @@ distance (Ukkonen).")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1il0d1zh31jx36m0lvhpiykx95i95dcfrgrfbz2x6la884zsmvq8"))))
+ (base32 "1fbl7wvhky4rlv37p0531xnl037lq58d8wsxgyylj371bfz3m3wp"))))
(build-system pyproject-build-system)
- (arguments
- (list
- #:phases #~(modify-phases %standard-phases
- ;; system-error "utime" "~A" ("No such file or directory")
- (delete 'ensure-no-mtimes-pre-1980))))
(native-inputs
- (list python-coverage python-pytest python-setuptools
- python-ukkonen python-wheel))
- (propagated-inputs
- (list python-editdistance))
+ (list python-pytest
+ python-setuptools
+ python-ukkonen))
(home-page "https://github.com/chriskuehl/identify")
(synopsis "File identification library for Python")
(description
@@ -29884,20 +28766,31 @@ environments.")
(package
(name "python-pynixutil")
(version "0.5.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/nix-community/pynixutil")
- (commit version)))
- (file-name (git-file-name name version))
- ;; Derivation test uses nix.
- (modules '((guix build utils)))
- (snippet '(delete-file "tests/test_drv.py"))
- (sha256
- (base32
- "1lnspcai7mqpv73bbd8kgyw63fxwgkwvfkl09b2bl5y2g2v7np6m"))))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nix-community/pynixutil")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1lnspcai7mqpv73bbd8kgyw63fxwgkwvfkl09b2bl5y2g2v7np6m"))))
(build-system pyproject-build-system)
- (native-inputs (list poetry python-pytest))
+ (arguments
+ (list
+ #:test-flags
+ ;; Tests require nix in the PATH.
+ #~(list "--ignore=tests/test_drv.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'use-poetry-core
+ (lambda _
+ ;; Patch to use the core poetry API.
+ (substitute* "pyproject.toml"
+ (("poetry.masonry.api") "poetry.core.masonry.api")))))))
+ (native-inputs
+ (list python-poetry-core
+ python-pytest))
(home-page "https://github.com/nix-community/pynixutil")
(synopsis "Utility functions for working with data from Nix in Python")
(description
@@ -30181,77 +29074,16 @@ codecs for use in data storage and communication applications.")
(description "This package draws tree structures using characters.")
(license license:expat)))
-(define-public python-zarr
- (package
- (name "python-zarr")
- (version "2.18.4")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "zarr" version))
- (sha256
- (base32
- "1fr41j8mxhbj7psn00416qs3nm12djhhmybgpqdax0q6vpg0wy9p"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- #~(list "--numprocesses" (number->string (parallel-job-count))
- ;; This tests are flaky. The pass several times on my laptop
- ;; but occasionally fail. They fail pretty reliably on the
- ;; build farm.
- "-k" (string-append "not test_lazy_loader and not open_array"
- ;; File not found.
- " and not test_filesystem_path"))
- #:phases
- #~(modify-phases %standard-phases
- (add-before 'build 'set-version
- (lambda _
- (substitute* "pyproject.toml"
- (("^version_file.*") "")
- (("dynamic = \\[\"version\"\\]")
- (string-append "version = \"" #$version "\"")))))
- (add-after 'unpack 'disable-service-tests
- (lambda _
- (setenv "ZARR_TEST_ABS" "0")
- (setenv "ZARR_TEST_MONGO" "0")
- (setenv "ZARR_TEST_REDIS" "0"))))))
- (propagated-inputs
- (list python-asciitree
- python-fasteners
- python-ipywidgets
- python-notebook
- python-numcodecs
- python-numpy
- python-numpydoc
- python-pydata-sphinx-theme))
- (native-inputs
- (list python-pytest
- python-pytest-xdist
- python-pytest-doctestplus
- python-sphinx
- python-sphinx-copybutton
- python-sphinx-design
- python-sphinx-issues
- python-setuptools
- python-wheel))
- (home-page "https://github.com/zarr-developers/zarr-python")
- (synopsis "Chunked, compressed, N-dimensional arrays for Python")
- (description
- "This package provides an implementation of chunked, compressed,
-N-dimensional arrays for Python.")
- (license license:expat)))
-
(define-public python-dill
(package
(name "python-dill")
- (version "0.3.9")
+ (version "0.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "dill" version))
(sha256
- (base32 "0b2inivjahjlph54a70x6wi3pax4qsgclhlw0blbz37nvmyjdal1"))))
+ (base32 "1w5w5hlijw7ahqji45ssyvdip5pv074h4nw97bsj8ws7vz9g2cq6"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -30280,14 +29112,14 @@ the saved state of the original interpreter session.")
(define-public python-multiprocess
(package
(name "python-multiprocess")
- (version "0.70.17")
+ (version "0.70.18")
(source
(origin
(method url-fetch)
(uri (pypi-uri "multiprocess" version))
(sha256
(base32
- "0ypm9yj1ng1s96hk2iwll190dkpc2j5zras8kay9x00n6hdg3qja"))))
+ "03bdxiincqq3g66vl3sf5ygagjz5sbrpr83djlipprmkwql72ngr"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -30319,7 +29151,7 @@ preload_resources\
(format #t "test suite not run~%")))))))
(propagated-inputs
(list python-dill))
- (native-inputs (list python-setuptools python-wheel))
+ (native-inputs (list python-setuptools))
(home-page "https://pypi.org/project/multiprocess/")
(synopsis "Multiprocessing and multithreading in Python")
(description
@@ -30351,7 +29183,7 @@ instead of pickle.")
(define-public python-toolrack
(package
(name "python-toolrack")
- (version "4.0.1")
+ (version "4.0.3")
(source
(origin
(method git-fetch)
@@ -30361,7 +29193,7 @@ instead of pickle.")
(file-name (git-file-name name version))
(sha256
(base32
- "03ard57xc2x0lpnzgrgfb9fqlq1y031ygp8jn2v2fg87i586gjsy"))))
+ "1aglfj7j25fiwx9jh1rl34mlhfpdhn8yrkn30vhkz9yw7zrx42h0"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -30375,8 +29207,7 @@ instead of pickle.")
(native-inputs (list python-pytest
python-pytest-asyncio
python-pytest-mock
- python-setuptools
- python-wheel))
+ python-setuptools))
(home-page "https://github.com/albertodonato/toolrack")
(synopsis "Collection of Python utility functions and classes")
(description "This package provides a collection of miscellaneous utility
@@ -30409,25 +29240,26 @@ functions, and dictionaries.")
(define-public python-cytoolz
(package
(name "python-cytoolz")
- (version "0.11.2")
+ (version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cytoolz" version))
(sha256
- (base32
- "1d12mgaippxxhn24w2hj0my3aqkx80fks5g4wzfdsvl0acqnc8za"))
+ (base32 "1mn7n916w8dfij3zq139a4szv12rwp94xxrnfvnv66wyp1hk3k49"))
(modules '((guix build utils)))
(snippet
'(for-each delete-file (find-files "cytoolz" "\\.c$")))))
- (build-system python-build-system)
- ;; FIXME: tests fail with "module 'cytoolz.curried' has no attribute
- ;; 'exceptions'"
- (arguments '(#:tests? #f))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-flags #~(list "--pyargs" "cytoolz")))
+ (native-inputs
+ (list python-cython
+ python-pytest
+ python-setuptools
+ python-wheel))
(propagated-inputs
(list python-toolz))
- (native-inputs
- (list python-cython))
(home-page "https://github.com/pytoolz/cytoolz")
(synopsis "High performance functional utilities")
(description
@@ -30466,15 +29298,18 @@ that is accessible to other projects developed in Cython.")
(version "2.4.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "sortedcontainers" version))
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/grantjenks/python-sortedcontainers")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "126vpywl7aly6zir033a9indgyficlzl68qls61nn2y3djhabji5"))))
- (build-system python-build-system)
+ (base32 "190w2mvgvx0r5k0r8117slq48nh6k7xidbpsrp02wnmcd0rx45k1"))))
+ (build-system pyproject-build-system)
(arguments
- ;; TODO: Circular dependency on pytest.
- '(#:tests? #f))
+ (list #:test-flags #~(list "--pyargs" "sortedcontainers")))
+ (native-inputs
+ (list python-pytest-bootstrap python-setuptools))
(home-page "https://grantjenks.com/docs/sortedcontainers/")
(synopsis "Sorted List, Sorted Dict, Sorted Set")
(description
@@ -30533,70 +29368,77 @@ they use the same path.")
(define-public python-partd
(package
(name "python-partd")
- (version "1.4.1")
+ (version "1.4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "partd" version))
(sha256
- (base32
- "0rvz2si6lbyhk7hj804gilq2y2bfdi33q81iwwkmgskgkva5vhjn"))))
+ (base32 "0b7h42dfvbrwpg75wzszv1rq3237h1g026v24v10b16wzcxc68nh"))))
(build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-versioneer))
(propagated-inputs
- (list python-locket python-numpy python-pandas python-pyzmq python-toolz))
- (native-inputs (list python-setuptools python-wheel))
+ (list python-locket
+ python-toolz
+ ;; [complete]
+ python-blosc
+ python-numpy
+ python-pandas
+ python-pyzmq))
(home-page "https://github.com/dask/partd/")
(synopsis "Appendable key-value storage")
- (description "Partd stores key-value pairs. Values are raw bytes. We
-append on old values. Partd excels at shuffling operations.")
+ (description
+ "Partd stores key-value pairs. Values are raw bytes. We append on old
+values. Partd excels at shuffling operations.")
(license license:bsd-3)))
(define-public python-fsspec
(package
(name "python-fsspec")
- (version "2024.12.0")
+ (version "2025.9.0")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/fsspec/filesystem_spec")
- (commit version)))
+ (url "https://github.com/fsspec/filesystem_spec")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "14hj13nnqd39z1x0vlf0939a08c5qb0jcwgawgcsr0wgmh2jzkam"))))
+ (base32 "1f11jjp7xd4q9a5lmb00i5l9v36162gjr6h1hkfzvgq78xa735xp"))))
(build-system pyproject-build-system)
(arguments
(list
+ #:test-flags
+ #~(list "--ignore=fsspec/implementations/tests/test_github.py"
+ "-k" (string-join
+ ;; Test requirs nentwork access
+ (list "not test_async_cat_file_ranges"
+ "test_gist_public_all_files"
+ "test_gist_public_missing_file"
+ "test_gist_public_one_file"
+ ;; Test hangs
+ "test_processes")
+ " and not "))
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'fix-version
- (lambda _
- (call-with-output-file "fsspec/_version.py"
- (lambda (port)
- (display (string-append "__version__ = \"" #$version "\"")
- port)))
- (substitute* "pyproject.toml"
- (("\\[tool\\.hatch\\.build\\.hooks\\.vcs\\]")
- "")
- (("^dynamic = \\[\"version\"\\]")
- (string-append "version = \"" #$version "\"\n")))))
- (add-after 'install 'install-version
+ (add-before 'build 'set-version
(lambda _
- (install-file
- "fsspec/_version.py"
- (dirname (car (find-files #$output "gui\\.py")))))))
- #:test-flags
- '(list
- ;; XXX: Unclear why this test fail.
- "-k" "not test_processes")))
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(propagated-inputs
(list python-aiohttp python-libarchive-c python-requests python-tqdm))
(native-inputs
- (list python-hatchling
+ (list nss-certs-for-test
+ python-hatch-vcs
+ python-hatchling
+ python-numpy
python-pytest
+ python-pytest-asyncio
python-pytest-mock
- python-numpy))
- (home-page "https://github.com/intake/filesystem_spec")
+ python-pytest-rerunfailures))
+ (home-page "https://github.com/fsspec/filesystem_spec")
(synopsis "File-system specification")
(description "The purpose of this package is to produce a template or
specification for a file-system interface, that specific implementations
@@ -30675,20 +29517,19 @@ on regular expressions.")
(define-public python-retrying
(package
(name "python-retrying")
- (version "1.3.3")
+ (version "1.4.1")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/rholder/retrying")
+ (url "https://github.com/groodt/retrying")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1kqipkbdaw5s1xg0gi29awm03vp1x8dz24pjidgxagvkvrjpzhi7"))))
+ (base32 "0m1kf6mxmxzlf3sldzm50c3hq1hkh6fz1g97pdwyvbwdazb7blw9"))))
(build-system pyproject-build-system)
- (propagated-inputs (list python-six))
- (native-inputs (list python-setuptools python-wheel))
- (home-page "https://github.com/rholder/retrying")
+ (native-inputs (list python-pytest python-setuptools))
+ (home-page "https://github.com/groodt/retrying")
(synopsis "Library for adding retry behavior")
(description "Retrying is a general-purpose retrying library to simplify
the task of adding retry behavior to just about anything.
@@ -30729,16 +29570,18 @@ RFC 8265 and RFC 8266.")
(define-public python-absl-py
(package
(name "python-absl-py")
- (version "1.4.0")
+ (version "2.3.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "absl-py" version))
+ (uri (pypi-uri "absl_py" version))
(sha256
- (base32
- "0ga3b0m8lfsv1m3260p83lhis52yvz3d42q8gip4gfj823849hnj"))))
+ (base32 "1jbzyyrmvmqwnyh053hdmh6q851sbvrg70yf3gnd5gvzdx920y59"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (arguments
+ (list #:tests? #f)) ;tests require bazel
+ (native-inputs
+ (list python-hatchling))
(home-page "https://github.com/abseil/abseil-py")
(synopsis "Abseil Python common libraries")
(description
@@ -30767,6 +29610,8 @@ source via the Abstract Syntax Tree.")
(license license:bsd-3)))
(define-public python-astunparse
+ ;; XXX: No updates since 2019, consider to remove when python-pytorch is
+ ;; updated.
(package
(name "python-astunparse")
(version "1.6.3")
@@ -30776,10 +29621,12 @@ source via the Abstract Syntax Tree.")
(uri (pypi-uri "astunparse" version))
(sha256
(base32 "0wh8jjvwafxc7rvbyb13cdwndkicm7cry1bd8p1q9l7has23mnas"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments '(#:tests? #f)) ; there are none
+ (native-inputs
+ (list python-setuptools))
(propagated-inputs
- (list python-six python-wheel))
+ (list python-six))
(home-page "https://github.com/simonpercivall/astunparse")
(synopsis "AST unparser for Python")
(description "This package provides an AST unparser for Python. It is a
@@ -30808,28 +29655,7 @@ versions, as produced by @code{ast.parse} from the standard @code{ast}
module.")
(license license:bsd-3)))
-(define-public python-wikidata
- (package
- (name "python-wikidata")
- (version "0.6.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "Wikidata" version))
- (sha256
- (base32
- "08nlnydddfp1jj0cdmshvld1irzngbp3dij928wqsg9ziklm6mw9"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-babel))
- (home-page "https://github.com/dahlia/wikidata")
- (synopsis "Wikidata client library")
- (description
- "This package provides a Python interface to
-@url{https://www.wikidata.org/, Wikidata}.")
- (properties '((upstream-name . "Wikidata")))
- (license license:gpl3+)))
-
+;; XXX: Not maintained since 2022, leaf package.
(define-public python-attr
(package
(name "python-attr")
@@ -30841,8 +29667,11 @@ module.")
(sha256
(base32 "1x2627x0n2rxx8wib4cksbjjnncff8finq97k37dq70qd2kvrvhw"))))
(build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "-c" "import dry_attr; dry_attr.test()")))
(native-inputs
- (list python-setuptools python-wheel))
+ (list python-setuptools))
(home-page "https://github.com/denis-ryzhkov/attr")
(synopsis "Decorator for attributes of target function or class")
(description "Simple decorator to set attributes of target function or
@@ -30898,23 +29727,18 @@ make your work easier.")
(define-public python-outcome
(package
(name "python-outcome")
- (version "1.2.0")
+ (version "1.3.0.post0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "outcome" version))
(sha256
- (base32 "0wi6bmsfn73aw1hbpa1nhhshlx9k2vxcl7kp3z7h78sxwhyvv0kg"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-vv"))))))
+ (base32 "1f2327wzf57zwqw15kzk19ff2s52fa74cxxk8w0bhw99bzk05kwx"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-pytest python-pytest-cov python-pytest-asyncio))
+ (list python-pytest
+ python-pytest-asyncio
+ python-setuptools))
(propagated-inputs
(list python-attrs))
(home-page "https://github.com/python-trio/outcome")
@@ -31169,17 +29993,25 @@ functions that aim to reduce boilerplate when working with data.")
(define-public python-annoy
(package
(name "python-annoy")
- (version "1.15.1")
+ (version "1.17.3")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "annoy" version))
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/spotify/annoy")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1rxn6snn0r32r07g45hdjhh8aa1xzx6fjrm8g62d8vzp46z7rzrp"))))
- (build-system python-build-system)
+ (base32 "1zmdp1dws3i35a0psb10k6rkh3iaiq8s9ybxibvfjihbapidd4d0"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; Requires python-h5py
+ (list #:test-flags #~(list "--ignore=test/accuracy_test.py")))
(native-inputs
- (list python-nose))
+ (list ;; python-h5py
+ python-numpy
+ python-pytest
+ python-setuptools))
(home-page "https://github.com/spotify/annoy/")
(synopsis "Approximate nearest neighbors library")
(description
@@ -31278,82 +30110,27 @@ their state. When the scheduler is restarted, it will then run all the jobs it
should have run while it was offline.")
(license license:expat)))
-(define-public python-pylzma
- (package
- (name "python-pylzma")
- (version "0.5.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pylzma" version))
- (sha256
- (base32
- "074anvhyjgsv2iby2ql1ixfvjgmhnvcwjbdz8gk70xzkzcm1fx5q"))))
- (build-system python-build-system)
- (home-page "https://www.joachim-bauch.de/projects/pylzma/")
- (synopsis "Python bindings for the LZMA library by Igor Pavlov")
- (description "This package provides Python bindings for the LZMA library
-by Igor Pavlov.")
- (license license:lgpl2.1+)))
-
(define-public python-ifaddr
(package
(name "python-ifaddr")
- (version "0.1.7")
+ (version "0.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ifaddr" version))
(sha256
- (base32
- "150sxdlicwrphmhnv03ykxplyd2jdrxz0mikgnivavgilrn8m7hz"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _ (invoke "nosetests"))))))
+ (base32 "1m5fqjqf53m31qrl8fxp2sbwf4mvk5mbjpw2jm2x8rgpmg5by36c"))
+ (snippet #~(delete-file "ifaddr/_win32.py"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-nose))
+ (list python-pytest python-setuptools python-wheel))
(home-page "https://github.com/pydron/ifaddr")
(synopsis "Network interface and IP address enumeration library")
- (description "This package provides a network interface and IP address
-enumeration library in Python.")
+ (description
+ "This package provides a network interface and IP address enumeration
+library in Python.")
(license license:expat)))
-(define-public python-zeroconf
- (package
- (name "python-zeroconf")
- (version "0.38.1")
- (source
- (origin
- (method git-fetch) ; no tests in PyPI release
- (uri (git-reference
- (url "https://github.com/jstasiak/python-zeroconf")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1p1a0ywlg5sq0ilcphmz9h4kayscz0q1lyfk57j7mwxyx4gl9cpi"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- #~(list "-k" (string-append
- ;; Networking isn't available for these tests.
- "not test_integration_with_listener_ipv6"
- " and not test_launch_and_close_v4_v6"
- " and not test_launch_and_close_context_manager"
- " and not test_launch_and_close"
- " and not test_close_multiple_times"))))
- (native-inputs (list python-pytest python-setuptools python-wheel))
- (propagated-inputs
- (list python-ifaddr))
- (home-page "https://github.com/jstasiak/python-zeroconf")
- (synopsis "Pure Python mDNS service discovery")
- (description "Pure Python multicast DNS (mDNS) service discovery library
-(Bonjour/Avahi compatible).")
- (license license:lgpl2.1+)))
-
(define-public python-bsddb3
(package
(name "python-bsddb3")
@@ -31511,19 +30288,23 @@ supports Image, Video, GeoJSON and TopoJSON overlays.")
(version "1.2.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "mercantile" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mapbox/mercantile")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0sxmndhzzrvss5irsgzfrk51k6jihwcb7661992mizdgbnqnsg7s"))))
- (build-system python-build-system)
+ (base32 "1b7kglzkjz1gmgjgk2y3n4gg70b8zdfg6kyqx2g7a3z7clxxf80f"))))
+ (build-system pyproject-build-system)
(propagated-inputs (list python-click))
- (native-inputs
- (list python-check-manifest python-hypothesis python-pytest))
+ (native-inputs (list python-check-manifest python-hypothesis python-pytest
+ python-setuptools))
(home-page "https://github.com/mapbox/mercantile")
(synopsis "Web mercator XYZ tile utilities")
- (description "The mercantile module provides @code{ul(xtile, ytile, zoom)}
-and @code{bounds(xtile, ytile, zoom)} functions that respectively return the
-upper left corner and bounding longitudes and latitudes for XYZ tiles, a
+ (description
+ "The mercantile module provides @code{ul(xtile, ytile, zoom)} and
+@code{bounds(xtile, ytile, zoom)} functions that respectively return the upper
+left corner and bounding longitudes and latitudes for XYZ tiles, a
@code{xy(lng, lat)} function that returns spherical mercator x and y
coordinates, a @code{tile(lng, lat, zoom)} function that returns the tile
containing a given point, and quadkey conversion functions
@@ -31531,49 +30312,26 @@ containing a given point, and quadkey conversion functions
translating between quadkey and tile coordinates.")
(license license:bsd-3)))
-(define-public python-xyzservices
- (package
- (name "python-xyzservices")
- (version "2022.4.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "xyzservices" version))
- (sha256
- (base32 "1paxv4i0dws85md7csv7pf80jl3xh792mx8rxnsrk61ks3ivbsyg"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags #~(list "-m" "not request")))
- (native-inputs
- (list python-pytest
- python-mercantile
- python-requests
- python-setuptools
- python-wheel))
- (home-page "https://github.com/geopandas/xyzservices")
- (synopsis "Source of XYZ tiles providers")
- (description "@code{xyzservices} is a lightweight library providing a
-repository of available XYZ services offering raster basemap tiles. The
-repository is provided via Python API and as a compressed JSON file.")
- (license license:bsd-3)))
-
(define-public jube
(package
;; This is a command-line tool, so no "python-" prefix.
(name "jube")
(version "2.6.1")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "http://apps.fz-juelich.de/jsc/jube/jube2/download.php?version="
- version))
- (sha256
- (base32
- "0r5d2gdqa0f4c468q3k25ycw1k2g76gg8fyiln4ni98fvfsbx3il"))
- (file-name (string-append "jube-" version ".tar.gz"))))
- (build-system python-build-system)
- (native-inputs (list python-pyyaml)) ; pyyaml is needed for tests
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://apps.fz-juelich.de/jsc/jube/jube2/download.php?version="
+ version))
+ (sha256
+ (base32 "0r5d2gdqa0f4c468q3k25ycw1k2g76gg8fyiln4ni98fvfsbx3il"))
+ (file-name (string-append "jube-" version ".tar.gz"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #f)) ; No tests.
+ (propagated-inputs (list python-pyyaml))
+ (native-inputs (list python-setuptools))
(home-page "https://apps.fz-juelich.de/jsc/jube/jube2/docu/index.html")
(synopsis "Benchmarking environment")
(description
@@ -31624,20 +30382,29 @@ for manual interpretation.")
(define-public python-distro
(package
(name "python-distro")
- (version "1.6.0")
+ (version "1.9.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "distro" version))
(sha256
- (base32
- "09441261dd3c8b2gv15vhw1cryzg60lmgpkk07v6hpwwkyhfbxc3"))))
- (build-system python-build-system)
+ (base32 "1vfvkgfvrjpxpb48pf8rs2l5wfxij0plmffnw5p123wlv1ppr9rg"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" (string-join
+ ;; We are not on Ubunto distro:
+ ;; AssertionError: assert '' == 'ubuntu'.
+ (list "not test_ubuntu14normal_lsb_release"
+ "test_trailingblanks_lsb_release"
+ "test_ubuntu14nomodules_lsb_release")
+ " and not "))))
(native-inputs
- (list python-pytest))
- (home-page "https://github.com/nir0s/distro")
- (synopsis
- "OS platform information API")
+ (list python-pytest
+ python-setuptools))
+ (home-page "https://github.com/python-distro/distro")
+ (synopsis "OS platform information API")
(description
"@code{distro} provides information about the OS distribution it runs on,
such as a reliable machine-readable ID, or version information.
@@ -31651,23 +30418,25 @@ information in various formats.")
(define-public python-cairosvg
(package
(name "python-cairosvg")
- (version "2.5.0")
+ (version "2.8.2")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "CairoSVG" version))
+ (uri (pypi-uri "cairosvg" version))
(sha256
- (base32 "1ylsisha2cc4w0yydxwhy7idkfw1inl9fsipxsrm7vyby080vi9z"))))
+ (base32 "17zgbgw24jw70rfka9wa3ff5wymk9cmaqk4a6697mchpcglg9jq7"))))
(build-system pyproject-build-system)
- (propagated-inputs
- (list python-cairocffi python-cssselect2 python-defusedxml
- python-pillow python-tinycss2))
+ (arguments
+ (list #:test-flags #~(list "cairosvg/test_api.py")))
(native-inputs
- (list python-pytest-flake8
- python-pytest-isort
- python-pytest-runner
- python-setuptools
- python-wheel))
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-cairocffi
+ python-cssselect2
+ python-defusedxml
+ python-pillow
+ python-tinycss2))
(home-page "https://cairosvg.org/")
(synopsis "SVG to PDF/PS/PNG converter based on Cairo")
(description "CairoSVG is a SVG converter based on Cairo. It can export
@@ -31804,6 +30573,7 @@ Its algorithms are based on the kakasi library, which is written in C.")
(build-system pyproject-build-system)
(arguments
(list
+ #:tests? #f ;XXX: Tests require setup
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-requirements
@@ -31814,15 +30584,12 @@ Its algorithms are based on the kakasi library, which is written in C.")
(("(ninja|patchelf)") "")))))))
(native-inputs
(list pkg-config
- python-meson-python
meson
ninja/pinned
patchelf
+ python-meson-python
python-setuptools
- python-sphinx
- python-sphinx-rtd-theme
- python-tappy
- python-wheel))
+ python-tappy))
(inputs
(list dbus glib))
(propagated-inputs
@@ -31931,48 +30698,7 @@ to and from JSON. Common data types are implemented and it is easy to
register custom encoders and decoders.")
(license license:expat)))
-(define-public python-ujson
- (package
- (name "python-ujson")
- (version "5.10.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "ujson" version))
- (sha256
- (base32
- "1habmn3bmmv2ym4ldiijcavdkdzp8h28h60hgwjkhxwcbly8zkdk"))
- (modules '((guix build utils)))
- (snippet
- #~(begin (delete-file-recursively "deps")))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'link-to-system-double-conversion
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((d-c (assoc-ref inputs "double-conversion")))
- (substitute* "setup.py"
- (("./deps/double-conversion/double-conversion\"")
- (string-append d-c "/include/double-conversion\""))
- (("-lstdc++" stdc)
- (string-append "-L" d-c "/lib\","
- " \"-ldouble-conversion\","
- " \"" stdc)))))))))
- (native-inputs
- (list double-conversion
- python-pytest
- python-setuptools
- python-setuptools-scm
- python-wheel))
- (home-page "https://github.com/ultrajson/ultrajson")
- (synopsis "Ultra fast JSON encoder and decoder for Python")
- (description
- "UltraJSON is an ultra fast JSON encoder and decoder written in pure C with
-bindings for Python 3.")
- (license license:bsd-3)))
-
+;; XXX: See: <https://codeberg.org/guix/guix/issues/3054>.
(define-public python-iocapture
;; The latest release is more than a year older than this commit.
(let ((commit "fdc021c431d0840303908dfc3ca8769db383595c")
@@ -31990,8 +30716,12 @@ bindings for Python 3.")
(sha256
(base32 "1mkbhqibxvgwg0p7slr8dfraa3g2s6bsayladhax2jccwj4kcndz"))))
(build-system pyproject-build-system)
- (native-inputs (list python-flexmock python-pytest python-pytest-cov
- python-setuptools python-wheel))
+ (native-inputs
+ (list python-flexmock
+ python-pytest
+ python-pytest-cov
+ python-setuptools
+ python-six))
(home-page "https://github.com/oinume/iocapture")
(synopsis "Python capturing tool for stdout and stderr")
(description
@@ -32010,7 +30740,9 @@ standard error channel (stderr) in your program.")
(sha256
(base32 "1ygjgkzn0i61zk2yr27aqnma08c8xpblhdixli9f20if1nlgkm2y"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (arguments
+ (list #:tests? #f)) ;no tests
+ (native-inputs (list python-setuptools))
(home-page "http://github.com/vpelletier/python-ioctl-opt")
(synopsis "Functions to compute fnctl.ioctl's opt argument")
(description
@@ -32078,10 +30810,8 @@ standard error channel (stderr) in your program.")
" and not test_socket_options"
" and not test_unretrieved_future_exception_server_crash"))))))))
(propagated-inputs
- (list python-contextvars
- python-idna
- python-sniffio
- python-typing-extensions))
+ (list python-idna
+ python-sniffio))
(native-inputs
(list python-psutil
python-pytest
@@ -32090,8 +30820,7 @@ standard error channel (stderr) in your program.")
python-setuptools-scm
python-trio
python-trustme
- python-uvloop
- python-wheel))
+ python-uvloop))
(home-page "https://github.com/agronholm/anyio")
(synopsis "Compatibility layer for multiple asynchronous event loops")
(description
@@ -32123,56 +30852,33 @@ layer and then tune the behaviour with any of the lower layers including the
native API of @code{python-argparse}.")
(license license:lgpl3+)))
-(define-public python-ppft
- (package
- (name "python-ppft")
- (version "1.6.6.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "ppft" version))
- (sha256
- (base32
- "1z1invkhszc5d2mvgr221v7cszzifcc77mz0pv3wjp6x5q2768cy"))))
- (build-system python-build-system)
- (arguments '(#:tests? #f)) ; there are none
- (propagated-inputs
- (list python-six))
- (home-page "https://pypi.org/project/ppft/")
- (synopsis "Fork of Parallel Python")
- (description
- "This package is a fork of Parallel Python. The Parallel Python
-module (@code{pp}) provides an easy and efficient way to create
-parallel-enabled applications for @dfn{symmetric multiprocessing} (SMP)
-computers and clusters. It features cross-platform portability and dynamic
-load balancing.")
- (license license:bsd-3)))
-
(define-public python-pox
(package
(name "python-pox")
- (version "0.2.7")
+ (version "0.3.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pox" version))
(sha256
(base32
- "0y17ckc2p6i6709s279sjdj4q459mpcc38ymg9zv9y6vl6jf3bq6"))))
- (build-system python-build-system)
+ "01gnsgz6wfmpmb57qr4cgpkampiy6l7c1kxa0hlacn81c0wyvvl4"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (mkdir-p "/tmp/guix")
- (setenv "SHELL" "bash")
- (setenv "USERNAME" "guix")
- (setenv "HOME" "/tmp/guix") ; must end on USERNAME...
- (invoke "py.test" "-vv")
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (mkdir-p "/tmp/guix")
+ (setenv "SHELL" "bash")
+ (setenv "USERNAME" "guix")
+ (setenv "HOME" "/tmp/guix") ; must end on USERNAME...
+ (invoke "python" "./pox/tests/__main__.py")))))))
(native-inputs
- (list python-pytest which))
+ (list python-setuptools
+ which)) ;pox/tests/test_shutils.py
(home-page "https://pypi.org/project/pox/")
(synopsis "Python utilities for file system exploration and automated builds")
(description
@@ -32185,49 +30891,16 @@ discovery of what has been installed on an operating system, and where the
essential tools are located.")
(license license:bsd-3)))
-(define-public python-pathos
- (package
- (name "python-pathos")
- (version "0.2.5")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pathos" version))
- (sha256
- (base32
- "0in8hxdz7k081ijn6q94gr39ycy7363sx4zysmbwyvd7snqjrbi1"))))
- (build-system python-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "python" "./tests/__main__.py"))))))
- (propagated-inputs
- (list python-dill python-multiprocess python-pox python-ppft))
- (native-inputs
- (list python-pytest))
- (home-page "https://pypi.org/project/pathos/")
- (synopsis
- "Parallel graph management and execution in heterogeneous computing")
- (description
- "Python-pathos is a framework for heterogeneous computing. It provides a
-consistent high-level interface for configuring and launching parallel
-computations across heterogeneous resources. Python-pathos provides configurable
-launchers for parallel and distributed computing, where each launcher contains
-the syntactic logic to configure and launch jobs in an execution environment.")
- (license license:bsd-3)))
-
(define-public python-flit
(package
(name "python-flit")
- (version "3.8.0") ;same as python-flit-core
+ (version "3.12.0") ;same as python-flit-core
(source
(origin
(method url-fetch)
(uri (pypi-uri "flit" version))
(sha256
- (base32 "0dz9sp2zlhkmk6sm5gapbbb30f7xq3n3jn5zxx5pkp25ppsaiwnh"))))
+ (base32 "0h1pxi2hgr95321bgl45l86693zl14l3shj0idsyg4k9v56z700w"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -32245,18 +30918,13 @@ and not test_validate_classifiers_private")
(setenv "HOME" "/tmp")
(setenv "FLIT_NO_NETWORK" "1")))))))
(propagated-inputs
- (list python-pypa-build
- python-tomli-w
+ (list python-tomli-w
python-flit-core
python-docutils
python-requests))
(native-inputs
(list python-responses
- python-pygments-github-lexers
python-pytest
- python-pytest-cov
- python-sphinx
- python-sphinxcontrib-github-alt
python-testpath))
(home-page "https://flit.readthedocs.io/")
(synopsis "Simple packaging tool for simple packages")
@@ -32266,25 +30934,6 @@ the import name as the name on PyPI. All subpackages and data files within a
package are included automatically.")
(license license:bsd-3)))
-(define-public python-pathtools
- (package
- (name "python-pathtools")
- (version "0.1.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pathtools" version))
- (sha256
- (base32
- "1h7iam33vwxk8bvslfj4qlsdprdnwf8bvzhqh3jq5frr391cadbw"))))
- (build-system python-build-system)
- (home-page
- "https://github.com/gorakhargosh/pathtools")
- (synopsis "Path utilities for Python")
- (description "Pattern matching and various utilities for file systems
-paths.")
- (license license:expat)))
-
(define-public python-fastentrypoints
(package
(name "python-fastentrypoints")
@@ -32367,17 +31016,20 @@ memoization.")
(version "0.8")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "cson" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/avakar/pycson")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "00cyvigg4npbph39ghkg77xbxisa6plf75vii24igxfizik0337f"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-speg))
+ (base32 "0d2zbmak0hzsl1w71dgc8x4q4vdfbpk46vwyi9vvvqv7gdqj59fn"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools python-wheel))
+ (propagated-inputs (list python-speg))
(home-page "https://github.com/avakar/pycson")
(synopsis "Parser for Coffeescript Object Notation (CSON)")
- (description "This package is a parser for Coffeescript Object
-Notation (CSON).")
+ (description
+ "This package is a parser for Coffeescript Object Notation (CSON).")
(license license:expat)))
(define-public python-aionotify
@@ -32436,30 +31088,20 @@ Notation (CSON).")
(define-public python-k5test
(package
(name "python-k5test")
- (version "0.10.3")
+ (version "0.10.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "k5test" version))
(sha256
- (base32
- "07sp9hc6nkbgzywvr2ivcik03wibs6gmxm1k33l1b8v3mnyfx7cw"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-six
- ;; `which`, `kadmin.local` binaries called inside library
- which mit-krb5))
- (native-inputs (list mit-krb5))
+ (base32 "0c7g9gk3vfgh1wbl4s1v15v283srsixkhgak7lxskxh2cqg4jlp1"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'apply-upstream-fixes
- (lambda* _
- (substitute* "k5test/realm.py"
- ;; Upstream commit f6b302d94dbdce37a1b81cc3faeeac4dc637b0e9.
- (("'kadmin_local'") "'kadmin.local'")
- ;; Upstream commit 3aef84515cf3d1a171c66856c898d0a5cbbd03ea.
- (("\\.stop_daemon") "._stop_daemon")))))))
+ (list #:tests? #f)) ;no tests
+ (native-inputs
+ (list python-setuptools))
+ (inputs
+ (list mit-krb5))
(home-page "https://github.com/pythongssapi/k5test")
(synopsis "Library for setting up self-contained Kerberos 5 environments")
(description
@@ -32472,23 +31114,26 @@ tests.")
(define-public python-gssapi
(package
(name "python-gssapi")
- (version "1.8.2")
+ (version "1.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "gssapi" version))
(sha256
- (base32
- "16n86nr19s95czvc1a9mdhs1kiq77qkcjp2c1rk5h4f93h10m3mp"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-decorator python-six))
+ (base32 "0qvpsx5kq746gixa7phxikkxmir3wy5dj94phg93mvhbq86mwjgi"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-flags #~(list "--pyargs" "gssapi")))
+ (native-inputs
+ (list python-cython
+ python-k5test
+ python-parameterized
+ python-pytest
+ python-setuptools))
(inputs
(list mit-krb5))
- ;; for tests
- (native-inputs
- (list python-parameterized python-k5test python-nose
- python-cython))
+ (propagated-inputs
+ (list python-decorator))
(home-page "https://github.com/pythongssapi/python-gssapi")
(synopsis "Python GSSAPI Wrapper")
(description
@@ -32557,170 +31202,54 @@ file to ensure it completely and accurately describes your project.")
files. These files are used to translate strings in android apps.")
(license license:expat)))
-(define-public python-watchdog
- (package
- (name "python-watchdog")
- (version "6.0.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "watchdog" version))
- (sha256
- (base32 "10n2v2iflhdriwfp34yvhfcckqb6vs7378fdvqj8xbm3zn17rpwx"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- #~(list "-k" (string-join
- (list "not test_kill_auto_restart"
- "test_auto_restart_on_file_change_debounce"
- ;; Fails with too many open files.
- "test_select_fd")
- " and not "))))
- (propagated-inputs
- (list python-pathtools python-pyyaml))
- (native-inputs
- (list python-pytest
- python-pytest-cov
- python-pytest-timeout
- python-setuptools python-wheel))
- (home-page "https://github.com/gorakhargosh/watchdog")
- (synopsis "File system events monitoring")
- (description "This package provides a way to monitor file system events
-such as a file modification and trigger an action. This is similar to inotify,
-but portable.")
- (license license:asl2.0)))
-
-(define-public python-watchfiles
+(define-public offlate
(package
- (name "python-watchfiles")
- (version "1.0.4")
+ (name "offlate")
+ (version "0.6.1")
(source
(origin
- ;; There are no tests in the PyPI tarball.
(method git-fetch)
(uri (git-reference
- (url "https://github.com/samuelcolvin/watchfiles")
- (commit (string-append "v" version))))
+ (url "https://framagit.org/tyreunom/offlate")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1kaxq0drjwlvcsg4in25w1bhjjgm1zlz06rr2macyi6s5x96g46h"))))
- (build-system cargo-build-system)
+ (base32 "1sx5cv8pamyw1m089b6x8ykaxdkx26jk9cblhbzlf0m3ckz52jik"))))
+ (build-system pyproject-build-system)
(arguments
(list
- #:install-source? #f
- #:imported-modules `(,@%cargo-build-system-modules
- ,@%pyproject-build-system-modules)
- #:modules '((guix build cargo-build-system)
- ((guix build pyproject-build-system) #:prefix py:)
- (guix build utils))
+ #:tests? #f ; No tests.
#:phases
#~(modify-phases %standard-phases
- (replace 'build
- (assoc-ref py:%standard-phases 'build))
- (add-after 'build 'install-rust-library
+ (add-before 'build 'generate-fonts
(lambda _
- (copy-file "target/release/lib_rust_notify.so"
- "watchfiles/_rust_notify.so")))
- (replace 'check
- (lambda* (#:key tests? test-flags #:allow-other-keys)
- (if tests?
- ;; Missing file in source.
- (invoke "pytest" "-vv" "-k" "not test_docs_examples")
- (format #t "test suite not run~%"))))
- (replace 'install
- (assoc-ref py:%standard-phases 'install)))
- #:cargo-inputs
- (list rust-crossbeam-channel-0.5 rust-notify-7 rust-pyo3-0.23)))
- (native-inputs
- (list maturin
- python-anyio
- python-coverage
- python-dirty-equals
- python-pytest
- python-pytest-cov
- python-pytest-mock
- python-pytest-timeout
- python-wrapper))
- (home-page "https://github.com/samuelcolvin/watchfiles")
- (synopsis "Simple, modern file watching and code reload in Python")
- (description
- "Simple, modern file watching and code reload in Python inspired by
-@code{watchdog}. Among the differences are a unified approach for each
-operating systems and an elegant approach to concurrency using threading.")
- (license license:expat)))
-
-(define-deprecated/alias python-watchgod python-watchfiles)
-(export python-watchgod)
-
-(define-public python-wget
- (package
- (name "python-wget")
- (version "3.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "wget" version ".zip"))
- (sha256
- (base32
- "0qb0y7ipby42m4m7h0ipazpdyc3bn9xi46lvifcwwl5albn31rim"))))
- (build-system python-build-system)
- (native-inputs (list unzip))
- (home-page "https://bitbucket.org/techtonik/python-wget/")
- (synopsis "Pure Python download utility")
- (description "The python-wget library provides an API to download files
-with features similar to the @command{wget} utility.")
- (license license:unlicense)))
-
-(define-public offlate
- (package
- (name "offlate")
- (version "0.6.1")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://framagit.org/tyreunom/offlate")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1sx5cv8pamyw1m089b6x8ykaxdkx26jk9cblhbzlf0m3ckz52jik"))))
- (build-system python-build-system)
- (arguments
- ;; No tests
- `(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'generate-fonts
- (lambda _
- (invoke "make" "fonts")))
- (add-before 'build 'generate-translations
- (lambda _
- (invoke "make" "update-langs"))))))
+ (invoke "make" "fonts")))
+ (add-before 'build 'generate-translations
+ (lambda _
+ (invoke "make" "update-langs"))))))
(propagated-inputs
- (list python-android-stringslib
- python-dateutil
- python-gitlab
- python-lxml
- python-polib
- python-pycountry
- python-pyenchant
- python-pygit2
- python-pygithub
- python-pyqt
- python-requests
- python-ruamel.yaml
- python-translate-toolkit
- python-translation-finder
- python-watchdog))
- (native-inputs
- (list qttools-5 fontforge))
+ (list python-android-stringslib
+ python-dateutil
+ python-gitlab
+ python-lxml
+ python-polib
+ python-pycountry
+ python-pyenchant
+ python-pygit2
+ python-pygithub
+ python-pyqt
+ python-requests
+ python-ruamel.yaml
+ python-translate-toolkit
+ python-translation-finder
+ python-watchdog))
+ (native-inputs (list qttools-5 fontforge python-setuptools))
(home-page "https://framagit.org/tyreunom/offlate")
(synopsis "Offline translation interface for online translation tools")
- (description "Offlate offers a unified interface for different translation
-file formats, as well as many different online translation platforms. You can
-use it to get work from online platforms, specialized such as the Translation
+ (description
+ "Offlate offers a unified interface for different translation file
+formats, as well as many different online translation platforms. You can use
+it to get work from online platforms, specialized such as the Translation
Project, or not such a gitlab instance when your upstream doesn't use any
dedicated platform. The tool proposes a unified interface for any format and
an upload option to send your work back to the platform.")
@@ -32737,7 +31266,17 @@ an upload option to send your work back to the platform.")
(sha256
(base32
"1x9myq3rlbw6wh946ncch8px7wyabhzacy2fjji13nmvrivs50vx"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (when tests?
+ (apply invoke "python" "-m" "unittest" test-flags)))))))
+ (native-inputs
+ (list python-setuptools))
(home-page "https://github.com/ppannuto/python-titlecase")
(synopsis "Capitalize strings similar to book titles")
(description
@@ -32830,53 +31369,6 @@ prevent debuggers and other applications from inspecting the memory within
your process.")
(license license:expat)))
-(define-public python-owslib
- (package
- (name "python-owslib")
- (version "0.19.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "OWSLib" version))
- (sha256
- (base32 "0v8vg0naa9rywvd31cpq65ljbdclpsrx09788v4xj7lg10np8nk0"))))
- (build-system python-build-system)
- (arguments
- ;; TODO: package dependencies required for tests.
- '(#:tests? #f
- #:phases (modify-phases %standard-phases
- (delete 'sanity-check))))
- (synopsis "Interface for Open Geospatial Consortium web service")
- (description
- "OWSLib is a Python package for client programming with Open Geospatial
-Consortium (OGC) web service (hence OWS) interface standards, and their related
-content models.")
- (home-page "https://geopython.github.io/OWSLib/")
- (license license:bsd-3)))
-
-(define-public python-xattr
- (package
- (name "python-xattr")
- (version "0.9.9")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "xattr" version))
- (sha256
- (base32
- "0ipkfblyvp5hylahjkw9zss1ii9xnwjypr3b3ncv989szcg7xjq9"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-cffi))
- (home-page "https://github.com/xattr/xattr")
- (synopsis
- "Python wrapper for extended file system attributes")
- (description "This package provides a Python wrapper for using extended
-file system attributes. Extended attributes extend the basic attributes of files
-and directories in the file system. They are stored as name:data pairs
-associated with file system objects (files, directories, symlinks, etc).")
- (license license:expat)))
-
(define-public python-json-e
(package
(name "python-json-e")
@@ -32933,57 +31425,35 @@ as JSON objects. With JSON we can make our logs more readable by machines and
we can stop writing custom parsers for syslog-type records.")
(license license:bsd-3)))
-(define-public python-unique-log-filter
+(define-public python-daiquiri
(package
- (name "python-unique-log-filter")
- (version "0.1.0")
+ (name "python-daiquiri")
+ (version "3.0.1")
(source
- ;; The version on pypi does not include test files.
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/twizmwazin/unique_log_filter")
- (commit (string-append "v" version))))
+ (url "https://github.com/jd/daiquiri")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "036mh6nqskck2fa1q2inasqxb9wcz2p09qcpldnnffzcy1a6kzba"))))
+ (base32 "0vfakncq87s6g67mqihjf32xarphd75c03ammvgavladz0pqhlg4"))))
(build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "test_unique_log_filter.py")))))))
- (native-inputs (list python-flit-core))
- (home-page "https://github.com/twizmwazin/unique_log_filter")
- (synopsis "Log filter that removes duplicate log messages")
- (description
- "This library provides a filter for the @code{logging} module
-from the Python standard library which allows removing duplicate log
-messages.")
- (license license:bsd-2)))
-
-(define-public python-daiquiri
- (package
- (name "python-daiquiri")
- (version "2.1.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "daiquiri" version))
- (sha256
- (base32
- "1qmank3c217ddiig3xr8ps0mqaydcp0q5a62in9a9g4zf72zjnqd"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-json-logger))
- (native-inputs
- (list python-mock python-pytest python-setuptools-scm python-six))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+ (propagated-inputs (list python-json-logger))
+ (native-inputs (list python-mock python-pytest python-setuptools
+ python-setuptools-scm))
(home-page "https://github.com/jd/daiquiri")
- (synopsis
- "Library to configure Python logging easily")
- (description "The daiquiri library provides an easy way to configure
-logging in Python. It also provides some custom formatters and handlers.")
+ (synopsis "Library to configure Python logging easily")
+ (description
+ "The daiquiri library provides an easy way to configure logging in
+Python. It also provides some custom formatters and handlers.")
(license license:asl2.0)))
(define-public python-pifpaf
@@ -33027,26 +31497,25 @@ evolved from its precursor @code{overtest}.")
(define-public python-pytest-check-links
(package
(name "python-pytest-check-links")
- (version "0.3.0")
+ (version "0.10.1")
(source
(origin
(method url-fetch)
- ;; URI uses underscores
(uri (pypi-uri "pytest_check_links" version))
(sha256
- (base32
- "12x3wmrdzm6wgk0vz02hb769h68nr49q47w5q1pj95pc89hsa34v"))))
- (build-system python-build-system)
+ (base32 "0vbp9nis2iwjz1rjc623bm2908y34xd7zj4yfk43giz6r29dsn3k"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;XXX: 12 failed, 4 passed, 2 skipped
+ (native-inputs
+ (list python-hatchling))
(propagated-inputs
(list python-docutils
python-html5lib
python-nbconvert
python-nbformat
- python-pytest
- python-six))
- (native-inputs
- (list python-pbr-minimal))
- (home-page "https://github.com/minrk/pytest-check-links")
+ python-requests))
+ (home-page "https://github.com/jupyterlab/pytest-check-links")
(synopsis "Check links in files")
(description "This package provides a pytest plugin that checks URLs for
HTML-containing files.")
@@ -33107,38 +31576,6 @@ dumping of JSON5 data structures.")
Foundation maintained libraries.")
(license license:expat)))
-(define-public python-freetype-py
- (package
- (name "python-freetype-py")
- (version "2.3.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "freetype-py" version ".zip"))
- (sha256
- (base32 "1l55wzy21jmdayjna29ahzxrf2fp68580978rs6kap1a4zilrdpr"))))
- (build-system python-build-system)
- (native-inputs
- (list python-setuptools-scm
- unzip))
- (inputs (list freetype))
- (arguments
- `(#:phases
- ;; Note: the pypi archive does not contain tests, but running the check
- ;; phase will at least test whether the module loads correctly.
- (modify-phases %standard-phases
- (add-before 'build 'embed-library-reference
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "freetype/raw.py"
- (("^(filename = ).*" _ >)
- (string-append > "\"" (search-input-file inputs "/lib/libfreetype.so")
- "\"\n"))))))))
- (home-page "https://github.com/rougier/freetype-py")
- (synopsis "Freetype python bindings")
- (description "Freetype Python provides bindings for the FreeType
-library. Only the high-level API is bound.")
- (license license:bsd-3)))
-
(define-public python-frozendict
(package
(name "python-frozendict")
@@ -33162,57 +31599,32 @@ implements the complete mapping interface. It can be used as a drop-in
replacement for dictionaries where immutability is desired.")
(license license:expat)))
-(define-public python-unpaddedbase64
+(define-public python-py-cpuinfo
(package
- (name "python-unpaddedbase64")
- (version "2.1.0")
+ (name "python-py-cpuinfo")
+ (version "9.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/matrix-org/python-unpaddedbase64")
+ (url "https://github.com/workhorsy/py-cpuinfo")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1n6har8pxv0mqb96lanzihp1xf76aa17jw3977drb1fgz947pnmz"))))
+ (base32
+ "112gzmwbj3ndxv20ii7i70irp58adwrlzjdvx5gmh39aw21b96s3"))))
(build-system pyproject-build-system)
- (native-inputs (list python-poetry-core
- python-pytest
- python-setuptools
- python-wheel))
- (home-page "https://github.com/matrix-org/python-unpaddedbase64")
- (synopsis "Encode and decode Base64 without “=” padding")
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "test_suite.py")))
+ (native-inputs
+ (list python-setuptools))
+ (home-page "https://github.com/workhorsy/py-cpuinfo")
+ (synopsis "Get CPU info with Python")
(description
- "RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes
-using “=” characters. However this conveys no benefit so many protocols
-choose to use Base64 without the “=” padding.")
- (license license:asl2.0)))
-
-(define-public python-py-cpuinfo
- ;; This is the first commit where riscv64-linux support is available.
- ;; We can move back to pypi releases with the next release.
- (let ((commit "4d6987e5c30f2ebacb20781892c01329042cce60")
- (revision "1"))
- (package
- (name "python-py-cpuinfo")
- (version (git-version "8.0.0" revision commit))
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/workhorsy/py-cpuinfo")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0h5wi1bfcqqr1x3j1pa7dmkx7siprsyksbsy80fl2sdrrgpji0b0"))))
- (build-system python-build-system)
- (home-page "https://github.com/workhorsy/py-cpuinfo")
- (synopsis "Get CPU info with Python")
- (description
- "This Python module returns the CPU info by using the best sources of
+ "This Python module returns the CPU info by using the best sources of
information for your operating system.")
- (license license:expat))))
+ (license license:expat)))
(define-public python-canonicaljson
(package
@@ -33258,19 +31670,32 @@ information for your operating system.")
(define-public python-signedjson
(package
(name "python-signedjson")
- (version "1.1.1")
+ (version "1.1.4")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "signedjson" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/matrix-org/python-signedjson")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0280f8zyycsmd7iy65bs438flm7m8ffs1kcxfbvhi8hbazkqc19m"))))
- (build-system python-build-system)
+ (base32 "1wkgbwr0hdvafbhbqjibca06rxqbp95gg6rfd3ba6rkgl4g85i5z"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(propagated-inputs
- (list python-canonicaljson python-importlib-metadata python-pynacl
- python-typing-extensions python-unpaddedbase64))
+ (list python-canonicaljson
+ python-importlib-metadata
+ python-pynacl
+ python-typing-extensions
+ python-unpaddedbase64))
(native-inputs
- (list python-setuptools-scm))
+ (list python-pytest python-setuptools-scm python-setuptools))
(home-page "https://github.com/matrix-org/python-signedjson")
(synopsis "Sign JSON objects with ED25519 signatures")
(description
@@ -33394,55 +31819,35 @@ tbutils
(define-public python-eliot
(package
(name "python-eliot")
- (version "1.16.0")
+ (version "1.17.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "eliot" version))
(sha256
- (base32 "1ybf5klr8r28yfrkm1a3598h83h10pkx1j1saf9h3lk21isxl9la"))))
+ (base32 "0rx7isb3h5fvraycfgqm781asjjmqldn0qcv6s2r5fwc1p31ffvb"))))
(build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'remove-journald-support
- (lambda _
- (for-each delete-file
- '("eliot/tests/test_journald.py"
- "eliot/journald.py"))
- #t))
- (add-after 'remove-journald-support 'remove-eliot-prettyprint-tests
- ;; remove command-line tool's tests. TODO eliot-prettyprint should
- ;; be installed and these tests should pass.
- (lambda _
- (delete-file "eliot/tests/test_prettyprint.py")
- #t))
- (add-after 'remove-eliot-prettyprint-tests 'remove-failing-tests
- (lambda _
- ;; These tests started to fail after updating python-pandas to
- ;; 1.3.3 and python-dask to 2021.9.1.
- (substitute* "eliot/tests/test_validation.py"
- (("test_omitLoggerFromActionType")
- "_test_omitLoggerFromActionType")
- (("test_logCallsDefaultLoggerWrite")
- "_test_logCallsDefaultLoggerWrite"))
- #t)))))
- (propagated-inputs
- (list python-boltons python-orjson python-pyrsistent python-zope-interface))
+ (list
+ ;; tests: 407 passed, 21 skipped, 2 deselected, 5479 warnings
+ ;; Two tests fail with error: TypeError: Unsupported type.
+ #:test-flags #~(list "-k" "not test_basic_types and not test_dataclass")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-journald-support
+ (lambda _
+ (for-each delete-file
+ '("eliot/tests/test_journald.py"
+ "eliot/journald.py")))))))
(native-inputs
- (list python-black
- python-coverage
- python-flake8
- python-hypothesis
- python-pytest
- python-pytest-xdist
+ (list python-pytest
python-setuptools
- python-sphinx
- python-sphinx-rtd-theme
- python-testtools
- python-twine
- python-twisted
- python-wheel))
+ python-testtools))
+ (propagated-inputs
+ (list python-boltons
+ python-orjson
+ python-pyrsistent
+ python-zope-interface))
(home-page "https://github.com/itamarst/eliot/")
(synopsis "Eliot: the logging system that tells you why it happened")
(description
@@ -33505,44 +31910,50 @@ with the Twisted web framework.")
(license license:expat))))
(define-public python-txacme
- (package
- (name "python-txacme")
- (version "0.9.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "txacme" version))
- (sha256
- (base32 "1cplx4llq7i508w6fgwjdv9di7rsz9k9irfmzdfbiz6q6a0ykf1d"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-acme
- python-attrs
- python-eliot
- python-josepy
- python-pem
- python-treq
- python-twisted
- python-txsni))
- (native-inputs
- (list python-fixtures
- python-hypothesis
- python-mock
- python-service-identity
- python-testrepository
- python-testscenarios
- python-testtools))
- (home-page "https://github.com/twisted/txacme")
- (synopsis "Twisted implexmentation of the ACME protocol")
- (description
- "ACME is Automatic Certificate Management Environment, a protocol that
+ ;; 0.9.3 tag was placed in 2020 and there a lot of changes providing
+ ;; compatibility wit twisted, use the latest commit from trunk branch.
+ ;;
+ ;;See: <https://github.com/twisted/txacme/issues/165>.
+ (let ((commit "ac18f92f6dde971a6b38f2ecfae44665815db583")
+ (revision "0"))
+ (package
+ (name "python-txacme")
+ (version (git-version "0.9.3" revision commit))
+ (source
+ (origin
+ (method git-fetch) ;no fresh release in PyPI
+ (uri (git-reference
+ (url "https://github.com/twisted/txacme")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0mgdfxldv8qflbn75ywslbarnd4i3l7c4krs4aibl2dpryclsjzs"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "-m" "twisted.trial" "txacme")))
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-acme
+ python-attrs
+ python-eliot
+ python-josepy
+ python-pem
+ python-treq
+ python-twisted
+ python-txsni))
+ (home-page "https://github.com/twisted/txacme")
+ (synopsis "Twisted implexmentation of the ACME protocol")
+ (description
+ "ACME is Automatic Certificate Management Environment, a protocol that
allows clients and certificate authorities to automate verification and
certificate issuance. The ACME protocol is used by the free Let's Encrypt
Certificate Authority.
txacme is an implementation of the protocol for Twisted, the event-driven
networking engine for Python.")
- (license license:expat)))
+ (license license:expat))))
(define-public python-pysaml2
(package
@@ -33656,24 +32067,17 @@ dictionaries.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32
- "0agq171cz7y10cknjypwrvsvikja3w9d28hlr3kw5k2sdvfqnpam"))))
- (build-system python-build-system)
+ (base32 "0agq171cz7y10cknjypwrvsvikja3w9d28hlr3kw5k2sdvfqnpam"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'fix-home-directory
- (lambda _
- ;; Tests fail with "Permission denied: '/homeless-shelter'".
- (setenv "HOME" "/tmp"))))
- ;; Tests fail with "Uncaught Python exception: python: undefined
- ;; symbol: objc_getClass".
- #:tests? #f))
- (propagated-inputs
- (list python-pyqt))
+ (list
+ #:test-flags
+ #~(list "--ignore-glob=pyzo/yoton/tests/*" ; XXX: yoton is outdated.
+ "--ignore=pyzo/codeeditor/_test.py"))) ; XXX: cannot import qt.
+ (native-inputs (list python-pytest python-setuptools))
+ (propagated-inputs (list python-pyqt))
(home-page "https://pyzo.org")
- (synopsis
- "Python IDE for scientific computing")
+ (synopsis "Python IDE for scientific computing")
(description
"Pyzo is a Python IDE focused on interactivity and introspection,
which makes it very suitable for scientific computing. Its practical
@@ -33709,27 +32113,6 @@ dependencies. It implements the @uref{http://opensoundcontrol.org/spec-1_0,
Open Sound Control 1.0} specification.")
(license license:unlicense)))
-(define-public python-voluptuous
- (package
- (name "python-voluptuous")
- (version "0.11.7")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "voluptuous" version))
- (sha256
- (base32
- "0mplkcpb5d8wjf8vk195fys4y6a3wbibiyf708imw33lphfk9g1a"))))
- (build-system python-build-system)
- (native-inputs
- (list python-nose))
- (home-page "https://github.com/alecthomas/voluptuous")
- (synopsis "Python data validation library")
- (description
- "Voluptuous is a Python data validation library. It is primarily
-intended for validating data coming into Python as JSON, YAML, etc.")
- (license license:bsd-3)))
-
(define-public python-cmd2
(package
(name "python-cmd2")
@@ -33965,14 +32348,14 @@ positioning, and keyboard input.")
(define-public python-readme-renderer
(package
(name "python-readme-renderer")
- (version "41.0")
+ (version "44.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "readme_renderer" version))
(sha256
(base32
- "1xvkf2i075rdqkwdrcrw4xglziqd7qs5lb2rbxr5snizi7ji2jsg"))))
+ "1qfiqm3w1ydpbipns5nifa7h4wraxd72nh7imif819mzmd7064l7"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -33987,11 +32370,10 @@ positioning, and keyboard input.")
" and not test_rst_fixtures[test_rst_008.rst]"
" and not GFM"))))
(propagated-inputs
- (list python-bleach
+ (list python-cmarkgfm
python-docutils
- python-pygments
- ;; Optional dependencies.
- python-cmarkgfm)) ;required by postorius
+ python-nh3
+ python-pygments))
(native-inputs
(list python-pytest
python-setuptools
@@ -34085,6 +32467,8 @@ to minimize duplication of information across files. The format supports schema
validation.")
(license license:lgpl3)))
+;; XXX: Not maintained since 2021, there is no git available as seen in
+;; <https://pypi.org/project/flufl.bounce>.
(define-public python-flufl-bounce
(package
(name "python-flufl-bounce")
@@ -34096,7 +32480,7 @@ validation.")
(sha256
(base32
"0c9qc2l47lyqnpwskp6vvi7m3jqh6hx42v6d35dgxh3fjzmlll15"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
@@ -34109,7 +32493,7 @@ validation.")
(propagated-inputs
(list python-atpublic python-zope-interface))
(native-inputs
- (list python-flufl-testing python-nose2))
+ (list python-flufl-testing python-nose2 python-setuptools))
(home-page "https://fluflbounce.readthedocs.io/en/latest/")
(synopsis "Email bounce detectors")
(description "The @code{flufl.bounce} library provides a set of heuristics
@@ -34254,7 +32638,19 @@ and have a maximum lifetime built-in.")
(list
#:test-flags
;; Disable some failing tests.
- '(list "-k" "not test_print_subprocess"
+ ;;
+ ;; test_print_subprocess seems to inherit wrong environment, fails with
+ ;; E + ModuleNotFoundError: No module named 'executing'
+ ;; Test runs fine from local clone.
+ ;;
+ ;; test_executing_failure fails with
+ ;; E - [1, 2] (list) len=2
+ ;; E + [x, y]: [1, 2] (list) len=2
+ ;; unclear why, probably due to a dependency.
+ '(list "-k" "not test_print_subprocess and not test_executing_failure"
+ ;; test_insert_assert.py also seems to inherit a bad environment:
+ ;; E fixture 'pytester_pretty' not found
+ ;; Test runs fine from local clone.
"--ignore=tests/test_insert_assert.py")))
(native-inputs
(list python-hatchling python-pytest python-pytest-mock))
@@ -34270,14 +32666,14 @@ It adds a simple and readable way to print stuff during development.")
(define-public python-dateparser
(package
(name "python-dateparser")
- (version "1.1.3")
+ (version "1.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "dateparser" version))
(sha256
(base32
- "19fbgq1zrwx10kljmdbs3p0y2m2xsgww20pqzw4kv6161zipsymf"))))
+ "1xzcqmvqg82cq4vx3cbgbdrgq4pgqlkk0mnfm0zc5kdqgkqicqwq"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -34308,7 +32704,6 @@ It adds a simple and readable way to print stuff during development.")
(list python-parameterized
python-pytest
python-setuptools
- python-wheel
tzdata-for-tests))
(home-page "https://github.com/scrapinghub/dateparser")
(synopsis
@@ -34421,13 +32816,17 @@ By default it uses the open Python vulnerability database Safety DB.")
(version "1.15")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pypandoc" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/JessicaTegner/pypandoc")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "04yfja8p8flvpjakyw7n43jb1jm3863w043l7zb43bhjwzmvw9ga"))))
+ (base32 "0jqr380xpg1n93dagxv7zfakhdravw0nc81rc4pnmjzkj360l5nr"))))
(build-system pyproject-build-system)
(arguments
(list
+ #:test-backend #~'unittest
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'disable-tests
@@ -34456,8 +32855,8 @@ By default it uses the open Python vulnerability database Safety DB.")
(propagated-inputs (list python-wheel))
(home-page "https://github.com/JessicaTegner/pypandoc")
(synopsis "Python wrapper for pandoc")
- (description "pypandoc is a thin Python wrapper around pandoc
-and pandoc-citeproc.")
+ (description
+ "pypandoc is a thin Python wrapper around pandoc and pandoc-citeproc.")
(license license:expat)))
(define-public python-rnc2rng
@@ -34490,7 +32889,7 @@ equivalent schemata in the XML-based default RELAX NG syntax.")
(define-public python-telethon
(package
(name "python-telethon")
- (version "1.17.5")
+ (version "1.41.1")
(source
(origin
(method git-fetch)
@@ -34499,20 +32898,15 @@ equivalent schemata in the XML-based default RELAX NG syntax.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0l9fhdrq576vllgi9aam45xzw5xi6jhgdv5zz8i4ygssdp7cm8jl"))))
- (build-system python-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "py.test" "-v"))
- #t)))))
+ (base32 "0rbzqbxsihqm2w1zrvaaafvzwyqqyjx49wfffxrnsr9m32giwzsp"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-pytest-asyncio-0.26
+ python-pytest-trio
+ python-setuptools))
(propagated-inputs
(list python-rsa python-pyaes))
- (native-inputs
- (list python-pytest python-pytest-asyncio python-pytest-trio))
(home-page "https://docs.telethon.dev")
(synopsis "Full-featured Telegram client library for Python 3")
(description "This library is designed to make it easy to write Python
@@ -34577,106 +32971,6 @@ a console. It provides a collection of ‘print’ functions that allow you to
cleanly print different types of messages.")
(license license:gpl3+)))
-(define-public python-userpath
- (package
- (name "python-userpath")
- (version "1.9.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "userpath" version))
- (sha256
- (base32 "05fqxzdi27vqm5lywxs6bm2j4d8k91fx2ihqhg65g4h6mf6jhlkc"))))
- (build-system pyproject-build-system)
- (arguments
- ;; See https://github.com/ofek/userpath/issues/43.
- ;; In Guix, tests try to find the temporary build directory in PATH, but
- ;; only the store output is present.
- (list #:tests? #f))
- (native-inputs (list python-hatchling python-pytest))
- (propagated-inputs (list python-click))
- (home-page "https://github.com/ofek/userpath")
- (synopsis "Add locations to the user's PATH")
- (description "This package provides a tool for modifying a user's PATH.")
- (license license:expat)))
-
-(define-public hatch
- (package
- (name "hatch")
- (version "1.7.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "hatch" version))
- (sha256
- (base32 "0ipvj1pxdb6wb1sblh22h9gnh6byjnwcl7hfcnk88dmkslgp1z3s"))
- (modules '((guix build utils)))
- (snippet '(substitute* "pyproject.toml"
- ;; We have virtualenv 20.3.1.
- (("virtualenv>=20.16.2")
- "virtualenv>=20.3.1")))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags
- ;; XXX: tests below fail due to zipfile reporting incorrect zip dates.
- #~(list "-k"
- (string-append
- "not "
- (string-join
- (list "test_default"
- "test_explicit_path"
- "test_editable_default"
- "test_editable_default_dependencies"
- "test_editable_default_force_include"
- "test_editable_default_force_include_option"
- "test_editable_exact"
- "test_editable_exact_extra_dependencies"
- "test_editable_exact_force_include"
- "test_editable_exact_force_include_option"
- "test_editable_exact_force_include_build_data_precedence"
- "test_editable_pth")
- " and not ")))
- #:phases #~(modify-phases %standard-phases
- (add-before 'check 'pre-check
- (lambda _
- (setenv "HOME" "/tmp"))))))
- (native-inputs (list git-minimal
- python-pytest
- python-pytest-mock
- python-pytest-xdist))
- (propagated-inputs (list python-click
- python-hatchling
- python-httpx
- python-hyperlink
- python-keyring
- python-packaging
- python-pexpect
- python-platformdirs
- python-pyperclip
- python-rich
- python-shellingham
- python-tomli-w
- python-tomlkit
- python-userpath
- python-virtualenv))
- (home-page "https://hatch.pypa.io/latest/")
- (synopsis "Python project management")
- (description "Hatch is a modern, extensible Python project manager.
-
-Features
-
-@itemize
-@item Standardized build system with reproducible builds by default
-@item Robust environment management with support for custom scripts
-@item Configurable Python distribution management
-@item Easy publishing to PyPI or other indexes
-@item Version management
-@item Configurable project generation with sane defaults
-@item Responsive CLI, ~2-3x faster than equivalent tools
-@end itemize")
- (license license:expat)))
-
(define-public python-nestedtext
(package
(name "python-nestedtext")
@@ -34717,15 +33011,17 @@ a text editor and easily understood and used by both programmers and non-program
(define-public python-nest-asyncio
(package
(name "python-nest-asyncio")
- (version "1.5.5")
+ (version "1.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "nest_asyncio" version))
(sha256
(base32
- "0rbdw7lry66yj13hh4w63yzflnapdal1ffl237k8nsa2v4f2jhp4"))))
- (build-system python-build-system)
+ "1zjmxk7rgadgiking9jksncca0hywgs52s34dkymm8dc95a2s5vg"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest python-setuptools))
(home-page "https://github.com/erdewit/nest_asyncio")
(synopsis "Patch asyncio to allow nested event loops")
(description
@@ -34878,98 +33174,53 @@ EDU SDK. This library has the following features:
(license license:expat)))
(define-public python-djvulibre
+ ;; The original git repository of python-djvulibre is hosted at
+ ;; <https://jwilk.net/software/python-djvulibre>. However, that repository
+ ;; has been archived by its owner in 2022. The most active fork is
+ ;; <https://github.com/FriedrichFroebel/python-djvulibre>, and that is the
+ ;; version packaged here (its "python3" branch, the default).
+ ;;
+ ;; However, the python-djvulibre PyPI project still refers to the old
+ ;; repository. The new repository is published as djvulibre-python on PyPI;
+ ;; that is, with the name in reversed order.The original package name is
+ ;; used in Guix because it best adheres to the Guix naming scheme.
(package
(name "python-djvulibre")
- (version "0.8.6")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "python-djvulibre" version))
- (sha256
- (base32 "089smpq29ll0z37lnq26r2f72d31i33xm9fw9pc6hlcsm6nbjbiv"))))
- (build-system python-build-system)
- (native-inputs
- (list ghostscript pkg-config python-nose))
- (inputs
- (list djvulibre python-cython))
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-tests
- (lambda _
- ;; Unit tests try to load the 'dllpath.py' and fail, because it
- ;; doesn't make sense on GNU/Linux.
- (delete-file "djvu/dllpath.py")
- #t)))))
- (synopsis "Python bindings for DjVuLibre")
- (description "This is a set of Python bindings for the DjVuLibre library.")
- (home-page "https://jwilk.net/software/python-djvulibre")
- (license license:gpl2)))
-
-(define-public python-version
- ;; No version tags available in the git repo; just using bare commit instead.
- (let ((commit "5232eea250ab72cc5cb72b0b75efb35d2192b906")
- (revision "1"))
- (package
- (name "python-version")
- (version (git-version "0.0.2" revision commit))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://gitlab.com/halfak/python_version")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0w210559ypdynlj9yn40m9awzkaknwrf682i99hswl7h66sdgh0h"))))
- (build-system python-build-system)
- (home-page "https://gitlab.com/halfak/python_version")
- (synopsis "Python version checking utility")
- (description
- "This package provides a simple utility for checking the python version.")
- (license license:expat))))
-
-(define-public python-versioneer
- (package
- (name "python-versioneer")
- (version "0.29")
+ (version "0.9.3")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "versioneer" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/FriedrichFroebel/python-djvulibre")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "0cap4cjckxp9mlkprqayfs77k3pn5iwpr2riacdxc4bjhnwq7cjs"))
- (patches (search-patches "python-versioneer-guix-support.patch"))))
+ (base32 "0cwda210dgkqyjkwha2if80wfmv6w8baigp8kdcwhmbisfgd3l4y"))))
(build-system pyproject-build-system)
(arguments
(list
- ;; Minimize test requirements.
- #:test-flags
- #~(list "--deselect=test/git/test_git.py::Repo::test_pyproject"
- "--ignore=test/git/test_invocations.py"
- "--ignore=test/test_render.py")
#:phases
#~(modify-phases %standard-phases
- (add-before 'check 'pre-check
- (lambda _
- (invoke "python" "setup.py" "make_versioneer"
- "make_long_version_py_git"))))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; The tests get confused by the djvu directory.
+ (delete-file-recursively "djvu")
+ ;; Tests can't find tools.py otherwise.
+ (with-directory-excursion "tests"
+ (invoke "python" "-m" "pytest"))))))))
(native-inputs
- (list git-minimal/pinned
+ (list ghostscript
+ pkg-config
+ python-cython
python-pytest
- python-setuptools
- python-wheel))
- (propagated-inputs
- (list python-tomli))
- (home-page "https://github.com/python-versioneer/python-versioneer")
- (synopsis "Version-string management for VCS-controlled trees")
- (description
- "@code{versioneer} is a tool for managing a recorded version number in
-distutils-based python projects. The goal is to remove the tedious and
-error-prone \"update the embedded version string\" step from your release
-process.")
- (license license:unlicense)))
+ python-setuptools))
+ (inputs
+ (list djvulibre))
+ (synopsis "Python bindings for DjVuLibre")
+ (description "This is a set of Python bindings for the DjVuLibre library.")
+ (home-page "https://github.com/FriedrichFroebel/python-djvulibre")
+ (license license:gpl2)))
(define-public python-gamera
(package
@@ -35024,27 +33275,6 @@ process.")
(home-page "https://gamera.informatik.hsnr.de/")
(license license:gpl2+)))
-(define-public python-contextvars
- (package
- (name "python-contextvars")
- (version "2.4")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "contextvars" version))
- (sha256
- (base32
- "17n3w8c20kgkgc6khaafdhhlcdj4bzman4paxqsl7harma59137k"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-immutables))
- (home-page
- "https://github.com/MagicStack/contextvars")
- (synopsis "PEP 567 Backport")
- (description "This package implements a backport of Python 3.7
-@code{contextvars} module (see PEP 567) for Python 3.6.")
- (license license:asl2.0)))
-
(define-public python-aiofiles
(package
(name "python-aiofiles")
@@ -35513,7 +33743,7 @@ restores the original state after the string is printed.")
(native-inputs
(list python-pytest))
(inputs
- (list sane-backends))
+ (list sane))
(home-page "https://github.com/python-pillow/Sane")
(synopsis "Python interface to the SANE scanner")
(description "This package provides Python interface to the SANE scanner
@@ -35525,13 +33755,15 @@ and frame grabber interface.")
(define-public python-scikit-build
(package
(name "python-scikit-build")
- (version "0.17.6")
+ (version "0.18.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "scikit_build" version))
(sha256
- (base32 "17awdvpzj4bn50gk4gmj20r2xcjr5y8lfl2bk582di1pdfim26mm"))))
+ (base32 "1rxqzigfacpbcfhf3c1gdqrnqdnq503bx5vpib19km44l32jl5d4"))
+ (patches
+ (search-patches "python-scikit-build-setuptools-compat.patch"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -35594,24 +33826,19 @@ and frame grabber interface.")
gfortran
git-minimal/pinned ;for tests
ninja/pinned
- python-coverage
python-cython
- python-hatchling
python-hatch-fancy-pypi-readme
python-hatch-vcs
- python-mock
- python-packaging
- python-path
+ python-hatchling
python-pytest
- python-pytest-cov
python-pytest-mock
- python-pytest-virtualenv
python-pytest-xdist
python-requests
- python-setuptools-scm
python-virtualenv))
(propagated-inputs
- (list python-distro python-packaging python-tomli python-wheel))
+ (list python-distro
+ python-packaging
+ python-wheel))
(home-page "https://github.com/scikit-build/scikit-build")
(synopsis "Build system generator for Python C/C++/Fortran/Cython extensions")
(description "Scikit-build is an improved build system generator for
@@ -35638,16 +33865,14 @@ CMake.")
(build-system pyproject-build-system)
(arguments
(list
+ #:tests? #f ; No tests.
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-dlopen-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "Screenkey/xlib.py"
- (("libX11.so.6")
- (search-input-file inputs "lib/libX11.so.6")))
- (substitute* "Screenkey/xlib.py"
- (("libXtst.so.6")
- (search-input-file inputs "lib/libXtst.so.6")))))
+ (("(libXtst.so.6|libX11.so.6)" lib)
+ (search-input-file inputs (string-append "/lib/" lib))))))
(add-after 'install 'wrap-screenkey
(lambda _
(wrap-program (string-append #$output "/bin/screenkey")
@@ -35663,10 +33888,8 @@ CMake.")
python-dbus-python
python-pycairo
python-pygobject
- python-setuptools
- python-setuptools-git
- python-tokenize-rt
- python-wheel))
+ slop))
+ (native-inputs (list python-setuptools))
(home-page "https://www.thregr.org/~wavexx/software/screenkey/")
(synopsis "Screencast tool to display pressed keys")
(description
@@ -35710,48 +33933,49 @@ template engine.")
(version "0.3.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "readability" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/andreasvc/readability/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1b8gq3g2zwvx0aivvdg56cc0bn7xw6f2v6psmxdx9aiipkw0s0zr"))))
- (build-system python-build-system)
- (home-page
- "https://github.com/andreasvc/readability/")
- (synopsis
- "Measure the readability of a given text using surface
-characteristics")
+ (base32 "0m2v4ysy2a7k6j9d85i4n9z6k48rmgmbj1v7r6l2cb5qpa3pwrj5"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ; No tests.
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/andreasvc/readability/")
+ (synopsis "Measure text readability using surface characteristics")
(description
"This package provides a Python library that is an implementation of
-traditional readability measures based on simple surface
-characteristics. These measures are basically linear regressions based on the
-number of words, syllables, and sentences.")
+traditional readability measures based on simple surface characteristics.
+These measures are basically linear regressions based on the number of words,
+syllables, and sentences.")
(license license:asl2.0)))
(define-public python-readability-lxml
+ ;; No releases since 2020, see:
+ ;; <https://github.com/buriy/python-readability/issues/196>.
(package
(name "python-readability-lxml")
- (version "0.8.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/buriy/python-readability")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "13nfy2v0pbbf62jn9qwgi489gg97hbb22q6w3f78mnvjxd2m19rh"))
- (snippet
- #~(begin (delete-file "readability/compat/two.py")))))
+ (version "0.8.4.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "http://github.com/buriy/python-readability")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1dr567k03ljhwx9pacmynrv47w5vgq9fkgncpm0vlvmby2g0xgdl"))))
(build-system pyproject-build-system)
- (propagated-inputs (list python-chardet
- python-cssselect
- python-lxml
- python-lxml-html-clean))
- (native-inputs (list python-timeout-decorator
- python-setuptools
- python-pytest
- python-wheel))
+ (native-inputs
+ (list python-poetry-core
+ python-pytest))
+ (propagated-inputs
+ (list python-chardet
+ python-cssselect
+ python-lxml
+ python-lxml-html-clean)) ;XXX: it sould be part of python-lxml lib
(home-page "http://github.com/buriy/python-readability")
(synopsis "HTML to text parser")
(description
@@ -35762,19 +33986,20 @@ from web pages to make them easier to read.")
(define-public python-listparser
(package
(name "python-listparser")
- (version "0.18")
+ (version "0.20")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "listparser" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kurtmckee/listparser")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "0hdqs1mmayw1r8yla43hgb4d9y3zqs5483vgf8j9ygczkd2wrq2b"))))
- (build-system python-build-system)
- (home-page
- "https://github.com/kurtmckee/listparser")
- (synopsis
- "Parse subscription lists in Python")
+ (base32 "0a69cm0inwqwipvnmf5plbf9rqgy1arl62gxnwc7pg7062p563vs"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-poetry-core))
+ (home-page "https://github.com/kurtmckee/listparser")
+ (synopsis "Parse subscription lists in Python")
(description
"This package provides a Python library that can parse OPML, FOAF, and
iGoogle subscription lists.")
@@ -35783,30 +34008,17 @@ iGoogle subscription lists.")
(define-public python-smartypants
(package
(name "python-smartypants")
- (version "2.0.1")
+ (version "2.0.2")
(source
(origin
- ;; There's no source tarball for 2.0.1 on PyPI.
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/leohemsted/smartypants.py")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
+ (method url-fetch)
+ (uri (pypi-uri "smartypants" version))
(sha256
- (base32 "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp"))))
- (build-system python-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- ;; Its `setup.py test` doesn't report failure with exit status, so
- ;; we use `nose` instead.
- (lambda _
- (invoke "nosetests" "-v" "--exclude=^load_tests$"))))))
+ (base32 "1ih0z32xfz45bpjyc27nnx8k4b613cwxyyr9k2v68sfcszhlrmir"))))
+ (build-system pyproject-build-system)
(native-inputs
- ;; For tests.
- (list python-docutils python-nose python-pygments))
- (home-page "https://github.com/leohemsted/smartypants.py")
+ (list python-docutils python-pygments python-setuptools))
+ (home-page "https://github.com/justinmayer/smartypants.py")
(synopsis "Translate punctuation characters into smart quotes")
(description
"@command{smartpants} can perform the following transformations:
@@ -35822,26 +34034,26 @@ entities
(define-public python-typogrify
(package
(name "python-typogrify")
- (version "2.0.7")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "typogrify" version))
- (sha256
- (base32
- "0f6b2gnnxjbx1fbmkcscc6qjr4hi78kwm1wx4b766ha3va66dr4b"))))
- (build-system python-build-system)
+ (version "2.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "typogrify" version))
+ (sha256
+ (base32 "1vk17q04sax8rpdqll5zldnf6l3ixgknbnn9wimnwah3k1701aph"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "nosetests" "-v"))))))
+ (list
+ #:test-flags
+ #~(list "--doctest-modules"
+ "typogrify/filters.py"
+ "typogrify/packages/titlecase/tests.py")))
+ (native-inputs
+ (list python-pytest
+ python-hatchling))
(propagated-inputs
(list python-smartypants))
- (native-inputs
- ;; For tests.
- (list python-nose))
- (home-page "https://github.com/mintchaos/typogrify")
+ (home-page "https://github.com/justinmayer/typogrify")
(synopsis "Filters to transform text into typographically-improved HTML")
(description
"@code{typogrify} provides a set of custom filters that automatically
@@ -35853,17 +34065,26 @@ Django template systems, the filters can be used in any environment.")
(define-public python-ld
(package
(name "python-ld")
- (version "0.5.0")
+ (version "1.9.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "ld" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nir0s/ld")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1k4ydp5rgkv4985v459kcl06i1igjm1ywvh2vkbi9ck1zyyri1z5"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-six))
+ (base32 "16yacjfw701n8dhyi26hps3i7fchbvnq9gcrx7v0fn2lbfzzvq00"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; XXX: These tests expect ubuntu distro.
+ #:test-flags
+ #~(list "-k" (string-join (list "not test_ubuntu14normal_lsb_release"
+ "test_ubuntu14nomodules_lsb_release"
+ "test_trailingblanks_lsb_release")
+ " and not "))))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/nir0s/ld")
(synopsis "OS platform information API")
(description
@@ -35874,35 +34095,20 @@ runs on, such as a reliable machine-readable ID, or version information.")
(define-public python-quicktions
(package
(name "python-quicktions")
- (version "1.11")
+ (version "1.22")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "quicktions" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/scoder/quicktions")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
(base32
- "1px21a6x527i1bsr2p6bbf3jziqpvd1vjkvvzh13gsy4iip0yvzn"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- ;; This file is generated by Cython.
- (delete-file "src/quicktions.c") #t))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'cythonize-sources
- (lambda _
- (with-directory-excursion "src"
- (invoke "cython" "quicktions.pyx"))))
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest"))
- #t)))))
+ "0kmbhbmz8cjsjp0lqmsi6a2imr4g9wy8rpfdwzghhs8hb6wj5gwy"))))
+ (build-system pyproject-build-system)
(native-inputs
- (list python-cython python-pytest))
+ (list python-cython python-pytest python-setuptools))
(home-page "https://github.com/scoder/quicktions")
(synopsis "Fast fractions data type for rational numbers")
(description
@@ -36015,28 +34221,6 @@ lets you write CommonMark inside of Docutils & Sphinx projects.")
retry to any Python callable.")
(license license:mpl2.0))))
-(define-public python-pyhull
- (package
- (name "python-pyhull")
- (version "2015.2.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pyhull" version))
- (sha256
- (base32
- "091sph52c4yk1jlm5w8xidxpzbia9r7s42bnb23q4m4b56ihmzyj"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-numpy))
- (home-page "https://github.com/materialsvirtuallab/pyhull")
- (synopsis "Python wrapper to Qhull")
- (description
- "This package provides a Python wrapper to @uref{http://www.qhull.org/,
-Qhull} for the computation of the convex hull, Delaunay triangulation, and
-Voronoi diagram.")
- (license license:expat)))
-
(define-public python-opcodes
;; There are no tags in this repo, but 'opcodes/__init__.py' specifies a
;; version number, which is what we use here.
@@ -36318,8 +34502,10 @@ were local.")
(sha256
(base32 "0k6cq2gflpkm40qhgqbbcjmq5lq589c15bmk567qyh3d08062hvd"))))
(build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests in PyPI archvie, no 0.1.1 tag in Git
(propagated-inputs (list python-future))
- (native-inputs (list python-setuptools python-wheel))
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/thebabush/nampa")
(synopsis "Python implementation of IDA Pro's FLIRT technology")
(description
@@ -36646,7 +34832,7 @@ graph can be output for rendering by GraphViz or yEd.")
(native-inputs
(list python-pytest
python-pytest-benchmark
- python-setuptools-next))
+ python-setuptools))
(home-page "https://github.com/mrocklin/multipledispatch/")
(synopsis "Multiple dispatch for Python based on pattern matching")
(description
@@ -36768,7 +34954,7 @@ worry whether all dependencies that use LooseVersion have migrated.")
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs
(list python-pytest
- python-setuptools-next
+ python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs
@@ -36798,7 +34984,7 @@ cons cells in Python.")
#~(list "--deselect=tests/test_dispatch.py::test_unification")))
(native-inputs
(list python-pytest
- python-setuptools-next
+ python-setuptools
python-setuptools-scm))
(propagated-inputs
(list python-cons
@@ -36842,7 +35028,7 @@ cons cells in Python.")
" and not "))))
(native-inputs
(list python-pytest
- python-setuptools-next))
+ python-setuptools))
(propagated-inputs
(list python-cons
python-etuples
@@ -36860,30 +35046,20 @@ systems in Python.")
(define-public python-dotenv
(package
(name "python-dotenv")
- (version "0.20.0")
+ (version "1.1.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "python-dotenv" version))
+ (uri (pypi-uri "python_dotenv" version))
(sha256
- (base32 "13s9imfd0k4d7b1qy5wfqzw5vyj6rhmcrccsdz1l4g39b55b1qxp"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (setenv "PATH" (string-append (getenv "PATH") ":"
- (assoc-ref outputs "out") "/bin"))
- ;; Skip the ipython tests.
- (delete-file "tests/test_ipython.py")
- (invoke "python" "-m" "pytest")))))))
+ (base32 "1aw9c5gw2gfjf7n3s7k6lb6ybz090hh60wq0daz4azr52sbkk9m8"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-sh))
(propagated-inputs
(list python-click))
- (native-inputs
- (list python-mock python-pytest python-sh))
(home-page "https://saurabh-kumar.com/python-dotenv/")
(synopsis "Setup environment variables according to .env files")
(description
@@ -36891,6 +35067,7 @@ systems in Python.")
key-value pairs from a @code{.env} file and set them as environment variables.")
(license license:bsd-3)))
+;; Old version just for docker-compose; remove once that is updated.
(define-public python-dotenv-0.13.0
(package (inherit python-dotenv)
(name "python-dotenv")
@@ -36901,7 +35078,23 @@ key-value pairs from a @code{.env} file and set them as environment variables.")
(uri (pypi-uri "python-dotenv" version))
(sha256
(base32
- "0x5dagmfn31phrbxlwacw3s4w5vibv8fxqc62nqcdvdhjsy0k69v"))))))
+ "0x5dagmfn31phrbxlwacw3s4w5vibv8fxqc62nqcdvdhjsy0k69v"))))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (setenv "PATH" (string-append (getenv "PATH") ":"
+ (assoc-ref outputs "out") "/bin"))
+ ;; Skip the ipython tests.
+ (delete-file "tests/test_ipython.py")
+ (invoke "python" "-m" "pytest")))))))
+ (native-inputs
+ (modify-inputs (package-native-inputs python-dotenv)
+ (append python-mock)
+ (replace "python-sh" python-sh-1)))))
(define-public date2name
(let ((commit "6c8f37277e8ec82aa50f90b8921422be30c4e798")
@@ -36917,25 +35110,27 @@ key-value pairs from a @code{.env} file and set them as environment variables.")
(commit commit)))
(file-name (git-file-name name version))
(sha256
- (base32
- "1vq96b7n16d932nyfhnzwdwxff0zrqanidmwr4cxj2p67ad9y3w7"))))
- (build-system python-build-system)
+ (base32 "1vq96b7n16d932nyfhnzwdwxff0zrqanidmwr4cxj2p67ad9y3w7"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f ; no tests
- #:phases
- (modify-phases %standard-phases
- (delete 'build)
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((bindir (string-append (assoc-ref outputs "out") "/bin"))
- (binary (string-append bindir "/date2name")))
- (mkdir-p bindir)
- (copy-file "date2name/__init__.py" binary)
- (chmod binary #o555)))))))
+ (list
+ #:tests? #f ;no tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'build)
+ (replace 'install
+ (lambda _
+ (let* ((bindir (string-append #$output "/bin"))
+ (binary (string-append bindir "/date2name")))
+ (mkdir-p bindir)
+ (copy-file "date2name/__init__.py" binary)
+ (chmod binary #o555)))))))
+ (native-inputs (list python-setuptools))
(synopsis "Handling time-stamps and date-stamps in file names")
- (description "By default, date2name gets the modification time of matching
-files and directories and adds a datestamp in standard ISO 8601+ format
-YYYY-MM-DD at the beginning of the file or directory name.")
+ (description
+ "By default, date2name gets the modification time of matching files and
+directories and adds a datestamp in standard ISO 8601+ format YYYY-MM-DD at
+the beginning of the file or directory name.")
(home-page "https://github.com/novoid/date2name")
(license license:gpl3+))))
@@ -37123,12 +35318,13 @@ statements in OFX files.")
(uri (pypi-uri "rfc3339_validator" version))
(sha256
(base32 "0srg0b89aikzinw72s433994k5gv5lfyarq1adhas11kz6yjm2hk"))))
- (build-system python-build-system)
- (native-inputs (list python-hypothesis
- python-pytest
- python-pytest-runner
- python-strict-rfc3339))
- (propagated-inputs (list python-six))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-strict-rfc3339))
+ (propagated-inputs
+ (list python-six))
(home-page "https://github.com/naimetti/rfc3339-validator")
(synopsis "Python RFC3339 validator")
(description "This package provides a pure Python RFC3339 validator.")
@@ -37148,7 +35344,7 @@ statements in OFX files.")
(sha256
(base32
"0b12bh9v9gwkm89kxbidxw2z81lg8fx1v5fzgs313v1wgx6qb09p"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
#:phases
@@ -37166,7 +35362,7 @@ statements in OFX files.")
;; too small for these tests.
'("not LocalOffset and not TestTimestampToRFC3339UTCOffset")
'("not LocalOffset")))))))))
- (native-inputs (list python-pytest))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/danielrichman/strict-rfc3339")
(synopsis "RFC3339 procedures library")
(description "The @code{strict_rfc3339} Python module provides strict,
@@ -37402,18 +35598,30 @@ It implements advanced Python dictionaries with dot notation access.")
(name "python-aspectlib")
(version "1.5.2")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "aspectlib" version))
- (sha256
- (base32 "1am4ycf292zbmgz791z393v63w7qrynf8q5p9db2wwf2qj1fqxfj"))))
- (build-system python-build-system)
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ionelmc/python-aspectlib")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1mfhflg33684gkp6ckkywshn4xa3vqaia521kcagaxgr3xm6c9pv"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list ;; XXX: Require more dependencies.
+ "--ignore=tests/test_integrations.py"
+ "--ignore=tests/test_integrations_py3.py"
+ ;; XXX: Unimportant warning errors.
+ "-k" (string-append "not test_story_empty_play_proxy_class"
+ " and not test_story_half_play_proxy_class"))))
+ (native-inputs (list python-pytest python-setuptools python-tornado python-wheel))
(propagated-inputs (list python-fields))
(home-page "https://github.com/ionelmc/python-aspectlib")
- (synopsis
- "Python monkey-patching and decorators")
+ (synopsis "Python monkey-patching and decorators")
(description
- "This package provides an aspect-oriented programming, monkey-patch
+ "This package provides an aspect-oriented programming, monkey-patch
and decorators library. It is useful when changing behavior in existing
code is desired. It includes tools for debugging and testing:
simple mock/record and a complete capture/replay framework.")
@@ -37500,49 +35708,57 @@ Python @code{set} interface.")
(define-public dynaconf
(package
(name "dynaconf")
- (version "3.2.4")
+ (version "3.2.11")
(source
(origin
(method git-fetch)
(uri
(git-reference
- (url "https://github.com/dynaconf/dynaconf")
- (commit version)))
+ (url "https://github.com/dynaconf/dynaconf")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
- (base32
- "0fj2ffvzfvjf4d7f672h5x5fzq26f8hax9j3dfsix158fwm0212w"))
- (patches (search-patches "dynaconf-unvendor-deps.patch"))
+ (base32 "05122x1bwskfqnzi9hqi86h7407byfjvhgczj74x6lp2m6rnwkzl"))
+ ;; (patches (search-patches "dynaconf-unvendor-deps.patch"))
(modules '((guix build utils)))
;; Remove vendored dependencies
- (snippet '(let ((unvendor '("click" "dotenv" "ruamel" "toml")))
- (with-directory-excursion "dynaconf/vendor"
- (for-each delete-file-recursively unvendor))))))
+ (snippet
+ #~(let ((unvendor '("click" "ruamel" "toml")))
+ (with-directory-excursion "dynaconf/vendor"
+ (for-each delete-file-recursively unvendor))
+ (substitute* (find-files "." "\\.py$")
+ (("from dynaconf\\.vendor import (click|ruamel|toml)([^l]+.*)$"
+ _ target rest)
+ (string-append "import " target rest))
+ (("dynaconf\\.vendor\\.(click|ruamel|toml)" _ target)
+ target))))))
(build-system pyproject-build-system)
(arguments
- `(#:test-flags
- '("--ignore=tests/test_vault.py" ; depend on hvac and a live Vault
- "-k" ,(let ((click-tests '("test_negative_get"
- "test_inspect_invalid_format")))
- ;; Disable integration tests
- (string-append "not integration and not "
- ;; These tests fail because we use Click 8.*
- ;; instead of Click 7
- (string-join click-tests " and not ")))
- "tests")
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-for-click-8
- (lambda _
- (substitute* "dynaconf/cli.py"
- (("click.get_os_args\\()") ;deprecated from Click 8.1+
- "sys.argv[1:]")))))))
+ (list
+ #:test-flags
+ #~(list "--ignore=tests/test_vault.py" ; depend on hvac and a live Vault
+ "-k" #$(let ((click-tests '("test_negative_get"
+ "test_not_found_key_exit_error[get]"
+ "test_inspect_invalid_format")))
+ ;; Disable integration tests
+ (string-append "not integration and not "
+ ;; These tests fail because we use
+ ;; Click 8.* instead of Click 7
+ (string-join click-tests " and not ")))
+ "tests")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-for-click-8
+ (lambda _
+ (substitute* "dynaconf/cli.py"
+ (("click.get_os_args\\()") ;deprecated from Click 8.1+
+ "sys.argv[1:]")))))))
(propagated-inputs
- (list python-click python-configobj python-dotenv-0.13.0
- python-ruamel.yaml-0.16 python-toml python-tomli))
+ (list python-click python-configobj python-ruamel.yaml-0.16
+ python-toml python-tomli))
(native-inputs
(list python-django python-flask python-pytest python-pytest-cov
- python-pytest-mock python-setuptools python-wheel))
+ python-pytest-mock python-setuptools))
(home-page "https://www.dynaconf.com/")
(synopsis "The dynamic configurator for your Python project")
(description
@@ -37566,28 +35782,35 @@ development, testing, production]};
(license license:expat)))
(define-public python-pudb
+ ;; TODO: Rename to pudb as it's a final program.
(package
(name "python-pudb")
- (version "2023.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "pudb" version))
- (sha256
- (base32
- "00rgx80inpvsbcydp29mrhw44xizyqdqxvv6lqcak1xs79h3rpqm"))))
- (build-system python-build-system)
+ (version "2025.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pudb" version))
+ (sha256
+ (base32 "0wjbvj94cww49pg7prnh5yi81v4m5f0sl816c51jcy8wag3lbhmp"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (add-before 'check 'fix-read-only-home
- (lambda _
- (setenv "HOME" "/tmp")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
- (native-inputs (list python-pytest python-pytest-mock python-numpy))
- (propagated-inputs (list python-jedi python-pygments python-urwid
- python-urwid-readline))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list python-hatchling
+ python-pytest
+ python-pytest-mock
+ python-numpy))
+ (propagated-inputs
+ (list python-jedi
+ python-packaging
+ python-pygments
+ python-urwid
+ python-urwid-readline))
(home-page "https://documen.tician.de/pudb/")
(synopsis "Console-based Python debugger")
(description
@@ -37630,11 +35853,13 @@ keyboard-friendly package.")
(sha256
(base32 "11z318lnvd7nxkpw2556hh6hvid6gi8mxgv4zf8x2m57hx5yi98y"))))
(build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'unittest
+ #:test-flags #~(list "-v" "pdoc.test")))
(native-inputs
(list python-setuptools-git
python-setuptools
- python-setuptools-scm
- python-wheel))
+ python-setuptools-scm))
(propagated-inputs
(list python-mako
python-markdown))
@@ -37684,28 +35909,6 @@ manipulating, converting and writing EXIF data to JPEG, WebP and TIFF files.")
PyRSS2Gen builds the feed up by using a XML generator.")
(license license:bsd-3)))
-(define-public python-yapsy
- (package
- (name "python-yapsy")
- (version "1.12.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "Yapsy" version))
- (sha256
- (base32 "12rznbnswfw0w7qfbvmmffr9r317gl1rqg36nijwzsklkjgks4fq"))))
- (build-system python-build-system)
- (home-page "https://yapsy.sourceforge.net")
- (synopsis "Simple plugin system for Python applications")
- (description "Yapsy, or Yet Another Plugin SYstem, is a small library
-implementing the core mechanisms needed to build a plugin system into a wider
-application.
-
-The main purpose is to depend only on Python's standard libraries and to
-implement only the basic functionalities needed to detect, load and keep track
-of several plugins.")
- (license license:bsd-3)))
-
(define-public python-doit
(package
(name "python-doit")
@@ -37787,34 +35990,46 @@ these linters: @code{pycodestlye}, @code{pyflakes}")
(define-public nikola
(package
(name "nikola")
- (version "8.3.1")
+ (version "8.3.3")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "Nikola" version))
+ (uri (pypi-uri "nikola" version))
(sha256
- (base32 "1fdgqx828b1syd1z2miliwrykmxryya3dcib28r56wvp37cl3wi1"))))
+ (base32 "1ixi7bhcmyl6nxh4psjkj4q4wq5midgnks294r64zciazippsvb3"))))
(build-system pyproject-build-system)
(arguments
(list
- #:test-flags #~(list "--durations=10"
- "--ignore=tests/integration/test_dev_server.py"
- ;; Assertion fails in diff of HTML template.
- "-k" "not test_compiling_markdown")
+ ;; tests: 506 passed, 16 skipped, 10 deselected, 5 xfailed, 66 warnings
+ #:test-flags
+ #~(list "--durations=10"
+ "--ignore=tests/integration/test_dev_server.py"
+ "-k" (string-join
+ ;; Some time difference in example tests.
+ (list "not test_serves_root_dir[http://example.org/deep/down/a/rabbit/hole]"
+ "test_serves_root_dir[https://example.org:1234/blog]"
+ "test_serves_root_dir[https://example.org:3456/blog/]"
+ "test_serves_root_dir[https://example.org]"
+ ;; AssertionError: Calls not found.
+ "test_write_content_does_not_detroy_text"
+ ;; AssertionError: assert 'January 10, 2006,
+ ;; 12:34:56\u202fPM -0500' == 'January 10, 2006,
+ ;; 12:34:56\u202fPM EST'
+ "test_format_date_timezone")
+ " and not "))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-pytest-config
(lambda _
;; Drop test coverage requirements.
- (substitute* "setup.cfg"
- ((".*--cov.*") "")))))))
+ (substitute* "pyproject.toml"
+ (("addopts.*") "")))))))
(native-inputs
(list nss-certs-for-test
python-feedparser
python-freezegun
python-pytest
- python-setuptools
- python-wheel))
+ python-setuptools))
(inputs
(list python-babel
python-blinker
@@ -37849,20 +36064,22 @@ and has plugins for many other formats.")
(name "nbss-upload")
(version "0.1")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "nbss-upload" version))
- (sha256
- (base32 "0jhyfm7w2ssknmh9789fmpnf79xr7sxbdcjwak6hfha6qparvk38"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-requests))
- (arguments
- `(#:tests? #f)) ;no tests
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/notebook-sharing-space/nbss-upload")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0cxj4zqcxzi3c5kw649jxmdpnbyrkrwx4licxdg6zc317v8gxw54"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests
+ (native-inputs (list python-setuptools))
+ (propagated-inputs (list python-requests))
(home-page "https://github.com/notebook-sharing-space/nbss-upload")
(synopsis "Upload notebooks to a notebooksharing.space instance")
(description
-"Upload notebooks as @code{.ipynb}, @code{.rmd}, and @code{.html} to a
+ "Upload notebooks as @code{.ipynb}, @code{.rmd}, and @code{.html} to a
notebooksharing.space instance.")
(license license:bsd-3)))
@@ -37922,6 +36139,61 @@ multipurpose analysis in Python.")
static types.")
(license license:asl2.0)))
+(define-public python-types-python-dateutil
+ (package
+ (name "python-types-python-dateutil")
+ (version "2.9.0.20250708")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "types_python_dateutil" version))
+ (sha256
+ (base32 "1ay8sp8qshx2na2sa9sz9hg2hb7yrws9ymshqfb9cv1dmdfxgnyc"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/python/typeshed")
+ (synopsis "Typing stubs for python-dateutil")
+ (description "This package providis typing stubs for python-dateutil.")
+ (license license:asl2.0)))
+
+(define-public python-types-aiofiles
+ (package
+ (name "python-types-aiofiles")
+ (version "24.1.0.20250822")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "types_aiofiles" version))
+ (sha256
+ (base32 "0ysar1an6il2rsd54fwzwdis209z3qq3i4zhgixfjzrh1j70vfcs"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/python/typeshed")
+ (synopsis "Typing stubs for python-aiofiles")
+ (description "This package providis typing stubs for python-aiofiles.")
+ (license license:asl2.0)))
+
+(define-public python-types-tqdm
+ (package
+ (name "python-types-tqdm")
+ (version "4.67.0.20250809")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "types_tqdm" version))
+ (sha256
+ (base32 "006md2hnsq79p7d5z3kiaapvl9wwa4dz3yb39jf0n22n2awpmgq2"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
+ (native-inputs (list python-setuptools))
+ (propagated-inputs (list python-types-requests))
+ (home-page "https://github.com/python/typeshed")
+ (synopsis "Typing stubs for python-tqdm")
+ (description "This package providis typing stubs for python-tqdm.")
+ (license license:asl2.0)))
+
(define-public python-types-docutils
(package
(name "python-types-docutils")
@@ -37942,16 +36214,19 @@ Python, with static types.")
(define-public python-types-requests
(package
(name "python-types-requests")
- (version "2.30.0.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "types-requests" version))
- (sha256
- (base32
- "0cas3cjkhrvsz2rmqnhqiihy9j79wxi9xbih8jk0p9r48c2q3iyy"))))
+ (version "2.32.4.20250611")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "types_requests" version))
+ (sha256
+ (base32 "09pqdfa66d3p5dig26chrd6rpxs5wamxcm0yyl5q69b4xmvqf73l"))))
(build-system pyproject-build-system)
- (propagated-inputs (list python-types-urllib3))
- (native-inputs (list python-setuptools python-wheel))
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-urllib3))
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for requests")
(description "This package provides typing stubs for requests.")
@@ -37981,14 +36256,17 @@ Python, with static types.")
(define-public python-types-setuptools
(package
(name "python-types-setuptools")
- (version "67.6.0.5")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "types-setuptools" version))
- (sha256
- (base32
- "0qlrxgl4mz6hs8z4qnl91hsa8mqcfm6397s3s3j21imxqxk8ww1s"))))
- (build-system python-build-system)
+ (version "80.9.0.20250529")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "types_setuptools" version))
+ (sha256
+ (base32 "149w6lg8n56k50n08jx450ni9frs2hzbv729sv48c8ds1jx8iq3r"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
+ (native-inputs
+ (list python-setuptools))
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for setuptools")
(description "This package provides typing stubs for setuptools.")
@@ -37997,33 +36275,63 @@ Python, with static types.")
(define-public python-types-urllib3
(package
(name "python-types-urllib3")
- (version "1.26.25.12")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "types-urllib3" version))
- (sha256
- (base32
- "0zcipjdnbnc8ymk8mh9n5mypa0qr03rqj98lbmahldcdrrap6md1"))))
+ (version "1.26.25.14")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "types-urllib3" version))
+ (sha256
+ (base32 "13ys7c7k9pg3lb11qvdgs9xq8j8bvcpjpg61j8dqq6wmgibpz6r2"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
+ (native-inputs
+ (list python-setuptools))
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for urllib3")
(description "This package provides typing stubs for urllib3.")
(license license:asl2.0)))
+(define-public python-types-pyyaml
+ (package
+ (name "python-types-pyyaml")
+ (version "6.0.12.20250915")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "types_pyyaml" version))
+ (sha256
+ (base32 "1lyirqjacfmn6bv27b7w0z483yps6gfqfmhnyzkg00y352jm92qg"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
+ (native-inputs
+ (list python-setuptools))
+ (home-page " https://github.com/python/typeshed")
+ (synopsis "Typing stubs for PyYAML")
+ (description "This package provides typing stubs for @code{PyYAML}.")
+ (license license:asl2.0)))
+
(define-public python-typeshed-client
(package
(name "python-typeshed-client")
- (version "2.3.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "typeshed_client" version))
- (sha256
- (base32
- "1vdwp1jjg27b22qxgm49v21nb8vm1iki3bfsm0fnq2rsz5alfwz2"))))
+ (version "2.8.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/JelleZijlstra/typeshed_client")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0i74ygf49184ab1ipfdzf706wnzs3id15rkysqarzcngdydrcszs"))))
(build-system pyproject-build-system)
- (propagated-inputs (list python-importlib-resources))
- (native-inputs (list python-setuptools python-wheel))
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "tests/test.py")))
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-importlib-resources
+ python-typing-extensions))
(home-page "https://github.com/JelleZijlstra/typeshed_client")
(synopsis "Library for accessing stubs in typeshed")
(description
@@ -38033,13 +36341,13 @@ Python, with static types.")
(define-public python-psycopg2-binary
(package
(name "python-psycopg2-binary")
- (version "2.9.3")
+ (version "2.9.10")
(source
(origin
(method url-fetch)
(uri (pypi-uri "psycopg2-binary" version))
(sha256
- (base32 "0kpaxg3lg5wg5ww5kxmzi2z2d7arsx13ci915d8a2pf17lqza7bn"))))
+ (base32 "1qkdl21agnifabk508py6m0q4ggixx13k63xlp6qma8ak7kg0gab"))))
(build-system pyproject-build-system)
(arguments
;; Tests are disable because they need a live instance of PostgreSQL.
@@ -38088,6 +36396,8 @@ async I/O support.")
(license license:gpl2+)))
(define-public python-ansicolors
+ ;; XXX: Not maintained fork since 2017, consider to remove when there is no
+ ;; any users.
(package
(name "python-ansicolors")
(version "1.1.8")
@@ -38097,11 +36407,9 @@ async I/O support.")
(uri (pypi-uri "ansicolors" version ".zip"))
(sha256
(base32 "1q3jqglkq4z0f6nkkn8bswcwqg012i2grrc27kabr8286dg4zycr"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(native-inputs
- (list python-tox
- python-pytest-cov
- unzip))
+ (list python-pytest python-setuptools unzip))
(home-page "https://github.com/jonathaneunice/colors/")
(synopsis "ANSI colors for Python")
(description
@@ -38196,19 +36504,22 @@ collection.")
(define-public python-types-toml
(package
(name "python-types-toml")
- (version "0.10.5")
+ (version "0.10.8.20240310")
(source
(origin
(method url-fetch)
(uri (pypi-uri "types-toml" version))
(sha256
- (base32 "10400bd3yv6rjfnq8galskkbpqz1sfx9sfgr5qwvw04270x4cjgr"))))
- (build-system python-build-system)
+ (base32 "0c83hfw4aqy01vzlh6r84mz6b2b6n98chfdjp2k3c94p089m0h9x"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests provided
+ (native-inputs (list python-setuptools))
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for TOML")
- (description "This package contains typing stubs for TOML, a very small
-subset the Python stubs contained in the complete @code{typeshed}
-collection.")
+ (description
+ "This package contains typing stubs for TOML, a very small subset the
+Python stubs contained in the complete @code{typeshed} collection.")
(license license:asl2.0)))
(define-public python-types-ujson
@@ -38301,52 +36612,30 @@ writing STL files. It supports both the text and binary forms of STL.")
(define-public python-aiopg
(package
(name "python-aiopg")
- (version "1.3.3")
+ (version "1.4.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "aiopg" version))
(sha256
(base32
- "1mwmypsfzh8adjbyvf7kqv9h3k1kf5ykhi1g3ahw4wqdxaj6nz2l"))))
- (build-system python-build-system)
- (native-inputs (list python-sqlalchemy))
- (propagated-inputs (list python-async-timeout python-psycopg2-binary))
+ "0wcxcfazjsknr7hv46374rzh7502k8g1hvbi2r0rakbbz2z56qhi"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;they need Docker
+ (native-inputs
+ (list python-setuptools
+ python-sqlalchemy))
+ (propagated-inputs
+ (list python-async-timeout-4
+ python-psycopg2-binary))
(home-page "https://aiopg.readthedocs.io")
(synopsis "Postgres integration with asyncio")
(description
- "aiopg is a library for accessing a PostgreSQL
-database from the asyncio (PEP-3156/tulip) framework. It wraps
-asynchronous features of the Psycopg database driver.")
+ "aiopg is a library for accessing a PostgreSQL database from the
+asyncio (PEP-3156/tulip) framework. It wraps asynchronous
+features of the Psycopg database driver.")
(license license:bsd-3)))
-(define-public python-verspec
- (package
- (name "python-verspec")
- (version "0.1.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "verspec" version))
- (sha256
- (base32
- "07n06wv85fm4vl1ird2mja0823js3x322wgs9gdnq1djjyk4ql64"))))
- (build-system python-build-system)
- (native-inputs (list python-coverage python-flake8 python-mypy
- python-pretend python-pytest))
- (arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (invoke "touch" "test/__init__.py")
- (invoke "pytest")))))))
- (home-page "https://github.com/jimporter/verspec")
- (synopsis "Flexible version handling for Python")
- (description
- "This Python library handles software versions and specifiers. It is
-adapted from the @code{packaging} package.")
- (license (list license:bsd-2 license:asl2.0))))
-
(define-public python-shtab
(package
(name "python-shtab")
@@ -38416,32 +36705,33 @@ than trying to just split strings.")
(define-public python-srsly
(package
(name "python-srsly")
- (version "2.4.8")
+ (version "2.5.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "srsly" version))
(sha256
(base32
- "14ca3gwmhr24axxdhn73157wzzjkmi1s1ka91dz49hh9a2k9akdj"))))
+ "0zn74zyb928v898j6l86a83qgdvza78ksjg0v8ixla9yrzv4n6xb"))))
(build-system pyproject-build-system)
(arguments
(list
- #:phases
- #~(modify-phases %standard-phases
- (add-before 'check 'build-extensions
- (lambda _
- ;; Cython extensions have to be built before running the tests.
- (invoke "python" "setup.py" "build_ext" "--inplace"))))))
- (propagated-inputs (list python-catalogue))
+ #:test-flags
+ #~(list "--pyargs" "srsly"
+ ;; 3 tests fail in
+ ;; tests/cloudpickle/cloudpickle_test.py::CloudPickleTest
+ "-k" (string-append "not test_import"
+ " and not test_logger"
+ " and not test_multiprocess"))))
(native-inputs
(list python-cython
- python-pytest
- python-pytest-timeout
python-mock
python-numpy
python-psutil
- python-setuptools
- python-wheel))
+ python-pytest
+ python-pytest-timeout
+ python-setuptools))
+ (propagated-inputs
+ (list python-catalogue))
(home-page "https://github.com/explosion/srsly")
(synopsis "Serialization utilities for Python")
(description "This package bundles some of the best Python serialization
@@ -38459,32 +36749,18 @@ easy to write code that's correct across platforms and Pythons.")
(uri (pypi-uri "pyperf" version))
(sha256
(base32 "189qf9wdbig0fk4n3bavx8acgdbay5lllfvw48jvbfaafb7y5hja"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-tests
- (lambda _
- ;; Some of these tests fail with:
- ;;
- ;; ModuleNotFoundError: No module named 'pyperf'
- ;;
- ;; even when calling ‘add-installed-pythonpath’ in the ‘check’
- ;; phase.
- (delete-file "pyperf/tests/test_examples.py")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; From tox.ini's ‘testenv.commands’.
- (invoke "python" "-bb" "-Wd"
- "-m" "unittest" "discover"
- "-s" "pyperf/tests/" "-v")))))))
- (native-inputs
- (list python-psutil))
+ (list
+ #:test-flags
+ #~(list "--ignore=pyperf/tests/test_examples.py")))
+ (native-inputs (list python-psutil python-pytest python-setuptools
+ python-wheel))
(home-page "https://github.com/psf/pyperf")
(synopsis "Toolkit for running Python benchmarks")
- (description "The Python @code{pyperf} module is a toolkit for writing,
-running and analyzing benchmarks. It features a simple API that can:
+ (description
+ "The Python @code{pyperf} module is a toolkit for writing, running and
+analyzing benchmarks. It features a simple API that can:
@itemize
@item automatically calibrate a benchmark for a time budget;
@@ -38708,7 +36984,7 @@ parsing rules in a single place.")
(sha256
(base32 "0g4cn522n4dv6ly8pwf97dc62rr4f7my38v0bh6vmac7jmrip7pv"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (native-inputs (list python-setuptools python-pytest))
(home-page "https://github.com/pR0Ps/iterable-io")
(synopsis "Adapt generators and other iterables to a file-like interface")
(description
@@ -38927,69 +37203,39 @@ nested data structures in Python like lists and dictionaries.")
(license license:expat)))
(define-public python-murmurhash3
- (package
- (name "python-murmurhash3")
- (version "2.3.5")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "murmurhash3" version))
- (sha256
- (base32
- "1gdzys1212dx70byz07ipknbw1awbqskh6aznlkm85js8b8qfczm"))))
- (build-system python-build-system)
- (native-inputs (list python-cython python-pytest))
- (inputs (list python))
- (arguments
- (list #:modules
- '((ice-9 ftw) (ice-9 match)
- (guix build utils)
- (guix build python-build-system))
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'set-source-file-times-to-1980
- (lambda _
- (let ((circa-1980 (* 10 366 24 60 60)))
- (ftw "."
- (lambda (file stat flag)
- (utime file circa-1980 circa-1980) #t))))))))
- (home-page "https://github.com/veegee/mmh3")
- (synopsis "Python wrapper for MurmurHash (MurmurHash3)")
- (description
- "@code{murmurhash3} is a Python library for MurmurHash (MurmurHash3), a set
+ (let ((commit "01f1128a2c5ea08e6dc33515e140bedd68393a2d")
+ (revision "0"))
+ (package
+ (name "python-murmurhash3")
+ (version (git-version "2.3.5" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/veegee/mmh3")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1zpk51ms1bvzg52zc9s9az71bgw2kgxidjcc1xib7y9r7dl7vczz"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-package
+ (lambda _
+ (substitute* "mmh3module.cpp"
+ (("#include <stdio\\.h>")
+ "#define PY_SSIZE_T_CLEAN\n#include <stdio.h>")))))))
+ (native-inputs
+ (list python-cython python-pytest python-setuptools python-wheel))
+ (home-page "https://github.com/veegee/mmh3")
+ (synopsis "Python wrapper for MurmurHash (MurmurHash3)")
+ (description
+ "@code{murmurhash3} is a Python library for MurmurHash (MurmurHash3), a set
of fast and robust hash functions. This library is a Python extension module
written in C.")
- (license license:public-domain)))
-
-(define-public python-murmurhash
- (package
- (name "python-murmurhash")
- (version "1.0.7")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "murmurhash" version))
- (sha256
- (base32
- "0vwkn98c703nvsigl2nz99rax2pafkx3djjfkgc49jiipmp3j2k3"))))
- (build-system python-build-system)
- (native-inputs (list python-cython python-pytest))
- (inputs (list python python-murmurhash3))
- (arguments
- (list #:modules
- '((ice-9 ftw) (ice-9 match)
- (guix build utils)
- (guix build python-build-system))
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'set-source-file-times-to-1980
- (lambda _
- (let ((circa-1980 (* 10 366 24 60 60)))
- (ftw "."
- (lambda (file stat flag)
- (utime file circa-1980 circa-1980) #t))))))))
- (home-page "https://github.com/explosion/murmurhash")
- (synopsis "Cython bindings for MurmurHash2")
- (description "This package provides Cython bindings for MurmurHash2.")
- (license license:expat)))
+ (license license:public-domain))))
;; Scooby requires for its test suite a ‘pyvips’ package that is missing its
;; VIPS dependency.
@@ -39149,45 +37395,28 @@ to void* values.")
(package
(name "python-catalogue")
(version "2.0.7")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "catalogue" version))
- (sha256
- (base32
- "0srdxiil2xys8q1gpc1nvzhvis3a33d8a7amk2i1rlpbg6p36pak"))))
- (build-system python-build-system)
- (native-inputs (list python-pytest))
- (inputs (list python python-zipp python-typing-extensions python-mypy))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/explosion/catalogue")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0f7dqd8swycnspwfka79whr0v630v52hdmkmd1x7l920h33pg467"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools python-wheel))
(home-page "https://github.com/explosion/catalogue")
(synopsis "Lightweight function registries for your library")
(description
- "\"catalogue\" is a tiny, zero-dependencies library that
-makes it easy to add function (or object) registries to your code. Function
-registries are helpful when you have objects that need to be both easily
-serializable and fully customizable. Instead of passing a function into your
-object, you pass in an identifier name, which the object can use to lookup the
-function from the registry. This makes the object easy to serialize, because the
-name is a simple string. If you instead saved the function, you'd have to use
-Pickle for serialization, which has many drawbacks.")
- (license license:expat)))
-
-(define-public python-wasabi
- (package
- (name "python-wasabi")
- (version "0.9.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "wasabi" version))
- (sha256
- (base32
- "1kwqfalq7qxs9f7xb2m055g01qpbznyzxl7sjnzjdvvhkczg39md"))))
- (build-system python-build-system)
- (native-inputs (list python-pytest))
- (home-page "https://github.com/ines/wasabi")
- (synopsis "Console printing and formatting toolkit")
- (description
- "This package provides a lightweight console printing and formatting
-toolkit for Python.")
+ "This package is a tiny, zero-dependencies library that makes it easy to
+add function (or object) registries to your code. Function registries are
+helpful when you have objects that need to be both easily serializable and
+fully customizable. Instead of passing a function into your object, you pass
+in an identifier name, which the object can use to lookup the function from
+the registry. This makes the object easy to serialize, because the name is a
+simple string. If you instead saved the function, you'd have to use Pickle
+for serialization, which has many drawbacks.")
(license license:expat)))
(define-public python-srt
@@ -39245,16 +37474,34 @@ Currently, Linux is the only platform supported by this library.")
(define-public python-dbus-fast
(package
(name "python-dbus-fast")
- (version "2.30.2")
+ (version "2.44.3")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "dbus_fast" version))
+ (method git-fetch) ;No tests in PyPI package.
+ (uri (git-reference
+ (url "https://github.com/Bluetooth-Devices/dbus-fast")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1cx71lbw716smpr4vsc9d421v45s36hcqj2z95nl3wm2yhan6ac7"))))
+ (base32 "12f1f25ny7fd59s55gw3vr6ymdqgd51zzpbc1nkqfbmb166d1536"))))
(build-system pyproject-build-system)
- (native-inputs (list python-cython python-poetry-core python-setuptools
- python-wheel))
+ (arguments
+ (list
+ #:test-flags
+ '(list
+ ;; These tests need pytest_codspeed.
+ "--ignore-glob=tests/benchmarks/test_*marshall.py"
+ ;; These tests all fail with:
+ ;; dbus_fast.errors.InvalidAddressError: DBUS_SESSION_BUS_ADDRESS not
+ ;; set and could not get DISPLAY environment variable to get bus address
+ "-m" "not asyncio")))
+ (native-inputs (list python-cython
+ python-poetry-core
+ python-setuptools
+ python-pytest
+ python-pytest-cov
+ python-pytest-asyncio
+ python-covdefaults))
(home-page "https://github.com/bluetooth-devices/dbus-fast")
(synopsis "Faster version of dbus-next")
(description "This package provides a faster version of dbus-next.")
@@ -39294,7 +37541,19 @@ client library.")
(sha256
(base32 "122a8prbcj070y3fl82kvxmbciv36hj1h1d448l6zcdrb22q4mhx"))))
(build-system pyproject-build-system)
- (native-inputs (list python-setuptools python-wheel))
+ (arguments
+ (list
+ ;; tests: 1571 passed, 37 deselected, 1 warning
+ ;;
+ ;; Two test fail with assertion not equal:
+ ;;
+ ;; test_decode_error[0001-unpack_from requires a buffer of at least 1
+ ;; bytes] - AssertionError
+ ;;
+ ;; test_decode_error[00000101-unpack_from requires a buffer of at least
+ ;; 1 bytes] - AssertionError
+ #:test-flags #~(list "-k" "not test_decode_error")))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://ndeflib.readthedocs.io/")
(synopsis "NFC Data Exchange Format decoder and encoder.")
(description "This package provides a NFC (Near-Field Communication)
@@ -39333,8 +37592,10 @@ Communication.")
(sha256
(base32
"0xfn8d1by2w7pjiji887qljk1avn4fylbnz1mj28gysm5g0zvy43"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments '(#:tests? #f)) ;there are no tests
+ (native-inputs
+ (list python-setuptools))
(propagated-inputs (list python-colorama python-termcolor))
(home-page "https://github.com/AbhijithAJ/clrprint")
(synopsis "Print colorful output in the terminal")
@@ -39380,9 +37641,10 @@ files.")
(sha256
(base32
"1ckn8n37i7b65h0i385ycn0w8sg9na0iabz0kmhxxc1wj0hddkw9"))))
- (build-system python-build-system)
- (native-inputs (list python-wheel))
- (home-page "https://github.com/hmillerbakewell/musical-scale")
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/hmillerbakewell/musical-scales")
(synopsis "Retrieve a scale based on a given mode and starting note")
(description
"Retrieve a scale based on a given mode and starting note.
@@ -39394,15 +37656,21 @@ Wikipedia}.")
(define-public python-langcodes
(package
(name "python-langcodes")
- (version "3.3.0")
+ (version "3.5.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "langcodes" version))
(sha256
(base32
- "1xkyh3qdcigb18qiimbwl2669y22hhdmd89mqcd270c7lbahfkbr"))))
- (build-system python-build-system)
- (native-inputs (list python-pytest))
+ "00gqlqs1gi8mvjwf6fkwiqhgcqxnsk5gwzs9l8qy2lbys1l83vqy"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm))
+ (propagated-inputs
+ ;; [optional:data]
+ (list python-language-data))
(home-page "https://github.com/rspeer/langcodes")
(synopsis "Python library for working with language codes")
(description
@@ -39423,15 +37691,15 @@ install @code{python-language-data}.")
(define-public python-anyascii
(package
(name "python-anyascii")
- (version "0.3.2")
+ (version "0.3.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "anyascii" version))
(sha256
(base32
- "0c27rr3fmc1cx9mkmgx94zdf9yil0napzfkwpjw2bqjghkpk4pcx"))))
+ "1hwmzg3kxyj6lxdgibrj3azv803x8kwzw1d3xja98gbvskcrskn9"))))
(build-system pyproject-build-system)
- (native-inputs (list python-flit-core python-setuptools))
+ (native-inputs (list python-pytest python-flit-core))
(home-page "https://anyascii.com")
(synopsis "Unicode to ASCII transliteration")
(description "@code{anyascii} converts Unicode characters to their best
@@ -39615,18 +37883,18 @@ window managers.")
(package
(name "i3-autotiling")
(version "1.9.3")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/nwg-piotr/autotiling")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0ag3zz4r3cwpj769m2aw3l8yj93phsydzfz02dig5z81cc025rck"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nwg-piotr/autotiling")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ag3zz4r3cwpj769m2aw3l8yj93phsydzfz02dig5z81cc025rck"))))
+ (build-system pyproject-build-system)
(arguments (list #:tests? #f)) ;no tests
- (native-inputs (list python-wheel))
+ (native-inputs (list python-setuptools))
(propagated-inputs (list python-i3ipc))
(home-page "https://github.com/nwg-piotr/autotiling")
(synopsis "Automatically tile windows in i3 and Sway")
@@ -39702,6 +37970,24 @@ package. It can be used by type-checking tools like mypy, PyCharm, pytype
etc. to check code that uses @code{orjson}.")
(license license:asl2.0)))
+(define-public python-types-regex
+ (package
+ (name "python-types-regex")
+ (version "2025.9.18.20250921")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "types_regex" version))
+ (sha256
+ (base32 "0gqc8b9d38pdm1l6nryi9rq9vmpis575hqnxlvj904n3n4hhqw71"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI archive
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/python/typeshed")
+ (synopsis "Typing stubs for regex")
+ (description "This package provides typing stubs for regex.")
+ (license license:asl2.0)))
+
(define-public python-rpds-py
(package
(name "python-rpds-py")
@@ -39726,13 +38012,9 @@ etc. to check code that uses @code{orjson}.")
(assoc-ref py:%standard-phases 'build))
(add-after 'build-python-module 'install-python-module
(assoc-ref py:%standard-phases 'install)))
- #:cargo-inputs
- `(("rust-archery" ,rust-archery-1)
- ("rust-pyo3" ,rust-pyo3-0.19)
- ("rust-rpds" ,rust-rpds-1))
#:install-source? #false))
(inputs
- (list maturin))
+ (cons maturin (cargo-inputs 'python-rpds-py)))
(native-inputs
(list python-wrapper))
(home-page "https://github.com/crate-py/rpds")
@@ -39801,7 +38083,7 @@ platform using the ActivityPub protocol.")
(define-public python-lief
(package
(name "python-lief")
- (version "0.16.6")
+ (version "0.17.0")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -39810,7 +38092,7 @@ platform using the ActivityPub protocol.")
(file-name (git-file-name name version))
(sha256
(base32
- "1pq9nagrnkl1x943bqnpiyxmkd9vk99znfxiwqp6vf012b50bz2a"))))
+ "037ffw62yygkn74p51dnia9rhk81byj1xm8xzy3ciz4qv1di3k49"))))
(build-system pyproject-build-system)
(native-inputs (list cmake-minimal
ninja
@@ -39919,7 +38201,7 @@ path.")
(native-inputs
(list perl-image-exiftool
python-dateutil
- python-docutils
+ python-docutils-0.19
python-jinja2
python-markdown
python-pillow
@@ -39997,69 +38279,6 @@ functions
markdown-compliant strings.")
(license license:expat)))
-(define-public python-yattag
- (package
- (name "python-yattag")
- (version "1.16.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "yattag" version))
- (sha256
- (base32 "1x2is0lkpywvqaayc21n1cvfbq0havzx46i83033wpgawxag5a5s"))))
- (build-system pyproject-build-system)
- (native-inputs
- (list python-pytest
- python-setuptools
- python-wheel))
- (home-page "https://www.yattag.org/")
- (synopsis "HTML or XML generator for Python")
- (description
- "Yattag is a Python library for generating HTML or XML in a pythonic
-way.")
- (license license:lgpl2.1)))
-
-(define-public python-zbarlight
- (package
- (name "python-zbarlight")
- (version "3.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "zbarlight" version))
- (sha256
- (base32
- "1v5c9bim8af6g8kgxp2dhm96n5vkr8sqi56w0bdh1xy49v03lw3g"))))
- (build-system pyproject-build-system)
- (propagated-inputs (list python-pillow python-setuptools))
- (inputs (list zbar))
- (native-inputs (list python-wheel))
- (home-page "https://github.com/Polyconseil/zbarlight")
- (synopsis "Simple Python wrapper for the zbar barcode library")
- (description "Zbarlight is a simple wrapper for the zbar library. It can
-read all zbar supported codes.")
- (license license:bsd-3)))
-
-(define-public python-zeroc-ice
- (package
- (name "python-zeroc-ice")
- (version "3.7.10.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "zeroc-ice" version))
- (sha256
- (base32
- "0r46q4hd7xbpvnidbra1prkg4xhmajxjjmclfqgp3pv0lgyslqxh"))))
- (build-system pyproject-build-system)
- (inputs (list openssl))
- (native-inputs (list python-setuptools python-wheel))
- (home-page "https://zeroc.com")
- (synopsis "RPC framework")
- (description
- "Ice is a comprehensive RPC framework. Ice helps you network your
-software by taking care of all interactions with low-level network programming
-interfaces.")
- (license license:gpl2)))
-
(define-public python-islenska
(package
(name "python-islenska")
@@ -40147,8 +38366,8 @@ with one function call. IceCream makes print debugging a little sweeter.")
(string-append "not test_trigrams" " and not test_word_ids")
"test/test_ngrams.py")))
(propagated-inputs (list python-cffi))
- (native-inputs (list python-pytest python-setuptools-next
- python-setuptools-scm-next python-wheel))
+ (native-inputs (list python-pytest python-setuptools
+ python-setuptools-scm python-wheel))
(home-page "https://github.com/mideind/Icegrams")
(synopsis "Trigram statistics for Icelandic")
(description
@@ -40160,39 +38379,1433 @@ instance in spelling correction, predictive typing, to help disabled people
write text fast, and for various text generation, statistics, and modeling tasks.")
(license license:expat)))
-(define-public python-zeroc-ice-3.6
+(define-public python-ua-parser
(package
- (inherit python-zeroc-ice)
- (version "3.6.5")
+ (name "python-ua-parser")
+ (version "0.10.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "ua-parser" version))
+ (sha256
+ (base32
+ "0csh307zfz666kkk5idrw3crj1x8q8vsqgwqil0r1n1hs4p7ica7"))))
+ (build-system pyproject-build-system)
+ (arguments
+ `(#:tests? #f)) ;no test suite in release
+ (native-inputs
+ (list python-pyyaml
+ python-setuptools))
+ (home-page "https://github.com/ua-parser/uap-python")
+ (synopsis "User agent parser")
+ (description
+ "@code{ua-parser} is a Python port of Browserscope's user agent parser.")
+ (license license:asl2.0)))
+
+(define-public python-ubelt
+ (package
+ (name "python-ubelt")
+ (version "1.3.6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Erotemic/ubelt")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1v2kf9lbdfaf9nppdq45rfanz4bdd2v6x59iajcznwgc4jmhj2na"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; The builder user home doesn't match HOME, which causes this test to
+ ;; fail.
+ #:test-flags #~(list "-k" "not userhome")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "HOME" "/tmp")))))) ;else the test suite hangs
+ (native-inputs
+ (list python-pytest
+ python-requests
+ python-setuptools
+ python-wheel
+ python-xdoctest))
+ (propagated-inputs
+ (list python-ordered-set))
+ (home-page "https://github.com/Erotemic/ubelt")
+ (synopsis "Python library for hashing, caching, timing and more")
+ (description
+ "Ubelt is a small library of simple functions that extend the Python
+standard library. It includes an @acronym{API, Application Programming
+Interface} to simplify common problems such as caching, timing, computing
+progress, among other things.")
+ (license license:asl2.0)))
+
+(define-public python-uc-micro-py
+ (package
+ (name "python-uc-micro-py")
+ (version "1.0.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/tsutsu3/uc.micro-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "17f55gi55rg47nm88fn3f8851ph03dgykdp011lxr3j6hk18lyfv"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools python-wheel))
+ (home-page "https://github.com/tsutsu3/uc.micro-py")
+ (synopsis "Unicode data files for linkify-it-py projects")
+ (description "This package contains a micro subset of Unicode data files
+for linkify-it-py projects.")
+ (license license:expat)))
+
+(define-public python-ujson
+ (package
+ (name "python-ujson")
+ (version "5.10.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "ujson" version))
+ (sha256
+ (base32
+ "1habmn3bmmv2ym4ldiijcavdkdzp8h28h60hgwjkhxwcbly8zkdk"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin (delete-file-recursively "deps")))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'link-to-system-double-conversion
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((d-c (assoc-ref inputs "double-conversion")))
+ (substitute* "setup.py"
+ (("./deps/double-conversion/double-conversion\"")
+ (string-append d-c "/include/double-conversion\""))
+ (("-lstdc++" stdc)
+ (string-append "-L" d-c "/lib\","
+ " \"-ldouble-conversion\","
+ " \"" stdc)))))))))
+ (native-inputs
+ (list double-conversion
+ python-pytest
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
+ (home-page "https://github.com/ultrajson/ultrajson")
+ (synopsis "Ultra fast JSON encoder and decoder for Python")
+ (description
+ "UltraJSON is an ultra fast JSON encoder and decoder written in pure C with
+bindings for Python 3.")
+ (license license:bsd-3)))
+
+(define-public python-ukkonen
+ (package
+ (name "python-ukkonen")
+ (version "1.0.1")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/asottile/ukkonen")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "17gspl2dsykg000275svvyam4k7wz9ypi9xrfrmsgcgryczravlc"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools python-wheel))
+ (propagated-inputs (list python-cffi))
+ (home-page "https://github.com/asottile/ukkonen")
+ (synopsis "Implementation of bounded Levenshtein distance (Ukkonen)")
+ (description "This package is an implementation of of bounded Levenshtein
+distance (Ukkonen).")
+ (license license:expat)))
+
+(define-public python-ukpostcodeparser
+ (package
+ (name "python-ukpostcodeparser")
+ (version "1.1.2")
(source (origin
(method url-fetch)
- (uri (pypi-uri "zeroc-ice" version))
+ (uri (pypi-uri "UkPostcodeParser" version))
(sha256
(base32
- "0mikjfvq26kh8asnn9v55z41pap4c5ypymqnwwi4xkavc3mzyda2"))
- (patches
- (search-patches
- "python-zeroc-ice-3.6.5-python-3.11-support.patch"))))))
+ "03jkf1ygbwq3akzbcjyjk1akc1hv2sfgx90306pq1nwklbpn80lk"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list
+ ;; Tests for lowercase postcodes fail.
+ "-k" (string-join
+ (list "not test_091 "
+ "test_097 "
+ "test_098 "
+ "test_125 "
+ "test_131")
+ " and not ")
+ "ukpostcodeparser/test/parser.py")))
+ (native-inputs
+ (list python-pytest python-setuptools))
+ (home-page "https://github.com/hamstah/ukpostcodeparser")
+ (synopsis "UK Postcode parser for Python")
+ (description
+ "This library provides the @code{parse_uk_postcode} function for
+parsing UK postcodes.")
+ (license license:expat)))
+
+(define-public python-uncertainties
+ (package
+ (name "python-uncertainties")
+ (version "3.2.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "uncertainties" version))
+ (sha256
+ (base32
+ "0c9hl35jvld1a1vinh9mdcpfgz4ykqinlm1dj917lqbgd0z6b9bn"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest python-setuptools python-setuptools-scm python-wheel))
+ (propagated-inputs (list python-numpy))
+ (home-page "https://uncertainties.readthedocs.io/en/latest/")
+ (synopsis "Calculations with uncertainties")
+ (description
+ "The uncertainties package transparently handles calculations with
+numbers with uncertainties. It can also yield the derivatives of any
+expression.")
+ (license license:bsd-3)))
+
+(define-public python-unicodedata2
+ (package
+ (name "python-unicodedata2")
+ (version "16.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "unicodedata2" version))
+ (sha256
+ (base32 "1z3llixb4cd6cc6nmyps5vv2sss14n3x6dzcc65xg75mj9jqsj05"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (home-page "https://github.com/fonttools/unicodedata2")
+ (synopsis "Python unicodedata backport")
+ (description "This package corresponds to the latest @code{unicodedata}
+standard Python module.")
+ (license license:asl2.0)))
+
+(define-public python-unidecode
+ (package
+ (name "python-unidecode")
+ (version "1.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Unidecode" version))
+ (sha256
+ (base32 "08rbx8vxsnj06cvrdxy80zrn9hk25lwcqfh2fdjng2rk1189hdff"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest python-setuptools))
+ (home-page "https://pypi.org/project/Unidecode/")
+ (synopsis "ASCII transliterations of Unicode text")
+ (description
+ "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
+useful when integrating with legacy code that doesn't support Unicode, or for
+ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
+machine identifiers from human-readable Unicode strings that should still be
+somewhat intelligible.")
+ (license license:gpl2+)))
+
+(define-public python-unique-log-filter
+ (package
+ (name "python-unique-log-filter")
+ (version "0.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/twizmwazin/unique_log_filter")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "036mh6nqskck2fa1q2inasqxb9wcz2p09qcpldnnffzcy1a6kzba"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "test_unique_log_filter.py")))
+ (native-inputs (list python-flit-core))
+ (home-page "https://github.com/twizmwazin/unique_log_filter")
+ (synopsis "Log filter that removes duplicate log messages")
+ (description
+ "This library provides a filter for the @code{logging} module
+from the Python standard library which allows removing duplicate log
+messages.")
+ (license license:bsd-2)))
+
+(define-public python-uniseg
+ (package
+ (name "python-uniseg")
+ (version "0.10.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "uniseg" version))
+ (sha256
+ (base32 "18sj1i7xlssrsfwlr95bd4x78mfhq0v6irfx3b7fkgr17a5jbsmm"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm))
+ (home-page "https://bitbucket.org/emptypage/uniseg-python")
+ (synopsis "Python library to determine Unicode text segmentations")
+ (description
+ "Uniseg is a Python package used to determine Unicode text segmentations.
+Supported segmentations include:
+@enumerate
+@item @dfn{Code point} (any value in the Unicode codespace)
+@item @dfn{Grapheme cluster} (user-perceived character made of a single or
+multiple Unicode code points, e.g. \"G\" + acute-accent)
+@item Word break
+@item Sentence break
+@item Line break
+@end enumerate")
+ (license license:expat)))
+
+(define-public python-unpaddedbase64
+ (package
+ (name "python-unpaddedbase64")
+ (version "2.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/matrix-org/python-unpaddedbase64")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1n6har8pxv0mqb96lanzihp1xf76aa17jw3977drb1fgz947pnmz"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-poetry-core
+ python-pytest
+ python-setuptools
+ python-wheel))
+ (home-page "https://github.com/matrix-org/python-unpaddedbase64")
+ (synopsis "Encode and decode Base64 without “=” padding")
+ (description
+ "RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes
+using “=” characters. However this conveys no benefit so many protocols
+choose to use Base64 without the “=” padding.")
+ (license license:asl2.0)))
+
+(define-public python-update-checker
+ (package
+ (name "python-update-checker")
+ (version "0.18.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "update-checker" version))
+ (sha256
+ (base32 "04yb5a9mi45ax50m2m0ih6gdvkk1j7gfmy83dd58i1f59axlabba"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-requests))
+ (home-page "https://github.com/bboe/update_checker")
+ (synopsis "Python module that will check for package updates")
+ (description "This package provides a Python module that will check for
+package updates.")
+ (license license:bsd-2)))
+
+(define-public python-uri-template
+ (package
+ (name "python-uri-template")
+ (version "1.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "uri-template" version))
+ (sha256
+ (base32 "1ixczlgnsjv2850r6w0cb2npwcwzdqri8njr1pi7v371cpmzh00f"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python3" "test.py")))))))
+ (native-inputs
+ (list python-setuptools
+ python-setuptools-scm
+ python-wheel))
+ (home-page "https://gitlab.linss.com/open-source/python/uri-template")
+ (synopsis "RFC 6570 URI Template Processor")
+ (description "This package implements URI Template expansion in strict
+adherence to RFC 6570, but adds a few extensions.")
+ (license license:expat)))
+
+(define-public python-urwid
+ (package
+ (name "python-urwid")
+ (version "3.0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "urwid" version))
+ (sha256
+ (base32
+ "16zdji1fdr5jbry9h01dxwnadrygs1xj415jqnhmmnlcavfh821h"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "tests"
+ ;; According to Debian these tests are cursed.
+ ;; https://salsa.debian.org/python-team/packages/urwid/-/blob/debian/2.1.2-2/debian/changelog#L141
+ "--ignore=tests/test_vterm.py")))
+ (native-inputs
+ (list python-pytest
+ python-pytest-cov
+ python-setuptools
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-wcwidth
+ ;; [optional]
+ python-pygobject
+ python-pyzmq
+ python-tornado
+ python-pyserial
+ python-twisted))
+ (home-page "https://urwid.org")
+ (synopsis "Console user interface library for Python")
+ (description
+ "Urwid is a curses-based UI/widget library for Python. It includes many
+features useful for text console applications.")
+ (license license:lgpl2.1+)))
+
+(define-public python-urwid-2
+ (package
+ (inherit python-urwid)
+ (name "python-urwid")
+ (version "2.6.16")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "urwid" version))
+ (sha256
+ (base32 "18ijvgf1l7jvmg45x1cysn3c9rdrg1w0405acig3hk7476cj7bck"))))))
+
+(define-deprecated/public-alias python-urwid-3
+ python-urwid) ;may be removed after 2025-11-12
+
+(define-public python-urwid-for-zulip-term
+ ;; zulip-term@0.7.0 requires exact 2.1.2 version otherewise some tests fail
+ ;; to pass, remove when no longer required.
+ (hidden-package
+ (package
+ (inherit python-urwid)
+ (version "2.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "urwid" version))
+ (sha256
+ (base32 "1bky2bra6673xx8jy0826znw6cmxs89wcwwzda8d025j3jffx2sq"))))
+ (arguments
+ (list #:tests? #f)))))
+
+(define-public python-urwid-readline
+ (package
+ (name "python-urwid-readline")
+ (version "0.15.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rr-/urwid_readline")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0zhpx86gvpkziclb7bcqn73fadkzn805rjqy7lzhrza46lphq8qy"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-urwid))
+ (home-page "https://github.com/rr-/urwid_readline")
+ (synopsis "Text input widget for urwid that supports readline shortcuts")
+ (description
+ "This package provides a textbox edit widget for @code{python-urwid} that
+supports @code{readline} shortcuts.")
+ (license license:expat)))
+
+(define-public python-urwidgets
+ (package
+ (name "python-urwidgets")
+ (version "0.2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "urwidgets" version))
+ (sha256
+ (base32 "1vrydw9h8c5gi89dnv12a9cdyyxaffvxl1kq51f118cxjk9brwpr"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-urwid-2))
+ (home-page "https://github.com/AnonymouX47/urwidgets")
+ (synopsis "Collection of widgets for urwid")
+ (description
+ "This package provides a collection of widgets for urwid.")
+ (license license:expat)))
+
+(define-public python-urwidtrees
+ (package
+ (name "python-urwidtrees")
+ (version "1.0.4")
+ (source
+ (origin
+ (method git-fetch)
+ ;; package author intends on distributing via github rather than pypi:
+ ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
+ (uri (git-reference
+ (url "https://github.com/pazz/urwidtrees")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "17k0gx8i7wrzw6skzdjh9b8v3n6lb5zvg9jrybc3d09p8ipvc31i"))))
+ (build-system pyproject-build-system)
+ (arguments
+ '(#:tests? #f)) ; no tests
+ (propagated-inputs (list python-urwid))
+ (native-inputs (list python-mock python-setuptools python-wheel))
+ (home-page "https://github.com/pazz/urwidtrees")
+ (synopsis "Tree widgets for urwid")
+ (description "Urwidtrees is a Widget Container API for the @code{urwid}
+toolkit. Use it to build trees of widgets.")
+ (license license:gpl3+)))
+
+(define-public python-user-agents
+ (package
+ (name "python-user-agents")
+ (version "2.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/selwin/python-user-agents")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0pcbjqj21c2ixhl414bh2h8khi8y1igzfpkyqwan1pakix0lq45a"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'unittest))
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-ua-parser))
+ (home-page "https://github.com/selwin/python-user-agents")
+ (synopsis "User Agent strings parsing library")
+ (description
+ "A library to identify devices (phones, tablets) and their capabilities by
+parsing (browser/HTTP) user agent strings.")
+ (license license:expat)))
+
+(define-public python-userpath
+ (package
+ (name "python-userpath")
+ (version "1.9.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "userpath" version))
+ (sha256
+ (base32 "05fqxzdi27vqm5lywxs6bm2j4d8k91fx2ihqhg65g4h6mf6jhlkc"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; See https://github.com/ofek/userpath/issues/43.
+ ;; In Guix, tests try to find the temporary build directory in PATH, but
+ ;; only the store output is present.
+ (list #:tests? #f))
+ (native-inputs (list python-hatchling python-pytest))
+ (propagated-inputs (list python-click))
+ (home-page "https://github.com/ofek/userpath")
+ (synopsis "Add locations to the user's PATH")
+ (description "This package provides a tool for modifying a user's PATH.")
+ (license license:expat)))
+
+(define-public python-userspacefs
+ (package
+ (name "python-userspacefs")
+ (version "2.0.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "userspacefs" version))
+ (sha256
+ (base32
+ "0v0qkdwfc61s2yiq7d7amin93x5biypfmi9pfhf8yj1rdpx5yvsx"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-fusepyng))
+ (home-page "https://thelig.ht/code/userspacefs/readme.html")
+ (synopsis "User-space file systems for Python")
+ (description
+ "@code{userspacefs} is a library that allows you to easily write
+user-space file systems in Python.")
+ (license license:gpl3+)))
+
+(define-public python-utils
+ (package
+ (name "python-utils")
+ (version "3.9.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "python_utils" version))
+ (sha256
+ (base32 "18292j4p1bvlpbrfj2cgkdby6dpgnl5gbjwly0qb4pj1j914nmzb"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-pytest-config
+ (lambda _
+ ;; Drop test coverage requirements.
+ (substitute* "pytest.ini"
+ ((".*--cov.*") "")))))))
+ (native-inputs
+ (list python-pytest
+ python-pytest-asyncio
+ python-setuptools))
+ (propagated-inputs
+ (list python-loguru
+ python-typing-extensions))
+ (home-page "https://github.com/WoLpH/python-utils")
+ (synopsis "Convenient utilities not included with the standard Python install")
+ (description
+ "Python Utils is a collection of small Python functions and classes
+which make common patterns shorter and easier.")
+ (license license:bsd-2)))
+
+(define-public python-validate-email
+ (package
+ (name "python-validate-email")
+ (version "1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "validate_email" version))
+ (sha256
+ (base32 "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ;no tests in PyPI or Git
+ (native-inputs
+ (list python-setuptools))
+ (home-page "https://github.com/syrusakbary/validate_email")
+ (synopsis "Verifies if an email address is valid and really exists")
+ (description
+ "@code{validate_email} can be used to verify if an email address is
+valid and really exists.")
+ (license license:lgpl3+)))
+
+(define-public python-validators
+ (package
+ (name "python-validators")
+ (version "0.34.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "validators" version))
+ (sha256
+ (base32 "07vq3s77f5yndn7jfx39jbsaq5m8wqc3p52v4i6sgyasnh3y8zv4"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; python-eth-hash is not packed yet.
+ #:test-flags #~(list "--ignore=tests/crypto_addresses/test_eth_address.py")))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-wheel))
+ (propagated-inputs
+ (list python-decorator
+ ;; python-eth-hash ; optional, not packed yet.
+ python-six))
+ (home-page "https://github.com/kvesteri/validators")
+ (synopsis "Data validation library")
+ (description
+ "This package contains validators for different things such as email
+addresses, IP addresses, URLs, hashes and more. It has been designed to be
+easy to use and not require defining a schema or form just to validate some
+input.")
+ (license license:expat)))
+
+(define-public python-valkey
+ (package
+ (name "python-valkey")
+ (version "6.1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/valkey-io/valkey-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "05zmnb8lmygv75zx0hb40s2rgr53sy4g0sizcb9mq8fd09z5i0n2"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; XXX: A lot of tests fail with ConnectionError
+ ;; Maybe we need to spawn a valkey server?
+ (list #:tests? #f))
+ (native-inputs
+ (list python-setuptools))
+ (home-page "https://github.com/valkey-io/valkey-py")
+ (synopsis "Python client for Valkey")
+ (description
+ "This package provides a python client for the @code{Valkey} key-value
+store, forked from redis-py.")
+ (license license:expat)))
+
+;; XXX: No fresh releases or updates since 2016, consider to remove, leaf
+;; package.
+(define-public python-vcversioner
+ (package
+ (name "python-vcversioner")
+ (version "2.16.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "vcversioner" version))
+ (sha256
+ (base32
+ "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests in PyPI archvie
+ (native-inputs
+ (list python-setuptools))
+ (home-page "https://github.com/habnabit/vcversioner")
+ (synopsis "Python library for version number discovery")
+ (description
+ "Vcversioner is a Python library that inspects tagging information in a
+variety of version control systems in order to discover version numbers.")
+ (license license:isc)))
+
+(define-public python-vdf
+ (package
+ (name "python-vdf")
+ (version "3.4")
+ (source
+ (origin
+ (method git-fetch) ; no tests in PyPI release
+ (uri (git-reference
+ (url "https://github.com/ValvePython/vdf")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1xc0sd21xgf08pf6dwa4l23y9jb6yqaw61rr03ns0d2r6sby137a"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest python-setuptools))
+ (home-page "https://github.com/ValvePython/vdf")
+ (synopsis "Work with Valve's VDF text format")
+ (description
+ "This package provides @code{python-vdf}, a library for working with
+ Valve's VDF text format.")
+ (license license:expat)))
+
+(define-public python-vendetect
+ (package
+ (name "python-vendetect")
+ (version "0.0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "vendetect" version))
+ (sha256
+ (base32 "0hi13sbgr8y66mih2xyzczjfff4lwymkn9cw5215ms2nn6qq9rhi"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs (list python-copydetect python-rich))
+ (native-inputs (list python-hatchling python-pytest))
+ (home-page "https://github.com/trailofbits/vendetect")
+ (synopsis "Detect vendored and copy-pasted code")
+ (description
+ "Vendetect helps identify copied or vendored code between repositories,
+making it easier to detect when code has been copied with or without
+attribution. It uses similarity detection algorithms to compare code files
+and highlight matching sections.")
+ (license license:agpl3+)))
+
+;; XXX: No updates since 2017.
+(define-public python-verboselogs
+ (package
+ (name "python-verboselogs")
+ (version "1.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "verboselogs" version))
+ (sha256
+ (base32 "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; Do not run pylint plugin test, as astroid is an old unsupported
+ ;; version.
+ #~(list "-k" "not test_pylint_plugin"
+ "verboselogs/tests.py")))
+ (native-inputs
+ (list python-mock
+ python-pytest
+ python-setuptools))
+ (home-page "https://verboselogs.readthedocs.io")
+ (synopsis "Verbose logging level for Python's logging module")
+ (description
+ "The @code{verboselogs} package extends Python's @code{logging} module to
+add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.")
+ (license license:expat)))
+
+;; XXX: No updates since 2018, consider to remove when fails to build, it's a
+;; leaf package.
+(define-public python-version
+ ;; No version tags available in the git repo; just using bare commit instead.
+ (let ((commit "5232eea250ab72cc5cb72b0b75efb35d2192b906")
+ (revision "1"))
+ (package
+ (name "python-version")
+ (version (git-version "0.0.2" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.com/halfak/python_version")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0w210559ypdynlj9yn40m9awzkaknwrf682i99hswl7h66sdgh0h"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests
+ (native-inputs
+ (list python-setuptools))
+ (home-page "https://gitlab.com/halfak/python_version")
+ (synopsis "Python version checking utility")
+ (description
+ "This package provides a simple utility for checking the python version.")
+ (license license:expat))))
+
+(define-public python-versioneer
+ (package
+ (name "python-versioneer")
+ (version "0.29")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "versioneer" version))
+ (sha256
+ (base32
+ "0cap4cjckxp9mlkprqayfs77k3pn5iwpr2riacdxc4bjhnwq7cjs"))
+ (patches (search-patches "python-versioneer-guix-support.patch"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; Minimize test requirements.
+ #:test-flags
+ #~(list "--deselect=test/git/test_git.py::Repo::test_pyproject"
+ "--ignore=test/git/test_invocations.py"
+ "--ignore=test/test_render.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ (invoke "python" "setup.py" "make_versioneer"
+ "make_long_version_py_git"))))))
+ (native-inputs
+ (list git-minimal/pinned
+ python-pytest
+ python-setuptools
+ python-wheel))
+ (propagated-inputs
+ (list python-tomli))
+ (home-page "https://github.com/python-versioneer/python-versioneer")
+ (synopsis "Version-string management for VCS-controlled trees")
+ (description
+ "@code{versioneer} is a tool for managing a recorded version number in
+distutils-based python projects. The goal is to remove the tedious and
+error-prone \"update the embedded version string\" step from your release
+process.")
+ (license license:unlicense)))
+
+(define-public python-verspec
+ (package
+ (name "python-verspec")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "verspec" version))
+ (sha256
+ (base32 "07n06wv85fm4vl1ird2mja0823js3x322wgs9gdnq1djjyk4ql64"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ (invoke "touch" "test/__init__.py"))))))
+ (native-inputs
+ (list python-pretend
+ python-pytest
+ python-setuptools))
+ (home-page "https://github.com/jimporter/verspec")
+ (synopsis "Flexible version handling for Python")
+ (description
+ "This Python library handles software versions and specifiers. It is
+adapted from the @code{packaging} package.")
+ (license (list license:bsd-2 license:asl2.0))))
+
+(define-public python-vine
+ (package
+ (name "python-vine")
+ (version "5.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "vine" version))
+ (sha256
+ (base32 "1q31krwxdvwawdn1kfqmpplix31d4jhs0qng26908hawsf0yjqlb"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; AttributeError: 'test_barrier' object has no attribute 'ps'.
+ #~(list "-k" (string-join
+ (list "not test_evaluate"
+ "test_reverse"
+ "test_cancel"
+ "test_throw")
+ " and not "))))
+ (native-inputs
+ (list python-pytest python-setuptools python-wheel))
+ (home-page "https://github.com/celery/vine")
+ (synopsis "Promises for Python")
+ (description
+ "@code{vine} provides a special implementation of promises in that it can
+be used both for \"promise of a value\" and lazy evaluation. The biggest
+upside for this is that everything in a promise can also be a promise,
+e.g. filters, callbacks and errbacks can all be promises.")
+ (license license:bsd-3)))
+
+(define-public python-virtualenv
+ (package
+ (name "python-virtualenv")
+ (version "20.29.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "virtualenv" version))
+ (sha256
+ (base32
+ "0dfwnn8i1y33kgxhi4xyhsj4yr5vsin7zf9c343bcbyk700rgf5q"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" (string-join
+ (list
+ ;; These tests require Internet access.
+ "not test_seed_link_via_app_data"
+ ;; AssertionError: assert 'python' in ['python3',
+ ;; 'python3.11'].
+ ;;
+ ;; PythonInfo() returns: 'system_executable':
+ ;; '/gnu/store/...-python-wrapper-3.11.11/bin/python'
+ "test_fallback_existent_system_executable")
+ " and not "))))
+ (native-inputs
+ (list python-flaky
+ python-hatch-vcs
+ python-hatchling
+ python-packaging
+ python-pytest
+ python-pytest-env
+ python-pytest-freezer
+ python-pytest-mock
+ python-pytest-timeout
+ python-setuptools
+ python-time-machine))
+ (propagated-inputs
+ (list python-distlib
+ python-filelock
+ python-platformdirs))
+ (home-page "https://virtualenv.pypa.io/")
+ (synopsis "Virtual Python environment builder")
+ (description
+ "Virtualenv is a tool to create isolated Python environments.")
+ (license license:expat)))
+
+(define-public python-virtualenv-for-hatch
+ ;; For hatch@1.9.7, remove when no longer required.
+ (hidden-package
+ (package
+ (inherit python-virtualenv)
+ (version "20.25.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "virtualenv" version))
+ (sha256
+ (base32 "1gj57xqgrg53yfn9ypikgky01hvazxdyl556kwsc7b7avyxm9dbv")))))))
+
+;; XXX: No new release since 2021, no updates on default branch since 2023, no
+;; users in Guix; consider to remove if it keeps failing to build.
+(define-public python-virtualenv-clone
+ (package
+ (name "python-virtualenv-clone")
+ (version "0.5.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/edwardgeorge/virtualenv-clone")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0p0d1y3axvjfnxlgwjx2374gikc8bmc82g0m7yashihbikh7pcxa"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" (string-join
+ ;; UnicodeDecodeError: 'utf-8' codec can't decode byte
+ ;; 0xba in position 10: invalid start byte
+ (list "not test_clone_contents"
+ ;; AssertionError: All versions were skipped.
+ "test_clone_syspath"
+ "test_clone_version"
+ "test_virtualenv_syspath"
+ "test_virtualenv_versions")
+ " and not "))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-tomli
+ python-virtualenv
+ python-wheel))
+ (home-page "https://github.com/edwardgeorge/virtualenv-clone")
+ (synopsis "Clone a non-relocatable virtualenv cleanly")
+ (description
+ "Clone non-relocatable virtualenvs without breaking site-packages.")
+ (license license:expat)))
+
+(define-public python-vncdotool
+ (package
+ (name "python-vncdotool")
+ (version "1.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "http://github.com/sibson/vncdotool")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1adsc263qsa3hcyk8mhv0wwq44h8zhcksx92chd5rr1wz37zmc22"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs (list python-pillow python-pycryptodomex python-twisted))
+ (native-inputs (list python-pexpect python-pytest python-pyvirtualdisplay
+ python-setuptools python-wheel))
+ (home-page "http://github.com/sibson/vncdotool")
+ (synopsis "Command line VNC client")
+ (description
+ "This package provides a Python command line VNC client. It can be
+useful to automating interactions with virtual machines or hardware devices
+that are otherwise difficult to control.")
+ (license license:expat)))
+
+(define-public python-vncdotool-bootstrap
+ (hidden-package
+ (package/inherit python-vncdotool
+ (arguments (list #:tests? #f))
+ (native-inputs (list python-pexpect python-pytest python-setuptools
+ python-wheel)))))
+
+(define-public python-vobject
+ (package
+ (name "python-vobject")
+ (version "0.9.9")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "vobject" version))
+ (sha256
+ (base32
+ "13mk8wrg7js0zv3w8246jnxb3i5yp4ascl1csp0q9787wbbyai5c"))))
+ (build-system pyproject-build-system)
+ (arguments
+ '(;; The test suite relies on some non-portable Windows interfaces. Tests
+ ;; are rewokred on master's HEAD.
+ #:tests? #f))
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-dateutil
+ python-pytz
+ python-six)) ;it's dropped on master's HEAD
+ (home-page "https://py-vobject.github.io/")
+ (synopsis "Parse and generate vCard and vCalendar files")
+ (description
+ "Vobject is intended to be a full featured Python package for parsing
+and generating vCard and vCalendar files. Currently, iCalendar files are
+supported and well tested. vCard 3.0 files are supported, and all data should
+be imported, but only a few components are understood in a sophisticated way.")
+ (license license:asl2.0)))
+
+(define-public python-voluptuous
+ (package
+ (name "python-voluptuous")
+ (version "0.15.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "voluptuous" version))
+ (sha256
+ (base32 "1akr0adq9can0ibravqzl4aaf20rgv47g9gk596hn8ykqhrapz3g"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (home-page "https://github.com/alecthomas/voluptuous")
+ (synopsis "Python data validation library")
+ (description
+ "Voluptuous is a Python data validation library. It is primarily
+intended for validating data coming into Python as JSON, YAML, etc.")
+ (license license:bsd-3)))
+
+(define-public python-wand
+ (package
+ (name "python-wand")
+ (version "0.6.13")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Wand" version))
+ (sha256
+ (base32 "1jpwm956vm35hmgjndr2jwrcql0bwvpsl88q5nr0x8ppxa2380gm"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; These two tests fail even though the signatures are identical.
+ '(list "-k" "not fourier_transform")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'hardcode-lib-path
+ (lambda _
+ (substitute* "wand/api.py"
+ (("os\\.environ\\.get\\('MAGICK_HOME'\\)")
+ (string-append "\"" #$(this-package-input "imagemagick") "\""))
+ (("os\\.environ\\.get\\('WAND_MAGICK_LIBRARY_SUFFIX'\\)")
+ "\".Q16\"")))))))
+ (native-inputs
+ (list python-setuptools python-pytest python-wheel))
+ (inputs
+ (list imagemagick))
+ (home-page "https://docs.wand-py.org/")
+ (synopsis "MagickWand API binding for Python")
+ (description
+ "Wand is a ctypes-based binding for ImageMagick's MagickWand library.")
+ (license license:expat)))
+
+(define-public python-wasabi
+ (package
+ (name "python-wasabi")
+ (version "1.1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "wasabi" version))
+ (sha256
+ (base32 "0y085r7hym3x34a9jgxl5cd8gsh617rdmd187q6dn29q027h1csb"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; Test requires nbconvert which is huge.
+ #~(list "--deselect=wasabi/tests/test_jupyter.py::test_jupyter")))
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-colorama))
+ (home-page "https://github.com/ines/wasabi")
+ (synopsis "Console printing and formatting toolkit")
+ (description
+ "This package provides a lightweight console printing and formatting
+toolkit for Python.")
+ (license license:expat)))
+
+(define-public python-watchdog
+ (package
+ (name "python-watchdog")
+ (version "6.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "watchdog" version))
+ (sha256
+ (base32 "10n2v2iflhdriwfp34yvhfcckqb6vs7378fdvqj8xbm3zn17rpwx"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" (string-join
+ (list "not test_kill_auto_restart"
+ "test_auto_restart_on_file_change_debounce"
+ ;; Fails with too many open files.
+ "test_select_fd")
+ " and not "))))
+ (native-inputs
+ (list python-pytest
+ python-pytest-cov
+ python-pytest-timeout
+ python-setuptools))
+ (propagated-inputs
+ (list python-pyyaml))
+ (home-page "https://github.com/gorakhargosh/watchdog")
+ (synopsis "File system events monitoring")
+ (description "This package provides a way to monitor file system events
+such as a file modification and trigger an action. This is similar to inotify,
+but portable.")
+ (license license:asl2.0)))
+
+(define-public python-watchfiles
+ (package
+ (name "python-watchfiles")
+ (version "1.0.5")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/samuelcolvin/watchfiles")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1b5rdj795xcbwg76bd8hs3skhgifd7a8zw2vj76nac2dhjlqg93b"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; Missing file in source.
+ #:test-flags ''("-k" "not test_docs_examples")
+ #:imported-modules `(,@%cargo-build-system-modules
+ ,@%pyproject-build-system-modules)
+ #:modules '(((guix build cargo-build-system) #:prefix cargo:)
+ (guix build pyproject-build-system)
+ (guix build utils))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'prepare-cargo-build-system
+ (lambda args
+ (for-each
+ (lambda (phase)
+ (format #t "Running cargo phase: ~a~%" phase)
+ (apply (assoc-ref cargo:%standard-phases phase)
+ #:cargo-target #$(cargo-triplet)
+ args))
+ '(unpack-rust-crates
+ configure
+ check-for-pregenerated-files
+ patch-cargo-checksums))))
+ (add-after 'build 'install-rust-library
+ (lambda _
+ (copy-file "target/release/lib_rust_notify.so"
+ "watchfiles/_rust_notify.so"))))))
+ (native-inputs
+ (append
+ (list maturin
+ python-anyio
+ python-coverage
+ python-dirty-equals
+ python-pytest
+ python-pytest-cov
+ python-pytest-mock
+ python-pytest-timeout
+ rust
+ `(,rust "cargo"))
+ (or (and=> (%current-target-system)
+ (compose list make-rust-sysroot))
+ '())))
+ (inputs (cargo-inputs 'python-watchfiles))
+ (home-page "https://github.com/samuelcolvin/watchfiles")
+ (synopsis "Simple, modern file watching and code reload in Python")
+ (description
+ "Simple, modern file watching and code reload in Python inspired by
+@code{watchdog}. Among the differences are a unified approach for each
+operating systems and an elegant approach to concurrency using threading.")
+ (license license:expat)))
+
+(define-deprecated/alias python-watchgod python-watchfiles)
+(export python-watchgod)
+
+(define-public python-wcwidth
+ (package
+ (name "python-wcwidth")
+ (version "0.2.13")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "wcwidth" version))
+ (sha256
+ (base32
+ "1dbj74q1iz349sdkxrkc90f7xd4y7a9bdvgxg3cqdcly7430rskj"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest
+ python-pytest-cov
+ python-setuptools
+ python-wheel))
+ (home-page "https://github.com/jquast/wcwidth")
+ (synopsis "Measure number of terminal column cells of wide-character codes")
+ (description "Wcwidth measures the number of terminal column cells of
+wide-character codes. It is useful for those implementing a terminal emulator,
+or programs that carefully produce output to be interpreted by one. It is a
+Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
+specified in POSIX.1-2001 and POSIX.1-2008.")
+ (license license:expat)))
+
+(define-public python-whatever
+ (package
+ (name "python-whatever")
+ (version "0.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Suor/whatever")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1x5b4r3fppp208v52hn8inf2988w4llbkw9kvfc3w81dhmrf5fvq"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest python-setuptools python-wheel))
+ (home-page "https://github.com/Suor/whatever")
+ (synopsis "Make anonymous functions by partial application of operators")
+ (description "@code{whatever} provides an easy way to make anonymous
+functions by partial application of operators.")
+ (license license:bsd-3)))
+
+(define-public python-whatthepatch
+ (package
+ (name "python-whatthepatch")
+ (version "1.0.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "whatthepatch" version))
+ (sha256
+ (base32 "1pvygmgj9xqs8d9lsjxvg1mymni8pjsd44yl0a74002jxbmv9vwy"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools))
+ (home-page "https://github.com/cscorley/whatthepatch")
+ (synopsis "Patch parsing and application library")
+ (description
+ "This package provides a patch parsing and application library.")
+ (license license:expat)))
+
+(define-public python-wheel-filename
+ (package
+ (name "python-wheel-filename")
+ (version "1.4.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "wheel_filename" version))
+ (sha256
+ (base32 "1zcqq8mydjjrk8x5xlm53bavs51jm40nz42a7500pd6bbm31r2c7"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-hatchling python-pytest python-pytest-cov))
+ (home-page "https://github.com/wheelodex/wheel-filename")
+ (synopsis "Parse wheel filenames")
+ (description
+ "This software allows you to verify
+@url{https://packaging.python.org/en/latest/specifications/binary-distribution-format/, wheel}
+filenames and parse them into their component fields.
+
+This package adheres strictly to the standard, with the following
+exceptions:
+
+@itemize @bullet
+@item
+Version components may be any sequence of the relevant set of
+characters; they are not verified for PEP 440 compliance.
+@item
+The @file{.whl} file extension is matched case-insensitively.
+@end itemize")
+ (license license:expat)))
(define-public python-whenever
(package
(name "python-whenever")
- (version "0.6.16")
+ (version "0.9.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "whenever" version))
(sha256
- (base32 "1diqibiv07i0q4sqqd1qw4bbzmp84zlrfv8lmlc395b5czwpf5pj"))))
+ (base32 "1awcy5s25z2f7yk4n4x3ibjhypxz7ilgz4hi3fiww58pdcgzcnpw"))))
(build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- ;; Use the pure python version
- (add-before 'build 'setenv
- (lambda _
- (setenv "WHENEVER_NO_BUILD_RUST_EXT" "1"))))))
- (propagated-inputs (list python-tzdata))
- (native-inputs (list python-setuptools python-setuptools-rust python-wheel))
+ (list
+ ;; tests: 2170 passed, 3 skipped, 2 warnings
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Use the pure python version
+ (add-before 'build 'setenv
+ (lambda _
+ (setenv "WHENEVER_NO_BUILD_RUST_EXT" "1")))
+ (add-before 'check 'set-check-environment
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "TZ" "UTC")
+ (setenv "TZDIR"
+ (search-input-directory inputs
+ "share/zoneinfo")))))))
+ (propagated-inputs
+ (list python-time-machine python-tzdata python-tzlocal))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ tzdata-for-tests))
(home-page "https://whenever.readthedocs.io/")
(synopsis "Modern datetime library for Python")
(description "Modern datetime library for Python. Supports:
@@ -40203,6 +39816,345 @@ write text fast, and for various text generation, statistics, and modeling tasks
@end itemize")
(license license:expat)))
+;; XXX: See: <https://github.com/cookiecutter/whichcraft/issues/26>.
+(define-public python-whichcraft
+ (package
+ (name "python-whichcraft")
+ (version "0.6.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "whichcraft" version))
+ (sha256
+ (base32
+ "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest python-setuptools))
+ (home-page "https://github.com/pydanny/whichcraft")
+ (synopsis "Cross-platform cross-python shutil.which functionality")
+ (description
+ "This package provides a shim of the shutil.which function that's
+designed to work across multiple versions of Python.")
+ (license license:bsd-3)))
+
+(define-public python-whoosh
+ ;; XXX: 2.7.4 was placed in 2016 and no longer copatible with how setuptools
+ ;; parses setup.py, use the latest commit, see:
+ ;; <https://codeberg.org/guix/guix/issues/3318>,
+ ;; <https://github.com/whoosh-community/whoosh/issues/561>.
+ (let ((commit "d9a3fa2a4905e7326c9623c89e6395713c189161")
+ (revision "0"))
+ (package
+ (name "python-whoosh")
+ (version (git-version "2.7.4" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mchaput/whoosh")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1i16229nkggl9qi57kxapbc4f2p2wpr67fswvr97w13839d6dxpp"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest python-setuptools))
+ (propagated-inputs
+ (list python-cached-property))
+ (home-page "https://github.com/mchaput/whoosh")
+ (synopsis "Full text indexing, search, and spell checking library")
+ (description
+ "Whoosh is a fast, pure-Python full text indexing, search, and spell
+checking library.")
+ (license license:bsd-2))))
+
+(define-public python-widgetsnbextension
+ (package
+ (name "python-widgetsnbextension")
+ (version "4.0.14")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "widgetsnbextension" version))
+ (sha256
+ (base32 "1bxm6ys3kmxfhi8dns9q6xrjkxijfa606qpq5lhr7f7dwc29nqm3"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests in PyPI or git
+ (native-inputs
+ (list python-jupyter-packaging
+ python-setuptools))
+ (home-page "https://ipython.org")
+ (synopsis "IPython HTML widgets for Jupyter")
+ (description "This package provides interactive HTML widgets for Jupyter
+notebooks.")
+ (license license:bsd-3)))
+
+(define-public python-wrapt
+ (package
+ (name "python-wrapt")
+ (version "1.17.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "wrapt" version))
+ (sha256
+ (base32
+ "00886b7ry1vdbvpc2wi880y563xf6y4mxwwfm1q12wvw66i7l60n"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools python-wheel))
+ (home-page "https://github.com/GrahamDumpleton/wrapt")
+ (synopsis "Module for decorators, wrappers and monkey patching")
+ (description
+ "The aim of the wrapt module is to provide a transparent object proxy for
+ Python, which can be used as the basis for the construction of function
+ wrappers and decorator functions.")
+ (license license:bsd-2)))
+
+(define-public python-wurlitzer
+ (package
+ (name "python-wurlitzer")
+ (version "3.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "wurlitzer" version))
+ (sha256
+ (base32 "1ncvsc6b0bscvj5dn4iyyw42sf7ssgdqkzxr0bc8f97hp5519fdz"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-flags #~(list "test.py")))
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (home-page "https://github.com/minrk/wurlitzer")
+ (synopsis "Capture C-level output in context managers")
+ (description
+ "This library helps to redirect @code{sys.stdout} to a stream or a file
+while executing some piece of code, including C code running within a Python
+process.")
+ (license license:expat)))
+
+(define-public python-xattr
+ (package
+ (name "python-xattr")
+ (version "1.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "xattr" version))
+ (sha256
+ (base32 "19z0wp1plr5g8a3jknipii3qmqp3znwd63zqrhx19gpixwhqwk56"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-cffi))
+ (home-page "https://github.com/xattr/xattr")
+ (synopsis "Python wrapper for extended file system attributes")
+ (description "This package provides a Python wrapper for using extended
+file system attributes. Extended attributes extend the basic attributes of files
+and directories in the file system. They are stored as name:data pairs
+associated with file system objects (files, directories, symlinks, etc).")
+ (license license:expat)))
+
+(define-public python-xdg
+ (package
+ (name "python-xdg")
+ (version "6.0.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "xdg" version))
+ (sha256
+ (base32
+ "14hwk9j5zjc8rvirw95mrb07zdnpjaxjx2mj3rnq8pnlyaa809r4"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f)) ; No tests in PyPi tarball.
+ (native-inputs
+ (list python-poetry-core))
+ (home-page "https://github.com/srstevenson/xdg-base-dirs")
+ (synopsis "Variables defined by the XDG Base Directory Specification")
+ (description "xdg-base-dirs is a Python module that provides functions to
+return paths to the directories defined by the XDG Base Directory
+Specification, to save you from duplicating the same snippet of logic in every
+Python utility you write that deals with user cache, configuration, or data
+files.")
+ (license license:isc)))
+
+(define-public python-xlib
+ (package
+ (name "python-xlib")
+ (version "0.33")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/python-xlib/python-xlib")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "03d28lx6sz0724ps6lnn4m6s0cfspgwqdf2l773lqf88add8wkmv"))))
+ (build-system pyproject-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'start-xserver
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((xorg-server (assoc-ref inputs "xorg-server")))
+ ;; There must be a running X server and make check doesn't
+ ;; start one. Therefore we must do it.
+ (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
+ (setenv "DISPLAY" ":1")))))))
+ (native-inputs
+ (list python-mock
+ python-pytest
+ python-setuptools
+ xorg-server))
+ (propagated-inputs
+ (list python-six))
+ (home-page "https://github.com/python-xlib/python-xlib")
+ (synopsis "Python X11 client library")
+ (description
+ "The Python X Library is intended to be a fully functional
+X client library for Python programs. It is useful to implement
+low-level X clients. It is written entirely in Python.")
+ (license license:gpl2+)))
+
+(define-public python-xlrd
+ (package
+ (name "python-xlrd")
+ (version "2.0.2")
+ (source
+ (origin
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/python-excel/xlrd")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1zgb03a4l2an2hy17w0nlyfisl53jzf8csdj90f5xkibbnjsg3y3"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (home-page "https://www.python-excel.org/")
+ (synopsis "Library for extracting data from Excel files")
+ (description "This package provides a library to extract data from
+spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
+@samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
+Unicode-aware. It is not intended as an end-user tool.")
+ (license license:bsd-3)))
+
+(define-public python-xlsxwriter
+ (package
+ (name "python-xlsxwriter")
+ (version "3.2.0")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jmcnamara/XlsxWriter")
+ (commit (string-append "RELEASE_" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1g16xb4nsjd807qcm8756ixlxxvdjmbr2v7r6wxkajw1h4m8id0w"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-setuptools
+ python-wheel))
+ (home-page "https://github.com/jmcnamara/XlsxWriter")
+ (synopsis "Python module for creating Excel XLSX files")
+ (description
+ "XlsxWriter is a Python module that can be used to write text, numbers,
+formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.")
+ (license license:bsd-2)))
+
+;;; Note: this package is unmaintained since 2018 (archived on GitHub).
+(define-public python-xlwt
+ (package
+ (name "python-xlwt")
+ (version "1.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "xlwt" version))
+ (sha256
+ (base32 "123c2pdamshkq75wwvck8fq0cjq1843xd3x9qaiz2a4vg9qi56f5"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools python-wheel))
+ (home-page "https://www.python-excel.org/")
+ (synopsis "Library for creating spreadsheet Excel files")
+ (description
+ "@code{xlwt} is a library for writing data and formatting information to
+older Excel files (i.e. .xls). The package itself is pure Python with no
+dependencies on modules or packages outside the standard Python distribution.
+It is not intended as an end-user tool.")
+ (license license:bsd-3)))
+
+(define-public python-xmldiff
+ (package
+ (name "python-xmldiff")
+ (version "3.0b1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "xmldiff" version))
+ (sha256
+ (base32 "0g8dd507l8i5431rjlb6j1sf3hvzmcblijx8s4wchym9n4vbvhm9"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-setuptools))
+ (propagated-inputs (list python-lxml))
+ (home-page "https://github.com/Shoobx/xmldiff")
+ (synopsis "Creates diffs of XML files")
+ (description "This Python tool figures out the differences between two
+similar XML files, in the same way the @command{diff} utility does it.")
+ (license license:expat)))
+
+(define-public python-xmlsec
+ (package
+ (name "python-xmlsec")
+ (version "1.3.16")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "xmlsec" version))
+ (sha256
+ (base32 "178zg6jl3v7j4cdxxzqzr16m3wqfisai98xa0sh4q7bd9ia70v1b"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; See https://github.com/xmlsec/python-xmlsec/issues/210
+ #:test-flags '(list "-n" "1"
+ ;; This causes other tests to segfault.
+ "-k" "not test_reinitialize_module")
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; FIXME: This is very unfortunate. I can't seem to find a way to
+ ;; hardcode the location of this library, so users will also need to
+ ;; set LD_LIBRARY_PATH.
+ (add-before 'check 'pre-check
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "LD_LIBRARY_PATH"
+ (dirname (search-input-file inputs "lib/libxmlsec1-openssl.so.1.3.7"))))))))
+ (inputs (list openssl libltdl libxslt libxml2))
+ (propagated-inputs (list python-lxml xmlsec-openssl))
+ (native-inputs (list pkg-config
+ python-lxml
+ python-pkgconfig
+ python-pytest
+ python-pytest-xdist
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
+ (home-page "https://github.com/xmlsec/python-xmlsec")
+ (synopsis "Python bindings for the XML Security Library")
+ (description "This package provides Python bindings for the XML Security
+Library.")
+ (license license:expat)))
+
(define-public python-xmp-toolkit
(package
(name "python-xmp-toolkit")
@@ -40245,31 +40197,493 @@ based on Adobe XMP Toolkit, ensuring that future updates to the XMP standard
are easily incorporated into the library with a minimum amount of work.")
(license license:bsd-3)))
-(define-public pythoncapi-compat
- ;; No release nor tags: use the latest commit.
- (let ((commit "b541b98df1e3e5aabb5def27422a75c876f5a88a")
- (revision "0"))
- (package
- (name "pythoncapi-compat")
- (version "0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/python/pythoncapi-compat")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "09935gybfj2wqbf6jmn61m21qnx3za8xjv375n3daq8l3cs6dmmx"))))
- (build-system copy-build-system)
- (arguments (list #:install-plan
- #~'(("pythoncapi_compat.h" "include/"))))
- (home-page "https://github.com/python/pythoncapi-compat")
- (synopsis "Python C API compatibility")
- (description "The pythoncapi-compat project can be used to write a C or
-C++ extension supporting a wide range of Python versions with a single code
-base, via the @file{pythoncapi_compat.h} header file.")
- (license license:bsd-0))))
+(define-public python-yamllint
+ (package
+ (name "python-yamllint")
+ (version "1.37.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "yamllint" version))
+ (sha256
+ (base32 "0p9401y9f1pgxi9lggmw6wv135kfnd361n3hjh2civ4vap2w1xw1"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'unittest))
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-pathspec python-pyyaml))
+ (home-page "https://github.com/adrienverge/yamllint")
+ (synopsis "Linter for YAML files")
+ (description
+ "Yamllint is a linter for YAML files. yamllint does not only check for
+syntax validity, but for weirdnesses like key repetition and cosmetic problems
+such as lines length, trailing spaces, indentation, etc.")
+ (license license:gpl3+)))
+
+(define-public python-yamlloader
+ (package
+ (name "python-yamlloader")
+ (version "1.5.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "yamlloader" version))
+ (sha256
+ (base32 "06y4xaajsjjynrv2m6ar3hwiif2mk3z3lgwxn2l1qsv238rc22n1"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "-v")))
+ (native-inputs
+ (list python-hatch-vcs
+ python-hatchling
+ python-hypothesis))
+ (propagated-inputs
+ (list python-pyyaml))
+ (home-page "https://github.com/Phynix/yamlloader")
+ (synopsis "Ordered YAML loader and dumper for PyYAML")
+ (description
+ "This package provides loaders and dumpers for PyYAML. Currently, an
+OrderedDict loader/dumper is implemented, allowing to keep items order when
+loading resp. dumping a file from/to an OrderedDict (Python 3.8+: Also regular
+dicts are supported and are the default items to be loaded to. As of Python
+3.7 preservation of insertion order is a language feature of regular dicts.)
+It was originally mirrored from
+@url{https://github.com/fmenabe/python-yamlordereddictloader,
+yamlordereddict}.")
+ (license license:expat)))
+
+;; XXX: Deprecated, the <https://github.com/Phynix/yamlloader> project provide
+;; an improved version of this library with unit tests, performance
+;; improvements (by providing access to the C implementation of PyYAML) and is
+;; more actively developed.
+(define-public python-yamlordereddictloader
+ (package
+ (name "python-yamlordereddictloader")
+ (version "0.4.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/fmenabe/python-yamlordereddictloader")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1rwvasdmfq7lbd2bm7vmx759fv535cp5ndyhf845fqd86mr7a94c"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-pyyaml))
+ (home-page "https://github.com/fmenabe/python-yamlordereddictloader")
+ (synopsis "Loader and a dumper for PyYAML")
+ (description
+ "yamlordereddictloader is a Python package that provides a loader and a
+dumper for PyYAML allowing to keep items order when loading a file (by putting
+them in OrderedDict objects) and to manage OrderedDict objects when dumping to
+a file.")
+ (license license:expat)))
+
+(define-public python-yapf
+ (package
+ (name "python-yapf")
+ (version "0.43.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "yapf" version))
+ (sha256
+ (base32
+ "13i1sn0jfm7snfdzbyrawxl457bdmgsxkmg0n8h99zzdpwjamlq0"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs
+ (list python-platformdirs python-tomli))
+ (native-inputs
+ (list python-pytest python-setuptools python-wheel))
+ (home-page "https://github.com/google/yapf")
+ (synopsis "Formatter for Python code")
+ (description "YAPF is a formatter for Python code. It's based off of
+@dfn{clang-format}, developed by Daniel Jasper. In essence, the algorithm
+takes the code and reformats it to the best formatting that conforms to the
+style guide, even if the original code didn't violate the style guide.")
+ (license license:asl2.0)))
+
+(define-public python-yapsy
+ (package
+ (name "python-yapsy")
+ (version "1.12.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Yapsy" version))
+ (sha256
+ (base32 "12rznbnswfw0w7qfbvmmffr9r317gl1rqg36nijwzsklkjgks4fq"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'unittest))
+ (native-inputs
+ (list python-setuptools))
+ (home-page "https://yapsy.sourceforge.net")
+ (synopsis "Simple plugin system for Python applications")
+ (description "Yapsy, or Yet Another Plugin SYstem, is a small library
+implementing the core mechanisms needed to build a plugin system into a wider
+application.
+
+The main purpose is to depend only on Python's standard libraries and to
+implement only the basic functionalities needed to detect, load and keep track
+of several plugins.")
+ (license license:bsd-3)))
+
+(define-public python-yaspin
+ (package
+ (name "python-yaspin")
+ (version "3.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (pypi-uri "yaspin" version))
+ (sha256
+ (base32 "1ryc5099sjsa49fhcm6dp5l4rp9v9yxrh17ml78y89idfbbfhvs1"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-poetry-core
+ python-pytest
+ python-pytest-mock))
+ (propagated-inputs
+ (list python-termcolor))
+ (home-page "https://github.com/pavdmyt/yaspin")
+ (synopsis "Yet Another Terminal Spinner")
+ (description "Yaspin provides a terminal spinner to indicate the progress
+during long operations.")
+ (license license:expat)))
+
+(define-public python-yattag
+ (package
+ (name "python-yattag")
+ (version "1.16.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "yattag" version))
+ (sha256
+ (base32 "1x2is0lkpywvqaayc21n1cvfbq0havzx46i83033wpgawxag5a5s"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-wheel))
+ (home-page "https://www.yattag.org/")
+ (synopsis "HTML or XML generator for Python")
+ (description
+ "Yattag is a Python library for generating HTML or XML in a pythonic
+way.")
+ (license license:lgpl2.1)))
+
+(define-public python-yq
+ (package
+ (name "python-yq")
+ (version "3.4.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "yq" version))
+ (sha256
+ (base32 "0fvf4n7wpbc0gdxhw8c008rcv092vw96f84j5xdp1krhdwd6ln5s"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "test/test.py" "-v")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda _
+ (substitute* "yq/__init__.py"
+ (("Popen\\(\\[\"jq")
+ (string-append
+ "Popen([\""
+ #$(this-package-input "jq") "/bin/jq"))))))))
+ (native-inputs
+ (list python-hatchling
+ python-hatch-vcs))
+ (inputs
+ (list jq))
+ (propagated-inputs
+ (list python-argcomplete
+ python-pyyaml
+ python-tomlkit
+ python-xmltodict))
+ (home-page "https://github.com/kislyuk/yq")
+ (synopsis "Command-line YAML/XML processor")
+ (description
+ "This package provides @command{yq} and @command{xq} for processing YAML
+and XML respectively. The processing is done through @command{jq},
+@command{jq} filters can be used to process the data as it passes through.")
+ (license license:asl2.0)))
+
+(define-public python-yte
+ (package
+ (name "python-yte")
+ (version "1.8.1") ;TODO higher versions depend on uv_build
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/koesterlab/yte")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32 "05qrmjf9x6wvy8976kqiy3axk3im8jbc8hpc1yrbidm099vik0ni"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags #~(list "tests.py")
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'set-HOME
+ (lambda _ (setenv "HOME" "/tmp"))))))
+ (propagated-inputs (list python-dpath python-plac python-pyyaml))
+ (native-inputs (list python-numpy python-poetry-core python-pytest))
+ (home-page "https://github.com/koesterlab/yte")
+ (synopsis "YAML template engine with Python expressions")
+ (description
+ "This package provides a YAML template engine with Python expressions.")
+ (license license:expat)))
+
+(define-public python-zarr
+ (package
+ (name "python-zarr")
+ (version "2.18.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "zarr" version))
+ (sha256
+ (base32
+ "1xbjjpjskykbdskck5p1f0grh6wq36437ll0n5kazi6s2ipzdf5j"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "--numprocesses" (number->string (parallel-job-count))
+ ;; This tests are flaky. The pass several times on my laptop
+ ;; but occasionally fail. They fail pretty reliably on the
+ ;; build farm.
+ "-k" (string-append "not test_lazy_loader and not open_array"
+ ;; File not found.
+ " and not test_filesystem_path"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'set-version
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("^version_file.*") "")
+ (("dynamic = \\[\"version\"\\]")
+ (string-append "version = \"" #$version "\"")))))
+ (add-after 'unpack 'disable-service-tests
+ (lambda _
+ (setenv "ZARR_TEST_ABS" "0")
+ (setenv "ZARR_TEST_MONGO" "0")
+ (setenv "ZARR_TEST_REDIS" "0"))))))
+ (propagated-inputs
+ (list python-asciitree
+ python-fasteners
+ python-ipywidgets
+ python-notebook
+ python-numcodecs
+ python-numpy
+ python-numpydoc
+ python-pydata-sphinx-theme))
+ (native-inputs
+ (list python-pytest
+ python-pytest-xdist
+ python-setuptools
+ python-wheel))
+ (home-page "https://github.com/zarr-developers/zarr-python")
+ (synopsis "Chunked, compressed, N-dimensional arrays for Python")
+ (description
+ "This package provides an implementation of chunked, compressed,
+N-dimensional arrays for Python.")
+ (license license:expat)))
+
+(define-public python-zeroc-ice
+ (package
+ (name "python-zeroc-ice")
+ (version "3.7.10.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "zeroc-ice" version))
+ (sha256
+ (base32
+ "0r46q4hd7xbpvnidbra1prkg4xhmajxjjmclfqgp3pv0lgyslqxh"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; XXX: No tests in PyPI, tere are tests in Git, but there is no 3.7.10.1
+ ;; tag.
+ ;;
+ ;; See:
+ ;; - URL: <https://raw.githubusercontent.com/zeroc-ice>
+ ;; - File: <ice/refs/heads/main/python/allTests.py>
+ (list #:tests? #f))
+ (inputs (list openssl))
+ (native-inputs (list python-setuptools))
+ (home-page "https://zeroc.com")
+ (synopsis "RPC framework")
+ (description
+ "Ice is a comprehensive RPC framework. Ice helps you network your
+software by taking care of all interactions with low-level network programming
+interfaces.")
+ (license license:gpl2)))
+
+;; Package variant to build python-omero-py@5.20.0
+(define-public python-zeroc-ice-3.6
+ (package
+ (inherit python-zeroc-ice)
+ (version "3.6.5")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "zeroc-ice" version))
+ (sha256
+ (base32
+ "0mikjfvq26kh8asnn9v55z41pap4c5ypymqnwwi4xkavc3mzyda2"))
+ (patches
+ (search-patches
+ "python-zeroc-ice-3.6.5-python-3.11-support.patch"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments python-zeroc-ice)
+ ((#:phases phases #~%standard-phases)
+ #~(modify-phases #$phases
+ (add-before 'build 'relax-gcc-14-strictness
+ (lambda _
+ (setenv "CFLAGS"
+ "-g -O2 -Wno-error=implicit-function-declaration")))))))))
+
+(define-public python-zeroconf
+ (package
+ (name "python-zeroconf")
+ (version "0.38.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jstasiak/python-zeroconf")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1p1a0ywlg5sq0ilcphmz9h4kayscz0q1lyfk57j7mwxyx4gl9cpi"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list
+ "-k" (string-append
+ ;; XXX: Despite asyncio, this test fails.
+ "not test_run_coro_with_timeout and not "
+ ;; XXX: Networking isn't available.
+ (string-join
+ (list "test_integration_with_listener_ipv6"
+ "test_launch_and_close_v4_v6"
+ "test_launch_and_close_context_manager"
+ "test_launch_and_close"
+ "test_close_multiple_times")
+ " and not ")))))
+ (native-inputs
+ (list python-pytest python-pytest-asyncio python-setuptools))
+ (propagated-inputs
+ (list python-ifaddr))
+ (home-page "https://github.com/jstasiak/python-zeroconf")
+ (synopsis "Pure Python mDNS service discovery")
+ (description "Pure Python multicast DNS (mDNS) service discovery library
+(Bonjour/Avahi compatible).")
+ (license license:lgpl2.1+)))
+
+(define-public python-zict
+ (package
+ (name "python-zict")
+ (version "3.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "zict" version))
+ (sha256
+ (base32
+ "19gvr41xi5fazkzkg33kwrk70sv50hygng0cg70ayym9nriy48g3"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; This uses "importorskip", but it won't skip.
+ '(list "--ignore=tests/test_lmdb.py")))
+ (propagated-inputs
+ (list python-heapdict))
+ (native-inputs
+ (list python-pytest
+ python-pytest-asyncio
+ python-pytest-repeat
+ python-pytest-timeout
+ python-setuptools
+ python-wheel))
+ (home-page "https://zict.readthedocs.io/en/latest/")
+ (synopsis "Composable mutable mapping tools")
+ (description "This package provides abstract @code{MutableMapping} classes
+that consume and build on other @code{MutableMappings}. Several of these can
+be composed with one another to form intuitive interfaces over complex storage
+systems policies.")
+ (license license:bsd-3)))
+
+(define-public python-zipfly
+ (package
+ (name "python-zipfly")
+ (version "6.0.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "zipfly" version))
+ (sha256
+ (base32
+ "1h7g922a8lsqd69j8blgcgg0lcd8kz51b2p4glfqmgx4vi1nkick"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'unittest))
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/sandes/zipfly")
+ (synopsis "Zip archive generator")
+ (description "ZipFly is a zip archive generator. It was created to
+generate very large zip archives for immediate sending out to clients, or
+for writing large zip archives without memory inflation.")
+ (license license:expat)))
+
+(define-public python-zipstream-new
+ (package
+ (name "python-zipstream-new")
+ (version "1.1.8")
+ (source
+ (origin
+ (method git-fetch) ; no tests in PyPI release
+ (uri (git-reference
+ (url "https://github.com/arjan-s/python-zipstream")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "14vhgg8mcjqi8cpzrw8qzbij2fr2a63l2a8fhil21k2r8vzv92cv"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'unittest))
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/arjan-s/python-zipstream")
+ (synopsis "Zipfile generator that takes input files as well as streams")
+ (description "@code{zipstream.py} is a zip archive generator based on
+@code{zipfile.py}. It was created to generate a zip file generator for
+streaming. This is beneficial for when you want to provide a downloadable
+archive of a large collection of regular files, which would be infeasible
+to generate the archive prior to downloading or of a very large file that
+you do not want to store entirely on disk or on memory.")
+ ;; No copyright headers in the source. The LICENSE file indicates GPL3.
+ (license license:gpl3)))
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances