mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-27 05:20:32 +01:00
50 lines
1.4 KiB
Bash
50 lines
1.4 KiB
Bash
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
|
# Maintainer: wedjat <wedjat@protonmail.com>
|
|
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
|
|
pkgname=('python-pydicom' 'python2-pydicom')
|
|
pkgver=1.3.0
|
|
pkgrel=1
|
|
pkgdesc="Pure python package for working with DICOM files"
|
|
arch=("any")
|
|
url="https://pydicom.github.io/pydicom/stable/index.html"
|
|
license=('MIT' 'custom')
|
|
depends=('python')
|
|
makedepends=('python-setuptools' 'python2-setuptools')
|
|
optdepends=('python-numpy: for working with pixel data'
|
|
'python-pillow: for working with compressed image data')
|
|
checkdepends=('python-pytest')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/pydicom/pydicom/archive/$pkgver.tar.gz")
|
|
md5sums=('08a8c176e8a4a80017c59adf3db9b75c')
|
|
|
|
build()
|
|
{
|
|
cd "$srcdir/pydicom-$pkgver"
|
|
python setup.py build
|
|
}
|
|
|
|
package_python-pydicom()
|
|
{
|
|
cd "$srcdir/pydicom-$pkgver"
|
|
python setup.py install --skip-build --root="$pkgdir"/ --optimize=1
|
|
|
|
install -D "$srcdir/pydicom-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
package_python2-pydicom()
|
|
{
|
|
depends=('python2')
|
|
optdepends=('python2-numpy: for working with pixel data'
|
|
'python2-pillow: for working with compressed image data')
|
|
cd "$srcdir/pydicom-$pkgver"
|
|
python2 setup.py install --skip-build --root="$pkgdir"/ --optimize=1
|
|
|
|
install -D "$srcdir/pydicom-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
|
|
check()
|
|
{
|
|
cd "$srcdir/pydicom-$pkgver"
|
|
PYTHONDONTWRITEBYTECODE=1 pytest
|
|
}
|