aports/community/py3-pydicom/APKBUILD
2024-09-09 10:46:07 +00:00

44 lines
1.2 KiB
Plaintext

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-pydicom
pkgver=3.0.0
pkgrel=0
pkgdesc="Read, modify and write DICOM files with python"
url="https://github.com/pydicom/pydicom"
arch="noarch"
license="MIT AND BSD-3-Clause"
depends="python3 py3-numpy"
makedepends="
py3-gpep517
py3-flit-core
py3-wheel
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/pydicom/pydicom/archive/v$pkgver/pydicom-$pkgver.tar.gz"
builddir="$srcdir/pydicom-$pkgver"
options="!check" # do not test for now | collection is very time consuming
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -n auto -W ignore::DeprecationWarning
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
rm -r "$pkgdir"/usr/lib/python3.*/site-packages/pydicom/data/test_files
}
sha512sums="
8a05c16472037e55edcce4be6383919d18b1ec55b51aae7741cd0ba566d762b7306cfd4e5802442c528207b563fae55faddcf3a162834dfd18f4d48b44559010 pydicom-3.0.0.tar.gz
"