Merge pull request #214016 from bcdarwin/update-python3-rising

python310Packages.rising: 0.2.1 -> 0.3.0

authored by Weijia Wang and committed by GitHub f32a761d e0943392

+23 -8
+23 -8
pkgs/development/python-modules/rising/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , isPy27 3 + , pythonOlder 4 4 , fetchFromGitHub 5 5 , pytestCheckHook 6 + , pythonRelaxDepsHook 6 7 , dill 8 + , lightning-utilities 7 9 , numpy 8 10 , torch 9 11 , threadpoolctl ··· 12 14 13 15 buildPythonPackage rec { 14 16 pname = "rising"; 15 - version = "0.2.1"; 16 - 17 - disabled = isPy27; 17 + version = "0.3.0"; 18 + disabled = pythonOlder "TODO"; 18 19 19 20 src = fetchFromGitHub { 20 21 owner = "PhoenixDL"; 21 22 repo = pname; 22 - rev = "v${version}"; 23 - sha256 = "15wYWToXRae1cMpHWbJwzAp0THx6ED9ixQgL+n1v9PI="; 23 + rev = "refs/tags/v${version}"; 24 + hash = "sha256-sBzVTst5Tp2oZZ+Xsg3M7uAMbucL6idlpYwHvib3EaY="; 24 25 }; 25 26 26 - propagatedBuildInputs = [ numpy torch threadpoolctl tqdm ]; 27 + nativeBuildInputs = [ pythonRelaxDepsHook ]; 28 + 29 + pythonRelaxDeps = [ "lightning-utilities" ]; 30 + 31 + propagatedBuildInputs = [ 32 + lightning-utilities numpy torch threadpoolctl tqdm 33 + ]; 27 34 nativeCheckInputs = [ dill pytestCheckHook ]; 28 35 29 - disabledTests = [ "test_affine" ]; # deprecated division operator '/' 36 + pythonImportsCheck = [ 37 + "rising" 38 + "rising.loading" 39 + "rising.ops" 40 + "rising.random" 41 + "rising.transforms" 42 + "rising.transforms.functional" 43 + "rising.utils" 44 + ]; 30 45 31 46 meta = { 32 47 description = "High-performance data loading and augmentation library in PyTorch";