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

Fix Python 3.7 incompatibility.

This commit is contained in:
2018-08-10 11:30:38 +02:00
parent 23b5b430e9
commit de05f45f40
2 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
pkgbase = python-pydicom
pkgdesc = Pure python package for working with DICOM files
pkgver = 1.1.0
pkgrel = 2
pkgrel = 3
url = https://pydicom.github.io/pydicom/stable/index.html
arch = x86_64
license = MIT

View File

@@ -3,7 +3,7 @@
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
pkgname=('python-pydicom' 'python2-pydicom')
pkgver=1.1.0
pkgrel=2
pkgrel=3
pkgdesc="Pure python package for working with DICOM files"
arch=("x86_64")
url="https://pydicom.github.io/pydicom/stable/index.html"
@@ -47,7 +47,9 @@ check()
cd "$srcdir/pydicom-$pkgver"
# Test suite has a known issue with Pillow 5 and up
# See: https://github.com/pydicom/pydicom/issues/663
# Timezone test isn't supposed to run in python 3, but it does
# Don't write byte code to prevent a "$srcdir in pkg" error on rebuilds
PYTHONDONTWRITEBYTECODE=1 \
pytest --deselect=pydicom/tests/test_pillow_pixel_data.py::test_PI_RGB[JPEG_RGB_RGB]
pytest --deselect=pydicom/tests/test_pillow_pixel_data.py::test_PI_RGB[JPEG_RGB_RGB] \
--deselect pydicom/tests/test_fixes.py::TestTimeZone::test_constructor
}