mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 18:47:02 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
49 lines
971 B
Nix
49 lines
971 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
nibabel,
|
|
pydicom,
|
|
pylibjpeg,
|
|
pint,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "dcmstack";
|
|
version = "0.9-unstable-2024-12-05";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|