summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-09-03 23:12:11 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-09-05 23:31:20 -0400
commit850189b839e785bcebb2add7043fded688c61fbe (patch)
treed0d9ce9433efbcd78131a098949410a9e11741e4 /gnu/packages/python.scm
parent864b5211cdb4688f3be66975dba4e753e2e59241 (diff)
downloadpatches-850189b839e785bcebb2add7043fded688c61fbe.tar
patches-850189b839e785bcebb2add7043fded688c61fbe.tar.gz
gnu: Add python-unidecode.
* gnu/packages/python.scm (python-unidecode, python2-unidecode): New variables.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3ef862dd63..2ff4572a5c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1099,3 +1099,32 @@ than Python’s urllib2 library.")
(define-public python2-jsonschema
(package-with-python2 python-jsonschema))
+
+(define-public python-unidecode
+ (package
+ (name "python-unidecode")
+ (version "0.04.16")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append
+ "https://pypi.python.org/packages/source/U/Unidecode/Unidecode-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0yv56vc49rvippyxgxvcyz7jklc07ky38rcspax7p00sgmriiljc"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-setuptools" ,python-setuptools)))
+ (home-page "https://pypi.python.org/pypi/Unidecode")
+ (synopsis "ASCII transliterations of Unicode text")
+ (description
+ "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
+useful when integrating with legacy code that doesn't support Unicode, or for
+ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
+machine identifiers from human-readable Unicode strings that should still be
+somewhat intelligeble.")
+ (license gpl2+)))
+
+(define-public python2-unidecode
+ (package-with-python2 python-unidecode))