pythonPackages.fipy: init at 3.3

This commit is contained in:
Chris Ostrouchov 2019-07-12 11:25:12 -04:00 committed by Frederik Rietdijk
parent ad5c48a094
commit 92e1376cc3
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,55 @@
{ 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 ];
};
}

View File

@ -4009,6 +4009,8 @@ in {
fixtures = callPackage ../development/python-modules/fixtures { };
fipy = callPackage ../development/python-modules/fipy { };
pelican = callPackage ../development/python-modules/pelican {
inherit (pkgs) glibcLocales git;
};