From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dO7h3-0000ey-To for guix-patches@gnu.org; Thu, 22 Jun 2017 15:23:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dO7gz-0001qX-W7 for guix-patches@gnu.org; Thu, 22 Jun 2017 15:23:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59030) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dO7gz-0001qF-Sx for guix-patches@gnu.org; Thu, 22 Jun 2017 15:23:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dO7gz-0004K2-O6 for guix-patches@gnu.org; Thu, 22 Jun 2017 15:23:01 -0400 Subject: [bug#27451] [PATCH] gnu: Add python-uniseg. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dO7fy-00089k-Tm for guix-patches@gnu.org; Thu, 22 Jun 2017 15:21:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dO7fv-0001NL-3O for guix-patches@gnu.org; Thu, 22 Jun 2017 15:21:58 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:40054 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dO7fu-0001M1-SA for guix-patches@gnu.org; Thu, 22 Jun 2017 15:21:55 -0400 From: Kei Kebreau Date: Thu, 22 Jun 2017 15:21:28 -0400 Message-Id: <20170622192128.3186-1-kei@openmailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27451@debbugs.gnu.org Cc: Kei Kebreau * gnu/packages/python.scm (python-uniseg, python2-uniseg): New variables. --- gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a63006a04..3c3b4056d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -41,6 +41,7 @@ ;;; Copyright =C2=A9 2017 Mathieu Othacehe ;;; Copyright =C2=A9 2017 Jos=C3=A9 Miguel S=C3=A1nchez Garc=C3=ADa ;;; Copyright =C2=A9 2017 Roel Janssen +;;; Copyright =C2=A9 2017 Kei Kebreau ;;; ;;; This file is part of GNU Guix. ;;; @@ -987,6 +988,42 @@ Python 3 support.") (define-public python2-setuptools (package-with-python2 python-setuptools)) =20 +(define-public python-uniseg + (package + (name "python-uniseg") + (version "0.7.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://bitbucket.org/emptypage/uniseg-pytho= n/" + "get/rel-" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1df4gddnj2a0v8z35wb2ra5vvh1f1qyxs8fgd25c8g64031mna6x")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; The test suite requires network access. + (home-page + "https://bitbucket.org/emptypage/uniseg-python") + (synopsis + "Python library to determine Unicode text segmentations") + (description + "Uniseg is a Python package used to determine Unicode text segmenta= tions. +Supported segmentations include: +@enumerate +@item @dfn{Code point} (any value in the Unicode codespace) +@item @dfn{Grapheme cluster} (user-perceived character made of a single = or +multiple Unicode code points, e.g. \"G\" + acute-accent) +@item Word break +@item Sentence break +@item Line break +@end enumerate") + (license license:expat))) + +(define-public python2-uniseg + (package-with-python2 python-uniseg)) + ;;; Pycrypto is abandoned upstream: ;;; ;;; https://github.com/dlitz/pycrypto/issues/173 --=20 2.13.1