lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python39Packages.tensorly: disable failing test

+31 -12
+31 -12
pkgs/development/python-modules/tensorly/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 - , pytestCheckHook 5 - , isPy27 6 4 , numpy 5 + , pytestCheckHook 6 + , pythonOlder 7 7 , scipy 8 8 , sparse 9 9 }: ··· 11 11 buildPythonPackage rec { 12 12 pname = "tensorly"; 13 13 version = "0.7.0"; 14 - disabled = isPy27; 14 + format = "setuptools"; 15 + 16 + disabled = pythonOlder "3.7"; 15 17 16 18 src = fetchFromGitHub { 17 19 owner = pname; 18 20 repo = pname; 19 21 rev = version; 20 - sha256 = "VcX3pCczZQUYZaD7xrrkOcj0QPJt28cYTwpZm5D/X3c="; 22 + sha256 = "sha256-VcX3pCczZQUYZaD7xrrkOcj0QPJt28cYTwpZm5D/X3c="; 21 23 }; 22 24 23 - # nose is not actually required for anything 24 - # (including testing with the minimal dependencies) 25 + propagatedBuildInputs = [ 26 + numpy 27 + scipy 28 + sparse 29 + ]; 30 + 31 + checkInputs = [ 32 + pytestCheckHook 33 + ]; 34 + 25 35 postPatch = '' 26 - substituteInPlace setup.py --replace ", 'nose'" "" 36 + # nose is not actually required for anything 37 + # (including testing with the minimal dependencies) 38 + substituteInPlace setup.py \ 39 + --replace ", 'nose'" "" 27 40 ''; 28 41 29 - propagatedBuildInputs = [ numpy scipy sparse ]; 42 + pythonImportsCheck = [ 43 + "tensorly" 44 + ]; 30 45 31 - checkInputs = [ pytestCheckHook ]; 32 - pytestFlagsArray = [ "tensorly" ]; 46 + pytestFlagsArray = [ 47 + "tensorly" 48 + ]; 33 49 34 - pythonImportsCheck = [ "tensorly" ]; 50 + disabledTests = [ 51 + # AssertionError: Partial_SVD took too long, maybe full_matrices set wrongly 52 + "test_svd_time" 53 + ]; 35 54 36 55 meta = with lib; { 37 56 description = "Tensor learning in Python"; 38 57 homepage = "https://tensorly.org/"; 39 58 license = licenses.bsd3; 40 - maintainers = [ maintainers.bcdarwin ]; 59 + maintainers = with maintainers; [ bcdarwin ]; 41 60 }; 42 61 }