summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorKei Kebreau <kei@openmailbox.org>2017-06-22 15:13:58 -0400
committerKei Kebreau <kei@openmailbox.org>2017-06-22 17:00:00 -0400
commitfa56c7733d88d3821c92ea1c48d2681bd99aeba4 (patch)
tree8eff40bfa7deb31819cf12f6141c42db99d9adcf /gnu/packages/python.scm
parent005c4ef85c6291d2dca281d2218cc0af60c880d3 (diff)
gnu: Add python-uniseg.
* gnu/packages/python.scm (python-uniseg, python2-uniseg): New variables.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a63006a0434..3c3b4056d49 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -41,6 +41,7 @@
41;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> 41;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
42;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.org> 42;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.org>
43;;; Copyright © 2017 Roel Janssen <roel@gnu.org> 43;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
44;;; Copyright © 2017 Kei Kebreau <kei@openmailbox.org>
44;;; 45;;;
45;;; This file is part of GNU Guix. 46;;; This file is part of GNU Guix.
46;;; 47;;;
@@ -987,6 +988,42 @@ Python 3 support.")
987(define-public python2-setuptools 988(define-public python2-setuptools
988 (package-with-python2 python-setuptools)) 989 (package-with-python2 python-setuptools))
989 990
991(define-public python-uniseg
992 (package
993 (name "python-uniseg")
994 (version "0.7.1")
995 (source
996 (origin
997 (method url-fetch)
998 (uri (string-append "https://bitbucket.org/emptypage/uniseg-python/"
999 "get/rel-" version ".tar.gz"))
1000 (file-name (string-append name "-" version ".tar.gz"))
1001 (sha256
1002 (base32
1003 "1df4gddnj2a0v8z35wb2ra5vvh1f1qyxs8fgd25c8g64031mna6x"))))
1004 (build-system python-build-system)
1005 (arguments
1006 '(#:tests? #f)) ; The test suite requires network access.
1007 (home-page
1008 "https://bitbucket.org/emptypage/uniseg-python")
1009 (synopsis
1010 "Python library to determine Unicode text segmentations")
1011 (description
1012 "Uniseg is a Python package used to determine Unicode text segmentations.
1013Supported segmentations include:
1014@enumerate
1015@item @dfn{Code point} (any value in the Unicode codespace)
1016@item @dfn{Grapheme cluster} (user-perceived character made of a single or
1017multiple Unicode code points, e.g. \"G\" + acute-accent)
1018@item Word break
1019@item Sentence break
1020@item Line break
1021@end enumerate")
1022 (license license:expat)))
1023
1024(define-public python2-uniseg
1025 (package-with-python2 python-uniseg))
1026
990;;; Pycrypto is abandoned upstream: 1027;;; Pycrypto is abandoned upstream:
991;;; 1028;;;
992;;; https://github.com/dlitz/pycrypto/issues/173 1029;;; https://github.com/dlitz/pycrypto/issues/173