summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-01-17 22:18:30 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-01-17 22:24:04 -0500
commitd849be7b5fe7d6f20f9a46793d8ba6ca2a3a54ba (patch)
tree2cbfa3ea6cc08ac8b3b8cbb85766bf6d445d0361
parente40dfcfcb1bcfa15355b076714897709fa4e1fb2 (diff)
downloadguix-d849be7b5fe7d6f20f9a46793d8ba6ca2a3a54ba.tar.gz
gnu: python-black: Relax tomli version requirement.
* gnu/packages/python-xyz.scm (python-black)
[phases]{relax-version-requirements}: New phase.
-rw-r--r--gnu/packages/python-xyz.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6ce8bd6402..e4cb94fe1b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5239,6 +5239,11 @@ matching of file paths.")
     (arguments
      `(#: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
            (lambda* (#:key native-inputs inputs #:allow-other-keys)
              (let* ((inpts (or native-inputs inputs))