depot/third_party/nixpkgs/pkgs/development/python-modules/dcmstack/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

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 ];
};
}