blob: 461383596f5ae1e62a00e8ae0dc6ded71b27403a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
numpy,
pydicom,
}:
buildPythonPackage rec {
pname = "dicom-numpy";
version = "0.6.5";
pyproject = true;
src = fetchFromGitHub {
owner = "innolitics";
repo = "dicom-numpy";
tag = "v${version}";
hash = "sha256-pgmREQlstr0GY2ThIWt4hbcSWmaNWgkr2gO4PSgGHqE=";
};
postPatch = ''
substituteInPlace dicom_numpy/zip_archive.py \
--replace-fail "pydicom.read_file" "pydicom.dcmread"
'';
build-system = [
setuptools
];
propagatedBuildInputs = [
numpy
pydicom
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dicom_numpy" ];
meta = {
description = "Read DICOM files into Numpy arrays";
homepage = "https://github.com/innolitics/dicom-numpy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}
|