Files
nixpkgs/pkgs/development/python-modules/fipy/default.nix
T
Martin Weinelt 93beecb409 python3Packages.fipy: 3.4.5 -> 4.0
https://github.com/usnistgov/fipy/blob/4.0/CHANGELOG.rst

This commit was automatically generated using update-python-libraries.
2026-02-01 16:43:52 +01:00

73 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
numpy,
scipy,
pyamg,
future,
matplotlib,
tkinter,
mpi4py,
scikit-fmm,
gmsh,
python,
stdenv,
openssh,
fetchFromGitHub,
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "fipy";
version = "4.0";
format = "setuptools";
# Python 3.12 is not yet supported.
# https://github.com/usnistgov/fipy/issues/997
# https://github.com/usnistgov/fipy/pull/1023
disabled = pythonAtLeast "3.12";
src = fetchFromGitHub {
owner = "usnistgov";
repo = "fipy";
tag = version;
hash = "sha256-pq5Xjp3YD5cILfV+Atl/Sq0SeZjDR/QQa4/F59LhGIo=";
};
propagatedBuildInputs = [
numpy
scipy
pyamg
matplotlib
tkinter
mpi4py
future
scikit-fmm
openssh
]
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ gmsh ];
nativeCheckInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [ gmsh ];
# NOTE: Two of the doctests in fipy.matrices.scipyMatrix._ScipyMatrix.CSR fail, and there is no
# clean way to disable them.
doCheck = false;
checkPhase = ''
export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
${python.interpreter} setup.py test --modules
'';
# NOTE: Importing fipy within the sandbox will fail because plm_rsh_agent isn't set and the process isn't able
# to start a daemon on the builder.
# pythonImportsCheck = [ "fipy" ];
meta = {
homepage = "https://www.ctcms.nist.gov/fipy/";
description = "Finite Volume PDE Solver Using Python";
changelog = "https://github.com/usnistgov/fipy/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.free;
maintainers = with lib.maintainers; [ wd15 ];
};
}