2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-05-15 21:57:56 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, datalad
|
|
|
|
, git
|
2020-05-15 21:57:56 +00:00
|
|
|
, dcm2niix
|
|
|
|
, nibabel
|
|
|
|
, pydicom
|
|
|
|
, nipype
|
|
|
|
, dcmstack
|
|
|
|
, etelemetry
|
|
|
|
, filelock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.13.1";
|
2020-05-15 21:57:56 +00:00
|
|
|
pname = "heudiconv";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "pyproject";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-UUBRC6RToj4XVbJnxG+EKdue4NVpTAW31RNm9ieF1lU=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
nibabel
|
|
|
|
pydicom
|
|
|
|
nipype
|
|
|
|
dcmstack
|
|
|
|
etelemetry
|
|
|
|
filelock
|
2020-05-15 21:57:56 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
datalad
|
|
|
|
dcm2niix
|
|
|
|
pytestCheckHook
|
|
|
|
git
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
preCheck = ''export HOME=$(mktemp -d)'';
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-15 21:57:56 +00:00
|
|
|
homepage = "https://heudiconv.readthedocs.io";
|
|
|
|
description = "Flexible DICOM converter for organizing imaging data";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/nipy/heudiconv/releases/tag/v${version}";
|
2020-05-15 21:57:56 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|