push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
# build-system
cython,
meson-python,
ninja,
setuptools,
# dependencies
numpy,
scipy,
nibabel,
sympy,
transforms3d,
# optional-dependencies
matplotlib,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
version = "0.6.1";
pname = "nipy";
pyproject = true;
src = fetchFromGitHub {
owner = "nipy";
repo = "nipy";
tag = version;
hash = "sha256-KGMGu0/0n1CzN++ri3Ig1AJjeZfkl4KzNgm6jdwXB7o=";
};
patches = [
# https://github.com/nipy/nipy/pull/589
(fetchpatch2 {
url = "https://github.com/nipy/nipy/pull/589/commits/76f2aae95dede9b8ac025dc32ce94791904f25e4.patch?full_index=1";
hash = "sha256-Rnwfx6JKl+nE9wvBGKXFtizjuB4Bl1QDF88CvSZU/RQ=";
})
];
postPatch = ''
patchShebangs nipy/_build_utils/cythoner.py
'';
build-system = [
cython
meson-python
setuptools
ninja
numpy
];
dependencies = [
nibabel
numpy
scipy
sympy
transforms3d
];
optional-dependencies.optional = [ matplotlib ];
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.optional;
doCheck = false; # partial imports … circular dependencies. needs more time to figure out.
pythonImportsCheck = [
"nipy"
"nipy.testing"
"nipy.algorithms"
];
meta = with lib; {
homepage = "https://nipy.org/nipy";
description = "Software for structural and functional neuroimaging analysis";
downloadPage = "https://github.com/nipy/nipy";
license = licenses.bsd3;
};
}