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

Add 'python-pydicom/' from commit '2e8d7fe8822869a52b6f9e6d88365c6d2e682423'

git-subtree-dir: python-pydicom
git-subtree-mainline: e91d870ce1
git-subtree-split: 2e8d7fe882
This commit is contained in:
2021-08-05 21:18:06 +02:00
3 changed files with 59 additions and 0 deletions

18
python-pydicom/.SRCINFO Normal file
View File

@@ -0,0 +1,18 @@
pkgbase = python-pydicom
pkgdesc = Pure python package for working with DICOM files
pkgver = 2.1.2
pkgrel = 1
url = https://pydicom.github.io/pydicom/stable/index.html
arch = any
license = MIT
license = custom
checkdepends = python-pytest
makedepends = python-setuptools
depends = python
optdepends = python-numpy: for working with pixel data
optdepends = python-pillow: for working with compressed image data
source = python-pydicom-2.1.2.tar.gz::https://github.com/pydicom/pydicom/archive/v2.1.2.tar.gz
md5sums = 398d943c9da2aec28857b60fe7e02123
pkgname = python-pydicom

4
python-pydicom/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
*tar.gz
*pkg.tar.xz
pkg
src

37
python-pydicom/PKGBUILD Normal file
View File

@@ -0,0 +1,37 @@
# Maintainer: Bert Peters <bert@bertptrs.nl>
# Maintainer: wedjat <wedjat@protonmail.com>
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
pkgname=python-pydicom
pkgver=2.1.2
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')
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/v$pkgver.tar.gz")
md5sums=('398d943c9da2aec28857b60fe7e02123')
build()
{
cd "$srcdir/pydicom-$pkgver"
python setup.py build
}
package()
{
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"
}
check()
{
cd "$srcdir/pydicom-$pkgver"
PYTHONDONTWRITEBYTECODE=1 pytest
}