Loading pkgs/by-name/ba/backgroundremover/package.nix +15 −11 Original line number Diff line number Diff line Loading @@ -11,14 +11,18 @@ let p = python3.pkgs; self = p.buildPythonApplication rec { pname = "backgroundremover"; version = "0.2.8"; version = "0.2.9"; pyproject = true; build-system = [ p.setuptools ]; src = fetchFromGitHub { owner = "nadermx"; repo = "backgroundremover"; rev = "v${version}"; hash = "sha256-LjVT4j0OzfbVSQgU0z/gzRTLm7N0RQRrfxtTugWwOxs="; hash = "sha256-tQ8J3xamOzPPSbFMxIDYKv1TzK1AVwF/DWXdZlrlYvM="; }; models = runCommand "background-remover-models" { } '' Loading @@ -29,21 +33,21 @@ let ''; postPatch = '' rm -rf *dist substituteInPlace backgroundremover/bg.py backgroundremover/u2net/detect.py \ --replace-fail 'os.path.expanduser(os.path.join("~", ".u2net", model_name + ".pth"))' "os.path.join(\"$models\", model_name + \".pth\")" ''; nativeBuildInputs = [ p.setuptools p.wheel ]; substituteInPlace backgroundremover/bg.py \ --replace-fail 'import moviepy.editor' 'import moviepy' ''; pythonRelaxDeps = [ "pillow" "torchvision" "moviepy" ]; propagatedBuildInputs = [ dependencies = [ p.certifi p.charset-normalizer p.ffmpeg-python Loading Loading @@ -95,13 +99,13 @@ let doCheck = false; # no tests meta = with lib; { meta = { mainProgram = "backgroundremover"; description = "Command line tool to remove background from image and video, made by nadermx to power"; homepage = "https://BackgroundRemoverAI.com"; downloadPage = "https://github.com/nadermx/backgroundremover/releases"; license = licenses.mit; maintainers = [ maintainers.lucasew ]; license = lib.licenses.mit; maintainers = [ lib.maintainers.lucasew ]; }; }; in Loading Loading
pkgs/by-name/ba/backgroundremover/package.nix +15 −11 Original line number Diff line number Diff line Loading @@ -11,14 +11,18 @@ let p = python3.pkgs; self = p.buildPythonApplication rec { pname = "backgroundremover"; version = "0.2.8"; version = "0.2.9"; pyproject = true; build-system = [ p.setuptools ]; src = fetchFromGitHub { owner = "nadermx"; repo = "backgroundremover"; rev = "v${version}"; hash = "sha256-LjVT4j0OzfbVSQgU0z/gzRTLm7N0RQRrfxtTugWwOxs="; hash = "sha256-tQ8J3xamOzPPSbFMxIDYKv1TzK1AVwF/DWXdZlrlYvM="; }; models = runCommand "background-remover-models" { } '' Loading @@ -29,21 +33,21 @@ let ''; postPatch = '' rm -rf *dist substituteInPlace backgroundremover/bg.py backgroundremover/u2net/detect.py \ --replace-fail 'os.path.expanduser(os.path.join("~", ".u2net", model_name + ".pth"))' "os.path.join(\"$models\", model_name + \".pth\")" ''; nativeBuildInputs = [ p.setuptools p.wheel ]; substituteInPlace backgroundremover/bg.py \ --replace-fail 'import moviepy.editor' 'import moviepy' ''; pythonRelaxDeps = [ "pillow" "torchvision" "moviepy" ]; propagatedBuildInputs = [ dependencies = [ p.certifi p.charset-normalizer p.ffmpeg-python Loading Loading @@ -95,13 +99,13 @@ let doCheck = false; # no tests meta = with lib; { meta = { mainProgram = "backgroundremover"; description = "Command line tool to remove background from image and video, made by nadermx to power"; homepage = "https://BackgroundRemoverAI.com"; downloadPage = "https://github.com/nadermx/backgroundremover/releases"; license = licenses.mit; maintainers = [ maintainers.lucasew ]; license = lib.licenses.mit; maintainers = [ lib.maintainers.lucasew ]; }; }; in Loading