unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#43804] [PATCH 1/2] gnu: Add python-black-macchiato.
@ 2020-10-04 22:32 Joseph LaFreniere
  2020-10-04 22:35 ` [bug#43804] [PATCH 2/2] gnu: Add emacs-python-black Joseph LaFreniere
  2020-10-06  9:43 ` bug#43804: [PATCH 1/2] gnu: Add python-black-macchiato Mathieu Othacehe
  0 siblings, 2 replies; 3+ messages in thread
From: Joseph LaFreniere @ 2020-10-04 22:32 UTC (permalink / raw)
  To: 43804

[-- Attachment #1: Type: text/plain, Size: 46 bytes --]

Patch file is attached.

--
Joseph LaFreniere

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-python-black-macchiato.patch --]
[-- Type: text/x-patch, Size: 1496 bytes --]

From c67e5ca74b4c4ea80d83c09805f137033de0e077 Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 4 Oct 2020 17:29:17 -0500
Subject: [PATCH 1/2] gnu: Add python-black-macchiato.

* gnu/packages/python-xyz.scm (python-black-macchiato): New variable.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 865b87e301..f4a5a34303 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4077,6 +4077,27 @@ matching of file paths.")
     (description "Black is the uncompromising Python code formatter.")
     (license license:expat)))
 
+(define-public python-black-macchiato
+  (package
+    (name "python-black-macchiato")
+    (version "1.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "black-macchiato" version))
+       (sha256
+        (base32
+         "1drp5p697ni1xn5y2lbjpalgpkzy2i4cyxjj5pk4dxr0vk97dd7i"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-black" ,python-black)))
+    (home-page "https://github.com/wbolster/black-macchiato")
+    (synopsis "Partial @code{python-black} formatting")
+    (description
+     "This package is built on top the @{python-black} code formatter to
+enable formatting of partial files.")
+    (license license:bsd-3)))
+
 (define-public python-blinker
   (package
     (name "python-blinker")
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#43804] [PATCH 2/2] gnu: Add emacs-python-black.
  2020-10-04 22:32 [bug#43804] [PATCH 1/2] gnu: Add python-black-macchiato Joseph LaFreniere
@ 2020-10-04 22:35 ` Joseph LaFreniere
  2020-10-06  9:43 ` bug#43804: [PATCH 1/2] gnu: Add python-black-macchiato Mathieu Othacehe
  1 sibling, 0 replies; 3+ messages in thread
From: Joseph LaFreniere @ 2020-10-04 22:35 UTC (permalink / raw)
  To: 43804

[-- Attachment #1: Type: text/plain, Size: 46 bytes --]

Patch file is attached.

--
Joseph LaFreniere

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-Add-emacs-python-black.patch --]
[-- Type: text/x-patch, Size: 1821 bytes --]

From d1860c94073056fb50d31082a19eaf4df0990951 Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 4 Oct 2020 17:29:36 -0500
Subject: [PATCH 2/2] gnu: Add emacs-python-black.

* gnu/packages/emacs-xyz.scm (emacs-python-black): New variable.
---
 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 4894e20112..3328dab77f 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")
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#43804: [PATCH 1/2] gnu: Add python-black-macchiato.
  2020-10-04 22:32 [bug#43804] [PATCH 1/2] gnu: Add python-black-macchiato Joseph LaFreniere
  2020-10-04 22:35 ` [bug#43804] [PATCH 2/2] gnu: Add emacs-python-black Joseph LaFreniere
@ 2020-10-06  9:43 ` Mathieu Othacehe
  1 sibling, 0 replies; 3+ messages in thread
From: Mathieu Othacehe @ 2020-10-06  9:43 UTC (permalink / raw)
  To: Joseph LaFreniere; +Cc: 43804-done


Pushed, thanks!

Mathieu




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-06  9:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-04 22:32 [bug#43804] [PATCH 1/2] gnu: Add python-black-macchiato Joseph LaFreniere
2020-10-04 22:35 ` [bug#43804] [PATCH 2/2] gnu: Add emacs-python-black Joseph LaFreniere
2020-10-06  9:43 ` bug#43804: [PATCH 1/2] gnu: Add python-black-macchiato Mathieu Othacehe

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).