summaryrefslogtreecommitdiff
path: root/python-tifffile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-08-17 17:07:43 +0200
committerErich Eckner <git@eckner.net>2020-08-17 17:07:43 +0200
commit0e702fe6378aeccf935b5b90c0bb176b94a991f3 (patch)
tree0c81d6be239f112712322248eba3655fcfff16a2 /python-tifffile
parent0e27f59f7e5c457e12d82b1c8a2214cc62d2cae3 (diff)
downloadarchlinuxewe.git.save-0e702fe6378aeccf935b5b90c0bb176b94a991f3.tar.xz
python-tifffile new
Diffstat (limited to 'python-tifffile')
-rw-r--r--python-tifffile/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/python-tifffile/PKGBUILD b/python-tifffile/PKGBUILD
new file mode 100644
index 00000000..68739e52
--- /dev/null
+++ b/python-tifffile/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Astro Benzene <universebenzene at sina dot com>
+# Contributor: Francois Boulogne <fboulogne at april dot org>
+
+pkgname=python-tifffile
+pkgver=2020.7.24
+_pyname=${pkgname#python-}
+pkgrel=1
+pkgdesc="Read and write image data from and to TIFF files"
+arch=('any')
+url="https://github.com/cgohlke/tifffile"
+license=('BSD')
+makedepends=('python-setuptools')
+depends=('python-numpy>=1.15.1')
+optdepends=('python-matplotlib>=3.1: required only for plotting'
+ 'python-imagecodecs>=2020.2.18: required only for encoding or decoding LZW, JPEG, etc'
+ 'python-lxml: required only for validating and printing XML')
+#checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
+sha256sums=('cd8549d6f0742c3c95a856744a26064a1aad1c132fbab95dc9e5dce891a62c17')
+
+build() {
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ python setup.py build
+}
+
+#check() {
+# cd ${srcdir}/${_pyname}-${pkgver}
+#
+# PYTHONPATH="build/lib" pytest
+#}
+
+package() {
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+}