Commit b754b1a6 authored by Weijia Wang's avatar Weijia Wang
Browse files

python3Packages.sfepy: 2022.1 -> 2022.3

parent 8e00e58c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ buildPythonPackage rec {

  meta = with lib; {
    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;
    maintainers = with maintainers; [ wegank ];
  };
+19 −13
Original line number Diff line number Diff line
@@ -14,19 +14,21 @@
, mpi4py
, psutil
, openssh
, pyvista
, pytest
, pythonOlder
}:

buildPythonPackage rec {
  pname = "sfepy";
  version = "2022.1";
  version = "2022.3";
  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "sfepy";
    repo = "sfepy";
    rev = "release_${version}";
    sha256 = "sha256-OayULh/dGI5sEynYMc+JLwUd67zEGdIGEKo6CTOdZS8=";
    sha256 = "sha256-6AhyO6LRG6N62ZAoPCZpRKu4ZBzj9IHkurhKFIPFAJI=";
  };

  propagatedBuildInputs = [
@@ -41,34 +43,38 @@ buildPythonPackage rec {
    mpi4py
    psutil
    openssh
    pyvista
  ];

  postPatch = ''
    # broken tests
    rm tests/test_meshio.py
    rm sfepy/tests/test_meshio.py

    # 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
    rm sfepy/tests/test_io.py
    rm sfepy/tests/test_elasticity_small_strain.py
    rm sfepy/tests/test_term_call_modes.py
    rm sfepy/tests/test_refine_hanging.py
    rm sfepy/tests/test_hyperelastic_tlul.py
    rm sfepy/tests/test_poly_spaces.py
    rm sfepy/tests/test_linear_solvers.py
    rm sfepy/tests/test_quadratures.py
  '';

  checkInputs = [
    pytest
  ];

  checkPhase = ''
    export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
    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
    ${python.interpreter} -c "import sfepy; sfepy.test()"
  '';

  meta = with lib; {
    broken = stdenv.isLinux && stdenv.isAarch64;
    homepage = "https://sfepy.org/";
    description = "Simple Finite Elements in Python";
    license = licenses.bsd3;