aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2020-01-15 20:11:49 +0100
committerMarius Bakke <mbakke@fastmail.com>2020-01-15 20:36:33 +0100
commitfd5c264ad8c97ce5e44fdcabd25132d019eee953 (patch)
tree01d3707941f0622a7e8964f6c1100d83507d3a91 /gnu/packages
parent8f137daf8af37a8f91f74370948fac3f01728a80 (diff)
downloadguix-fd5c264ad8c97ce5e44fdcabd25132d019eee953.tar
guix-fd5c264ad8c97ce5e44fdcabd25132d019eee953.tar.gz
gnu: Add python2-importlib-resources.
* gnu/packages/python-xyz.scm (python2-importlib-resources): New public variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-xyz.scm27
1 files changed, 26 insertions, 1 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9ad4609fb3..430ed4a13e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26,7 +26,7 @@
;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
;;; Copyright © 2016 David Craven <david@craven.ch>
-;;; Copyright © 2016, 2017, 2018, 2019 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2016, 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2016, 2017 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
;;; Copyright © 2016, 2017, 2019 Alex Vong <alexvong1995@gmail.com>
@@ -4958,6 +4958,31 @@ all the newest features of the standard @code{pathlib} can be used also on
older Python versions.")
(license license:expat)))
+(define-public python2-importlib-resources
+ (package
+ (name "python2-importlib-resources")
+ (version "1.0.2")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "importlib_resources" version))
+ (sha256
+ (base32
+ "0y3hg12iby1qyaspnbisz4s4vxax7syikk3skznwqizqyv89y9yk"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:python ,python-2))
+ (native-inputs
+ `(("python-wheel" ,python2-wheel)))
+ (propagated-inputs
+ `(("python-pathlib2" ,python2-pathlib2)
+ ("python-typing" ,python2-typing)))
+ (home-page "https://gitlab.com/python-devs/importlib_resources")
+ (synopsis "Backport of @code{importlib.resources} from Python 3.7")
+ (description
+ "This package provides an implementation of @code{importlib.resources}
+for older versions of Python.")
+ (license license:asl2.0)))
+
(define-public python-importlib-metadata
(package
(name "python-importlib-metadata")