2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
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-04-21 15:54:59 +00:00
|
|
|
version = "3.1.0";
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-5K6oVBhR6mBdkyOb/Ec0qg9x63tkoTnLIrE8dz8oCtc=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|