mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
b3a18f4daf
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
54 lines
1011 B
Nix
54 lines
1011 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, numpy
|
|
, scipy
|
|
, pyamg
|
|
, pysparse
|
|
, future
|
|
, matplotlib
|
|
, tkinter
|
|
, mpi4py
|
|
, scikit-fmm
|
|
, isPy27
|
|
, gmsh
|
|
, python
|
|
, stdenv
|
|
, openssh
|
|
, fetchurl
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fipy";
|
|
version = "3.4.2.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/usnistgov/fipy/releases/download/${version}/FiPy-${version}.tar.gz";
|
|
sha256 = "0v5yk9b4hksy3176w4vm4gagb9kxqgv75zcyswlqvl371qwy1grk";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
scipy
|
|
pyamg
|
|
matplotlib
|
|
tkinter
|
|
mpi4py
|
|
future
|
|
scikit-fmm
|
|
openssh
|
|
] ++ lib.optionals isPy27 [ pysparse ]
|
|
++ lib.optionals (!stdenv.isDarwin) [ gmsh ];
|
|
|
|
checkPhase = ''
|
|
export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
|
|
${python.interpreter} setup.py test --modules
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|