mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-17 12:30:38 +02:00
gnu: Remove python2-importlib-resources.
* gnu/packages/python-xyz.scm (python2-importlib-resources): Delete variable. (python2-importlib-resources-bootstrap): Likewise. (python-importlib-resources)[properties]: Delete field.
This commit is contained in:
parent
f14f81e497
commit
ca7117a9dd
1 changed files with 6 additions and 51 deletions
|
@ -7899,66 +7899,21 @@ older Python versions.")
|
||||||
(package
|
(package
|
||||||
(name "python-importlib-resources")
|
(name "python-importlib-resources")
|
||||||
(version "3.0.0")
|
(version "3.0.0")
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method url-fetch)
|
|
||||||
(uri (pypi-uri "importlib_resources" version))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"1hq626mx5jl9zfl0wdrjkxsnh8qd98fqv322n68b9251xjk4bxqr"))))
|
|
||||||
(build-system python-build-system)
|
|
||||||
(native-inputs
|
|
||||||
(list python-setuptools-scm python-toml))
|
|
||||||
(home-page "http://importlib-resources.readthedocs.io/")
|
|
||||||
(synopsis "Read resources from Python packages")
|
|
||||||
(description
|
|
||||||
"@code{importlib_resources} is a backport of Python 3's standard library
|
|
||||||
@code{importlib.resources} module for Python 2.7, and Python 3.")
|
|
||||||
(properties `((python2-variant . ,(delay python2-importlib-resources))))
|
|
||||||
(license license:asl2.0)))
|
|
||||||
|
|
||||||
(define-public python2-importlib-resources
|
|
||||||
(package
|
|
||||||
(name "python2-importlib-resources")
|
|
||||||
(version "1.0.2")
|
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "importlib_resources" version))
|
(uri (pypi-uri "importlib_resources" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0y3hg12iby1qyaspnbisz4s4vxax7syikk3skznwqizqyv89y9yk"))))
|
"1hq626mx5jl9zfl0wdrjkxsnh8qd98fqv322n68b9251xjk4bxqr"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(native-inputs (list python-setuptools-scm python-toml))
|
||||||
`(#:python ,python-2
|
(home-page "http://importlib-resources.readthedocs.io/")
|
||||||
#:phases (modify-phases %standard-phases
|
(synopsis "Read resources from Python packages")
|
||||||
;; The build system tests for python-wheel, but it is
|
|
||||||
;; not required for Guix nor the test suite. Just drop
|
|
||||||
;; it to make bootstrapping pytest easier.
|
|
||||||
(add-after 'unpack 'drop-wheel-dependency
|
|
||||||
(lambda _
|
|
||||||
(substitute* "setup.cfg"
|
|
||||||
(("^[[:blank:]]+wheel")
|
|
||||||
""))
|
|
||||||
#t)))))
|
|
||||||
(propagated-inputs
|
|
||||||
(list python2-pathlib2 python2-typing))
|
|
||||||
(home-page "https://gitlab.com/python-devs/importlib_resources")
|
|
||||||
(synopsis "Backport of @code{importlib.resources} from Python 3.7")
|
|
||||||
(description
|
(description
|
||||||
"This package provides an implementation of @code{importlib.resources}
|
"@code{importlib_resources} is a backport of Python 3's standard library
|
||||||
for older versions of Python.")
|
@code{importlib.resources} module for Python 2.7, and Python 3.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
;; For importlib-metadata-bootstrap below.
|
|
||||||
(define-public python2-importlib-resources-bootstrap
|
|
||||||
(hidden-package
|
|
||||||
(package/inherit
|
|
||||||
python2-importlib-resources
|
|
||||||
(name "python2-importlib-resources-bootstrap")
|
|
||||||
(propagated-inputs
|
|
||||||
`(("python-pathlib2-bootstrap" ,python2-pathlib2-bootstrap)
|
|
||||||
("python-typing" ,python2-typing))))))
|
|
||||||
|
|
||||||
(define-public python-importlib-metadata
|
(define-public python-importlib-metadata
|
||||||
(package
|
(package
|
||||||
(name "python-importlib-metadata")
|
(name "python-importlib-metadata")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue