2019-08-29 00:19:09 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchurl
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, pyparsing
|
|
|
|
, tables
|
|
|
|
, cython
|
|
|
|
, python
|
|
|
|
, sympy
|
2021-02-26 03:08:32 +01:00
|
|
|
, meshio
|
|
|
|
, mpi4py
|
|
|
|
, psutil
|
|
|
|
, openssh
|
|
|
|
, pythonOlder
|
2019-08-29 00:19:09 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-02-26 03:08:32 +01:00
|
|
|
name = "sfepy";
|
|
|
|
version = "2020.4";
|
|
|
|
disabled = pythonOlder "3.8";
|
2019-08-29 00:19:09 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url="https://github.com/sfepy/sfepy/archive/release_${version}.tar.gz";
|
2021-02-26 03:08:32 +01:00
|
|
|
sha256 = "1wb0ik6kjg3mksxin0abr88bhsly67fpg36qjdzabhj0xn7j1yaz";
|
2019-08-29 00:19:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
cython
|
|
|
|
scipy
|
|
|
|
matplotlib
|
|
|
|
pyparsing
|
|
|
|
tables
|
|
|
|
sympy
|
2021-02-26 03:08:32 +01:00
|
|
|
meshio
|
|
|
|
mpi4py
|
|
|
|
psutil
|
|
|
|
openssh
|
2019-08-29 00:19:09 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-02-26 03:08:32 +01:00
|
|
|
# broken tests
|
|
|
|
rm tests/test_meshio.py
|
2019-08-29 00:19:09 +02: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-02-26 03:08:32 +01:00
|
|
|
export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
|
2019-08-29 00:19:09 +02: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; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://sfepy.org/";
|
2019-08-29 00:19:09 +02:00
|
|
|
description = "Simple Finite Elements in Python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ wd15 ];
|
|
|
|
};
|
|
|
|
}
|