aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJoseph LaFreniere <joseph@lafreniere.xyz>2020-10-04 17:29:36 -0500
committerMathieu Othacehe <othacehe@gnu.org>2020-10-06 11:39:57 +0200
commit5b7e8b595e7fa5338ce2bc8adf5a09f29ad83669 (patch)
tree3a34133cc4a43e7f7694753d83af26148896db07 /gnu
parentd4a81f5b0c17c51155e96250cbde7342e386773c (diff)
downloadguix-5b7e8b595e7fa5338ce2bc8adf5a09f29ad83669.tar
guix-5b7e8b595e7fa5338ce2bc8adf5a09f29ad83669.tar.gz
gnu: Add emacs-python-black.
* gnu/packages/emacs-xyz.scm (emacs-python-black): New variable. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/emacs-xyz.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 79ae76d9ef..490869e6f4 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5646,6 +5646,34 @@ This provides a basic API and common UI widgets such as popup tooltips
and popup menus.")
(license license:gpl3+)))
+(define-public emacs-python-black
+ (package
+ (name "emacs-python-black")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/wbolster/emacs-python-black")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0fjnd85nlkck156dj6cahk8chhgkbgl2kwywqzi8bl4yj700m4dk"))))
+ (build-system emacs-build-system)
+ (propagated-inputs
+ `(("emacs-dash" ,emacs-dash)
+ ("emacs-reformatter" ,emacs-reformatter)
+ ("python-black-macchiato" ,python-black-macchiato)))
+ (arguments `(#:tests? #f))
+ (home-page "https://github.com/wbolster/emacs-python-black")
+ (synopsis "Reformat Python code via @code{python-black}")
+ (description
+ "This package makes it easy to reformat Python code using
+@code{python-black} and @code{python-black-macchiato} for entire and partial
+buffers, respectively.")
+ (license license:bsd-3)))
+
(define-public emacs-python-environment
(package
(name "emacs-python-environment")