nix-dotfiles/pkgs/python-rembg/default.nix
2025-03-20 22:08:02 -06:00

52 lines
923 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
opencv-python
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" ];
};
}