mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-importlib-metadata: Update to 8.7.0.
* gnu/packages/python-xyz.scm (python-importlib-metadata): Update to 8.7.0. [build-system]: Use pyproject. [arguments]: Drop them. [native-inputs]: Remove python-pypa-build and python-pytest; add python-jaraco-test, python-packaging-bootstrap, python-pytest-bootstrap, and python-setuptools. Change-Id: I9ba93055061c44999a368d302d439f8123755afa
This commit is contained in:
parent
84a7a9857e
commit
7e3bcdd2ea
1 changed files with 10 additions and 25 deletions
|
@ -13805,41 +13805,26 @@ storage.")
|
||||||
(define-public python-importlib-metadata
|
(define-public python-importlib-metadata
|
||||||
(package
|
(package
|
||||||
(name "python-importlib-metadata")
|
(name "python-importlib-metadata")
|
||||||
(version "5.2.0")
|
(version "8.7.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "importlib_metadata" version))
|
(uri (pypi-uri "importlib_metadata" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1kf7qclcz820xl5wwjpzcwpfy6shj7ymwh4xzxvpl2xs5gb4hka0"))))
|
"004h71gl22rg57wxd0hgy72pdksn62ng4waldjhhm29v4anq2fyi"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list #:test-flags #~(list "tests")))
|
||||||
#: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))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pypa-build
|
(list python-jaraco-test
|
||||||
|
python-packaging-bootstrap
|
||||||
python-pyfakefs
|
python-pyfakefs
|
||||||
python-pytest
|
python-pytest-bootstrap
|
||||||
|
python-setuptools
|
||||||
python-setuptools-scm))
|
python-setuptools-scm))
|
||||||
|
(propagated-inputs
|
||||||
|
(list python-zipp))
|
||||||
(home-page "https://importlib-metadata.readthedocs.io/")
|
(home-page "https://importlib-metadata.readthedocs.io/")
|
||||||
(synopsis "Read metadata from Python packages")
|
(synopsis "Read metadata from Python packages")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue