mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 00:20:58 +00:00
python3Packages.albumentations: drop
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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()
|
||||
@@ -187,7 +187,6 @@
|
||||
"python3Packages.accelerate",
|
||||
"python3Packages.adios2",
|
||||
"python3Packages.aigpy",
|
||||
"python3Packages.albumentations",
|
||||
"python3Packages.ale-py",
|
||||
"python3Packages.anndata",
|
||||
"python3Packages.apptools",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user