[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
47/204: gnu: python-importlib-metadata: Update to 4.11.3.
From: |
guix-commits |
Subject: |
47/204: gnu: python-importlib-metadata: Update to 4.11.3. |
Date: |
Wed, 20 Apr 2022 02:03:17 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit c479ac274675ee7fb06f4d6fdf4dfdd8d37c7dd6
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Apr 5 15:38:27 2022 -0400
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.
---
gnu/packages/python-xyz.scm | 68 +++++++++++++++++++++++++++++++++------------
1 file changed, 50 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0c0d46eb5a..844724afb5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8376,19 +8376,41 @@ for older versions of Python.")
(define-public python-importlib-metadata
(package
(name "python-importlib-metadata")
- (version "1.5.0")
+ (version "4.11.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "importlib_metadata" version))
(sha256
(base32
- "00ikdj4gjhankdljnz7g5ggak4k9lql2926x0x117ir9j2lv7x86"))))
+ "0f951zynlh39yicqnhrs3p1qa5p3g6ajjfcggf12y51ppxz5jk7a"))))
(build-system python-build-system)
- (propagated-inputs
- (list python-zipp))
+ (arguments
+ (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
- (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/")
(synopsis "Read metadata from Python packages")
(description
@@ -8404,19 +8426,29 @@ need to use the older and less efficient
@code{pkg_resources} package.")
(define-public python2-importlib-metadata
(let ((base (package-with-python2 (strip-python2-variant
python-importlib-metadata))))
- (package/inherit
- base
- (name "python2-importlib-metadata")
- (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))))))
+ (package/inherit base
+ (name "python2-importlib-metadata")
+ (version "1.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "importlib_metadata" version))
+ (sha256
+ (base32
+ "00ikdj4gjhankdljnz7g5ggak4k9lql2926x0x117ir9j2lv7x86"))))
+ (arguments (substitute-keyword-arguments (package-arguments base)
+ ((#:phases phases) ;reset standard phases
+ #~%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.
(define-public python2-importlib-metadata-bootstrap
- 69/204: gnu: python-pathpy: Deprecate by python-path., (continued)
- 69/204: gnu: python-pathpy: Deprecate by python-path., guix-commits, 2022/04/20
- 78/204: gnu: Add python-afdko., guix-commits, 2022/04/20
- 81/204: gnu: Add python-skia-pathops., guix-commits, 2022/04/20
- 84/204: gnu: Add python-ufo2ft., guix-commits, 2022/04/20
- 99/204: gnu: Add python-pytest-forked-next., guix-commits, 2022/04/20
- 107/204: gnu: python-ipyparallel: Update to 8.2.1., guix-commits, 2022/04/20
- 51/204: gnu: python-pytest-checkdocs: Update to 2.7.1., guix-commits, 2022/04/20
- 58/204: gnu: Add python-tempora., guix-commits, 2022/04/20
- 62/204: gnu: Add python-pytest-randomly., guix-commits, 2022/04/20
- 63/204: gnu: Add psautohint-font-data., guix-commits, 2022/04/20
- 47/204: gnu: python-importlib-metadata: Update to 4.11.3.,
guix-commits <=
- 64/204: gnu: Add psautohint., guix-commits, 2022/04/20
- 67/204: gnu: Add python-ubelt., guix-commits, 2022/04/20
- 71/204: gnu: python-pytest-cov: Update to 3.0.0., guix-commits, 2022/04/20
- 73/204: gnu: python-jupyter-packaging: Update to 0.12.0, run test suite., guix-commits, 2022/04/20
- 74/204: gnu: python-scipy: Move input fields below arguments field., guix-commits, 2022/04/20
- 75/204: gnu: python-scipy: Update to 1.8.0 and enable parallel build., guix-commits, 2022/04/20
- 77/204: gnu: Add python-fonttools-next., guix-commits, 2022/04/20
- 80/204: gnu: Add skia., guix-commits, 2022/04/20
- 85/204: gnu: Add python-sfdlib., guix-commits, 2022/04/20
- 88/204: gnu: Add texlive-bidi., guix-commits, 2022/04/20