From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH] gnu: Add python-imagesize. Date: Sat, 29 Oct 2016 19:31:00 +0100 Message-ID: <87y417rorf.fsf@duckhunt.i-did-not-set--mail-host-address--so-tickle-me> References: <20161029092004.2117-1-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0YPM-0005bR-90 for guix-devel@gnu.org; Sat, 29 Oct 2016 14:31:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c0YPH-0006xi-Gv for guix-devel@gnu.org; Sat, 29 Oct 2016 14:31:08 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:56190) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c0YPG-0006xU-Vl for guix-devel@gnu.org; Sat, 29 Oct 2016 14:31:03 -0400 In-Reply-To: <20161029092004.2117-1-dannym@scratchpost.org> 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: Danny Milosavljevic , guix-devel@gnu.org --=-=-= Content-Type: text/plain Danny Milosavljevic writes: > * gnu/packages/python.scm (python-imagesize, python2-imagesize): New variables. > --- > gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index f7485ad..52c5b5e 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -11349,3 +11349,32 @@ useful as a validator for JSON data.") > (description > "This package adds SQLAlchemy support to your Flask application.") > (license license:bsd-3))) > + > +(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) > + (home-page > + "https://github.com/shibukawa/imagesize_py") > + (synopsis > + "Gets image size of files in variaous formats in Python") Nit-pick: Can you move the home-page and synopsis to single lines? The rest LGTM. > + (description > + "This package allows determination of image size from > +PNG, JPEG, JPEG2000 and GIF files in pure Python.") > + (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)))))) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYFOrkAAoJEKKgbfKjOlT6Ig8IALVG0YsY4zdnHAuFlRmCLDO6 A3u7MTbUkWwS+Kj9yt7+HRd5SaF8kIODbGfUf1soMGUkTjAZsgc1E2ynPZIOZnc7 REitiDAthJSdnKsacsr4hPegCGeI1Kj6y1ocMRfG1/GPmEyoxlFGd91sNYT0on5u dyr83nGChd0SrTZN15iHzlcgoOM4m86kb17lFv9MDxdHdMOazmfxDht/GW6d5T4D CL3HoTwOLkYWpfteCbD7wZtgjy0PVpo1LzUFZoP1a9Y1qS7XxXc9F0XWyyCYjPil 1KC7JG204hmezbGuiTPhpucuhHD06fMv3UDk+TfB8s0zFqqp2cGW7mKavqgjz0A= =W3sK -----END PGP SIGNATURE----- --=-=-=--