From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] gnu: Add python-wcwidth and python2-wcwidth. Date: Sun, 12 Jun 2016 17:40:06 +0200 Message-ID: <20160612174006.64cd5ff6@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bC7Up-0003v2-EY for guix-devel@gnu.org; Sun, 12 Jun 2016 11:40:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bC7Ul-0005Qz-17 for guix-devel@gnu.org; Sun, 12 Jun 2016 11:40:18 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:51899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bC7Uk-0005Qm-Qj for guix-devel@gnu.org; Sun, 12 Jun 2016 11:40:14 -0400 Received: from localhost (178.113.9.241.wireless.dyn.drei.com [178.113.9.241]) by dd1012.kasserver.com (Postfix) with ESMTPSA id DE4771CA03A7 for ; Sun, 12 Jun 2016 17:40:09 +0200 (CEST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/python.scm (python-wcwidth, python2-wcwidth): New variables. --- gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b2d27ef..a35b0f6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9126,3 +9126,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 + "Measures number of Terminal column cells of wide-character codes") + (description + "Measures number of Terminal column cells of wide-character codes") + (license license:expat))) + +(define-public python2-wcwidth + (package + (inherit (package-with-python2 + (strip-python2-variant python-wcwidth))) + (native-inputs `(("python2-setuptools" ,python2-setuptools)))))