11 buildPythonPackage rec {
14 format = "setuptools";
16 disabled = pythonOlder "3.7";
18 src = fetchFromGitHub {
21 rev = "refs/tags/${version}";
22 hash = "sha256-kYKyLY2V6M53co+26ZTZP4U6bHkFebKI5Uhh1x1/N58=";
25 propagatedBuildInputs = [
30 nativeCheckInputs = [ pytestCheckHook ];
32 pythonImportsCheck = [
36 "tensorly.tucker_tensor"
39 "tensorly.parafac2_tensor"
41 "tensorly.decomposition"
50 pytestFlagsArray = [ "tensorly" ];
53 # this can fail on hydra and other peoples machines, check with others before re-enabling
54 # AssertionError: Partial_SVD took too long, maybe full_matrices set wrongly
59 description = "Tensor learning in Python";
60 homepage = "https://tensorly.org/";
61 license = licenses.bsd3;
62 maintainers = with maintainers; [ bcdarwin ];