2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
|
|
|
pip,
|
2024-06-05 15:53:02 +00:00
|
|
|
cython,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mpi4py,
|
|
|
|
numpy,
|
|
|
|
precice,
|
|
|
|
pkgconfig,
|
|
|
|
pythonOlder,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyprecice";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.1.1";
|
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
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}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-qeDWj03Uo0Kf75MN0eI+DBwa94v7GRe6+FKYtVOM6vs=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools
|
|
|
|
pip
|
2022-06-16 17:23:12 +00:00
|
|
|
cython
|
2023-07-15 17:15:38 +00:00
|
|
|
pkgconfig
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|