summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 407e9ccd4b6a4edbbc34c019565b50fe6f6f1162 (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
# Maintainer: Tobias Bachmann <tobachmann@gmx.de>
pkgname=python-xnatpy
_name=xnat
pkgver=0.6.2
pkgrel=1
pkgdesc="A new XNAT client that exposes XNAT objects/functions as python objects/functions."
arch=('any')
url="https://bitbucket.org/bigr_erasmusmc/xnatpy"
license=('Apache')
depends=('python' 'python-isodate' 'python-progressbar' 'python-click' 'python-requests' 'python-pydicom' 'python-dateutil' 'python-pyaml' 'python-click-option-group' 'python-importlib-metadata')
replaces=('xnatpy')
options=(!emptydirs)
source=($pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz)
sha256sums=('0d580323a267e8c70f7d2d961830be4c3874e82429e3a93871df5c923acbb6c8')

build() {
  cd "${srcdir}/${_name}-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${srcdir}/${_name}-${pkgver}"
  python -m installer --destdir="${pkgdir}" dist/*.whl
}