fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
47 lines
950 B
Nix
47 lines
950 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
pytestCheckHook,
|
|
cryptography,
|
|
nibabel,
|
|
numpy,
|
|
pydicom,
|
|
simpleitk,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymedio";
|
|
version = "0.2.14";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jcreinhold";
|
|
repo = "pymedio";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-x3CHoWASDrUoCXfj73NF+0Y/3Mb31dK2Lh+o4OD9ryk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
cryptography
|
|
nibabel
|
|
pydicom
|
|
simpleitk
|
|
];
|
|
|
|
pythonImportsCheck = [ "pymedio" ];
|
|
|
|
meta = with lib; {
|
|
description = "Read medical image files into Numpy arrays";
|
|
homepage = "https://github.com/jcreinhold/pymedio";
|
|
changelog = "https://github.com/jcreinhold/pymedio/blob/v${version}/HISTORY.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|