Merge pull request #153603 from fabaff/fix-pydmd

python3Packages.pydmd: disable failing and long-running tests
This commit is contained in:
Fabian Affolter 2022-01-05 21:48:51 +01:00 committed by GitHub
commit 7467d467cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,18 +1,21 @@
{ lib
, stdenv
, python
, fetchFromGitHub
, buildPythonPackage
, fetchFromGitHub
, future
, numpy
, scipy
, matplotlib
, nose
, numpy
, pytestCheckHook
, pythonOlder
, scipy
}:
buildPythonPackage rec {
pname = "pydmd";
version = "0.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "mathLab";
@ -21,19 +24,31 @@ buildPythonPackage rec {
sha256 = "1qwa3dyrrm20x0pzr7rklcw7433fd822n4m8bbbdd7z83xh6xm8g";
};
propagatedBuildInputs = [ future numpy scipy matplotlib ];
checkInputs = [ nose ];
propagatedBuildInputs = [
future
matplotlib
numpy
scipy
];
checkPhase = ''
${python.interpreter} test.py
'';
pythonImportsCheck = [ "pydmd" ];
checkInputs = [
pytestCheckHook
];
meta = {
disabledTestPaths = [
# Those tests take over 1.5 h on hydra. Also, an error and two failures
"tests/test_spdmd.py"
];
pythonImportsCheck = [
"pydmd"
];
meta = with lib; {
description = "Python Dynamic Mode Decomposition";
homepage = "https://mathlab.github.io/PyDMD/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yl3dy ];
license = licenses.mit;
maintainers = with maintainers; [ yl3dy ];
broken = stdenv.hostPlatform.isAarch64;
};
}