diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 27 insertions, 27 deletions
@@ -1,18 +1,21 @@ pkgbase = python-batchgenerators - pkgdesc = A framework for data augmentation for 2D and 3D image classification and segmentation - pkgver = 0.20.1 - pkgrel = 1 + pkgdesc = Framework for data augmentation for 2D and 3D image classification and segmentation + pkgver = 0.24 + pkgrel = 2 url = https://github.com/MIC-DKFZ/batchgenerators arch = any license = Apache + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python-numpy + depends = python-pillow depends = python-scikit-image depends = python-scikit-learn depends = python-scipy depends = python-threadpoolctl - source = batchgenerators-0.20.1.tar.gz::https://github.com/MIC-DKFZ/batchgenerators/archive/v0.20.1.tar.gz - sha512sums = 92335424b4371d79f29eeee454aa0d496dd5427c10733fdb44bb084c7df80ba7177d02082e4e329bc4e8c4b8ad3db6347ae4bf0a4f5eba934016a91b424faae8 + source = python-batchgenerators-0.24.tar.gz::https://files.pythonhosted.org/packages/source/b/batchgenerators/batchgenerators-0.24.tar.gz + sha256sums = 2e09650e3434b1ba91da907d444e360cb570ae05127b457e68d568a8d660be97 pkgname = python-batchgenerators - @@ -1,40 +1,37 @@ -# Maintainer: Butui Hu <hot123tea123@gmail.com> +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> +# Contributor: Butui Hu <hot123tea123@gmail.com> -_pkgname=batchgenerators pkgname=python-batchgenerators -pkgver=0.20.1 -pkgrel=1 -pkgdesc='A framework for data augmentation for 2D and 3D image classification and segmentation' +_pkg="${pkgname#python-}" +pkgver=0.24 +pkgrel=2 +pkgdesc='Framework for data augmentation for 2D and 3D image classification and segmentation' arch=('any') url='https://github.com/MIC-DKFZ/batchgenerators' license=('Apache') depends=( 'python-numpy' + 'python-pillow' 'python-scikit-image' 'python-scikit-learn' 'python-scipy' - 'python-threadpoolctl' -) + 'python-threadpoolctl') makedepends=( + 'python-build' + 'python-installer' 'python-setuptools' -) -source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/MIC-DKFZ/batchgenerators/archive/v${pkgver}.tar.gz") -sha512sums=('92335424b4371d79f29eeee454aa0d496dd5427c10733fdb44bb084c7df80ba7177d02082e4e329bc4e8c4b8ad3db6347ae4bf0a4f5eba934016a91b424faae8') - -get_pyver() { - python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))' -} + 'python-wheel') +source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/b/$_pkg/$_pkg-$pkgver.tar.gz") +sha256sums=('2e09650e3434b1ba91da907d444e360cb570ae05127b457e68d568a8d660be97') build() { - cd "${_pkgname}-${pkgver}" - python setup.py build + cd "$_pkg-$pkgver" + python -m build --wheel --no-isolation } package() { - cd "${_pkgname}-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" - # delete test files - rm -rfv "${pkgdir}/usr/lib/python$(get_pyver)/site-packages/tests" + cd "$_pkg-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl } + # vim:set ts=2 sw=2 et: |