52 lines
917 B
Nix
52 lines
917 B
Nix
{
|
|
lib,
|
|
python310Packages,
|
|
fetchPypi,
|
|
python-pymatting,
|
|
}:
|
|
python310Packages.buildPythonPackage rec {
|
|
pname = "rembg";
|
|
version = "2.0.50";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-bMt/GbplRawFZUqoXq37zAq1dribnu/ZlIYTuUIS+DU=";
|
|
};
|
|
|
|
nativeBuildInputs = with python310Packages; [
|
|
poetry-core
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = with python310Packages; [
|
|
numpy
|
|
pillow
|
|
onnxruntime
|
|
opencv4
|
|
requests
|
|
aiohttp
|
|
asynctest
|
|
click
|
|
filetype
|
|
pooch
|
|
pympler
|
|
python-pymatting
|
|
scikit-image
|
|
scipy
|
|
tqdm
|
|
];
|
|
|
|
buildInputs = [
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Tool to remove image backgrounds";
|
|
homepage = "https://github.com/danielgatis/rembg";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ "Cobray" ];
|
|
};
|
|
}
|