gnu: python-black: Relax tomli version requirement.

* gnu/packages/python-xyz.scm (python-black)
[phases]{relax-version-requirements}: New phase.
This commit is contained in:
Maxim Cournoyer 2022-01-17 22:18:30 -05:00
parent e40dfcfcb1
commit d849be7b5f
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -5239,6 +5239,11 @@ (define-public python-black
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'relax-version-requirements
(lambda _
(substitute* "setup.py"
(("tomli[^\"]*\",")
"tomli\","))))
(add-after 'patch-source-shebangs 'use-absolute-file-names (add-after 'patch-source-shebangs 'use-absolute-file-names
(lambda* (#:key native-inputs inputs #:allow-other-keys) (lambda* (#:key native-inputs inputs #:allow-other-keys)
(let* ((inpts (or native-inputs inputs)) (let* ((inpts (or native-inputs inputs))