blob: c391b0bc0c2dbc9cfbf5bb1ee1087467231e050d (
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: Butui Hu <hot123tea123@gmail.com>
_pkgname=albumentations
pkgname=python-albumentations
pkgver=2.0.5
pkgrel=1
pkgdesc='Fast image augmentation library and easy to use wrapper around other libraries'
arch=('any')
url='https://github.com/albumentations-team/albumentations'
license=('MIT')
depends=(
python-albucore
python-numpy
python-opencv
python-pydantic
python-scikit-image
python-scipy
python-typing_extensions
python-yaml
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
optdepends=(
"python-pytorch: for transforms from pytorch"
"python-torchvision: for transforms from torchvision"
)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/albumentations-team/albumentations/archive/${pkgver}.tar.gz")
sha512sums=('95057cd3fc330712e9ccdb2c164d790e24d7a8bce33524898d9941051a2c5e2502e20ac195a90c7971bafd388f0fd4a5d65c79827d12eaaa32da2d845e0eb6a6')
build() {
cd "${_pkgname}-${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:
|