12 buildPythonPackage rec {
15 format = "setuptools";
17 src = fetchFromGitHub {
20 rev = "refs/tags/${version}";
21 hash = "sha256-pDFRYhswcuAHG9pcqvzXIy3Ivhxe5R5Ric7AFRh7MK4=";
24 propagatedBuildInputs = [ numpy scipy torch ];
25 nativeCheckInputs = [ autograd matplotlib pytestCheckHook ];
28 substituteInPlace "tests/conftest.py" \
29 --replace "import tensorflow as tf" ""
30 substituteInPlace "tests/conftest.py" \
31 --replace "tf.random.set_seed(seed)" ""
35 "tests/test_examples.py"
36 "tests/backends/test_tensorflow.py"
37 "tests/test_problem.py"
40 pythonImportsCheck = [ "pymanopt" ];
43 description = "Python toolbox for optimization on Riemannian manifolds with support for automatic differentiation";
44 homepage = "https://www.pymanopt.org/";
45 license = lib.licenses.bsd3;
46 maintainers = with lib.maintainers; [ yl3dy ];
47 broken = lib.versionAtLeast scipy.version "1.10.0";