aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2020-01-15 20:14:02 +0100
committerMarius Bakke <mbakke@fastmail.com>2020-01-15 20:36:33 +0100
commit5efa04dd935ecf6f7803501b1b8952810f4330ad (patch)
tree1e2401e6843757f1acf37b2a79a0050949667322
parentf15bdfebc6bb516d235bdf51ecdd2b35f9709f00 (diff)
downloadpatches-5efa04dd935ecf6f7803501b1b8952810f4330ad.tar
patches-5efa04dd935ecf6f7803501b1b8952810f4330ad.tar.gz
gnu: Add python2-importlib-metadata.
* gnu/packages/python-xyz.scm (python2-importlib-metadata): New public variable.
-rw-r--r--gnu/packages/python-xyz.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 430ed4a13e..6d8e9caefc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5010,6 +5010,19 @@ its top-level name. This functionality intends to replace most uses of
need to use the older and less efficient @code{pkg_resources} package.")
(license license:asl2.0)))
+(define-public python2-importlib-metadata
+ (let ((base (package-with-python2 (strip-python2-variant
+ python-importlib-metadata))))
+ (package/inherit
+ base
+ (name "python2-importlib-metadata")
+ (propagated-inputs
+ `(("python-configparser" ,python2-configparser)
+ ("python-contextlib2" ,python2-contextlib2)
+ ("python-importlib-resources" ,python2-importlib-resources)
+ ("python-pathlib2" ,python2-pathlib2)
+ ,@(package-propagated-inputs base))))))
+
(define-public python-jaraco-packaging
(package
(name "python-jaraco-packaging")