version bump to 25.05

This commit is contained in:
alsaiduq-lab 2025-05-24 18:05:54 -06:00
parent b22792614e
commit f749641e68
22 changed files with 254 additions and 576 deletions

View file

@ -3,15 +3,15 @@
python311Packages,
fetchPypi,
python-pymatting,
python-opencv-headless,
enableCuda ? false,
}:
python311Packages.buildPythonPackage rec {
pname = "rembg";
version = "2.0.50";
version = "2.0.66";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "bMt/GbplRawFZUqoXq37zAq1dribnu/ZlIYTuUIS+DU=";
sha256 = "sha256-hRBoq0zMY6artJs69z/cZntx41tmWGM9E/0HSFWPvZk=";
};
nativeBuildInputs = with python311Packages; [
poetry-core
@ -27,20 +27,22 @@ python311Packages.buildPythonPackage rec {
tqdm
aiohttp
pytorch-bin
(opencv4.override {enableCuda = enableCuda;})
]
++ [
python-opencv-headless
python-pymatting
];
pythonRemoveDeps = ["opencv-python-headless"];
dontPrecompilePages = true;
doInstallCheck = false;
doCheck = false;
dontCheck = true;
checkPhase = "echo 'Skipping tests'";
meta = with lib; {
description = "Tool to remove image backgrounds";
description = "Tool to remove image backgrounds${lib.optionalString enableCuda " with CUDA support"}";
homepage = "https://github.com/danielgatis/rembg";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; ["Cobray"];
maintainers = ["Cobray"];
};
}