From 8c01dd2ca07caa1361265e86018aa25ed30ef0dd Mon Sep 17 00:00:00 2001 From: Alexander Kiselyov Date: Fri, 20 Aug 2021 14:35:39 +0300 Subject: [PATCH] python3Packages.pymanopt: tests now use nose2 (from PR review) --- .../python-modules/pymanopt/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pymanopt/default.nix b/pkgs/development/python-modules/pymanopt/default.nix index 5763c79a566d..8b1c4f2fd4cd 100644 --- a/pkgs/development/python-modules/pymanopt/default.nix +++ b/pkgs/development/python-modules/pymanopt/default.nix @@ -5,7 +5,6 @@ , scipy , autograd , nose2 -, pytestCheckHook }: buildPythonPackage rec { @@ -20,13 +19,14 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ numpy scipy ]; - checkInputs = [ nose2 autograd pytestCheckHook ]; + checkInputs = [ nose2 autograd ]; - disabledTestPaths = [ - "tests/test_problem.py" - "tests/test_tensorflow.py" - "tests/test_theano.py" - ]; + checkPhase = '' + # nose2 doesn't properly support excludes + rm tests/test_{problem,tensorflow,theano}.py + + nose2 tests -v + ''; pythonImportsCheck = [ "pymanopt" ];