From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel@gnu.org
Subject: [WIP v3 4/5] gnu: Add python-imagesize.
Date: Thu, 13 Oct 2016 08:40:45 +0200 [thread overview]
Message-ID: <20161013064046.14200-5-dannym@scratchpost.org> (raw)
In-Reply-To: <20161013064046.14200-1-dannym@scratchpost.org>
* 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 d9dd467..6adedcd 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -11102,3 +11102,32 @@ the Sphinx documentation system. It's the default theme of Sphinx.")
(inherit base)
(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)
+ (home-page
+ "https://github.com/shibukawa/imagesize_py")
+ (synopsis
+ "Gets image size of files in variaous formats in Python")
+ (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))))))
next prev parent reply other threads:[~2016-10-13 6:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-13 6:40 [WIP v3 0/5] Update Sphinx to 1.4.8 Danny Milosavljevic
2016-10-13 6:40 ` [WIP v3 1/5] gnu: Add python-snowballstemmer Danny Milosavljevic
2016-10-13 6:40 ` [WIP v3 2/5] gnu: Add python-sphinx-cloud-sptheme Danny Milosavljevic
2016-10-13 6:40 ` [WIP v3 3/5] gnu: Add python-sphinx-alabaster-theme Danny Milosavljevic
2016-10-13 6:40 ` Danny Milosavljevic [this message]
2016-10-13 6:40 ` [WIP v3 5/5] gnu: Update Sphinx to 1.4.8 Danny Milosavljevic
2016-10-13 6:45 ` [WIP v3 0/5] " Danny Milosavljevic
2016-10-13 7:41 ` Danny Milosavljevic
2016-10-13 21:16 ` Danny Milosavljevic
2016-10-14 10:09 ` Hartmut Goebel
2016-12-20 14:11 ` Ludovic Courtès
2017-01-04 20:46 ` Danny Milosavljevic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161013064046.14200-5-dannym@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.