[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
109/361: gnu: python-cattrs: Update to 23.2.3.
From: |
guix-commits |
Subject: |
109/361: gnu: python-cattrs: Update to 23.2.3. |
Date: |
Fri, 22 Nov 2024 06:00:22 -0500 (EST) |
andreas pushed a commit to branch python-team
in repository guix.
commit c9318f16279f8d7950d8bf713d1f8a31c3e3777a
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed May 8 08:36:50 2024 +0200
gnu: python-cattrs: Update to 23.2.3.
* gnu/packages/python-xyz.scm (python-cattrs): Update to 23.2.3.
[arguments]: Remove 'adjust-for-older-attrs and custom 'check phases; add
'patch-pyproject phase.
[native-inputs]: Add python-hatchling, python-hatch-vcs, and
python-pytest-benchmark.
[propagated-inputs]: Add python-cbor2, python-orjson, python-pyyaml,
python-tomlkit, and python-ujson.
Change-Id: I4bf66d9b767be3c62a816e68e6c3cecd3152cb32
---
gnu/packages/python-xyz.scm | 41 +++++++++++++++++++----------------------
1 file changed, 19 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cc6e086187..eff0522aad 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22045,7 +22045,7 @@ strings require only one extra byte in addition to the
strings themselves.")
(define-public python-cattrs
(package
(name "python-cattrs")
- (version "22.1.0")
+ (version "23.2.3")
(source (origin
(method git-fetch) ;for tests
(uri (git-reference
@@ -22054,43 +22054,40 @@ strings require only one extra byte in addition to
the strings themselves.")
(file-name (git-file-name name version))
(sha256
(base32
- "1n0h25gj6zd02kqyl040xpdvg4hpy1j92716sz0rg019xjqqijqb"))))
+ "0lrrz4n6ygfyrzn40mxm82kkvgqclfi760zydy4lin3bcv73jqyd"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'adjust-for-older-attrs
- ;; Our older attrs package is using the 'attr' rather than 'attrs'
- ;; namespace.
- ;; TODO: Remove after python-attrs is updated to >= 21.4.0.
+ (add-after 'unpack 'patch-pyproject
(lambda _
- (substitute* (find-files "." "\\.py$")
- (("from attrs\\b")
- "from attr"))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Do not use the 'pytest' binary as it hard-codes an older
- ;; python-hypothesis version near the beginning of its
- ;; GUIX_PYTHONPATH.
- (invoke "python" "-m" "pytest" "-vv" "-c" "/dev/null" "tests"
- "-n" (number->string (parallel-job-count))
- ;; This test requires orjson, which needs the maturin
- ;; build system and new Rust dependencies.
- "--ignore" "tests/test_preconf.py")))))))
+ (substitute* "pyproject.toml"
+ ;; Fix version string
+ (("dynamic = \\[\"version\"\\]")
+ (string-append "version = \"" #$version "\""))
+ ;; Just run pytest with no frills
+ (("addopts = \"-l.*") "")))))))
(native-inputs
- (list python-hypothesis
+ (list python-hatchling
+ python-hatch-vcs
+ python-hypothesis
python-immutables
python-msgpack
python-poetry-core
python-pymongo ;for the bson module
python-pytest
+ python-pytest-benchmark
python-pytest-xdist))
(propagated-inputs
(list python-attrs
+ python-cbor2
python-exceptiongroup
- python-typing-extensions))
+ python-orjson
+ python-pyyaml
+ python-tomlkit
+ python-typing-extensions
+ python-ujson))
(home-page "https://github.com/python-attrs/cattrs")
(synopsis "Python library for structuring and unstructuring data")
(description "@code{cattrs} is an Python library for structuring and
- 22/361: gnu: python-mdit-py-plugins: Update to 0.4.0., (continued)
- 22/361: gnu: python-mdit-py-plugins: Update to 0.4.0., guix-commits, 2024/11/22
- 17/361: gnu: python-sphinx: Update to 6.2.1., guix-commits, 2024/11/22
- 21/361: gnu: python-markdown-it-py: Update to 3.0.0., guix-commits, 2024/11/22
- 57/361: gnu: snakemake-6: Add Setuptools and Wheel., guix-commits, 2024/11/22
- 70/361: gnu: Add python-fqdn., guix-commits, 2024/11/22
- 71/361: gnu: Add python-overrides., guix-commits, 2024/11/22
- 61/361: gnu: python-nbclient: Add Setuptools and Wheel., guix-commits, 2024/11/22
- 82/361: gnu: python-prometheus-client: Update to 0.20.0., guix-commits, 2024/11/22
- 95/361: gnu: python-notebook: Update to 6.5.7., guix-commits, 2024/11/22
- 99/361: gnu: python-jupyter-server-mathjax: Update to 0.2.6., guix-commits, 2024/11/22
- 109/361: gnu: python-cattrs: Update to 23.2.3.,
guix-commits <=
- 120/361: gnu: python-platformdirs: Update to 4.2.1., guix-commits, 2024/11/22
- 125/361: gnu: python-sphinx-5: Disable failing tests., guix-commits, 2024/11/22
- 151/361: gnu: qtile: Update to 0.23.0., guix-commits, 2024/11/22
- 180/361: gnu: python-pytest-toolbox: Move to pyproject-build-system., guix-commits, 2024/11/22
- 158/361: gnu: python-scikit-rf: Fix tests., guix-commits, 2024/11/22
- 189/361: gnu: Add ghc-xcb-types., guix-commits, 2024/11/22
- 188/361: gnu: python-nbstripout: Move to pyproject-build-system., guix-commits, 2024/11/22
- 192/361: gnu: python-pint: Disable benchmark tests., guix-commits, 2024/11/22
- 200/361: gnu: Add python-sphinx-autodoc-typehints-5., guix-commits, 2024/11/22
- 213/361: gnu: python-warcio: Move to pyproject-build-system., guix-commits, 2024/11/22