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

Changed files
+15 -14
pkgs
development
python-modules
+10 -9
pkgs/development/python-modules/albumentations/default.nix
···
# dependencies
albucore,
-
eval-type-backport,
numpy,
opencv-python,
pydantic,
pyyaml,
-
scikit-image,
scipy,
# optional dependencies
huggingface-hub,
pillow,
+
torch,
# tests
deepdiff,
pytestCheckHook,
pytest-mock,
-
torch,
+
scikit-image,
+
scikit-learn,
torchvision,
}:
buildPythonPackage rec {
pname = "albumentations";
-
version = "2.0.0";
+
version = "2.0.5";
pyproject = true;
disabled = pythonOlder "3.9";
···
owner = "albumentations-team";
repo = "albumentations";
tag = version;
-
hash = "sha256-8WEOI2J2H4PNhyb9LoIUMofGKx9AHPiPddkQCSdh8/A=";
+
hash = "sha256-WqU25I1DxBqZAXd2+sNMUv/HOL4towlGTnFnpCGmMgY=";
};
patches = [
···
dependencies = [
albucore
-
eval-type-backport
numpy
opencv-python
pydantic
pyyaml
-
scikit-image
scipy
];
optional-dependencies = {
hub = [ huggingface-hub ];
+
pytorch = [ torch ];
text = [ pillow ];
};
···
deepdiff
pytestCheckHook
pytest-mock
+
scikit-image
+
scikit-learn
torch
torchvision
];
disabledTests = [
"test_pca_inverse_transform"
-
# this test hangs up
-
"test_transforms"
+
# test hangs
+
"test_keypoint_remap_methods"
];
pythonImportsCheck = [ "albumentations" ];
+5 -5
pkgs/development/python-modules/albumentations/dont-check-for-updates.patch
···
diff --git a/albumentations/__init__.py b/albumentations/__init__.py
-
index 0b3b531..7c69c65 100644
+
index 44ee9b9..ea3bc50 100644
--- a/albumentations/__init__.py
+++ b/albumentations/__init__.py
-
@@ -7,7 +7,3 @@ from .augmentations import *
-
from .core.composition import *
-
from .core.serialization import *
-
from .core.transforms_interface import *
+
@@ -22,7 +22,3 @@ from .core.transforms_interface import *
+
+
with suppress(ImportError):
+
from .pytorch import *
-
-# Perform the version check after all other initializations
-if os.getenv("NO_ALBUMENTATIONS_UPDATE", "").lower() not in {"true", "1"}: