Files
nixpkgs/pkgs/development/python-modules/dcmstack/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1019 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nibabel,
pydicom,
pylibjpeg,
pint,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage {
pname = "dcmstack";
version = "0.9-unstable-2024-12-05";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "moloney";
repo = "dcmstack";
rev = "68575996c8956152865e3598b15f621d7c803a96";
hash = "sha256-QXnBtlXkxYDJFdjiqCoEuBMcHnq+87YmHX8j5EPW7HU=";
};
build-system = [ setuptools ];
dependencies = [
nibabel
pydicom
pylibjpeg
pint
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dcmstack" ];
disabledTestPaths = [
# AttributeError: 'TestNitoolCli' object has no attribute 'out_dir'
"test/test_cli.py"
];
meta = {
description = "DICOM to Nifti conversion preserving metadata";
homepage = "https://github.com/moloney/dcmstack";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}