at 22.05-pre 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, numpy 4, scipy 5, pyamg 6, pysparse 7, future 8, matplotlib 9, tkinter 10, mpi4py 11, scikit-fmm 12, isPy27 13, gmsh 14, python 15, stdenv 16, openssh 17, fetchurl 18}: 19 20buildPythonPackage rec { 21 pname = "fipy"; 22 version = "3.4.2.1"; 23 24 src = fetchurl { 25 url = "https://github.com/usnistgov/fipy/releases/download/${version}/FiPy-${version}.tar.gz"; 26 sha256 = "0v5yk9b4hksy3176w4vm4gagb9kxqgv75zcyswlqvl371qwy1grk"; 27 }; 28 29 propagatedBuildInputs = [ 30 numpy 31 scipy 32 pyamg 33 matplotlib 34 tkinter 35 mpi4py 36 future 37 scikit-fmm 38 openssh 39 ] ++ lib.optionals isPy27 [ pysparse ] 40 ++ lib.optionals (!stdenv.isDarwin) [ gmsh ]; 41 42 checkPhase = '' 43 export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh 44 ${python.interpreter} setup.py test --modules 45 ''; 46 47 meta = with lib; { 48 homepage = "https://www.ctcms.nist.gov/fipy/"; 49 description = "A Finite Volume PDE Solver Using Python"; 50 license = licenses.free; 51 maintainers = with maintainers; [ costrouc wd15 ]; 52 }; 53}