unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add python-imagesize.
@ 2016-10-29  9:20 Danny Milosavljevic
  2016-10-29 18:31 ` Marius Bakke
  0 siblings, 1 reply; 4+ messages in thread
From: Danny Milosavljevic @ 2016-10-29  9:20 UTC (permalink / raw)
  To: guix-devel

* 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")
+    (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))))))

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] gnu: Add python-imagesize.
  2016-10-29  9:20 [PATCH] gnu: Add python-imagesize Danny Milosavljevic
@ 2016-10-29 18:31 ` Marius Bakke
  2016-10-30 18:18   ` [PATCH v2] " Danny Milosavljevic
  0 siblings, 1 reply; 4+ messages in thread
From: Marius Bakke @ 2016-10-29 18:31 UTC (permalink / raw)
  To: Danny Milosavljevic, guix-devel

[-- Attachment #1: Type: text/plain, Size: 1740 bytes --]

Danny Milosavljevic <dannym@scratchpost.org> 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))))))

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2] gnu: Add python-imagesize.
  2016-10-29 18:31 ` Marius Bakke
@ 2016-10-30 18:18   ` Danny Milosavljevic
  2016-10-30 19:31     ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Danny Milosavljevic @ 2016-10-30 18:18 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/python.scm (python-imagesize, python2-imagesize): New variables.
---
 gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 1292a09..b7c9e11 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -11419,3 +11419,30 @@ useful as a validator for JSON data.")
 
 (define-public python2-pyev
   (package-with-python2 python-pyev))
+
+(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))))))

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] gnu: Add python-imagesize.
  2016-10-30 18:18   ` [PATCH v2] " Danny Milosavljevic
@ 2016-10-30 19:31     ` Leo Famulari
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2016-10-30 19:31 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel

On Sun, Oct 30, 2016 at 07:18:35PM +0100, Danny Milosavljevic wrote:
> * gnu/packages/python.scm (python-imagesize, python2-imagesize): New variables.

Pushed, thanks for the package!

> ---
>  gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
> 
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 1292a09..b7c9e11 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -11419,3 +11419,30 @@ useful as a validator for JSON data.")
>  
>  (define-public python2-pyev
>    (package-with-python2 python-pyev))
> +
> +(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))))))
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-30 19:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-29  9:20 [PATCH] gnu: Add python-imagesize Danny Milosavljevic
2016-10-29 18:31 ` Marius Bakke
2016-10-30 18:18   ` [PATCH v2] " Danny Milosavljevic
2016-10-30 19:31     ` Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).