Commit 052419cf authored by qbisi's avatar qbisi
Browse files

python3Packages.pyprecice: 3.2.1 -> 3.3.1

parent b6f55fe9
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -5,9 +5,9 @@

  # build-system
  cython,
  pip,
  pkgconfig,
  setuptools,
  setuptools-git-versioning,

  # dependencies
  mpi4py,
@@ -17,38 +17,38 @@

buildPythonPackage rec {
  pname = "pyprecice";
  version = "3.2.1";
  version = "3.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "precice";
    repo = "python-bindings";
    tag = "v${version}";
    hash = "sha256-8AM2wbPX54UaMO4MzLOV0TljLTAPOqR9gUbtT2McNjs=";
    hash = "sha256-NkTrMZ7UKB5O2jIlhLhgkOm8ZeWJA1FoursA1df7XOk=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "setuptools>=61,<72" "setuptools"
  '';

  build-system = [
    cython
    pip
    pkgconfig
    setuptools
    setuptools-git-versioning
  ];

  dependencies = [
    numpy
    mpi4py
  ];

  buildInputs = [
    precice
  ];

  # Disable Test because everything depends on open mpi which requires network
  # no official test instruction
  doCheck = false;

  # Do not use pythonImportsCheck because this will also initialize mpi which requires a network interface
  pythonImportsCheck = [
    "precice"
  ];

  meta = {
    description = "Python language bindings for preCICE";