nixpkgs/pkgs/development/python-modules/fipy/default.nix

54 lines
1011 B
Nix
Raw Normal View History

2019-07-12 15:25:12 +00:00
{ lib
, buildPythonPackage
, numpy
, scipy
, pyamg
, pysparse
, future
, matplotlib
, tkinter
, mpi4py
, scikit-fmm
, isPy27
, gmsh
, python
, stdenv
2020-02-25 18:13:00 +00:00
, openssh
, fetchurl
2019-07-12 15:25:12 +00:00
}:
buildPythonPackage rec {
pname = "fipy";
version = "3.4.2.1";
2019-07-12 15:25:12 +00:00
src = fetchurl {
url = "https://github.com/usnistgov/fipy/releases/download/${version}/FiPy-${version}.tar.gz";
sha256 = "0v5yk9b4hksy3176w4vm4gagb9kxqgv75zcyswlqvl371qwy1grk";
};
2019-07-12 15:25:12 +00:00
propagatedBuildInputs = [
numpy
scipy
pyamg
matplotlib
tkinter
mpi4py
future
scikit-fmm
openssh
] ++ lib.optionals isPy27 [ pysparse ]
++ lib.optionals (!stdenv.isDarwin) [ gmsh ];
2019-07-12 15:25:12 +00:00
checkPhase = ''
export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
${python.interpreter} setup.py test --modules
'';
2019-07-12 15:25:12 +00:00
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 ];
};
}