aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym+a@scratchpost.org>2016-06-12 17:40:06 +0200
committerLeo Famulari <leo@famulari.name>2016-06-15 10:44:52 -0400
commita44fd439dcef88b33c00db94fb3419e097401fee (patch)
treebdc16d647739cd988ac6e8e60582956b1599d1ff /gnu/packages
parentce9cf64b787aeb063823f0e9056db5b644ef5f75 (diff)
downloadguix-a44fd439dcef88b33c00db94fb3419e097401fee.tar
guix-a44fd439dcef88b33c00db94fb3419e097401fee.tar.gz
gnu: Add python-wcwidth and python2-wcwidth.
* gnu/packages/python.scm (python-wcwidth, python2-wcwidth): New variables. Co-authored-by: Leo Famulari <leo@famulari.name>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index fa06a128b9..4f18680d4c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9186,3 +9186,33 @@ are optionally backed by a C extension built on librdkafka.")
(define-public python2-pykafka
(package-with-python2 python-pykafka))
+
+(define-public python-wcwidth
+ (package
+ (name "python-wcwidth")
+ (version "0.1.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/"
+ "c2/d1/7689293086a8d5320025080cde0e3155b94ae0a7496fb89a3fbaa92c354a/"
+ "wcwidth-" version ".tar.gz"))
+ (sha256
+ (base32
+ "02wjrpf001gjdjsaxxbzcwfg19crlk2dbddayrfc2v06f53yrcyw"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/jquast/wcwidth")
+ (synopsis "Measure number of terminal column cells of wide-character codes.")
+ (description "Wcwidth measures the number of terminal column cells of
+wide-character codes. It is useful for those implementing a terminal emulator,
+or programs that carefully produce output to be interpreted by one. It is a
+Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
+specified in POSIX.1-2001 and POSIX.1-2008.")
+ (license license:expat)))
+
+(define-public python2-wcwidth
+ (package
+ (inherit (package-with-python2
+ (strip-python2-variant python-wcwidth)))
+ (native-inputs `(("python2-setuptools" ,python2-setuptools)))))