From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: [PATCH] gnu: Add python-chardet. Date: Thu, 25 Feb 2016 13:23:28 -0800 Message-ID: <87si0geb73.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/x-patch Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ3Nn-00070M-GC for guix-devel@gnu.org; Thu, 25 Feb 2016 16:23:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZ3Nj-0007zh-Vz for guix-devel@gnu.org; Thu, 25 Feb 2016 16:23:35 -0500 Received: from dustycloud.org ([50.116.34.160]:56640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ3Nj-0007zW-RM for guix-devel@gnu.org; Thu, 25 Feb 2016 16:23:31 -0500 Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 4B46F2661D for ; Thu, 25 Feb 2016 16:23:29 -0500 (EST) Content-Disposition: inline; filename=0001-gnu-Add-python-chardet.patch List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org >From 61b70fcf45b96a65e71d1377083d8709796f66c4 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber 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