2019-08-28 23:19:09 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchurl
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, pyparsing
|
|
|
|
, tables
|
|
|
|
, cython
|
|
|
|
, python
|
|
|
|
, sympy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "sfepy_${version}";
|
2020-02-25 18:39:13 +00:00
|
|
|
version = "2019.4";
|
2019-08-28 23:19:09 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url="https://github.com/sfepy/sfepy/archive/release_${version}.tar.gz";
|
2020-02-25 18:39:13 +00:00
|
|
|
sha256 = "1l9vgcw09l6bwhgfzlbn68fzpvns25r6nkd1pcp7hz5165hs6zzn";
|
2019-08-28 23:19:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
cython
|
|
|
|
scipy
|
|
|
|
matplotlib
|
|
|
|
pyparsing
|
|
|
|
tables
|
|
|
|
sympy
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# broken test
|
|
|
|
rm tests/test_homogenization_perfusion.py
|
2020-02-25 18:39:13 +00:00
|
|
|
rm tests/test_splinebox.py
|
2019-08-28 23:19:09 +01: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 = ''
|
|
|
|
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 02:11:51 +01:00
|
|
|
homepage = "https://sfepy.org/";
|
2019-08-28 23:19:09 +01:00
|
|
|
description = "Simple Finite Elements in Python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ wd15 ];
|
|
|
|
};
|
|
|
|
}
|