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

python313Packages.albumentations: 2.0.0 -> 2.0.5

Diff: https://github.com/albumentations-team/albumentations/compare/refs/tags/2.0.0...2.0.5

Changelog: https://github.com/albumentations-team/albumentations/releases/tag/2.0.5

+15 -14
+10 -9
pkgs/development/python-modules/albumentations/default.nix
··· 9 9 10 10 # dependencies 11 11 albucore, 12 - eval-type-backport, 13 12 numpy, 14 13 opencv-python, 15 14 pydantic, 16 15 pyyaml, 17 - scikit-image, 18 16 scipy, 19 17 20 18 # optional dependencies 21 19 huggingface-hub, 22 20 pillow, 21 + torch, 23 22 24 23 # tests 25 24 deepdiff, 26 25 pytestCheckHook, 27 26 pytest-mock, 28 - torch, 27 + scikit-image, 28 + scikit-learn, 29 29 torchvision, 30 30 }: 31 31 32 32 buildPythonPackage rec { 33 33 pname = "albumentations"; 34 - version = "2.0.0"; 34 + version = "2.0.5"; 35 35 pyproject = true; 36 36 37 37 disabled = pythonOlder "3.9"; ··· 40 40 owner = "albumentations-team"; 41 41 repo = "albumentations"; 42 42 tag = version; 43 - hash = "sha256-8WEOI2J2H4PNhyb9LoIUMofGKx9AHPiPddkQCSdh8/A="; 43 + hash = "sha256-WqU25I1DxBqZAXd2+sNMUv/HOL4towlGTnFnpCGmMgY="; 44 44 }; 45 45 46 46 patches = [ ··· 53 53 54 54 dependencies = [ 55 55 albucore 56 - eval-type-backport 57 56 numpy 58 57 opencv-python 59 58 pydantic 60 59 pyyaml 61 - scikit-image 62 60 scipy 63 61 ]; 64 62 65 63 optional-dependencies = { 66 64 hub = [ huggingface-hub ]; 65 + pytorch = [ torch ]; 67 66 text = [ pillow ]; 68 67 }; 69 68 ··· 70 71 deepdiff 71 72 pytestCheckHook 72 73 pytest-mock 74 + scikit-image 75 + scikit-learn 73 76 torch 74 77 torchvision 75 78 ]; 76 79 77 80 disabledTests = [ 78 81 "test_pca_inverse_transform" 79 - # this test hangs up 80 - "test_transforms" 82 + # test hangs 83 + "test_keypoint_remap_methods" 81 84 ]; 82 85 83 86 pythonImportsCheck = [ "albumentations" ];
+5 -5
pkgs/development/python-modules/albumentations/dont-check-for-updates.patch
··· 1 1 diff --git a/albumentations/__init__.py b/albumentations/__init__.py 2 - index 0b3b531..7c69c65 100644 2 + index 44ee9b9..ea3bc50 100644 3 3 --- a/albumentations/__init__.py 4 4 +++ b/albumentations/__init__.py 5 - @@ -7,7 +7,3 @@ from .augmentations import * 6 - from .core.composition import * 7 - from .core.serialization import * 8 - from .core.transforms_interface import * 5 + @@ -22,7 +22,3 @@ from .core.transforms_interface import * 6 + 7 + with suppress(ImportError): 8 + from .pytorch import * 9 9 - 10 10 -# Perform the version check after all other initializations 11 11 -if os.getenv("NO_ALBUMENTATIONS_UPDATE", "").lower() not in {"true", "1"}: