mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-27 13:30:31 +01:00
upgpkg: python-pydicom 2.4.4-2
Switch build to PEP517
This commit is contained in:
@@ -1,13 +1,16 @@
|
|||||||
pkgbase = python-pydicom
|
pkgbase = python-pydicom
|
||||||
pkgdesc = Pure python package for working with DICOM files
|
pkgdesc = Pure python package for working with DICOM files
|
||||||
pkgver = 2.4.4
|
pkgver = 2.4.4
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://pydicom.github.io/pydicom/stable/index.html
|
url = https://pydicom.github.io/pydicom/stable/index.html
|
||||||
arch = any
|
arch = any
|
||||||
license = MIT
|
license = MIT
|
||||||
license = custom
|
license = LicenseRef-GDCM
|
||||||
checkdepends = python-pytest
|
checkdepends = python-pytest
|
||||||
makedepends = python-setuptools
|
makedepends = python-wheel
|
||||||
|
makedepends = python-build
|
||||||
|
makedepends = python-installer
|
||||||
|
makedepends = python-flit-core
|
||||||
depends = python
|
depends = python
|
||||||
optdepends = python-numpy: for working with pixel data
|
optdepends = python-numpy: for working with pixel data
|
||||||
optdepends = python-pillow: for working with compressed image data
|
optdepends = python-pillow: for working with compressed image data
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
|
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
|
||||||
pkgname=python-pydicom
|
pkgname=python-pydicom
|
||||||
pkgver=2.4.4
|
pkgver=2.4.4
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Pure python package for working with DICOM files"
|
pkgdesc="Pure python package for working with DICOM files"
|
||||||
arch=("any")
|
arch=("any")
|
||||||
url="https://pydicom.github.io/pydicom/stable/index.html"
|
url="https://pydicom.github.io/pydicom/stable/index.html"
|
||||||
license=('MIT' 'custom')
|
license=('MIT' 'LicenseRef-GDCM')
|
||||||
depends=('python')
|
depends=('python')
|
||||||
makedepends=('python-setuptools')
|
makedepends=('python-wheel' 'python-build' 'python-installer' 'python-flit-core')
|
||||||
optdepends=('python-numpy: for working with pixel data'
|
optdepends=('python-numpy: for working with pixel data'
|
||||||
'python-pillow: for working with compressed image data'
|
'python-pillow: for working with compressed image data'
|
||||||
'gdcm: for working with compressed JPEG, JPEG-LS and JPEG 2000 images'
|
'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'
|
'python-pylibjpeg-rle: for working with compressed RLE images'
|
||||||
)
|
)
|
||||||
checkdepends=('python-pytest')
|
checkdepends=('python-pytest')
|
||||||
source=(
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/pydicom/pydicom/archive/v$pkgver.tar.gz"
|
||||||
"$pkgname-$pkgver.tar.gz::https://github.com/pydicom/pydicom/archive/v$pkgver.tar.gz"
|
"pillow-10.1.patch")
|
||||||
"pillow-10.1.patch"
|
|
||||||
)
|
|
||||||
md5sums=('748bfd7ad12373675c9df4e088f38dd1'
|
md5sums=('748bfd7ad12373675c9df4e088f38dd1'
|
||||||
'837949b3e4505c3fee9c43e8d5665251')
|
'837949b3e4505c3fee9c43e8d5665251')
|
||||||
|
|
||||||
@@ -34,13 +32,13 @@ prepare()
|
|||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
cd "$srcdir/pydicom-$pkgver"
|
cd "$srcdir/pydicom-$pkgver"
|
||||||
python setup.py build
|
python -m build --wheel --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
package()
|
package()
|
||||||
{
|
{
|
||||||
cd "$srcdir/pydicom-$pkgver"
|
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"
|
install -D "$srcdir/pydicom-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
}
|
}
|
||||||
@@ -49,5 +47,5 @@ check()
|
|||||||
{
|
{
|
||||||
cd "$srcdir/pydicom-$pkgver"
|
cd "$srcdir/pydicom-$pkgver"
|
||||||
# CLI tests are broken, skip those
|
# CLI tests are broken, skip those
|
||||||
PYTHONDONTWRITEBYTECODE=1 pytest -k "not TestCLIcall"
|
pytest -k "not TestCLIcall"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user