1
0

36 Commits

Author SHA256 Message Date
5334fc5429 Accepting request 1270154 from devel:languages:python
- Drop BuildRequires on gdcm to skip tests.

- version 3.0.1
  * patch removed: pydicom-pr1908-fixpillow.patch
  * patch removed: pydicom-pr2076-np2.patch
  * some tests disabled
  * changes in 3.0.1:
    * Changed logging of missing plugin imports to use :attr:`logging.DEBUG` (:issue:`2128`).
    * Include all :mod:`~pydicom.examples` module datasets with the package (:issue:`2128`, :issue:`2131`)
    * Fixed an invalid VR value in the private data dictionary (:issue:`2132`).
    * Fixed checking for *Bits Stored* when converting *Float Pixel Data* and *Double Float
      Pixel Data* using the :mod:`~pydicom.pixels` backend (:issue:`2135`).
    * Fixed decoding of pixel data for images with *Bits Allocated* of 1 when frame boundaries are not aligned with byte boundaries (:issue:`2134`).
  * changes in 3.0: seer release_notes/v3.0.0.rst

OBS-URL: https://build.opensuse.org/request/show/1270154
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=17
2025-04-17 14:09:28 +00:00
22aeb9e5dc - Drop BuildRequires on gdcm to skip tests.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=35
2025-04-17 05:23:45 +00:00
688267a168 Accepting request 1255425 from home:DocB:branches:devel:languages:python
- version 3.0.1
  * patch removed: pydicom-pr1908-fixpillow.patch
  * patch removed: pydicom-pr2076-np2.patch
  * some tests disabled
  * changes in 3.0.1:
    * Changed logging of missing plugin imports to use :attr:`logging.DEBUG` (:issue:`2128`).
    * Include all :mod:`~pydicom.examples` module datasets with the package (:issue:`2128`, :issue:`2131`)
    * Fixed an invalid VR value in the private data dictionary (:issue:`2132`).
    * Fixed checking for *Bits Stored* when converting *Float Pixel Data* and *Double Float
      Pixel Data* using the :mod:`~pydicom.pixels` backend (:issue:`2135`).
    * Fixed decoding of pixel data for images with *Bits Allocated* of 1 when frame boundaries are not aligned with byte boundaries (:issue:`2134`).
  * changes in 3.0: seer release_notes/v3.0.0.rst

OBS-URL: https://build.opensuse.org/request/show/1255425
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=34
2025-03-24 09:08:15 +00:00
cd93bd7c06 Accepting request 1198702 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1198702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=16
2024-09-05 13:46:50 +00:00
2232cfb26c Accepting request 1148522 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1148522
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=15
2024-02-21 17:00:55 +00:00
5f3a483b52 Accepting request 1147553 from openSUSE:Factory:RISCV
- Skip TestPillowHandler_JPEG2K also on riscv64

OBS-URL: https://build.opensuse.org/request/show/1147553
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=30
2024-02-21 10:18:44 +00:00
c227cfb603 Accepting request 1141697 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1141697
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=14
2024-01-26 21:47:49 +00:00
1abc033a13 Accepting request 1141566 from home:bnavigator:branches:devel:languages:python
- Update to 2.4.4
  ## Changes
  * Removed support for Python 3.6 (EOL since December 2021)
  ## Enhancements
  * Added attribute alphabetic (#1634)
  * Added attribute json_key (#1648)
  * Added value validation for numerical VRs, add type validation
    for all validated VRs (#1414)
  * CLI commands now accept pydicom charset test files and CLI help
    shows Python Version (#1674)
  * Added support for Python 3.11 (#1658)
  * Added ISfloat to allow non-strict reading of existing files
    with float IS values (#1661)
  * Improved speed of creating and accessing highly nested
    structures (#1728, #1734)
  * Switched to a pyproject.toml build process (#1792)
  * Updated DICOM and UID dicts to DICOM 2023b (#1803)
  ## Fixes
  * Fixed length validation of DS values with maximum length
    without a leading zero (#1632)
  * Increased download speed with progress bar for test data
    (#1611)
  * Fixed crash due to invalid private creator (#1638)
  * Fixed extremely long BytesLengthException error messages
    (#1683)
  * In codify, ensure unique variable names for DICOM keywords
    repeated in sequences, and handle unicode characters correctly
    (#1670)
  * Fixed handling of some invalid values in to_json_dict() if
    suppress_invalid_tags is set to True (#1693)

OBS-URL: https://build.opensuse.org/request/show/1141566
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=28
2024-01-26 09:37:48 +00:00
fa90e1b0cd Accepting request 1140071 from Application:ERP:GNUHealth:4.4
- switch to wheel and enable %{?sle15allpythons}

OBS-URL: https://build.opensuse.org/request/show/1140071
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=27
2024-01-22 06:31:57 +00:00
fe328545e3 Accepting request 1039905 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1039905
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=13
2022-12-04 13:58:49 +00:00
20dccd9cfd Accepting request 1039867 from home:yarunachalam:branches:devel:languages:python
- Update to version 2.3.1: 
  * Small fix to make 2.3.X compatible with Python 3.11.

OBS-URL: https://build.opensuse.org/request/show/1039867
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=25
2022-12-03 22:35:06 +00:00
cebd87813d Accepting request 1009305 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1009305
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=12
2022-10-11 16:02:41 +00:00
6ab3aabe56 Accepting request 1009275 from home:jayvdb:py-new
- Add BD pydicom-data test data, and unskip many tests that now pass

OBS-URL: https://build.opensuse.org/request/show/1009275
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=23
2022-10-10 08:51:09 +00:00
53b15d3068 Accepting request 1005753 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1005753
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=11
2022-09-25 13:35:28 +00:00
b14ea9eb46 Accepting request 1005690 from home:jayvdb:branches:devel:languages:python
- Skip a lot of tests, mostly due to missing test data, but there
  are over 1900 still passing.
- Update to v2.3.0
  * See https://github.com/pydicom/pydicom/tree/master/doc/release_notes

OBS-URL: https://build.opensuse.org/request/show/1005690
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=21
2022-09-24 10:21:18 +00:00
c609e55ef7 Accepting request 939179 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/939179
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=10
2021-12-10 20:53:01 +00:00
0ac4534dfb Accepting request 939016 from home:pgajdos:python
- do not require pytest-runner for build

OBS-URL: https://build.opensuse.org/request/show/939016
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=20
2021-12-10 15:53:06 +00:00
bd0ebda4e1 Accepting request 783230 from devel:languages:python
py38 fix

OBS-URL: https://build.opensuse.org/request/show/783230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=9
2020-03-10 09:49:55 +00:00
Tomáš Chvátal
3d111ede6d - Update to 1.4.2:
* no upstream changelog

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=18
2020-03-10 09:21:17 +00:00
83eae9a81c Accepting request 717833 from devel:languages:python
- Update to 1.3.0:
  * no upstream changelog

OBS-URL: https://build.opensuse.org/request/show/717833
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=8
2019-07-23 20:38:24 +00:00
Tomáš Chvátal
5982b5798c - Update to 1.3.0:
* no upstream changelog

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=16
2019-07-23 10:19:00 +00:00
Stephan Kulow
fad76ec071 Accepting request 682724 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/682724
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=7
2019-03-10 08:39:25 +00:00
Tomáš Chvátal
6da6689c19 Accepting request 682717 from home:jayvdb:py-check-failures
- Reinstate test unit test_code_file which appears to be stable now
- Use PyPI sdist as source

OBS-URL: https://build.opensuse.org/request/show/682717
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=14
2019-03-08 08:09:48 +00:00
8791af18d6 Accepting request 662432 from devel:languages:python
- Update to 1.2.2:
  * more python 3.7 fixes

OBS-URL: https://build.opensuse.org/request/show/662432
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=6
2019-01-03 17:08:31 +00:00
Tomáš Chvátal
9f246a2081 - Update to 1.2.2:
* more python 3.7 fixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=12
2019-01-02 12:09:00 +00:00
8546cae505 Accepting request 645900 from devel:languages:python
- Update to 1.2.0:
  * No obvious upstream changelog
- Drop python37.patch should be fixed upstream

OBS-URL: https://build.opensuse.org/request/show/645900
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=5
2018-11-08 08:48:13 +00:00
Tomáš Chvátal
e55b1044eb - Update to 1.2.0:
* No obvious upstream changelog
- Drop python37.patch should be fixed upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=10
2018-11-01 14:04:11 +00:00
5f8f93b20a Accepting request 632267 from devel:languages:python
- Disable test_code_file as it randomly fails in OBS

- Update to 1.1.0:
  * License is distributed
  * Various speed improvements
- Add patch to work with python 3.7:
  * python37.patch

OBS-URL: https://build.opensuse.org/request/show/632267
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=4
2018-08-31 08:47:50 +00:00
Tomáš Chvátal
38cd82f524 - Disable test_code_file as it randomly fails in OBS
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=8
2018-08-30 08:34:56 +00:00
Tomáš Chvátal
687e11feef - Update to 1.1.0:
* License is distributed
  * Various speed improvements
- Add patch to work with python 3.7:
  * python37.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=7
2018-08-29 12:15:08 +00:00
3c1a9cbce0 Accepting request 533142 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/533142
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=3
2017-10-13 12:16:05 +00:00
c461fc4905 Accepting request 523248 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/523248
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=2
2017-09-12 17:55:26 +00:00
Jan Matejek
87e5592fcb Accepting request 523256 from home:jengelh:branches:devel:languages:python
- Make package description neutral and compact it.

OBS-URL: https://build.opensuse.org/request/show/523256
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=4
2017-09-11 15:42:51 +00:00
Todd R
5cefc3bed1 Accepting request 523247 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version

OBS-URL: https://build.opensuse.org/request/show/523247
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=3
2017-09-11 15:09:39 +00:00
cb3c253b4d Accepting request 521714 from devel:languages:python
Needed by latest version of spyder and spyder3

OBS-URL: https://build.opensuse.org/request/show/521714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=1
2017-09-09 18:25:43 +00:00
Todd R
6b38b7edb6 - Update to version 0.9.9
+ Major changes / enhancements
    * All dicom dictionaries updated (standard dictionary, UID
      dictionary, and private dictionaries)
    * Dicom commands also added to dictionary
    * Ability to work with DICOMDIR:  read_dicomdir() function and
      DicomDir class. Example file show_dicomdir.py file added to
      examples subdirectory.
    * codify.py: Produce python/pydicom source code from a dicom
      file.
    * a number of python 3 compatibility enhancements
    * setup.py uses ez_setup only if setuptools not already
      installed
    * exceptions carry tag info with them, to aid in debugging
  + Contrib file changes
    * pydicom_series:  force parameter added (Nil Goyette)
    * dcm_qt_tree: switch to OrderedDict to preserve ordering of
      tags (Padraig Looney)
- Rename package to python-dicom to python-pydicom to conform to python
  package naming policies.
- spec file completely rewritten.
- Remove unneeded python-dicom-remove-obsolete-distribute-support.patch

- Update to version 0.9.8
  + No changelog available
- Add python-dicom-remove-obsolete-distribute-support.patch; setup
  script try to import setuptools from distribute

- Require python-setuptools instead of distribute (upstreams merged)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=1
2016-10-13 19:55:11 +00:00
6 changed files with 32 additions and 137 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:42c06ed74331174111dd42c89db774a13fc472abe18015f22c5aba80cddb7843
size 2203904

3
pydicom-3.0.1-gh.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:848ae8e36f34750cf837e48ca5cdf6f7a472145724946d5f28f529279fe11f4e
size 2899710

View File

@@ -1,23 +0,0 @@
From 11f7bd260137a18496bdfd00ddb742ef0cf2d2fd Mon Sep 17 00:00:00 2001
From: scaramallion <scaramallion@users.noreply.github.com>
Date: Mon, 16 Oct 2023 10:35:46 +1100
Subject: [PATCH 1/4] Fix Pillow raising AttributeError due to Image.mode being
read-only
Index: pydicom-2.4.4/pydicom/pixel_data_handlers/pillow_handler.py
===================================================================
--- pydicom-2.4.4.orig/pydicom/pixel_data_handlers/pillow_handler.py
+++ pydicom-2.4.4/pydicom/pixel_data_handlers/pillow_handler.py
@@ -129,7 +129,11 @@ def _decompress_single_frame(
image.tile[0][2],
(color_mode, ''),
)]
- image.mode = color_mode
+ # Pillow 10.1+ made Image.mode read-only
+ if hasattr(image, "_mode"):
+ image._mode = color_mode
+ else:
+ image.mode = color_mode
image.rawmode = color_mode
return image

View File

@@ -1,101 +0,0 @@
Index: pydicom-2.4.4/pydicom/pixel_data_handlers/pillow_handler.py
===================================================================
--- pydicom-2.4.4.orig/pydicom/pixel_data_handlers/pillow_handler.py
+++ pydicom-2.4.4/pydicom/pixel_data_handlers/pillow_handler.py
@@ -255,14 +255,14 @@ def get_pixeldata(ds: "Dataset") -> "num
if ds.PixelRepresentation == 1:
# Pillow converts signed data to unsigned
# so we need to undo this conversion
- arr -= 2**(bits_allocated - 1)
+ arr -= numpy.uint32(2**(bits_allocated - 1))
if shift:
arr = numpy.right_shift(arr, shift)
else:
# Corrections based on dataset elements
if ds.PixelRepresentation == 1:
- arr -= 2**(bits_allocated - 1)
+ arr -= numpy.uint32(2**(bits_allocated - 1))
if shift:
arr = numpy.right_shift(arr, shift)
Index: pydicom-2.4.4/pydicom/pixel_data_handlers/pylibjpeg_handler.py
===================================================================
--- pydicom-2.4.4.orig/pydicom/pixel_data_handlers/pylibjpeg_handler.py
+++ pydicom-2.4.4/pydicom/pixel_data_handlers/pylibjpeg_handler.py
@@ -66,11 +66,7 @@ except ImportError:
HAVE_PYLIBJPEG = False
if HAVE_PYLIBJPEG:
- try:
- from pylibjpeg.utils import get_pixel_data_decoders
- except ImportError:
- # Old import, deprecated in 1.2, removal in 2.0
- from pylibjpeg.pydicom.utils import get_pixel_data_decoders
+ from pylibjpeg.utils import get_pixel_data_decoders, Decoder
try:
import openjpeg
@@ -249,7 +245,7 @@ def generate_frames(
"elements are missing from the dataset: " + ", ".join(missing)
)
- decoder = _DECODERS[tsyntax]
+ decoder = cast(Decoder, _DECODERS[tsyntax])
LOGGER.debug(f"Decoding {tsyntax.name} encoded Pixel Data using {decoder}")
nr_frames = getattr(ds, "NumberOfFrames", 1)
@@ -260,7 +256,7 @@ def generate_frames(
bits_allocated = cast(int, ds.BitsAllocated)
for frame in generate_pixel_data_frame(ds.PixelData, nr_frames):
- arr = decoder(frame, pixel_module)
+ arr = decoder(frame, ds=pixel_module)
if (
tsyntax in [JPEG2000, JPEG2000Lossless]
Index: pydicom-2.4.4/pydicom/tests/test_encoders_pydicom.py
===================================================================
--- pydicom-2.4.4.orig/pydicom/tests/test_encoders_pydicom.py
+++ pydicom-2.4.4/pydicom/tests/test_encoders_pydicom.py
@@ -444,7 +444,7 @@ class TestRLEEncodeFrame:
assert ds.SamplesPerPixel == 3
assert ds.PixelRepresentation == 0
- arr = ref.newbyteorder('>')
+ arr = ref.view(ref.dtype.newbyteorder('>'))
assert id(arr) != id(ref)
assert arr.dtype == '>u2'
encoded = rle_encode_frame(arr)
Index: pydicom-2.4.4/pydicom/pixel_data_handlers/util.py
===================================================================
--- pydicom-2.4.4.orig/pydicom/pixel_data_handlers/util.py
+++ pydicom-2.4.4/pydicom/pixel_data_handlers/util.py
@@ -200,7 +200,7 @@ def apply_color_lut(
# IVs >= `first_map` are mapped by the Palette Color LUTs
# `first_map` may be negative, positive or 0
mapped_pixels = arr >= first_map
- clipped_iv[mapped_pixels] = arr[mapped_pixels] - first_map
+ clipped_iv[mapped_pixels] = arr[mapped_pixels] - np.int32(first_map)
# IVs > number of entries get set to last entry
np.clip(clipped_iv, 0, nr_entries - 1, out=clipped_iv)
@@ -276,7 +276,7 @@ def apply_modality_lut(arr: "np.ndarray"
# IVs >= `first_map` are mapped by the Modality LUT
# `first_map` may be negative, positive or 0
mapped_pixels = arr >= first_map
- clipped_iv[mapped_pixels] = arr[mapped_pixels] - first_map
+ clipped_iv[mapped_pixels] = arr[mapped_pixels] - np.int32(first_map)
# IVs > number of entries get set to last entry
np.clip(clipped_iv, 0, nr_entries - 1, out=clipped_iv)
@@ -458,7 +458,7 @@ def apply_voi(
# IVs >= `first_map` are mapped by the VOI LUT
# `first_map` may be negative, positive or 0
mapped_pixels = arr >= first_map
- clipped_iv[mapped_pixels] = arr[mapped_pixels] - first_map
+ clipped_iv[mapped_pixels] = arr[mapped_pixels] - np.int32(first_map)
# IVs > number of entries get set to last entry
np.clip(clipped_iv, 0, nr_entries - 1, out=clipped_iv)

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Thu Apr 17 05:22:46 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Drop BuildRequires on gdcm to skip tests.
-------------------------------------------------------------------
Sun Mar 23 17:15:52 UTC 2025 - Axel Braun <axel.braun@gmx.de>
- version 3.0.1
* patch removed: pydicom-pr1908-fixpillow.patch
* patch removed: pydicom-pr2076-np2.patch
* some tests disabled
* changes in 3.0.1:
* Changed logging of missing plugin imports to use :attr:`logging.DEBUG` (:issue:`2128`).
* Include all :mod:`~pydicom.examples` module datasets with the package (:issue:`2128`, :issue:`2131`)
* Fixed an invalid VR value in the private data dictionary (:issue:`2132`).
* Fixed checking for *Bits Stored* when converting *Float Pixel Data* and *Double Float
Pixel Data* using the :mod:`~pydicom.pixels` backend (:issue:`2135`).
* Fixed decoding of pixel data for images with *Bits Allocated* of 1 when frame boundaries are not aligned with byte boundaries (:issue:`2134`).
* changes in 3.0: seer release_notes/v3.0.0.rst
-------------------------------------------------------------------
Wed Sep 4 07:18:47 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pydicom
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,16 +18,13 @@
%{?sle15_python_module_pythons}
Name: python-pydicom
Version: 2.4.4
Version: 3.0.1
Release: 0
Summary: Pure python package for DICOM medical file reading and writing
License: MIT
URL: https://github.com/darcymason/pydicom
Source: https://github.com/pydicom/pydicom/archive/refs/tags/v%{version}.tar.gz#/pydicom-%{version}-gh.tar.gz
# PATCH-FIX-UPSTREAM pydicom-pr1908-fixpillow.patch gh#pydicom/pydicom#1908 fixes gh#pydicom/pydicom#1907
Patch0: pydicom-pr1908-fixpillow.patch
# PATCH-FIX-UPSTREAM pydicom-pr2076-np2.patch gh#pydicom/pydicom#2076
Patch1: pydicom-pr2076-np2.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module flit-core >= 3.2}
BuildRequires: %{python_module pip}
@@ -39,10 +36,6 @@ BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module pydicom-data}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
%if 0%{?suse_version} > 1550
# GDCM is not multiflavor in Tumbleweed
BuildRequires: python3-gdcm
%endif
# /SECTION
BuildArch: noarch
Requires(post): update-alternatives
@@ -85,6 +78,11 @@ skips="$skips or test_get_testdata_files_hash_match"
skips="$skips or test_get_testdata_files_hash_mismatch"
skips="$skips or test_get_testdata_files_external_ignore_hash"
skips="$skips or test_decoder_base"
skips="$skips or test_decoder_native"
skips="$skips or test_utils"
skips="$skips or test_dataset"
if [ "$RPM_ARCH" = "ppc64le" -o "$RPM_ARCH" = "aarch64" -o "$RPM_ARCH" = "riscv64" ]; then
skips="$skips or TestPillowHandler_JPEG2K"
fi