From 5050956be28718c234e93048223f59e43113cc97 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 5 Jan 2022 15:13:57 +0100 Subject: [PATCH] python3Packages.pydmd: disable failing and long-running tests --- .../python-modules/pydmd/default.nix | 43 +++++++++++++------ 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/pydmd/default.nix b/pkgs/development/python-modules/pydmd/default.nix index dd166b78f862..f80f90034784 100644 --- a/pkgs/development/python-modules/pydmd/default.nix +++ b/pkgs/development/python-modules/pydmd/default.nix @@ -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; }; }