auto format
This commit is contained in:
parent
d9746c34ae
commit
945140014b
2 changed files with 33 additions and 30 deletions
|
|
@ -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"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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,20 +17,22 @@ python311Packages.buildPythonPackage rec {
|
||||||
poetry-core
|
poetry-core
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
propagatedBuildInputs = with python311Packages; [
|
propagatedBuildInputs = with python311Packages;
|
||||||
onnxruntime
|
[
|
||||||
pillow
|
onnxruntime
|
||||||
pooch
|
pillow
|
||||||
scikit-image
|
pooch
|
||||||
scipy
|
scikit-image
|
||||||
tqdm
|
scipy
|
||||||
aiohttp
|
tqdm
|
||||||
pytorch-bin
|
aiohttp
|
||||||
] ++ [
|
pytorch-bin
|
||||||
python-opencv-headless
|
]
|
||||||
python-pymatting
|
++ [
|
||||||
];
|
python-opencv-headless
|
||||||
pythonRemoveDeps = [ "opencv-python-headless" ];
|
python-pymatting
|
||||||
|
];
|
||||||
|
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"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue