mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-20 01:33:18 -05:00
gnu: python-importlib-metadata: Update to 4.11.3.
* gnu/packages/python-xyz.scm (python-importlib-metadata): Update to 4.11.3. [phases]{build, install, check}: Override phases. [native-inputs]: Remove python-packaging. Add python-pypa-build and python-pytest. (python2-importlib-metadata): Adjust to keep unchanged.
This commit is contained in:
parent
040615d8f8
commit
b25a2c7c40
1 changed files with 50 additions and 18 deletions
|
@ -8418,19 +8418,41 @@ (define-public python2-importlib-resources-bootstrap
|
||||||
(define-public python-importlib-metadata
|
(define-public python-importlib-metadata
|
||||||
(package
|
(package
|
||||||
(name "python-importlib-metadata")
|
(name "python-importlib-metadata")
|
||||||
(version "1.5.0")
|
(version "4.11.3")
|
||||||
(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
|
||||||
"00ikdj4gjhankdljnz7g5ggak4k9lql2926x0x117ir9j2lv7x86"))))
|
"0f951zynlh39yicqnhrs3p1qa5p3g6ajjfcggf12y51ppxz5jk7a"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(propagated-inputs
|
(arguments
|
||||||
(list python-zipp))
|
(list
|
||||||
|
#: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-setuptools-scm python-pyfakefs python-packaging))
|
(list python-pypa-build
|
||||||
|
python-pyfakefs
|
||||||
|
python-pytest
|
||||||
|
python-setuptools-scm))
|
||||||
(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
|
||||||
|
@ -8446,19 +8468,29 @@ (define-public python-importlib-metadata
|
||||||
(define-public python2-importlib-metadata
|
(define-public python2-importlib-metadata
|
||||||
(let ((base (package-with-python2 (strip-python2-variant
|
(let ((base (package-with-python2 (strip-python2-variant
|
||||||
python-importlib-metadata))))
|
python-importlib-metadata))))
|
||||||
(package/inherit
|
(package/inherit base
|
||||||
base
|
(name "python2-importlib-metadata")
|
||||||
(name "python2-importlib-metadata")
|
(version "1.5.0")
|
||||||
(native-inputs
|
(source
|
||||||
`(("python-setuptools-scm" ,python2-setuptools-scm)
|
(origin
|
||||||
("python-pyfakefs" ,python2-pyfakefs-bootstrap)
|
(method url-fetch)
|
||||||
("python-packaging" ,python2-packaging-bootstrap)))
|
(uri (pypi-uri "importlib_metadata" version))
|
||||||
(propagated-inputs
|
(sha256
|
||||||
`(("python-configparser" ,python2-configparser)
|
(base32
|
||||||
("python-contextlib2" ,python2-contextlib2)
|
"00ikdj4gjhankdljnz7g5ggak4k9lql2926x0x117ir9j2lv7x86"))))
|
||||||
("python-importlib-resources" ,python2-importlib-resources)
|
(arguments (substitute-keyword-arguments (package-arguments base)
|
||||||
("python-pathlib2" ,python2-pathlib2)
|
((#:phases phases) ;reset standard phases
|
||||||
,@(package-propagated-inputs base))))))
|
#~%standard-phases)))
|
||||||
|
(native-inputs
|
||||||
|
`(("python-setuptools-scm" ,python2-setuptools-scm)
|
||||||
|
("python-pyfakefs" ,python2-pyfakefs-bootstrap)
|
||||||
|
("python-packaging" ,python2-packaging-bootstrap)))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("python-configparser" ,python2-configparser)
|
||||||
|
("python-contextlib2" ,python2-contextlib2)
|
||||||
|
("python-importlib-resources" ,python2-importlib-resources)
|
||||||
|
("python-pathlib2" ,python2-pathlib2)
|
||||||
|
,@(package-propagated-inputs base))))))
|
||||||
|
|
||||||
;; This package is used by python2-pytest, and thus must not depend on it.
|
;; This package is used by python2-pytest, and thus must not depend on it.
|
||||||
(define-public python2-importlib-metadata-bootstrap
|
(define-public python2-importlib-metadata-bootstrap
|
||||||
|
|
Loading…
Reference in a new issue