c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
43 lines
782 B
Nix
43 lines
782 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, numpy
|
|
, pydicom
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dicom-numpy";
|
|
version = "0.6.5";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "innolitics";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-pgmREQlstr0GY2ThIWt4hbcSWmaNWgkr2gO4PSgGHqE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
pydicom
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|