Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 84 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, meson-python, packaging, cython, numpy, scipy, h5py, nibabel, tqdm, trx-python,}:
buildPythonPackage rec { pname = "dipy"; version = "1.9.0"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "dipy"; repo = "dipy"; tag = version; hash = "sha256-6cpxuk2PL43kjQ+6UGiUHUXC7pC9OlW9kZvGOdEXyzw="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "numpy==" "numpy>=" '';
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 = with lib; { homepage = "https://dipy.org/"; description = "Diffusion imaging toolkit for Python"; changelog = "https://github.com/dipy/dipy/blob/${version}/Changelog"; license = licenses.bsd3; maintainers = with maintainers; [ bcdarwin ]; };}