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

56 lines
1015 B
Nix
Raw Normal View History

2019-07-12 16:25:12 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, scipy
, pyamg
, pysparse
, future
, matplotlib
, tkinter
, mpi4py
, scikit-fmm
, isPy27
, gmsh
, python
, stdenv
}:
let
not_darwin_inputs = lib.optionals (! stdenv.isDarwin) [ gmsh ];
in
buildPythonPackage rec {
pname = "fipy";
version = "3.3";
src = fetchPypi {
pname = "FiPy";
inherit version;
sha256 = "11agpg3d6yrns8igkpml1mxy3mkqkjq2yrw1mw12y07dkk12ii19";
};
propagatedBuildInputs = [
numpy
scipy
pyamg
matplotlib
tkinter
mpi4py
future
scikit-fmm
] ++ lib.optionals isPy27 [ pysparse ] ++ not_darwin_inputs;
checkInputs = not_darwin_inputs;
checkPhase = ''
${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 ];
};
}