2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, pyparsing
|
|
|
|
, tables
|
|
|
|
, cython
|
|
|
|
, python
|
|
|
|
, sympy
|
2021-03-09 03:18:52 +00:00
|
|
|
, meshio
|
|
|
|
, mpi4py
|
|
|
|
, psutil
|
|
|
|
, openssh
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "sfepy";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "2022.1";
|
2021-03-09 03:18:52 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sfepy";
|
|
|
|
repo = "sfepy";
|
|
|
|
rev = "release_${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-OayULh/dGI5sEynYMc+JLwUd67zEGdIGEKo6CTOdZS8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
cython
|
|
|
|
scipy
|
|
|
|
matplotlib
|
|
|
|
pyparsing
|
|
|
|
tables
|
|
|
|
sympy
|
2021-03-09 03:18:52 +00:00
|
|
|
meshio
|
|
|
|
mpi4py
|
|
|
|
psutil
|
|
|
|
openssh
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-03-09 03:18:52 +00:00
|
|
|
# broken tests
|
|
|
|
rm tests/test_meshio.py
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# slow tests
|
|
|
|
rm tests/test_input_*.py
|
|
|
|
rm tests/test_elasticity_small_strain.py
|
|
|
|
rm tests/test_term_call_modes.py
|
|
|
|
rm tests/test_refine_hanging.py
|
|
|
|
rm tests/test_hyperelastic_tlul.py
|
|
|
|
rm tests/test_poly_spaces.py
|
|
|
|
rm tests/test_linear_solvers.py
|
|
|
|
rm tests/test_quadratures.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
2021-03-09 03:18:52 +00:00
|
|
|
export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
|
2020-04-24 23:36:52 +00:00
|
|
|
export HOME=$TMPDIR
|
|
|
|
mv sfepy sfepy.hidden
|
|
|
|
mkdir -p $HOME/.matplotlib
|
|
|
|
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
|
|
|
|
${python.interpreter} run_tests.py -o $TMPDIR/test_outputs --raise
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-08-12 12:06:08 +00:00
|
|
|
broken = stdenv.isLinux && stdenv.isAarch64;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://sfepy.org/";
|
|
|
|
description = "Simple Finite Elements in Python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ wd15 ];
|
|
|
|
};
|
|
|
|
}
|