diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-02-17 15:13:16 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-02-17 15:13:30 +0000 |
| commit | 2230982885006bd9d917fd79fc2e47537f7efc1c (patch) | |
| tree | c9aa91a799013163e98b02f3869e5269c45d579e /gnu | |
| parent | 959a88e6f426b274694d4bce83375707434656d2 (diff) | |
gnu: python-sparse: Simplify.
* gnu/packages/python-xyz.scm (python-sparse) [arguments] <phases>:
Remove 'fix-version as setuptools-scm 8+ provides this now.
[native-inputs]: Remove python-setuptools-scm; add
python-setuptools-scm-next.
Change-Id: Ic75b481d78a1f4d5bd5ad16da6fbd0e54176f43e
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1445c6f3025..75cbc8d6f93 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -9706,24 +9706,6 @@ objects.") | |||
| 9706 | (base32 | 9706 | (base32 |
| 9707 | "111bqz2xqr17rrc7svd20z94xf3zkfs9anjvzpr683zz4iywbcfl")))) | 9707 | "111bqz2xqr17rrc7svd20z94xf3zkfs9anjvzpr683zz4iywbcfl")))) |
| 9708 | (build-system pyproject-build-system) | 9708 | (build-system pyproject-build-system) |
| 9709 | (arguments | ||
| 9710 | (list | ||
| 9711 | #:phases | ||
| 9712 | #~(modify-phases %standard-phases | ||
| 9713 | (add-after 'unpack 'fix-version | ||
| 9714 | (lambda _ | ||
| 9715 | (with-output-to-file "sparse/_version.py" | ||
| 9716 | (let* ((version #$(package-version this-package) ) | ||
| 9717 | (version-tuple (string-join (string-split version #\.) ", "))) | ||
| 9718 | (lambda () | ||
| 9719 | (format #t | ||
| 9720 | "__version__ = version = '~a' | ||
| 9721 | __version_tuple__ = version_tuple = (~a)~%" version version-tuple)))) | ||
| 9722 | (substitute* "pyproject.toml" | ||
| 9723 | (("\\[tool\\.setuptools_scm\\]") "") | ||
| 9724 | (("^version_file.*") "") | ||
| 9725 | (("^dynamic = \\[\"version\"\\]") | ||
| 9726 | (string-append "version = \"" #$version "\"\n")))))))) | ||
| 9727 | (propagated-inputs | 9709 | (propagated-inputs |
| 9728 | (list python-numba python-numpy python-scipy)) | 9710 | (list python-numba python-numpy python-scipy)) |
| 9729 | (native-inputs | 9711 | (native-inputs |
| @@ -9732,7 +9714,7 @@ __version_tuple__ = version_tuple = (~a)~%" version version-tuple)))) | |||
| 9732 | python-pytest | 9714 | python-pytest |
| 9733 | python-pytest-cov | 9715 | python-pytest-cov |
| 9734 | python-setuptools | 9716 | python-setuptools |
| 9735 | python-setuptools-scm | 9717 | python-setuptools-scm-next |
| 9736 | python-wheel)) | 9718 | python-wheel)) |
| 9737 | (home-page "https://github.com/pydata/sparse/") | 9719 | (home-page "https://github.com/pydata/sparse/") |
| 9738 | (synopsis "Library for multi-dimensional sparse arrays") | 9720 | (synopsis "Library for multi-dimensional sparse arrays") |
