diff --git a/pkgs/development/python-modules/albumentations/default.nix b/pkgs/development/python-modules/albumentations/default.nix deleted file mode 100644 index 623187c8e1ec..000000000000 --- a/pkgs/development/python-modules/albumentations/default.nix +++ /dev/null @@ -1,103 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - - # build-system - setuptools, - - # dependencies - albucore, - numpy, - opencv-python, - pydantic, - pyyaml, - scipy, - - # optional dependencies - huggingface-hub, - pillow, - torch, - - # tests - deepdiff, - pytestCheckHook, - pytest-mock, - scikit-image, - scikit-learn, - torchvision, -}: - -buildPythonPackage rec { - pname = "albumentations"; - version = "2.0.8"; - pyproject = true; - - src = fetchFromGitHub { - owner = "albumentations-team"; - repo = "albumentations"; - tag = version; - hash = "sha256-8vUipdkIelRtKwMw63oUBDN/GUI0gegMGQaqDyXAOTQ="; - }; - - patches = [ - ./dont-check-for-updates.patch - ]; - - postPatch = '' - substituteInPlace setup.py \ - --replace-fail \ - 'from pkg_resources import DistributionNotFound, get_distribution' \ - 'from importlib.metadata import PackageNotFoundError as DistributionNotFound, distribution as get_distribution' - substituteInPlace tests/test_blur.py \ - --replace-fail \ - '(ImageFilter.GaussianBlur(radius=sigma))' \ - '(ImageFilter.GaussianBlur(radius=float(sigma)))' - ''; - - pythonRelaxDeps = [ "opencv-python" ]; - - build-system = [ setuptools ]; - - dependencies = [ - albucore - numpy - opencv-python - pydantic - pyyaml - scipy - ]; - - optional-dependencies = { - hub = [ huggingface-hub ]; - pytorch = [ torch ]; - text = [ pillow ]; - }; - - nativeCheckInputs = [ - deepdiff - pytestCheckHook - pytest-mock - scikit-image - scikit-learn - torch - torchvision - ]; - - disabledTests = [ - "test_pca_inverse_transform" - # these tests hang - "test_keypoint_remap_methods" - "test_multiprocessing_support" - ]; - - pythonImportsCheck = [ "albumentations" ]; - - meta = { - description = "Fast image augmentation library and easy to use wrapper around other libraries"; - homepage = "https://github.com/albumentations-team/albumentations"; - changelog = "https://github.com/albumentations-team/albumentations/releases/tag/${src.tag}"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ natsukium ]; - }; -} diff --git a/pkgs/development/python-modules/albumentations/dont-check-for-updates.patch b/pkgs/development/python-modules/albumentations/dont-check-for-updates.patch deleted file mode 100644 index 6f9214e02f70..000000000000 --- a/pkgs/development/python-modules/albumentations/dont-check-for-updates.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/albumentations/__init__.py b/albumentations/__init__.py -index 44ee9b9..ea3bc50 100644 ---- a/albumentations/__init__.py -+++ b/albumentations/__init__.py -@@ -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"}: -- check_for_updates() diff --git a/pkgs/development/rocm-modules/release-attrPaths.json b/pkgs/development/rocm-modules/release-attrPaths.json index f86ebf24603d..4b0111764e46 100644 --- a/pkgs/development/rocm-modules/release-attrPaths.json +++ b/pkgs/development/rocm-modules/release-attrPaths.json @@ -187,7 +187,6 @@ "python3Packages.accelerate", "python3Packages.adios2", "python3Packages.aigpy", - "python3Packages.albumentations", "python3Packages.ale-py", "python3Packages.anndata", "python3Packages.apptools", diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 8a566c266dc1..edb4cfa7e23d 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -83,6 +83,7 @@ mapAliases { aiosenz = throw "aiosenz was removed because Home Assistant switched to pysenz"; # added 2025-12-29 aioshutil = throw "'aioshutil' was removed because uiprotect no longer depends on it"; # added 2026-02-16 aioxmpp = throw "'aioxmpp' was removed because it depends on aiosasl, which is abandoned and does not work on modern Python versions."; # Added 2026-06-28 + albumentations = throw "'albumentations' was removed because it is unmaintained since 2025. You may now use albumentationsx"; # added 2026-07-18 amazon-kclpy = throw "amazon-kclpy has been removed because it has been marked as broken since at least November 2024."; # Added 2025-10-03 amazon_kclpy = throw "'amazon_kclpy' has been renamed to/replaced by 'amazon-kclpy'"; # Converted to throw 2025-10-29 amqplib = throw "amqplib has been removed as it was unmaintained upstream"; # Added 2025-11-22 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index da8342e4c4ca..28e742f91960 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -658,8 +658,6 @@ self: super: with self; { albucore = callPackage ../development/python-modules/albucore { }; - albumentations = callPackage ../development/python-modules/albumentations { }; - ale-py = callPackage ../development/python-modules/ale-py { }; alectryon = callPackage ../development/python-modules/alectryon { };