Merge pull request #209223 from bcdarwin/python3-dicom-numpy

This commit is contained in:
Sandro
2023-01-27 01:36:49 +01:00
committed by GitHub
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, numpy
, pydicom
}:
buildPythonPackage rec {
pname = "dicom-numpy";
version = "0.6.3";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "innolitics";
repo = pname;
rev = "v${version}";
hash = "sha256-QIPuSFaWgHmcTddZ8H9kgzLYuwGUzy/FVsi/ttSUskA=";
};
propagatedBuildInputs = [
numpy
pydicom
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"dicom_numpy"
];
meta = with lib; {
description = "Read DICOM files into Numpy arrays";
homepage = "https://github.com/innolitics/dicom-numpy";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}
+2
View File
@@ -2381,6 +2381,8 @@ self: super: with self; {
dicom2nifti = callPackage ../development/python-modules/dicom2nifti { };
dicom-numpy = callPackage ../development/python-modules/dicom-numpy { };
dict2xml = callPackage ../development/python-modules/dict2xml { };
dictdiffer = callPackage ../development/python-modules/dictdiffer { };