guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

13/131: gnu: python-black: Remove blackd.


From: guix-commits
Subject: 13/131: gnu: python-black: Remove blackd.
Date: Mon, 1 Feb 2021 11:56:33 -0500 (EST)

apteryx pushed a commit to branch core-updates
in repository guix.

commit 02b39eaafbb8f07e10dfb9393eeffbf5fbf71bc9
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Thu Jan 7 13:50:18 2021 +0100

    gnu: python-black: Remove blackd.
    
    * gnu/packages/python-xyz.scm (python-black) [arguments]: Add new phase
    to prevent installation of blackd.
---
 gnu/packages/python-xyz.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 640321b..0e2e318 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4207,7 +4207,14 @@ matching of file paths.")
              (substitute* "tests/test_black.py"
                (("( *)def test_python38" match indent)
                 (string-append indent "@unittest.skip(\"guix\")\n" match)))
-             #t)))))
+             #t))
+         ;; Remove blackd, because it depends on python-aiohttp and
+         ;; python-aiohttp-cors.
+         (add-after 'unpack 'remove-entrypoint
+           (lambda _
+             (substitute* "setup.py"
+               (("\\s*\"blackd=blackd:patched_main \\[d\\]\",\n") "")
+                (("\"blackd\", ") "")))))))
     (propagated-inputs
      `(("python-click" ,python-click)
        ("python-attrs" ,python-attrs)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]