From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 1/5] gnu: Add python-imagesize. Date: Fri, 1 Jul 2016 21:04:49 -0400 Message-ID: <2c0e767c9d5737542704cbcf13996b12df084ad3.1467421110.git.leo@famulari.name> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJ9Mw-0001xB-Fj for guix-devel@gnu.org; Fri, 01 Jul 2016 21:05:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJ9Mt-0001Mq-AJ for guix-devel@gnu.org; Fri, 01 Jul 2016 21:05:14 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:37222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJ9Ms-0001DR-4L for guix-devel@gnu.org; Fri, 01 Jul 2016 21:05:11 -0400 Received: from localhost.localdomain (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id EBB54F29F4 for ; Fri, 1 Jul 2016 21:05:01 -0400 (EDT) In-Reply-To: In-Reply-To: References: 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 * gnu/packages/python.scm (python-imagesize, python2-imagesize): New variables. --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 597ca6a..469f1fa 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9693,3 +9693,29 @@ characters, mouse support, and auto suggestions.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-imagesize + (package + (name "python-imagesize") + (version "0.7.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "imagesize" version)) + (sha256 + (base32 + "0qk07k0z4241lkzzjji7z4da04pcvg7bfc4xz1934zlqhwmwdcha")))) + (build-system python-build-system) + (synopsis "Calculate the size of an image") + (description "This Python module returns the size of an image. It supports +the PNG, JPEG, JPEG 2000, and GIF formats.") + (home-page "https://github.com/shibukawa/imagesize_py") + (license license:expat) + (properties `((python2-variant . ,(delay python2-imagesize)))))) + +(define-public python2-imagesize + (let ((base (package-with-python2 (strip-python2-variant python-imagesize)))) + (package + (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- 2.9.0