nixpkgs/pkgs/development/python-modules/pyprecice/default.nix
2022-03-09 08:01:19 +01:00

27 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 ];
};
}