[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/11: gnu: Add python-pydicom.
From: |
guix-commits |
Subject: |
06/11: gnu: Add python-pydicom. |
Date: |
Sun, 8 Jan 2023 10:14:20 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit e24b9b42bc9a78bc63e6824e74fc6850e8a90490
Author: Antero Mejr <antero@mailbox.org>
AuthorDate: Wed Jun 15 15:39:52 2022 +0000
gnu: Add python-pydicom.
* gnu/packages/python-science.scm (python-pydicom): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/python-science.scm | 51 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index dab044d9f7..58d127277c 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -20,6 +20,7 @@
;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
;;; Copyright © 2022 Wiktor Żelazny <wzelazny@vurv.cz>
;;; Copyright © 2022 Eric Bavier <bavier@posteo.net>
+;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
;;; Copyright © 2022 jgart <jgart@dismail.de>
;;;
;;; This file is part of GNU Guix.
@@ -49,6 +50,7 @@
#:use-module (gnu packages crypto)
#:use-module (gnu packages databases)
#:use-module (gnu packages gcc)
+ #:use-module (gnu packages image)
#:use-module (gnu packages image-processing)
#:use-module (gnu packages machine-learning)
#:use-module (gnu packages maths)
@@ -1488,6 +1490,55 @@ Python, from the Sheffield machine learning group. GPy
implements a range of
machine learning algorithms based on GPs.")
(license license:bsd-3)))
+(define-public python-pydicom
+ (package
+ (name "python-pydicom")
+ (version "2.3.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pydicom/pydicom")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "18l26s53yf5j9yh2zwq83n74qq4f2iq0cfblamsw4y9k35l1c108"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (chdir "pydicom/tests")
+ (invoke "python3" "-m" "pytest" "-k" ;skip tests using web data
+ (string-append
+ "not test_jpeg_ls_pixel_data.py"
+ " and not test_gdcm_pixel_data.py"
+ " and not test_pillow_pixel_data.py"
+ " and not test_rle_pixel_data.py"
+ " and not Test_JPEG_LS_Lossless_transfer_syntax"
+ " and not test_numpy_pixel_data.py"
+ " and not test_data_manager.py"
+ " and not test_handler_util.py"
+ " and not test_overlay_np.py"
+ " and not test_encoders_pydicom.py"
+ " and not test_encaps.py"
+ " and not test_reading_ds_with_known_tags_with_UN_VR"
+ " and not TestDatasetOverlayArray"
+ " and not TestReader"
+ " and not test_filewriter.py"))))))))
+ (native-inputs (list python-pytest))
+ (inputs (list gdcm libjpeg-turbo))
+ (propagated-inputs (list python-numpy python-pillow))
+ (home-page "https://github.com/pydicom/pydicom")
+ (synopsis "Python library for reading and writing DICOM data")
+ (description "@code{python-pydicom} is a Python library for reading and
+writing DICOM medical imaging data. It lets developers read, modify and write
+DICOM data in a pythonic way.")
+ (license license:expat)))
+
(define-public python-deepdish
(package
(name "python-deepdish")
- branch master updated (3012dad9eb -> f5ea392b9c), guix-commits, 2023/01/08
- 02/11: gnu-maintenance: 'gnu' and 'gnu-ftp' predicates catch networking errors., guix-commits, 2023/01/08
- 01/11: gnu-maintenance: Factorize 'false-if-networking-failure'., guix-commits, 2023/01/08
- 07/11: gnu: python-jsonschema-next: Simplify package., guix-commits, 2023/01/08
- 04/11: refresh: Add CLI tests., guix-commits, 2023/01/08
- 09/11: gnu: python-proselint: Use official home page URL., guix-commits, 2023/01/08
- 06/11: gnu: Add python-pydicom.,
guix-commits <=
- 03/11: import: stackage: Catch networking errors in predicate., guix-commits, 2023/01/08
- 10/11: gnu: Add power-profiles-daemon., guix-commits, 2023/01/08
- 05/11: gnu: Add gdcm., guix-commits, 2023/01/08
- 08/11: gnu: clamav: Update to 0.103.7., guix-commits, 2023/01/08
- 11/11: gnu: Add vkmark., guix-commits, 2023/01/08