2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cython
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mpi4py
|
|
|
|
, numpy
|
|
|
|
, precice
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyprecice";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "2.5.0.2";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "precice";
|
|
|
|
repo = "python-bindings";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-ppDilMwRxVsikTFQMNRYL0G1/HvVomz2S/2yx43u000=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
mpi4py
|
|
|
|
precice
|
|
|
|
];
|
|
|
|
|
|
|
|
# Disable Test because everything depends on open mpi which requires network
|
|
|
|
doCheck = false;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2022-03-10 19:12:11 +00:00
|
|
|
# Do not use pythonImportsCheck because this will also initialize mpi which requires a network interface
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python language bindings for preCICE";
|
|
|
|
homepage = "https://github.com/precice/python-bindings";
|
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
|
|
};
|
|
|
|
}
|