depot/third_party/nixpkgs/pkgs/development/python-modules/pyprecice/default.nix
Default email aa526eb20f Project import generated by Copybara.
GitOrigin-RevId: fcd48a5a0693f016a5c370460d0c2a8243b882dc
2022-03-10 11:12:11 -08:00

26 lines
856 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, precice, numpy, mpi4py, cython }:
buildPythonPackage rec {
pname = "pyprecice";
version = "2.3.0.1";
src = fetchFromGitHub {
owner = "precice";
repo = "python-bindings";
rev = "v${version}";
sha256 = "1yz96pif63ms797bzxbfrjba4mgz7cz5dqrqghn5sg0g1b9qxnn5";
};
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [ numpy mpi4py precice ];
doCheck = false; # Disable Test because everything depends on open mpi which requires network.
# 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 ];
};
}