[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[WIP v3 4/5] gnu: Add python-imagesize.
From: |
Danny Milosavljevic |
Subject: |
[WIP v3 4/5] gnu: Add python-imagesize. |
Date: |
Thu, 13 Oct 2016 08:40:45 +0200 |
* 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))))))
- [WIP v3 0/5] Update Sphinx to 1.4.8, Danny Milosavljevic, 2016/10/13
- [WIP v3 1/5] gnu: Add python-snowballstemmer., Danny Milosavljevic, 2016/10/13
- [WIP v3 2/5] gnu: Add python-sphinx-cloud-sptheme., Danny Milosavljevic, 2016/10/13
- [WIP v3 3/5] gnu: Add python-sphinx-alabaster-theme., Danny Milosavljevic, 2016/10/13
- [WIP v3 4/5] gnu: Add python-imagesize.,
Danny Milosavljevic <=
- [WIP v3 5/5] gnu: Update Sphinx to 1.4.8, Danny Milosavljevic, 2016/10/13
- Re: [WIP v3 0/5] Update Sphinx to 1.4.8, Danny Milosavljevic, 2016/10/13