[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/4] gnu: Add python-blessings.
From: |
Hartmut Goebel |
Subject: |
[PATCH 2/4] gnu: Add python-blessings. |
Date: |
Sat, 31 Dec 2016 15:02:00 +0100 |
* gnu/packages/python.scm (python-blessings, python2-blessings): New
variables.
---
gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 2dea03b..8dbd64a 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12307,3 +12307,32 @@ emulators. pyte follows the suit.")
(define-public python2-pyte
(package-with-python2 python-pyte))
+
+(define-public python-blessings
+ (package
+ (name "python-blessings")
+ (version "1.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "blessings" version))
+ (sha256
+ (base32
+ "01rhgn2c3xjf9h1lxij9m05iwf2ba6d0vd7nic26c2gic4q73igd"))))
+ (build-system python-build-system)
+ (arguments
+ ;; TODO: For py3, 2to2 is used to convert the code, but test-suite fails
+ `(#:tests? #f))
+ (native-inputs
+ `(("python-nose" ,python-nose)))
+ (home-page "https://pypi.python.org/pypi/blessings")
+ (synopsis "Simple but powerful module to manage terminal color, styling,
+and positioning")
+ (description "Blessings is a pythonic API to manipulate terminal. It
+provides similar features to curses but beating some of their limitations: it
+does not require clearing the whole screen for little changes, scrollback
+buffer after program exits, avoid styling when on output redirection, etc.")
+ (license license:expat)))
+
+(define-public python2-blessings
+ (package-with-python2 python-blessings))
--
2.7.4