From 1efb386d68a53cff7dddae20b3aaba69547dc422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 20 Oct 2024 09:49:30 -0700 Subject: [PATCH 1/2] python312Packages.albumentations: don't check for updates --- .../python-modules/albumentations/default.nix | 4 ++++ .../albumentations/dont-check-for-updates.patch | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/development/python-modules/albumentations/dont-check-for-updates.patch diff --git a/pkgs/development/python-modules/albumentations/default.nix b/pkgs/development/python-modules/albumentations/default.nix index 65a26d13baa0..200b56ee89e1 100644 --- a/pkgs/development/python-modules/albumentations/default.nix +++ b/pkgs/development/python-modules/albumentations/default.nix @@ -42,6 +42,10 @@ buildPythonPackage rec { hash = "sha256-4JOqaSpBXSrAR3qrOeab+PvhXPcoEnblO0n9TSqW0bY="; }; + patches = [ + ./dont-check-for-updates.patch + ]; + pythonRemoveDeps = [ "opencv-python" ]; build-system = [ setuptools ]; diff --git a/pkgs/development/python-modules/albumentations/dont-check-for-updates.patch b/pkgs/development/python-modules/albumentations/dont-check-for-updates.patch new file mode 100644 index 000000000000..617ce259ca2b --- /dev/null +++ b/pkgs/development/python-modules/albumentations/dont-check-for-updates.patch @@ -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() From 3a424b8d3d7473298f84f57b77d0bed2c92a1e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 20 Oct 2024 10:10:21 -0700 Subject: [PATCH 2/2] python312Packages.albumentations: 1.4.17 -> 1.4.18 Diff: https://github.com/albumentations-team/albumentations/compare/refs/tags/1.4.17...1.4.18 Changelog: https://github.com/albumentations-team/albumentations/releases/tag/1.4.18 --- pkgs/development/python-modules/albumentations/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/albumentations/default.nix b/pkgs/development/python-modules/albumentations/default.nix index 200b56ee89e1..1f44d339500d 100644 --- a/pkgs/development/python-modules/albumentations/default.nix +++ b/pkgs/development/python-modules/albumentations/default.nix @@ -15,6 +15,7 @@ pydantic, pyyaml, scikit-image, + scipy, # optional dependencies huggingface-hub, @@ -30,7 +31,7 @@ buildPythonPackage rec { pname = "albumentations"; - version = "1.4.17"; + version = "1.4.18"; pyproject = true; disabled = pythonOlder "3.8"; @@ -39,7 +40,7 @@ buildPythonPackage rec { owner = "albumentations-team"; repo = "albumentations"; rev = "refs/tags/${version}"; - hash = "sha256-4JOqaSpBXSrAR3qrOeab+PvhXPcoEnblO0n9TSqW0bY="; + hash = "sha256-uAYnbglBT1mduyRnsWWjZ8axG7DzZEVcgAVeMLF48oM="; }; patches = [ @@ -58,6 +59,7 @@ buildPythonPackage rec { pydantic pyyaml scikit-image + scipy ]; optional-dependencies = {