Unverified Commit 11651509 authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

python313Packages.nipype: 1.10.0 -> 1.11.0 (#496102)

parents 2cb1420c a1234208
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -21,9 +21,15 @@ buildPythonPackage rec {
    hash = "sha256-UaE5JQhv2AtzXKY7YD2/g6Kj1igKhmnY3zlf1P9B/iQ=";
  };

  nativeBuildInputs = [ setuptools ];
  postPatch = ''
    substituteInPlace setup.py --replace-fail "versioneer.get_version()" "'${version}'"
  '';

  propagatedBuildInputs = [
  build-system = [
    setuptools
  ];

  dependencies = [
    ci-info
    ci-py
    requests
+49 −24
Original line number Diff line number Diff line
@@ -3,95 +3,120 @@
  stdenv,
  buildPythonPackage,
  fetchPypi,

  # build-system
  hatchling,
  hatch-vcs,

  # python dependencies
  acres,
  click,
  python-dateutil,
  etelemetry,
  filelock,
  looseversion,
  mock,
  lxml,
  networkx,
  nibabel,
  numpy,
  packaging,
  prov,
  psutil,
  puremagic,
  pybids,
  pydot,
  pytest,
  pytestCheckHook,
  pytest-xdist,
  pytest-forked,
  pytest-cov-stub,
  rdflib,
  scipy,
  simplejson,
  traits,

  # optional-dependencies
  datalad,
  duecredit,
  pandas,
  paramiko,
  psutil,
  sphinx,
  xvfbwrapper,

  # other dependencies
  which,
  bash,
  glibcLocales,
  # causes Python packaging conflict with any package requiring rdflib,
  # so use the unpatched rdflib by default (disables Nipype provenance tracking);
  # see https://github.com/nipy/nipype/issues/2888:
  useNeurdflib ? false,
}:

buildPythonPackage rec {
  pname = "nipype";
  version = "1.10.0";
  format = "setuptools";
  version = "1.11.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-GeXWzvpwmXGY94vGZe9NPTy1MyW1uYpy5Rrvra9rPg4=";
    hash = "sha256-ZwfsTDz44Zg673+O6nlifue3q0qklkmZFVDhKcFlt6c=";
  };

  postPatch = ''
    substituteInPlace nipype/interfaces/base/tests/test_core.py \
      --replace-fail "/usr/bin/env bash" "${bash}/bin/bash"
    substituteInPlace nipype/pipeline/engine/tests/test_nodes.py \
      --replace-fail "/bin/bash" "${bash}/bin/bash"
  '';

  pythonRelaxDeps = [ "traits" ];
  build-system = [
    hatchling
    hatch-vcs
  ];

  dependencies = [
    acres
    click
    python-dateutil
    etelemetry
    filelock
    looseversion
    lxml
    networkx
    nibabel
    numpy
    packaging
    prov
    psutil
    puremagic
    pydot
    python-dateutil
    rdflib
    scipy
    simplejson
    traits
    xvfbwrapper
  ];

  passthru.optional-dependencies = {
    data = [ datalad ];
    duecredit = [ duecredit ];
    profiler = [ psutil ];
    pybids = [ pybids ];
    ssh = [ paramiko ];
    xvfbwrapper = [ xvfbwrapper ];
  };

  nativeCheckInputs = [
    pybids
    glibcLocales
    mock
    pytest
    pytest-forked
    pandas
    pytestCheckHook
    pytest-cov-stub
    pytest-xdist
    sphinx
    which
  ];

  # checks on darwin inspect memory which doesn't work in build environment
  doCheck = !stdenv.hostPlatform.isDarwin;
  # ignore tests which incorrect fail to detect xvfb
  checkPhase = ''
    pytest nipype/tests -k 'not display and not test_no_et_multiproc'
  '';
  pythonImportsCheck = [ "nipype" ];

  pythonImportsCheck = [
    "nipype"
    "nipype.algorithms"
    "nipype.interfaces"
  ];

  meta = {
    homepage = "https://nipy.org/nipype";