python3Packages.pymanopt: marked as broken
This commit is contained in:
parent
c719e9d8b3
commit
17eec7a30d
|
@ -5,14 +5,14 @@
|
||||||
, scipy
|
, scipy
|
||||||
, torch
|
, torch
|
||||||
, autograd
|
, autograd
|
||||||
, nose2
|
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, tensorflow
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pymanopt";
|
pname = "pymanopt";
|
||||||
version = "2.1.1";
|
version = "2.1.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
|
@ -22,25 +22,21 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy scipy torch ];
|
propagatedBuildInputs = [ numpy scipy torch ];
|
||||||
nativeCheckInputs = [ nose2 autograd matplotlib tensorflow ];
|
nativeCheckInputs = [ autograd matplotlib pytestCheckHook ];
|
||||||
|
|
||||||
checkPhase = ''
|
preCheck = ''
|
||||||
runHook preCheck
|
substituteInPlace "tests/conftest.py" \
|
||||||
|
--replace "import tensorflow as tf" ""
|
||||||
# upstream themselves seem unsure about the robustness of these
|
substituteInPlace "tests/conftest.py" \
|
||||||
# tests - see https://github.com/pymanopt/pymanopt/issues/219
|
--replace "tf.random.set_seed(seed)" ""
|
||||||
grep -lr 'test_second_order_function_approximation' tests/ | while read -r fn ; do
|
|
||||||
substituteInPlace "$fn" \
|
|
||||||
--replace \
|
|
||||||
'test_second_order_function_approximation' \
|
|
||||||
'dont_test_second_order_function_approximation'
|
|
||||||
done
|
|
||||||
|
|
||||||
nose2 tests -v
|
|
||||||
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
"tests/test_examples.py"
|
||||||
|
"tests/backends/test_tensorflow.py"
|
||||||
|
"tests/test_problem.py"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "pymanopt" ];
|
pythonImportsCheck = [ "pymanopt" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -48,5 +44,6 @@ buildPythonPackage rec {
|
||||||
homepage = "https://www.pymanopt.org/";
|
homepage = "https://www.pymanopt.org/";
|
||||||
license = lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
maintainers = with lib.maintainers; [ yl3dy ];
|
maintainers = with lib.maintainers; [ yl3dy ];
|
||||||
|
broken = lib.versionAtLeast scipy.version "1.10.0";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue