[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/08: gnu: Add python-text-unidecode.
From: |
guix-commits |
Subject: |
04/08: gnu: Add python-text-unidecode. |
Date: |
Fri, 20 Mar 2020 17:44:54 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 9f9335277f0262af89d5d33fff4a0f09892efb3e
Author: Marius Bakke <address@hidden>
AuthorDate: Fri Mar 20 21:39:24 2020 +0100
gnu: Add python-text-unidecode.
* gnu/packages/python-xyz.scm (python-text-unidecode,
python2-text-unidecode):
New public variables.
---
gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c3b06a5..ed5fba5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2398,6 +2398,40 @@ somewhat intelligible.")
(define-public python2-unidecode
(package-with-python2 python-unidecode))
+(define-public python-text-unidecode
+ (package
+ (name "python-text-unidecode")
+ (version "1.3")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "text-unidecode" version))
+ (sha256
+ (base32
+ "14xb99fdv52j21dsljgsbmbaqv10ps4b453p229r29sdn4xn1mms"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "-vv"))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (home-page "https://github.com/kmike/text-unidecode/")
+ (synopsis "Decode Unicode data")
+ (description
+ "@code{text-unidecode} is a basic Python port of the
@code{Text::Unidecode}
+Perl library. It can create ASCII representations of Unicode data. In general
+users should prefer the @code{python-unidecode} package which offers better
+memory usage and transliteration quality.")
+ ;; The user can choose either license.
+ (license (list license:clarified-artistic license:gpl2+))))
+
+(define-public python2-text-unidecode
+ (package-with-python2 python-text-unidecode))
+
(define-public python-pyjwt
(package
(name "python-pyjwt")
- branch master updated (830dab8 -> 51d42ca), guix-commits, 2020/03/20
- 01/08: gnu: python-clikit: Declare Python 2 variant., guix-commits, 2020/03/20
- 02/08: gnu: python-pytzdata: Update to 2019.3., guix-commits, 2020/03/20
- 03/08: gnu: python-pendulum: Update to 2.1.0., guix-commits, 2020/03/20
- 05/08: gnu: Add python-validators., guix-commits, 2020/03/20
- 06/08: gnu: Add python-random2., guix-commits, 2020/03/20
- 04/08: gnu: Add python-text-unidecode.,
guix-commits <=
- 08/08: gnu: python-orator: Update to 0.9.9., guix-commits, 2020/03/20
- 07/08: gnu: Update python-faker to to 4.0.2, python2-faker to 3.0.1., guix-commits, 2020/03/20