diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-07-25 10:36:17 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-07-25 11:32:15 +0100 |
commit | ddf43f798b11ac314c28019a3a7b542673120ade (patch) | |
tree | 346fedd4ec35d627ea099c3450dcd75889ad2015 /gnu/packages/python-xyz.scm | |
parent | 62d7f3b8c18af52afb8ddd904d369dc7d384f016 (diff) |
gnu: python-cons: Update to 0.4.7.
* gnu/packages/python-xyz.scm (python-cons): Update to 0.4.7.
[source]: Switch to git-fetch providing tests.
[build-system]: Use pyproject.
[arguments] <phases>: Add 'set-version.
[native-inputs]: Remove python-toml; add python-setuptools-next,
python-setuptools-scm, and python-wheel.
Change-Id: Ibd6ca258a61d2408103a81825628d0e5d19e939f
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 2637276cf6..4d1b7c1f96 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -36593,17 +36593,29 @@ worry whether all dependencies that use LooseVersion have migrated.") (define-public python-cons (package (name "python-cons") - (version "0.4.2") + (version "0.4.7") (source (origin - (method url-fetch) - (uri (pypi-uri "cons" version)) + (method git-fetch) ;no tests in PyPI archive + (uri (git-reference + (url "https://github.com/pythological/python-cons") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0w9giq196wps7mbm47c4shdzs5yvwvqajqzkim2p92i51sm5qgvm")))) - (build-system python-build-system) + (base32 "07a1gkvc5p3qi55vczhicz3k5bs1c6jdkw6vrrnxrygg357fabh5")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'set-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) (native-inputs - (list python-pytest python-toml)) + (list python-pytest + python-setuptools-next + python-setuptools-scm + python-wheel)) (propagated-inputs (list python-logical-unification)) (home-page "https://github.com/pythological/python-cons") |