504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
38 lines
770 B
Nix
38 lines
770 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, nibabel
|
|
, pydicom
|
|
, pylibjpeg-libjpeg
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dcmstack";
|
|
version = "0.9";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "moloney";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-GVzih9H2m2ZGSuZMRuaDG78b95PI3j0WQw5M3l4KNCs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
nibabel
|
|
pydicom
|
|
pylibjpeg-libjpeg
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/moloney/dcmstack";
|
|
description = "DICOM to Nifti conversion preserving metadata";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|