depot/third_party/nixpkgs/pkgs/development/python-modules/dcmstack/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

50 lines
985 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nibabel,
pydicom,
pylibjpeg-libjpeg,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "dcmstack";
version = "0.9";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "moloney";
repo = "dcmstack";
rev = "refs/tags/v${version}";
hash = "sha256-GVzih9H2m2ZGSuZMRuaDG78b95PI3j0WQw5M3l4KNCs=";
};
build-system = [ setuptools ];
dependencies = [
nibabel
pydicom
pylibjpeg-libjpeg
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dcmstack" ];
disabledTestPaths = [
# AttributeError: 'TestNitoolCli' object has no attribute 'out_dir'
"test/test_cli.py"
];
meta = with lib; {
description = "DICOM to Nifti conversion preserving metadata";
homepage = "https://github.com/moloney/dcmstack";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}