Merge pull request #114501 from wd15/sfepy-2020.4
This commit is contained in:
commit
123712800c
@ -3,12 +3,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "exdown";
|
||||
version = "0.7.1";
|
||||
version = "0.8.5";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-vnSso3vmPIjX7JX+NwoxguwqwPHocJACeh5H0ClPcUI=";
|
||||
sha256 = "1ly67whyfn74nr0dncarf3xbd96hacvzgjihx4ibckkc4h9z46bj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
||||
|
40
pkgs/development/python-modules/meshio/default.nix
Normal file
40
pkgs/development/python-modules/meshio/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, numpy
|
||||
, netcdf4
|
||||
, h5py
|
||||
, exdown
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "meshio";
|
||||
version = "4.3.10";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1i34bk8bbc0dnizrlgj0yxnbzyvndkmnl6ryymxgcl9rv1abkfki";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
netcdf4
|
||||
h5py
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
exdown
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = ["meshio"];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/nschloe/meshio";
|
||||
description = "I/O for mesh files.";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ wd15 ];
|
||||
};
|
||||
}
|
@ -9,15 +9,21 @@
|
||||
, cython
|
||||
, python
|
||||
, sympy
|
||||
, meshio
|
||||
, mpi4py
|
||||
, psutil
|
||||
, openssh
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "sfepy_${version}";
|
||||
version = "2019.4";
|
||||
name = "sfepy";
|
||||
version = "2020.4";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchurl {
|
||||
url="https://github.com/sfepy/sfepy/archive/release_${version}.tar.gz";
|
||||
sha256 = "1l9vgcw09l6bwhgfzlbn68fzpvns25r6nkd1pcp7hz5165hs6zzn";
|
||||
sha256 = "1wb0ik6kjg3mksxin0abr88bhsly67fpg36qjdzabhj0xn7j1yaz";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -28,12 +34,15 @@ buildPythonPackage rec {
|
||||
pyparsing
|
||||
tables
|
||||
sympy
|
||||
meshio
|
||||
mpi4py
|
||||
psutil
|
||||
openssh
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# broken test
|
||||
rm tests/test_homogenization_perfusion.py
|
||||
rm tests/test_splinebox.py
|
||||
# broken tests
|
||||
rm tests/test_meshio.py
|
||||
|
||||
# slow tests
|
||||
rm tests/test_input_*.py
|
||||
@ -47,6 +56,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
|
||||
export HOME=$TMPDIR
|
||||
mv sfepy sfepy.hidden
|
||||
mkdir -p $HOME/.matplotlib
|
||||
|
@ -4058,6 +4058,8 @@ in {
|
||||
|
||||
mesa = callPackage ../development/python-modules/mesa { };
|
||||
|
||||
meshio = callPackage ../development/python-modules/meshio { };
|
||||
|
||||
meshlabxml = callPackage ../development/python-modules/meshlabxml { };
|
||||
|
||||
meson = disabledIf (pythonOlder "3.5") (toPythonModule ((pkgs.meson.override { python3 = python; }).overrideAttrs
|
||||
|
Loading…
Reference in New Issue
Block a user