Patchwork [4/5] gnu: Add python-imagesize.

login
register
mail settings
Submitter Danny Milosavljevic
Date Oct. 7, 2016, 10:32 a.m.
Message ID <20161007103250.24046-5-dannym@scratchpost.org>
Download mbox | patch
Permalink /patch/16338/
State New
Headers show

Comments

Danny Milosavljevic - Oct. 7, 2016, 10:32 a.m.
* gnu/packages/python.scm (python-imagesize): New variable.
---
 gnu/packages/python.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
Hartmut Goebel - Oct. 7, 2016, 11:07 a.m.
Am 07.10.2016 um 12:32 schrieb Danny Milosavljevic:
> +    (synopsis
> +      "Gets image size from png/jpeg/jpeg2000/gif files in Python")

This is hard to read (and repeated in the description). Please use just
"image files of various formats".

> +      "This package allows determination of image size from
> +png/jpeg/jpeg2000/gif files in Python.")

Use comma and space instead of /.

Please state that this is a pure Python package. I was wondering why
there are no inputs, but this really implements the lookup in pure Python.

Maybe simply write "in pure Python"

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 088cdb0..157a544 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -11060,3 +11060,24 @@  related extensions.")
       "Alabaster is a visually (c)lean, responsive, configurable theme for
 the Sphinx documentation system.  It's the default theme of Sphix.")
     (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 from png/jpeg/jpeg2000/gif files in Python")
+    (description
+      "This package allows determination of image size from
+png/jpeg/jpeg2000/gif files in Python.")
+    (license license:expat)))