diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-07-12 11:25:12 -0400 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-07-28 11:34:44 +0200 |
commit | 92e1376cc3e37ee72f1417df05032556d39853c1 (patch) | |
tree | 1631d51b351fddcb6f222f65942fef468772596d /pkgs/development/python-modules/fipy/default.nix | |
parent | ad5c48a094e9c10f6a29b55d0b8433a85a2054fc (diff) |
pythonPackages.fipy: init at 3.3
Diffstat (limited to 'pkgs/development/python-modules/fipy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/fipy/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/fipy/default.nix b/pkgs/development/python-modules/fipy/default.nix new file mode 100644 index 00000000000..7fbf14cf7de --- /dev/null +++ b/pkgs/development/python-modules/fipy/default.nix @@ -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 ]; + }; + } |