guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

17/19: gnu: Add python-translitcodec.


From: Christopher Allan Webber
Subject: 17/19: gnu: Add python-translitcodec.
Date: Sat, 20 Feb 2016 02:23:13 +0000

cwebber pushed a commit to branch wip-mediagoblin
in repository guix.

commit 43f21a8939ad3dee780f8003e6b4089a9fc0d5a5
Author: Christopher Allan Webber <address@hidden>
Date:   Sun Feb 14 16:23:11 2016 -0800

    gnu: Add python-translitcodec.
    
    * gnu/packages/python.scm (python-translitcodec, python2-translitcodec):
      New variables.
---
 gnu/packages/python.scm |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5eada64..ed30958 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8048,3 +8048,34 @@ synchronously (wait until ready).")
                        ("python2-unittest2" ,python2-unittest2)
                        ("python2-mock" ,python2-mock)
                        ,@(package-native-inputs celery))))))
+
+(define-public python-translitcodec
+  (package
+    (name "python-translitcodec")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "translitcodec" version))
+       (sha256
+        (base32
+         "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f))  ; no tests provided
+    (home-page
+     "https://github.com/claudep/translitcodec";)
+    (synopsis
+     "Unicode to 8-bit charset transliteration codec")
+    (description
+     "This package contains codecs for transliterating ISO 10646 texts into
+best-effort representations using smaller coded character sets (ASCII,
+ISO 8859, etc.).")
+    (license license:expat)
+    (properties `((python2-variant . ,(delay python2-translitcodec))))))
+
+(define-public python2-translitcodec
+  (package
+    (inherit (package-with-python2
+              (strip-python2-variant python-translitcodec)))
+    (native-inputs `(("python2-setuptools" ,python2-setuptools)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]