guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: Add python-chardet.


From: Christopher Allan Webber
Subject: 01/01: gnu: Add python-chardet.
Date: Thu, 25 Feb 2016 21:03:41 +0000

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

commit 61b70fcf45b96a65e71d1377083d8709796f66c4
Author: Christopher Allan Webber <address@hidden>
Date:   Thu Feb 25 13:02:49 2016 -0800

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 0f95140..3c95ad5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8163,6 +8163,33 @@ ISO 8859, etc.).")
               (strip-python2-variant python-translitcodec)))
     (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
 
+(define-public python-chardet
+  (package
+    (name "python-chardet")
+    (version "2.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "chardet" version))
+       (sha256
+        (base32
+         "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/chardet/chardet";)
+    (synopsis
+     "Universal encoding detector for Python 2 and 3")
+    (description
+     "Character encoding auto-detection in Python.  Effectively determines what
+character set to use for input with a high degree of accuracy.")
+    (license lgpl2.1+)
+    (properties `((python2-variant . ,(delay python2-chardet))))))
+
+(define-public python2-chardet
+  (package
+    (inherit (package-with-python2
+              (strip-python2-variant python-chardet)))
+    (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
+
 (define-public python-editor
   (package
   (name "python-editor")



reply via email to

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