aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2021-01-07 13:50:18 +0100
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-02-01 11:53:44 -0500
commit02b39eaafbb8f07e10dfb9393eeffbf5fbf71bc9 (patch)
tree010435d6ba52bcdd76b0d5271ca0bab621ea0439 /gnu
parent9dd5fa2ea6ed45d89148b601598012147bac3dfa (diff)
downloadguix-02b39eaafbb8f07e10dfb9393eeffbf5fbf71bc9.tar.gz
guix-02b39eaafbb8f07e10dfb9393eeffbf5fbf71bc9.zip
gnu: python-black: Remove blackd.
* gnu/packages/python-xyz.scm (python-black) [arguments]: Add new phase to prevent installation of blackd.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 640321b68b..0e2e318833 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)