Something went wrong. Try again.
lol
Something went wrong. Try again.
2.3 kB · 128 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system hatch-vcs, hatchling,
# dependencies acres, attrs, importlib-resources, jinja2, looseversion, matplotlib, nibabel, nilearn, nipype, nitransforms, numpy, packaging, pandas, pybids, pyyaml, scikit-image, scipy, seaborn, svgutils, sysctl, templateflow, traits, transforms3d,
# tests pytest-cov-stub, pytest-env, pytestCheckHook, writableTmpDirAsHomeHook,}:
buildPythonPackage (finalAttrs: { pname = "niworkflows"; version = "1.14.4"; pyproject = true;
src = fetchFromGitHub { owner = "nipreps"; repo = "niworkflows"; tag = finalAttrs.version; hash = "sha256-AMUOiIL33kcJtlKT+L5QwcUh8mBBkf80uzOQZFKDauo="; };
pythonRelaxDeps = [ "traits" ];
build-system = [ hatch-vcs hatchling ];
dependencies = [ acres attrs importlib-resources jinja2 looseversion matplotlib nibabel nilearn nipype nitransforms numpy packaging pandas pybids pyyaml scikit-image scipy seaborn svgutils templateflow traits transforms3d ];
env.SETUPTOOLS_SCM_PRETEND_VERSION = finalAttrs.version;
nativeCheckInputs = [ pytest-cov-stub pytest-env pytestCheckHook writableTmpDirAsHomeHook ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Needed for tests that read the system memory usage on Darwin sysctl ];
enabledTestPaths = [ "niworkflows" ];
disabledTests = [ # try to download data: "ROIsPlot" "ROIsPlot2" "niworkflows.interfaces.cifti._prepare_cifti" "niworkflows.utils.misc.get_template_specs" "test_GenerateCifti" "test_SimpleShowMaskRPT" "test_cifti_surfaces_plot" "test_brain_extraction_wf_smoketest" ];
disabledTestPaths = [ "niworkflows/tests/test_registration.py" ];
pythonImportsCheck = [ "niworkflows" ];
meta = { description = "Common workflows for MRI (anatomical, functional, diffusion, etc.)"; mainProgram = "niworkflows-boldref"; homepage = "https://github.com/nipreps/niworkflows"; changelog = "https://github.com/nipreps/niworkflows/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bcdarwin ]; };})