1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 20:40:32 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
40c0effe80 Fix global target dir pollution
This shouldn't be necessary but people override it anyway and it costs
nothing
2024-03-28 21:43:43 +01:00
e819b16174 upgpkg: python-pydicom 2.4.4-2
Switch build to PEP517
2024-03-28 21:42:32 +01:00
3 changed files with 16 additions and 13 deletions

View File

@@ -23,6 +23,8 @@ prepare() {
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release --locked
}

View File

@@ -1,13 +1,16 @@
pkgbase = python-pydicom
pkgdesc = Pure python package for working with DICOM files
pkgver = 2.4.4
pkgrel = 1
pkgrel = 2
url = https://pydicom.github.io/pydicom/stable/index.html
arch = any
license = MIT
license = custom
license = LicenseRef-GDCM
checkdepends = python-pytest
makedepends = python-setuptools
makedepends = python-wheel
makedepends = python-build
makedepends = python-installer
makedepends = python-flit-core
depends = python
optdepends = python-numpy: for working with pixel data
optdepends = python-pillow: for working with compressed image data

View File

@@ -3,13 +3,13 @@
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
pkgname=python-pydicom
pkgver=2.4.4
pkgrel=1
pkgrel=2
pkgdesc="Pure python package for working with DICOM files"
arch=("any")
url="https://pydicom.github.io/pydicom/stable/index.html"
license=('MIT' 'custom')
license=('MIT' 'LicenseRef-GDCM')
depends=('python')
makedepends=('python-setuptools')
makedepends=('python-wheel' 'python-build' 'python-installer' 'python-flit-core')
optdepends=('python-numpy: for working with pixel data'
'python-pillow: for working with compressed image data'
'gdcm: for working with compressed JPEG, JPEG-LS and JPEG 2000 images'
@@ -18,10 +18,8 @@ optdepends=('python-numpy: for working with pixel data'
'python-pylibjpeg-rle: for working with compressed RLE images'
)
checkdepends=('python-pytest')
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/pydicom/pydicom/archive/v$pkgver.tar.gz"
"pillow-10.1.patch"
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/pydicom/pydicom/archive/v$pkgver.tar.gz"
"pillow-10.1.patch")
md5sums=('748bfd7ad12373675c9df4e088f38dd1'
'837949b3e4505c3fee9c43e8d5665251')
@@ -34,13 +32,13 @@ prepare()
build()
{
cd "$srcdir/pydicom-$pkgver"
python setup.py build
python -m build --wheel --no-isolation
}
package()
{
cd "$srcdir/pydicom-$pkgver"
python setup.py install --skip-build --root="$pkgdir"/ --optimize=1
python -m installer --destdir="$pkgdir"/ dist/*.whl
install -D "$srcdir/pydicom-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
@@ -49,5 +47,5 @@ check()
{
cd "$srcdir/pydicom-$pkgver"
# CLI tests are broken, skip those
PYTHONDONTWRITEBYTECODE=1 pytest -k "not TestCLIcall"
pytest -k "not TestCLIcall"
}