nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python310Packages.tensorly: 0.7.0 -> 0.8.0

+22 -13
+22 -13
pkgs/development/python-modules/tensorly/default.nix
··· 1 - { lib 1 + { stdenv 2 + , lib 2 3 , buildPythonPackage 3 4 , fetchFromGitHub 4 5 , numpy 5 6 , pytestCheckHook 6 7 , pythonOlder 7 8 , scipy 8 - , sparse 9 9 }: 10 10 11 11 buildPythonPackage rec { 12 12 pname = "tensorly"; 13 - version = "0.7.0"; 13 + version = "0.8.0"; 14 14 format = "setuptools"; 15 15 16 16 disabled = pythonOlder "3.7"; ··· 18 18 src = fetchFromGitHub { 19 19 owner = pname; 20 20 repo = pname; 21 - rev = version; 22 - sha256 = "sha256-VcX3pCczZQUYZaD7xrrkOcj0QPJt28cYTwpZm5D/X3c="; 21 + rev = "refs/tags/${version}"; 22 + hash = "sha256-6iZvUgsoYf8fDGEuAODgfr4jCkiJwaJXlQUAsaOF9JU="; 23 23 }; 24 24 25 25 propagatedBuildInputs = [ 26 26 numpy 27 27 scipy 28 - sparse 29 28 ]; 30 29 31 30 nativeCheckInputs = [ 32 31 pytestCheckHook 33 32 ]; 34 33 35 - postPatch = '' 36 - # nose is not actually required for anything 37 - # (including testing with the minimal dependencies) 38 - substituteInPlace setup.py \ 39 - --replace ", 'nose'" "" 40 - ''; 41 - 42 34 pythonImportsCheck = [ 43 35 "tensorly" 36 + "tensorly.base" 37 + "tensorly.cp_tensor" 38 + "tensorly.tucker_tensor" 39 + "tensorly.tt_tensor" 40 + "tensorly.tt_matrix" 41 + "tensorly.parafac2_tensor" 42 + "tensorly.tenalg" 43 + "tensorly.decomposition" 44 + "tensorly.regression" 45 + "tensorly.metrics" 46 + "tensorly.random" 47 + "tensorly.datasets" 48 + "tensorly.plugins" 49 + "tensorly.contrib" 44 50 ]; 45 51 46 52 pytestFlagsArray = [ ··· 54 48 ]; 55 49 56 50 disabledTests = [ 51 + # tries to download data: 52 + "test_kinetic" 57 53 # AssertionError: Partial_SVD took too long, maybe full_matrices set wrongly 58 54 "test_svd_time" 59 55 ]; ··· 65 57 homepage = "https://tensorly.org/"; 66 58 license = licenses.bsd3; 67 59 maintainers = with maintainers; [ bcdarwin ]; 60 + broken = stdenv.isLinux && stdenv.isAarch64; # test failures: test_TTOI and test_validate_tucker_rank 68 61 }; 69 62 }