Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
hatchling,
|
|
nibabel,
|
|
numpy,
|
|
scikit-fuzzy,
|
|
scipy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "intensity-normalization";
|
|
version = "3.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchPypi {
|
|
pname = "intensity_normalization";
|
|
inherit version;
|
|
hash = "sha256-d5f+Ug/ta9RQjk3JwHmVJQr8g93glzf7IcmLxLeA1tQ=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
nibabel
|
|
numpy
|
|
scikit-fuzzy
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
];
|
|
enabledTestPaths = [ "tests" ];
|
|
|
|
pythonImportsCheck = [
|
|
"intensity_normalization"
|
|
"intensity_normalization.adapters"
|
|
"intensity_normalization.domain"
|
|
"intensity_normalization.normalizers"
|
|
"intensity_normalization.services"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/jcreinhold/intensity-normalization";
|
|
description = "MRI intensity normalization tools";
|
|
changelog = "https://github.com/jcreinhold/intensity-normalization/releases/tag/${version}";
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "intensity-normalize";
|
|
};
|
|
}
|