33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, numpy
|
|
, scipy
|
|
, pyamg
|
|
, future
|
|
, matplotlib
|
|
, tkinter
|
|
, mpi4py
|
|
, scikit-fmm
|
|
, gmsh
|
|
, python
|
|
, stdenv
|
|
, openssh
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fipy";
|
|
version = "3.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "usnistgov";
|
|
repo = "fipy";
|
|
rev = version;
|
|
sha256 = "sha256-oTg/5fGXqknWBh1ShdAOdOwX7lVDieIoM5aALcOWFqY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
scipy
|
|
pyamg
|
|
matplotlib
|
|
tkinter
|
|
mpi4py
|
|
future
|
|
scikit-fmm
|
|
openssh
|
|
] ++ lib.optionals (!stdenv.isDarwin) [ gmsh ];
|
|
|
|
nativeCheckInputs = lib.optionals (!stdenv.isDarwin) [ gmsh ];
|
|
|
|
checkPhase = ''
|
|
export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
|
|
${python.interpreter} setup.py test --modules
|
|
'';
|
|
|
|
pythonImportsCheck = [ "fipy" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.ctcms.nist.gov/fipy/";
|
|
description = "A Finite Volume PDE Solver Using Python";
|
|
license = licenses.free;
|
|
maintainers = with maintainers; [ costrouc wd15 ];
|
|
};
|
|
}
|