1a04744f74
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
77 lines
1.3 KiB
Nix
77 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
meson-python,
|
|
packaging,
|
|
cython,
|
|
numpy,
|
|
scipy,
|
|
h5py,
|
|
nibabel,
|
|
tqdm,
|
|
trx-python,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dipy";
|
|
version = "1.11.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dipy";
|
|
repo = "dipy";
|
|
tag = version;
|
|
hash = "sha256-vqjd5gd9B630pv6H4MvXnlPwlEhm1o7MbwYD0J7D24o=";
|
|
};
|
|
|
|
build-system = [
|
|
cython
|
|
meson-python
|
|
numpy
|
|
packaging
|
|
];
|
|
|
|
dependencies = [
|
|
numpy
|
|
scipy
|
|
h5py
|
|
nibabel
|
|
packaging
|
|
tqdm
|
|
trx-python
|
|
];
|
|
|
|
# disable tests for now due to:
|
|
# - some tests require data download (see dipy/dipy/issues/2092);
|
|
# - running the tests manually causes a multiprocessing hang;
|
|
# - import weirdness when running the tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"dipy"
|
|
"dipy.core"
|
|
"dipy.direction"
|
|
"dipy.tracking"
|
|
"dipy.reconst"
|
|
"dipy.io"
|
|
"dipy.viz"
|
|
"dipy.data"
|
|
"dipy.utils"
|
|
"dipy.segment"
|
|
"dipy.sims"
|
|
"dipy.stats"
|
|
"dipy.denoise"
|
|
"dipy.workflows"
|
|
"dipy.nn"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://dipy.org/";
|
|
description = "Diffusion imaging toolkit for Python";
|
|
changelog = "https://github.com/dipy/dipy/blob/${version}/Changelog";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
};
|
|
}
|