Loading pkgs/development/python-modules/albumentations/default.nix +8 −2 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ pydantic, pyyaml, scikit-image, scipy, # optional dependencies huggingface-hub, Loading @@ -30,7 +31,7 @@ buildPythonPackage rec { pname = "albumentations"; version = "1.4.17"; version = "1.4.18"; pyproject = true; disabled = pythonOlder "3.8"; Loading @@ -39,9 +40,13 @@ buildPythonPackage rec { owner = "albumentations-team"; repo = "albumentations"; rev = "refs/tags/${version}"; hash = "sha256-4JOqaSpBXSrAR3qrOeab+PvhXPcoEnblO0n9TSqW0bY="; hash = "sha256-uAYnbglBT1mduyRnsWWjZ8axG7DzZEVcgAVeMLF48oM="; }; patches = [ ./dont-check-for-updates.patch ]; pythonRemoveDeps = [ "opencv-python" ]; build-system = [ setuptools ]; Loading @@ -54,6 +59,7 @@ buildPythonPackage rec { pydantic pyyaml scikit-image scipy ]; optional-dependencies = { Loading pkgs/development/python-modules/albumentations/dont-check-for-updates.patch 0 → 100644 +12 −0 Original line number Diff line number Diff line 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() Loading
pkgs/development/python-modules/albumentations/default.nix +8 −2 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ pydantic, pyyaml, scikit-image, scipy, # optional dependencies huggingface-hub, Loading @@ -30,7 +31,7 @@ buildPythonPackage rec { pname = "albumentations"; version = "1.4.17"; version = "1.4.18"; pyproject = true; disabled = pythonOlder "3.8"; Loading @@ -39,9 +40,13 @@ buildPythonPackage rec { owner = "albumentations-team"; repo = "albumentations"; rev = "refs/tags/${version}"; hash = "sha256-4JOqaSpBXSrAR3qrOeab+PvhXPcoEnblO0n9TSqW0bY="; hash = "sha256-uAYnbglBT1mduyRnsWWjZ8axG7DzZEVcgAVeMLF48oM="; }; patches = [ ./dont-check-for-updates.patch ]; pythonRemoveDeps = [ "opencv-python" ]; build-system = [ setuptools ]; Loading @@ -54,6 +59,7 @@ buildPythonPackage rec { pydantic pyyaml scikit-image scipy ]; optional-dependencies = { Loading
pkgs/development/python-modules/albumentations/dont-check-for-updates.patch 0 → 100644 +12 −0 Original line number Diff line number Diff line 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()