depot/third_party/nixpkgs/pkgs/development/python-modules/pyprecice/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

49 lines
999 B
Nix

{
lib,
buildPythonPackage,
cython,
fetchFromGitHub,
mpi4py,
numpy,
precice,
pkgconfig,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyprecice";
version = "3.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "precice";
repo = "python-bindings";
rev = "refs/tags/v${version}";
hash = "sha256-5K6oVBhR6mBdkyOb/Ec0qg9x63tkoTnLIrE8dz8oCtc=";
};
nativeBuildInputs = [
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 ];
};
}