summaryrefslogtreecommitdiff
path: root/python-tifffile/PKGBUILD
blob: ffad98d011aa7b7f40b1e207040038bff9f25146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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=2024.8.30
_pkgname=${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')
depends=(

  'python<3.13'
  'python>=3.12')
makedepends=(
  'python-setuptools')
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=("$_pkgname-$pkgver.tar.gz::https://github.com/cgohlke/$_pkgname/archive/v$pkgver.tar.gz")
sha512sums=('f81e93c55cc982e12c9f0872b8099cb5e1dc6f4a3d18411a1d0f073080e20bf35a89d7115f4c8617f83c923e04c371a0db64d10b121a254db86b78c8a55d6d08')

build() {
    cd ${srcdir}/${_pkgname}-${pkgver}

    python setup.py build
}

#check() {
#    cd ${srcdir}/${_pkgname}-${pkgver}
#
#    PYTHONPATH="build/lib" pytest
#}

package() {
    cd ${srcdir}/${_pkgname}-${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
}