[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/4] gnu: Add python-curtsies.
From: |
Hartmut Goebel |
Subject: |
[PATCH 3/4] gnu: Add python-curtsies. |
Date: |
Sat, 31 Dec 2016 15:02:01 +0100 |
* gnu/packages/python.scm (python-curtsies, python2-curtsies,
python-curtsies-0.1, python2-curtsies-0.1): New variables.
---
gnu/packages/python.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 8dbd64a..75f5fba 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12336,3 +12336,54 @@ buffer after program exits, avoid styling when on
output redirection, etc.")
(define-public python2-blessings
(package-with-python2 python-blessings))
+
+(define-public python-curtsies
+ (package
+ (name "python-curtsies")
+ (version "0.2.11")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "curtsies" version))
+ (sha256
+ (base32
+ "1vljmw3sy6lrqahhpyg4gk13mzcx3mwhvg8s41698ms3cpgkjipc"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (zero? (system* "nosetests" "-v")))))))
+ (propagated-inputs
+ `(("python-blessings" ,python-blessings)
+ ("python-wcwidth", python-wcwidth)))
+ (native-inputs
+ `(("python-mock" ,python-mock)
+ ("python-pyte" ,python-pyte)
+ ("python-nose" ,python-nose)))
+ (home-page "https://github.com/thomasballinger/curtsies")
+ (synopsis "Library for curses-like terminal interaction with colored
+strings")
+ (description "Curtsies is a library for interacting with the terminal.
+It features string-like objects which carry formatting information, per-line
+fullscreen terminal rendering, and keyboard input event reporting. ")
+ (license license:expat)))
+
+(define-public python2-curtsies
+ (package-with-python2 python-curtsies))
+
+(define-public python-curtsies-0.1
+ (package
+ (inherit python-curtsies)
+ (version "0.1.23")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "curtsies" version))
+ (sha256
+ (base32
+ "1lv5zmca18157d69h4hqm34wbiblimd8h4gzzic2vkw3l61j622a"))))))
+
+(define-public python2-curtsies-0.1
+ (package-with-python2 python-curtsies-0.1))
--
2.7.4