[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: gnu: Add python-yapf.
From: |
Ludovic Courtès |
Subject: |
04/06: gnu: Add python-yapf. |
Date: |
Tue, 23 Jan 2018 04:43:49 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 6055e88c0d6212884d5f050eea1cefc4fcaec043
Author: Fis Trivial <address@hidden>
Date: Sun Jan 21 18:37:57 2018 +0000
gnu: Add python-yapf.
* gnu/packages/python.scm (python-yapf, python2-yapf): New variables.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/python.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 2c2a0fd..8802abd 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -45,6 +45,7 @@
;;; Copyright © 2017 Rutger Helling <address@hidden>
;;; Copyright © 2017 Muriithi Frederick Muriuki <address@hidden>
;;; Copyright © 2017 Brendan Tildesley <address@hidden>
+;;; Copyright © 2018 Fis Trivial <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -12393,3 +12394,26 @@ and works only with Python 2 and NumPy < 1.9.")
(define-public python2-phonenumbers
(package-with-python2 python-phonenumbers))
+
+(define-public python-yapf
+ (package
+ (name "python-yapf")
+ (version "0.20.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "yapf" version))
+ (sha256
+ (base32
+ "0s7l6afzxvpx39kzd0lwshlaxw8m4fwh4iy0rlmav4vipr3g46dx"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/google/yapf")
+ (synopsis "Formatter for Python code")
+ (description "YAPF is a formatter for Python code. It's based off of
address@hidden, developed by Daniel Jasper. In essence, the algorithm
+takes the code and reformats it to the best formatting that conforms to the
+style guide, even if the original code didn't violate the style guide.")
+ (license license:asl2.0)))
+
+(define-public python2-yapf
+ (package-with-python2 python-yapf))
- branch master updated (341afe2 -> 457fc22), Ludovic Courtès, 2018/01/23
- 03/06: gnu: Add 'pyconfigure'., Ludovic Courtès, 2018/01/23
- 02/06: gnu: gnurl: Add '--with-ca-bundle' path to configure-flags., Ludovic Courtès, 2018/01/23
- 05/06: gnu: rct: Add missing headers, enable RTTI., Ludovic Courtès, 2018/01/23
- 04/06: gnu: Add python-yapf.,
Ludovic Courtès <=
- 06/06: gnu: rtags: Fix the bundling issue., Ludovic Courtès, 2018/01/23
- 01/06: build: Expand ‘scripts/guix’ at Make time., Ludovic Courtès, 2018/01/23