[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/11: gnu: Add python-imagesize.
From: |
Leo Famulari |
Subject: |
07/11: gnu: Add python-imagesize. |
Date: |
Tue, 12 Jul 2016 22:27:09 +0000 (UTC) |
lfam pushed a commit to branch python-updates
in repository guix.
commit 3a160daa89a88c442ecd8ff16d6be661291c96a4
Author: Leo Famulari <address@hidden>
Date: Fri Jul 1 17:25:10 2016 -0400
gnu: Add python-imagesize.
* gnu/packages/python.scm (python-imagesize, python2-imagesize): New
variables.
---
gnu/packages/python.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5cc426f..1b83b8c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9743,3 +9743,29 @@ characters, mouse support, and auto suggestions.")
(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)
+ (synopsis "Calculate the size of an image")
+ (description "This Python module returns the size of an image. It supports
+the PNG, JPEG, JPEG 2000, and GIF formats.")
+ (home-page "https://github.com/shibukawa/imagesize_py")
+ (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))))))
- branch python-updates created (now 11fbc45), Leo Famulari, 2016/07/12
- 05/11: gnu: python-pytest-runner: Update to 2.8., Leo Famulari, 2016/07/12
- 03/11: gnu: python-scripttest: Disable tests., Leo Famulari, 2016/07/12
- 02/11: gnu: python-pip: Disable tests., Leo Famulari, 2016/07/12
- 06/11: gnu: python-cryptopgraphy: Update to 1.4., Leo Famulari, 2016/07/12
- 07/11: gnu: Add python-imagesize.,
Leo Famulari <=
- 09/11: gnu: Add python-snowballstemmer., Leo Famulari, 2016/07/12
- 10/11: gnu: python-sphinx: Update to 1.4.4., Leo Famulari, 2016/07/12
- 01/11: gnu: python-virtualenv: Disable tests., Leo Famulari, 2016/07/12
- 04/11: gnu: python-pytest: Update to 2.9.2., Leo Famulari, 2016/07/12
- 08/11: gnu: Add python-alabaster., Leo Famulari, 2016/07/12
- 11/11: gnu: python-sphinx-rtd-theme: Update to 0.1.9., Leo Famulari, 2016/07/12