all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add python-chardet.
@ 2016-02-25 21:23 Christopher Allan Webber
  2016-02-25 21:34 ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Allan Webber @ 2016-02-25 21:23 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-Add-python-chardet.patch --]
[-- Type: text/x-patch, Size: 1716 bytes --]

From 61b70fcf45b96a65e71d1377083d8709796f66c4 Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
Date: Thu, 25 Feb 2016 13:02:49 -0800
Subject: [PATCH 3/3] gnu: Add python-chardet.

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

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")
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-26  0:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-25 21:23 [PATCH] gnu: Add python-chardet Christopher Allan Webber
2016-02-25 21:34 ` Leo Famulari
2016-02-26  0:34   ` Christopher Allan Webber

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.