auto format

This commit is contained in:
alsaiduq-lab 2025-03-28 10:47:44 -06:00
parent d9746c34ae
commit 945140014b
2 changed files with 33 additions and 30 deletions

View file

@ -1,12 +1,12 @@
{ lib, {
python311Packages, lib,
fetchPypi, python311Packages,
stdenv, fetchPypi,
makeWrapper, stdenv,
cmake, makeWrapper,
pkg-config cmake,
pkg-config,
}: }:
python311Packages.buildPythonPackage rec { python311Packages.buildPythonPackage rec {
pname = "opencv-python-headless"; pname = "opencv-python-headless";
version = "4.11.0.86"; version = "4.11.0.86";
@ -39,7 +39,7 @@ python311Packages.buildPythonPackage rec {
doCheck = false; doCheck = false;
pythonImportsCheck = [ "cv2" ]; pythonImportsCheck = ["cv2"];
postFixup = '' postFixup = ''
wrapPythonProgramsIn "$out/lib/python3.11/site-packages" "${stdenv.cc.cc.lib}" wrapPythonProgramsIn "$out/lib/python3.11/site-packages" "${stdenv.cc.cc.lib}"
@ -50,6 +50,6 @@ python311Packages.buildPythonPackage rec {
homepage = "https://github.com/opencv/opencv-python"; homepage = "https://github.com/opencv/opencv-python";
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ "Cobray" ]; maintainers = with maintainers; ["Cobray"];
}; };
} }

View file

@ -1,8 +1,9 @@
{ lib, {
python311Packages, lib,
fetchPypi, python311Packages,
python-pymatting, fetchPypi,
python-opencv-headless python-pymatting,
python-opencv-headless,
}: }:
python311Packages.buildPythonPackage rec { python311Packages.buildPythonPackage rec {
pname = "rembg"; pname = "rembg";
@ -16,7 +17,8 @@ python311Packages.buildPythonPackage rec {
poetry-core poetry-core
setuptools setuptools
]; ];
propagatedBuildInputs = with python311Packages; [ propagatedBuildInputs = with python311Packages;
[
onnxruntime onnxruntime
pillow pillow
pooch pooch
@ -25,11 +27,12 @@ python311Packages.buildPythonPackage rec {
tqdm tqdm
aiohttp aiohttp
pytorch-bin pytorch-bin
] ++ [ ]
++ [
python-opencv-headless python-opencv-headless
python-pymatting python-pymatting
]; ];
pythonRemoveDeps = [ "opencv-python-headless" ]; pythonRemoveDeps = ["opencv-python-headless"];
dontPrecompilePages = true; dontPrecompilePages = true;
doInstallCheck = false; doInstallCheck = false;
doCheck = false; doCheck = false;
@ -38,6 +41,6 @@ python311Packages.buildPythonPackage rec {
homepage = "https://github.com/danielgatis/rembg"; homepage = "https://github.com/danielgatis/rembg";
license = licenses.mit; license = licenses.mit;
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ "Cobray" ]; maintainers = with maintainers; ["Cobray"];
}; };
} }