python312Packages.albumentations: don't check for updates

This commit is contained in:
Robert Schütz
2024-10-20 09:49:30 -07:00
parent 314ec33e1b
commit 1efb386d68
2 changed files with 16 additions and 0 deletions
@@ -42,6 +42,10 @@ buildPythonPackage rec {
hash = "sha256-4JOqaSpBXSrAR3qrOeab+PvhXPcoEnblO0n9TSqW0bY=";
};
patches = [
./dont-check-for-updates.patch
];
pythonRemoveDeps = [ "opencv-python" ];
build-system = [ setuptools ];
@@ -0,0 +1,12 @@
diff --git a/albumentations/__init__.py b/albumentations/__init__.py
index 0b3b531..7c69c65 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 *
-
-# Perform the version check after all other initializations
-if os.getenv("NO_ALBUMENTATIONS_UPDATE", "").lower() not in {"true", "1"}:
- check_for_updates()