From 7596f4cfe81538910dd497ae6eab549d52bfe908 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 26 Jun 2025 12:00:58 +0200 Subject: [PATCH] python313Packages.pynetdicom: 2.1.1-unstable-2024-12-22 -> 3.0.2 Diff: pydicom/pynetdicom@refs/tags/v2.1.1-unstable-2024-12-22...refs/tags/v3.0.2 Changelog: https://github.com/pydicom/pynetdicom/releases/tag/v3.0.2 --- .../python-modules/pynetdicom/default.nix | 34 +++++-------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/pkgs/development/python-modules/pynetdicom/default.nix b/pkgs/development/python-modules/pynetdicom/default.nix index 10c76d524a2b..0e403b473eb5 100644 --- a/pkgs/development/python-modules/pynetdicom/default.nix +++ b/pkgs/development/python-modules/pynetdicom/default.nix @@ -6,23 +6,19 @@ pydicom, pyfakefs, pytestCheckHook, - pythonAtLeast, - pythonOlder, sqlalchemy, }: buildPythonPackage rec { pname = "pynetdicom"; - version = "2.1.1-unstable-2024-12-22"; + version = "3.0.2"; pyproject = true; - disabled = pythonOlder "3.10"; - src = fetchFromGitHub { owner = "pydicom"; repo = "pynetdicom"; - rev = "c22be4b79a20eea0f176340629b37c6e30dd10b2"; - hash = "sha256-ydNFlSR/h9xJcJxHyRLpLfkaQwJABPt9PJMkPEWzf3s="; + tag = "v${version}"; + hash = "sha256-0ylx0EMPfvXxT7kQJYK+gsAFb/bkfRPDiC7Z7s/PvTk="; }; build-system = [ flit-core ]; @@ -62,30 +58,18 @@ buildPythonPackage rec { "TestStoreSCUCLI" ]; - disabledTestPaths = - [ - # Ignore apps tests - "pynetdicom/apps/tests/" - ] - ++ lib.optionals (pythonAtLeast "3.12") [ - # https://github.com/pydicom/pynetdicom/issues/924 - "pynetdicom/tests/test_assoc.py" - "pynetdicom/tests/test_transport.py" - ]; + disabledTestPaths = [ + # Ignore apps tests + "pynetdicom/apps/tests/" + ]; pythonImportsCheck = [ "pynetdicom" ]; - pytestFlagsArray = [ - # https://github.com/pydicom/pynetdicom/issues/923 - "-W" - "ignore::pytest.PytestRemovedIn9Warning" - ]; - meta = with lib; { description = "Python implementation of the DICOM networking protocol"; homepage = "https://github.com/pydicom/pynetdicom"; - changelog = "https://github.com/pydicom/pynetdicom/releases/tag/v${version}"; - license = with licenses; [ mit ]; + changelog = "https://github.com/pydicom/pynetdicom/releases/tag/${src.tag}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }