Merge pull request #114501 from wd15/sfepy-2020.4
This commit is contained in:
commit
123712800c
@ -3,12 +3,12 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "exdown";
|
pname = "exdown";
|
||||||
version = "0.7.1";
|
version = "0.8.5";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-vnSso3vmPIjX7JX+NwoxguwqwPHocJACeh5H0ClPcUI=";
|
sha256 = "1ly67whyfn74nr0dncarf3xbd96hacvzgjihx4ibckkc4h9z46bj";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
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
|
, cython
|
||||||
, python
|
, python
|
||||||
, sympy
|
, sympy
|
||||||
|
, meshio
|
||||||
|
, mpi4py
|
||||||
|
, psutil
|
||||||
|
, openssh
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "sfepy_${version}";
|
name = "sfepy";
|
||||||
version = "2019.4";
|
version = "2020.4";
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url="https://github.com/sfepy/sfepy/archive/release_${version}.tar.gz";
|
url="https://github.com/sfepy/sfepy/archive/release_${version}.tar.gz";
|
||||||
sha256 = "1l9vgcw09l6bwhgfzlbn68fzpvns25r6nkd1pcp7hz5165hs6zzn";
|
sha256 = "1wb0ik6kjg3mksxin0abr88bhsly67fpg36qjdzabhj0xn7j1yaz";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -28,12 +34,15 @@ buildPythonPackage rec {
|
|||||||
pyparsing
|
pyparsing
|
||||||
tables
|
tables
|
||||||
sympy
|
sympy
|
||||||
|
meshio
|
||||||
|
mpi4py
|
||||||
|
psutil
|
||||||
|
openssh
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# broken test
|
# broken tests
|
||||||
rm tests/test_homogenization_perfusion.py
|
rm tests/test_meshio.py
|
||||||
rm tests/test_splinebox.py
|
|
||||||
|
|
||||||
# slow tests
|
# slow tests
|
||||||
rm tests/test_input_*.py
|
rm tests/test_input_*.py
|
||||||
@ -47,6 +56,7 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
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
|
||||||
|
@ -4058,6 +4058,8 @@ in {
|
|||||||
|
|
||||||
mesa = callPackage ../development/python-modules/mesa { };
|
mesa = callPackage ../development/python-modules/mesa { };
|
||||||
|
|
||||||
|
meshio = callPackage ../development/python-modules/meshio { };
|
||||||
|
|
||||||
meshlabxml = callPackage ../development/python-modules/meshlabxml { };
|
meshlabxml = callPackage ../development/python-modules/meshlabxml { };
|
||||||
|
|
||||||
meson = disabledIf (pythonOlder "3.5") (toPythonModule ((pkgs.meson.override { python3 = python; }).overrideAttrs
|
meson = disabledIf (pythonOlder "3.5") (toPythonModule ((pkgs.meson.override { python3 = python; }).overrideAttrs
|
||||||
|
Loading…
Reference in New Issue
Block a user