2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
cryptography,
|
|
|
|
nibabel,
|
|
|
|
numpy,
|
|
|
|
pydicom,
|
|
|
|
simpleitk,
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymedio";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.2.14";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jcreinhold";
|
|
|
|
repo = "pymedio";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-x3CHoWASDrUoCXfj73NF+0Y/3Mb31dK2Lh+o4OD9ryk=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
cryptography
|
|
|
|
nibabel
|
|
|
|
pydicom
|
|
|
|
simpleitk
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pymedio" ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Read medical image files into Numpy arrays";
|
|
|
|
homepage = "https://github.com/jcreinhold/pymedio";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/jcreinhold/pymedio/blob/v${version}/HISTORY.rst";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|