[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: gnu: Add python-black.
From: |
Maxim Cournoyer |
Subject: |
03/09: gnu: Add python-black. |
Date: |
Wed, 12 Sep 2018 22:25:32 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 8795ce86731157577278d1510a79dec64e36d3ca
Author: Maxim Cournoyer <address@hidden>
Date: Sun Aug 26 23:58:26 2018 -0400
gnu: Add python-black.
* gnu/packages/python.scm (python-black): New variable.
---
gnu/packages/python.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 793961d..525ff3f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2743,6 +2743,41 @@ which can produce feeds in RSS 2.0, RSS 0.91, and Atom
formats.")
Language (TOML) configuration files.")
(license license:expat)))
+(define-public python-black
+ (package
+ (name "python-black")
+ (version "18.6b4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "black" version))
+ (sha256
+ (base32
+ "0i4sfqgz6w15vd50kbhi7g7rifgqlf8yfr8y78rypd56q64qn592"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'patch-source-shebangs 'patch-extra-shebangs
+ (lambda _
+ (let ((python3 (which "python3")))
+ (substitute* '("tests/data/fmtonoff.py"
+ "tests/data/string_prefixes.py"
+ "tests/data/function.py")
+ (("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version)
+ (string-append "#!" python3 (if (string? minor-version)
+ minor-version
+ ""))))))))))
+ (propagated-inputs
+ `(("python-click" ,python-click)
+ ("python-attrs" ,python-attrs)
+ ("python-appdirs" ,python-appdirs)
+ ("python-toml" ,python-toml)))
+ (home-page "https://github.com/ambv/black")
+ (synopsis "The uncompromising code formatter")
+ (description "Black is the uncompromising Python code formatter.")
+ (license license:expat)))
+
(define-public python-blinker
(package
(name "python-blinker")
- branch master updated (614cfd5 -> 82baeea), Maxim Cournoyer, 2018/09/13
- 02/09: gnu: Add python-toml., Maxim Cournoyer, 2018/09/13
- 05/09: gnu: Add emacs-mocker., Maxim Cournoyer, 2018/09/13
- 06/09: gnu: Add emacs-find-file-in-project., Maxim Cournoyer, 2018/09/13
- 03/09: gnu: Add python-black.,
Maxim Cournoyer <=
- 01/09: gnu: python-jedi: Update to 0.12.1., Maxim Cournoyer, 2018/09/13
- 07/09: gnu: Add emacs-pyvenv., Maxim Cournoyer, 2018/09/13
- 09/09: gnu: Add emacs-elpy., Maxim Cournoyer, 2018/09/13
- 04/09: gnu: Add emacs-el-x., Maxim Cournoyer, 2018/09/13
- 08/09: gnu: Add emacs-highlight-indentation., Maxim Cournoyer, 2018/09/13