python3Packages.sfepy: 2022.1 -> 2022.3
This commit is contained in:
parent
8e00e58c11
commit
b754b1a6aa
2 changed files with 20 additions and 14 deletions
|
@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/banesullivan/scooby";
|
homepage = "https://github.com/banesullivan/scooby";
|
||||||
description = "Report hardware information and Python package versions";
|
description = "A lightweight tool for reporting Python package versions and hardware resources";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ wegank ];
|
maintainers = with maintainers; [ wegank ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,19 +14,21 @@
|
||||||
, mpi4py
|
, mpi4py
|
||||||
, psutil
|
, psutil
|
||||||
, openssh
|
, openssh
|
||||||
|
, pyvista
|
||||||
|
, pytest
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sfepy";
|
pname = "sfepy";
|
||||||
version = "2022.1";
|
version = "2022.3";
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sfepy";
|
owner = "sfepy";
|
||||||
repo = "sfepy";
|
repo = "sfepy";
|
||||||
rev = "release_${version}";
|
rev = "release_${version}";
|
||||||
sha256 = "sha256-OayULh/dGI5sEynYMc+JLwUd67zEGdIGEKo6CTOdZS8=";
|
sha256 = "sha256-6AhyO6LRG6N62ZAoPCZpRKu4ZBzj9IHkurhKFIPFAJI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -41,34 +43,38 @@ buildPythonPackage rec {
|
||||||
mpi4py
|
mpi4py
|
||||||
psutil
|
psutil
|
||||||
openssh
|
openssh
|
||||||
|
pyvista
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# broken tests
|
# broken tests
|
||||||
rm tests/test_meshio.py
|
rm sfepy/tests/test_meshio.py
|
||||||
|
|
||||||
# slow tests
|
# slow tests
|
||||||
rm tests/test_input_*.py
|
rm sfepy/tests/test_io.py
|
||||||
rm tests/test_elasticity_small_strain.py
|
rm sfepy/tests/test_elasticity_small_strain.py
|
||||||
rm tests/test_term_call_modes.py
|
rm sfepy/tests/test_term_call_modes.py
|
||||||
rm tests/test_refine_hanging.py
|
rm sfepy/tests/test_refine_hanging.py
|
||||||
rm tests/test_hyperelastic_tlul.py
|
rm sfepy/tests/test_hyperelastic_tlul.py
|
||||||
rm tests/test_poly_spaces.py
|
rm sfepy/tests/test_poly_spaces.py
|
||||||
rm tests/test_linear_solvers.py
|
rm sfepy/tests/test_linear_solvers.py
|
||||||
rm tests/test_quadratures.py
|
rm sfepy/tests/test_quadratures.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
|
export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
mv sfepy sfepy.hidden
|
mv sfepy sfepy.hidden
|
||||||
mkdir -p $HOME/.matplotlib
|
mkdir -p $HOME/.matplotlib
|
||||||
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
|
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
|
||||||
${python.interpreter} run_tests.py -o $TMPDIR/test_outputs --raise
|
${python.interpreter} -c "import sfepy; sfepy.test()"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
broken = stdenv.isLinux && stdenv.isAarch64;
|
|
||||||
homepage = "https://sfepy.org/";
|
homepage = "https://sfepy.org/";
|
||||||
description = "Simple Finite Elements in Python";
|
description = "Simple Finite Elements in Python";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
|
Loading…
Reference in a new issue