gnu: python2-importlib-resources: Drop 'wheel' dependency.

* gnu/packages/python-xyz.scm (python2-importlib-resources)[native-inputs]:
Remove.
[arguments]: Add #:phases.
This commit is contained in:
Marius Bakke 2020-01-15 23:23:00 +01:00
parent 94fa51e17d
commit 5e7202bbdf
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -4983,9 +4983,17 @@ (define-public python2-importlib-resources
"0y3hg12iby1qyaspnbisz4s4vxax7syikk3skznwqizqyv89y9yk"))))
(build-system python-build-system)
(arguments
`(#:python ,python-2))
(native-inputs
`(("python-wheel" ,python2-wheel)))
`(#:python ,python-2
#:phases (modify-phases %standard-phases
;; 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
`(("python-pathlib2" ,python2-pathlib2)
("python-typing" ,python2-typing)))