blob: 5c7f403b7ec41eddc082ea3414b236e29ba5dc5c (
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
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
_pkgname=imgviz
pkgname=python-imgviz
pkgver=2.1.0
pkgrel=1
pkgdesc='Image Visualization Tools (object detection, semantic and instance segmentation)'
arch=('any')
url='https://github.com/wkentaro/imgviz'
license=('MIT')
depends=(
python-matplotlib
python-numpy
python-pillow
python-yaml
)
makedepends=(
python-build
python-hatch-fancy-pypi-readme
python-hatch-vcs
python-hatchling
python-installer
python-setuptools
python-wheel
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/wkentaro/imgviz/archive/v${pkgver}.tar.gz")
sha512sums=('ad6148630ba88a5aeb4112e83417a3abbc74b958d4d21dcf1350c5eb4e954d0810221075c6042af0c7c7ebf0b029708f518c781e17e6feeae881f8b92a93c972')
build() {
cd "${_pkgname}-${pkgver}"
SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} \
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|