mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-sparse: Update to 0.15.4.
* gnu/packages/python-xyz.scm (python-sparse): Update to 0.15.4. [arguments]: Add phase 'fix-version. [native-inputs]: Remove python-importlib-metadata and python-pytest-black; add python-pre-commit, python-setuptools-scm, and python-wheel. Change-Id: I49d862186d0645e5a94ee8c6b33bb0578e2a4089
This commit is contained in:
parent
6a2fb5fa51
commit
26b288fabc
1 changed files with 24 additions and 5 deletions
|
@ -9389,24 +9389,43 @@ objects.")
|
||||||
(define-public python-sparse
|
(define-public python-sparse
|
||||||
(package
|
(package
|
||||||
(name "python-sparse")
|
(name "python-sparse")
|
||||||
(version "0.14.0")
|
(version "0.15.4")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "sparse" version))
|
(uri (pypi-uri "sparse" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1600xad37mff46xg80cy6bi3l2n6jm69j7sl19rzdmkcgyijfn2z"))))
|
"111bqz2xqr17rrc7svd20z94xf3zkfs9anjvzpr683zz4iywbcfl"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-version
|
||||||
|
(lambda _
|
||||||
|
(with-output-to-file "sparse/_version.py"
|
||||||
|
(let* ((version #$(package-version this-package) )
|
||||||
|
(version-tuple (string-join (string-split version #\.) ", ")))
|
||||||
|
(lambda ()
|
||||||
|
(format #t
|
||||||
|
"__version__ = version = '~a'
|
||||||
|
__version_tuple__ = version_tuple = (~a)~%" version version-tuple))))
|
||||||
|
(substitute* "pyproject.toml"
|
||||||
|
(("\\[tool\\.setuptools_scm\\]") "")
|
||||||
|
(("^version_file.*") "")
|
||||||
|
(("^dynamic = \\[\"version\"\\]")
|
||||||
|
(string-append "version = \"" #$version "\"\n"))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-numba python-numpy python-scipy))
|
(list python-numba python-numpy python-scipy))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-dask
|
(list python-dask
|
||||||
python-importlib-metadata
|
python-pre-commit
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-black
|
|
||||||
python-pytest-cov
|
python-pytest-cov
|
||||||
python-setuptools))
|
python-setuptools
|
||||||
|
python-setuptools-scm
|
||||||
|
python-wheel))
|
||||||
(home-page "https://github.com/pydata/sparse/")
|
(home-page "https://github.com/pydata/sparse/")
|
||||||
(synopsis "Library for multi-dimensional sparse arrays")
|
(synopsis "Library for multi-dimensional sparse arrays")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue