python310Packages.imgaug: remove

In addition to being unmaintained, it has been broken in Nixpkgs for
some time due to library incompatibilities.
This commit is contained in:
Ben Darwin 2023-07-10 22:22:59 -04:00
parent 49b8dbf0e6
commit 9f35ab953b
3 changed files with 1 additions and 86 deletions

View File

@ -1,84 +0,0 @@
{ buildPythonPackage
, fetchFromGitHub
, imageio
, imagecorruptions
, numpy
, opencv3
, pytestCheckHook
, scikit-image
, scipy
, shapely
, six
, lib
}:
buildPythonPackage rec {
pname = "imgaug";
version = "0.4.0";
src = fetchFromGitHub {
owner = "aleju";
repo = "imgaug";
rev = version;
sha256 = "17hbxndxphk3bfnq35y805adrfa6gnm5x7grjxbwdw4kqmbbqzah";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "opencv-python-headless" ""
substituteInPlace setup.py \
--replace "opencv-python-headless" ""
substituteInPlace pytest.ini \
--replace "--xdoctest --xdoctest-global-exec=\"import imgaug as ia\nfrom imgaug import augmenters as iaa\"" ""
'';
propagatedBuildInputs = [
imageio
imagecorruptions
numpy
opencv3
scikit-image
scipy
shapely
six
];
nativeCheckInputs = [
opencv3
pytestCheckHook
];
disabledTests = [
# Tests are outdated
"test_quokka_segmentation_map"
"test_pool"
"test_avg_pool"
"test_max_pool"
"test_min_pool"
"est_median_pool"
"test_alpha_is_080"
"test_face_and_lines_at_half_visibility"
"test_polygon_fully_inside_image__no_rectangular_shape"
# flaky due to timing-based assertions
"test_imap_batches_output_buffer_size"
"test_imap_batches_unordered_output_buffer_size"
];
disabledTestPaths = [
# TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
"test/augmenters/test_pooling.py"
];
pythonImportsCheck = [ "imgaug" ];
meta = with lib; {
homepage = "https://github.com/aleju/imgaug";
description = "Image augmentation for machine learning experiments";
license = licenses.mit;
maintainers = with maintainers; [ cmcdragonkai rakesh4g ];
platforms = platforms.linux;
# Scikit-image 0.19 update broke API, see https://github.com/scikit-image/scikit-image/releases/tag/v0.19.0
# and https://github.com/scikit-image/scikit-image/issues/6093
broken = lib.versionAtLeast scikit-image.version "0.19";
};
}

View File

@ -150,6 +150,7 @@ mapAliases ({
IMAPClient = imapclient; # added 2021-10-28
imdbpy = throw "imdbpy has been renamed to cinemagoer"; # added 2022-08-08
image-match = throw "image-match has been removed because it is no longer maintained"; # added 2023-06-10
imgaug = throw "imgaug has been removed as it is no longer maintained"; # added 2023-07-10
intreehook = throw "intreehooks has been removed because it is obsolete as a backend-path key was added to PEP 517"; # added 2023-04-11
ipaddress = throw "ipaddress has been removed because it is no longer required since python 2.7."; # added 2022-05-30
influxgraph = throw "influxgraph has been removed because it is no longer maintained"; # added 2022-07-10

View File

@ -4949,8 +4949,6 @@ self: super: with self; {
img2pdf = callPackage ../development/python-modules/img2pdf { };
imgaug = callPackage ../development/python-modules/imgaug { };
imgdiff = callPackage ../development/python-modules/imgdiff { };
imgsize = callPackage ../development/python-modules/imgsize { };