python3.pkgs.pymanopt: add pre and post check

This commit is contained in:
Jörg Thalheim 2022-08-16 06:02:47 +02:00
parent 7afc6dc7be
commit 1142380b3f

View File

@ -25,6 +25,7 @@ buildPythonPackage rec {
checkInputs = [ nose2 autograd matplotlib tensorflow ]; checkInputs = [ nose2 autograd matplotlib tensorflow ];
checkPhase = '' checkPhase = ''
runHook preCheck
# FIXME: Some numpy regression? # FIXME: Some numpy regression?
# Traceback (most recent call last): # Traceback (most recent call last):
# File "/build/source/tests/manifolds/test_hyperbolic.py", line 270, in test_second_order_function_approximation # File "/build/source/tests/manifolds/test_hyperbolic.py", line 270, in test_second_order_function_approximation
@ -35,6 +36,7 @@ buildPythonPackage rec {
rm tests/manifolds/test_hyperbolic.py rm tests/manifolds/test_hyperbolic.py
nose2 tests -v nose2 tests -v
runHook postCheck
''; '';
pythonImportsCheck = [ "pymanopt" ]; pythonImportsCheck = [ "pymanopt" ];