diff mbox

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

Message ID 20161007151355.8763-5-dannym@scratchpost.org
State New
Headers show

Commit Message

Danny Milosavljevic Oct. 7, 2016, 3:13 p.m. UTC
* gnu/packages/python.scm (python-imagesize): New variable.
---
 gnu/packages/python.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

Comments

Hartmut Goebel Oct. 8, 2016, 1:31 p.m. UTC | #1
Am 07.10.2016 um 17:13 schrieb Danny Milosavljevic:
> +    (synopsis
> +      "Gets image size of files in variaous formats in Python")

"sizes" (there are two of them: width and hight.

Sorry for nitpicking :-)
diff mbox

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 60f2d19..84db4a6 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -11057,3 +11057,24 @@  related extensions.")
       "Alabaster is a visually (c)lean, responsive, configurable theme for
 the Sphinx documentation system.  It's the default theme of Sphinx.")
     (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")
+    (description
+      "This package allows determination of image size from
+PNG, JPEG, JPEG2000 and GIF files in pure Python.")
+    (license license:expat)))