diff --git a/pkgs/development/python-modules/pymanopt/default.nix b/pkgs/development/python-modules/pymanopt/default.nix index 856d7b768efd..f22058187b91 100644 --- a/pkgs/development/python-modules/pymanopt/default.nix +++ b/pkgs/development/python-modules/pymanopt/default.nix @@ -20,7 +20,7 @@ torch, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pymanopt"; version = "2.2.1"; pyproject = true; @@ -28,7 +28,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "pymanopt"; repo = "pymanopt"; - tag = version; + tag = finalAttrs.version; hash = "sha256-LOEulticgCWZBCf3qj5KFBHt0lMd4H85368IhG3DQ4g="; }; @@ -63,11 +63,18 @@ buildPythonPackage rec { "tests/manifolds/test_positive_definite.py::TestSingleSpecialHermitianPositiveDefiniteManifold::test_retraction" ]; + disabledTests = [ + # ValueError: setting an array element with a sequence + "test_check_gradient" + "test_check_hessian" + "test_check_retraction" + ]; + meta = { description = "Python toolbox for optimization on Riemannian manifolds with support for automatic differentiation"; homepage = "https://www.pymanopt.org/"; - changelog = "https://github.com/pymanopt/pymanopt/releases/tag/${version}"; + changelog = "https://github.com/pymanopt/pymanopt/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ yl3dy ]; }; -} +})