depot/third_party/nixpkgs/pkgs/development/python-modules/pyprecice/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

53 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
setuptools,
pip,
cython,
fetchFromGitHub,
mpi4py,
numpy,
precice,
pkgconfig,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyprecice";
version = "3.1.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "precice";
repo = "python-bindings";
rev = "refs/tags/v${version}";
hash = "sha256-qeDWj03Uo0Kf75MN0eI+DBwa94v7GRe6+FKYtVOM6vs=";
};
nativeBuildInputs = [
setuptools
pip
cython
pkgconfig
];
propagatedBuildInputs = [
numpy
mpi4py
precice
];
# Disable Test because everything depends on open mpi which requires network
doCheck = false;
# Do not use pythonImportsCheck because this will also initialize mpi which requires a network interface
meta = with lib; {
description = "Python language bindings for preCICE";
homepage = "https://github.com/precice/python-bindings";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ Scriptkiddi ];
};
}