From f5237bb3a10123a74637e7a656070426587b65b1 Mon Sep 17 00:00:00 2001 From: Jake Forster Date: Sat, 14 Jun 2025 16:31:00 +0930 Subject: gnu: Add python-dicomweb-client. * gnu/packages/python-web.scm (python-dicomweb-client): New variable. Change-Id: I16f511aac93944ae38d147652449a17ad4cfaba0 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 57b6826dae2..445560de3e7 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -75,6 +75,7 @@ ;;; Copyright © 2025 Daniel Ziltener ;;; Copyright © 2025 gemmaro ;;; Copyright © 2025 Sergio Pastor Pérez +;;; Copyright © 2025 Jake Forster ;;; ;;; This file is part of GNU Guix. ;;; @@ -327,6 +328,50 @@ server process.") caching server.") (license license:expat))) +(define-public python-dicomweb-client + (package + (name "python-dicomweb-client") + (version "0.60.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ImagingDataCommons/dicomweb-client") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zad0905cc4jy4hnh9yhcw63bg25f7xa33x9rj9fhh5r4fznha8d")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-dynamic-versioning + (lambda _ + (substitute* "pyproject.toml" + ;; Dynamic versioning via 'uv-dynamic-versioning' is + ;; not suitable for Guix. + (("dynamic = \\[\"version\"\\]") + (string-append "version = \"" + #$version "\"")))))))) + (native-inputs + (list python-hatchling + python-pytest + python-pytest-localserver)) + (propagated-inputs + (list python-numpy + python-pillow + python-pydicom + python-requests + python-retrying)) + (home-page "https://github.com/ImagingDataCommons/dicomweb-client") + (synopsis "Python client for DICOMweb RESTful services") + (description + "@code{dicomweb_client} provides client intefaces for DICOMweb RESTful +services QIDO-RS, WADO-RS and STOW-RS to search, retrieve and store +DICOM objects over the web, respectively.") + (license license:expat))) + (define-public python-docusign-esign (package (name "python-docusign-esign") -- cgit v1.3