From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: [PATCH 04/12] gnu: python: Add python-binaryornot. Date: Fri, 5 Aug 2016 20:37:22 +0200 Message-ID: <20160805183730.19049-4-david@craven.ch> References: <20160805183730.19049-2-david@craven.ch> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVk0q-0001ZN-2Z for guix-devel@gnu.org; Fri, 05 Aug 2016 14:38:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVk0l-0008Qq-AX for guix-devel@gnu.org; Fri, 05 Aug 2016 14:38:27 -0400 Received: from so254-10.mailgun.net ([198.61.254.10]:34262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVk0k-0008Ox-3p for guix-devel@gnu.org; Fri, 05 Aug 2016 14:38:23 -0400 In-Reply-To: <20160805183730.19049-2-david@craven.ch> 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" To: guix-devel@gnu.org Cc: David Craven * gnu/packages/python.scm (python-binaryornot): New package. (python2-binaryornot): New package. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index fc52b6c..bea635c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9809,3 +9809,32 @@ etc.") (package (inherit base) (name "ptpython2")))) + +(define-public python-binaryornot + (package + (name "python-binaryornot") + (version "0.4.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "binaryornot" version)) + (sha256 + (base32 + "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb")))) + (build-system python-build-system) + (propagated-inputs + `(("python-hypothesis" ,python-hypothesis))) + (inputs + `(("python-chardet" ,python-chardet) + ("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/audreyr/binaryornot") + (synopsis "Package to check if a file is binary or text") + (description "Ultra-lightweight pure Python package to check if a file is +binary or text.") + (license license:bsd-3))) + +(define-public python2-binaryornot + (let ((binaryornot (package-with-python2 python-binaryornot))) + (package (inherit binaryornot) + (propagated-inputs + `(("python2-enum34" ,python2-enum34) + ,@(package-propagated-inputs binaryornot)))))) -- 2.9.0