13 buildPythonPackage rec {
18 src = fetchFromGitHub {
22 sha256 = "1ml91yaxwx4msisxbm92yf22qfrscvk58f3z2r1jhi96pw2k4i7x";
25 propagatedBuildInputs = [ numpy scipy sparse ]
26 ++ lib.optionals (!doCheck) [ nose ]; # upstream added nose to install_requires
28 checkInputs = [ pytest nose pytorch ];
29 # also has a cupy backend, but the tests are currently broken
30 # (e.g. attempts to access cupy.qr instead of cupy.linalg.qr)
31 # and this backend also adds a non-optional CUDA dependence,
32 # as well as tensorflow and mxnet backends, but the tests don't
33 # seem to exercise these backend by default
35 # uses >= 140GB of ram to test
39 nosetests -e "test_cupy"
43 pythonImportsCheck = [ "tensorly" ];
46 description = "Tensor learning in Python";
47 homepage = "https://tensorly.org/";
48 license = licenses.bsd3;
49 maintainers = [ maintainers.bcdarwin ];