Squash merge dev into master
This commit is contained in:
parent
05fa2b59f2
commit
a009895ea0
4 changed files with 0 additions and 207 deletions
|
|
@ -1,50 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
python311Packages,
|
|
||||||
fetchFromGitHub,
|
|
||||||
pkgs,
|
|
||||||
}: let
|
|
||||||
cusPydantic = python311Packages.buildPythonPackage {
|
|
||||||
pname = "pydantic";
|
|
||||||
version = "1.10.18";
|
|
||||||
format = "wheel";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "https://files.pythonhosted.org/packages/py3/p/pydantic/pydantic-1.10.18-py3-none-any.whl";
|
|
||||||
sha256 = "10iaggdy69wk6qkagqcnlsqchrsidvqhgh68r5p78lpw3yw8k886";
|
|
||||||
};
|
|
||||||
doCheck = false;
|
|
||||||
propagatedBuildInputs = with python311Packages; [
|
|
||||||
typing-extensions
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in
|
|
||||||
python311Packages.buildPythonPackage rec {
|
|
||||||
pname = "nginx-language-server";
|
|
||||||
version = "0.8.0";
|
|
||||||
format = "pyproject";
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "pappasam";
|
|
||||||
repo = "nginx-language-server";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "AXWrNt4f3jkAbidE1goDgFicu4sSBv08f/Igyh2bRII=";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = with python311Packages; [
|
|
||||||
setuptools
|
|
||||||
poetry-core
|
|
||||||
];
|
|
||||||
propagatedBuildInputs = with python311Packages; [
|
|
||||||
pygls
|
|
||||||
cusPydantic
|
|
||||||
crossplane
|
|
||||||
lsprotocol
|
|
||||||
];
|
|
||||||
pythonImportsCheck = ["nginx_language_server"];
|
|
||||||
doCheck = false;
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A language server for nginx";
|
|
||||||
homepage = "https://github.com/pappasam/nginx-language-server";
|
|
||||||
license = licenses.gpl3Only;
|
|
||||||
platforms = platforms.all;
|
|
||||||
maintainers = with maintainers; ["Cobray"];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,75 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
python311Packages,
|
|
||||||
fetchPypi,
|
|
||||||
stdenv,
|
|
||||||
makeWrapper,
|
|
||||||
cmake,
|
|
||||||
pkg-config,
|
|
||||||
cudaPackages,
|
|
||||||
enableCuda ? false,
|
|
||||||
}:
|
|
||||||
python311Packages.buildPythonPackage rec {
|
|
||||||
pname = "opencv-python-headless";
|
|
||||||
version = "4.11.0.86";
|
|
||||||
format = "other";
|
|
||||||
src = fetchPypi {
|
|
||||||
pname = "opencv-python-headless";
|
|
||||||
inherit version;
|
|
||||||
sha256 = "mW6ygspLQ+xqOXJBTeDiMx9dnNorQQkaSXOcGfuEN5g=";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = with python311Packages;
|
|
||||||
[
|
|
||||||
cmake
|
|
||||||
pkg-config
|
|
||||||
makeWrapper
|
|
||||||
scikit-build
|
|
||||||
]
|
|
||||||
++ lib.optionals enableCuda (with cudaPackages; [
|
|
||||||
cudatoolkit
|
|
||||||
]);
|
|
||||||
buildInputs = with python311Packages;
|
|
||||||
[
|
|
||||||
scikit-build
|
|
||||||
]
|
|
||||||
++ lib.optionals enableCuda (with cudaPackages; [
|
|
||||||
cudatoolkit
|
|
||||||
cudnn
|
|
||||||
]);
|
|
||||||
propagatedBuildInputs = with python311Packages; [
|
|
||||||
setuptools
|
|
||||||
numpy
|
|
||||||
];
|
|
||||||
dontUseCmakeConfigure = true;
|
|
||||||
SKBUILD_CMAKE_ARGS =
|
|
||||||
[
|
|
||||||
"-DCMAKE_BUILD_TYPE=Release"
|
|
||||||
"-DBUILD_opencv_apps=OFF"
|
|
||||||
"-DBUILD_EXAMPLES=OFF"
|
|
||||||
"-DBUILD_TESTS=OFF"
|
|
||||||
"-DBUILD_PERF_TESTS=OFF"
|
|
||||||
"-DBUILD_DOCS=OFF"
|
|
||||||
"-DOPENCV_GENERATE_PKGCONFIG=ON"
|
|
||||||
"-DCMAKE_BUILD_PARALLEL_LEVEL=$(nproc)"
|
|
||||||
]
|
|
||||||
++ lib.optionals enableCuda [
|
|
||||||
"-DWITH_CUDA=ON"
|
|
||||||
"-DCUDA_TOOLKIT_ROOT_DIR=${cudaPackages.cudatoolkit}"
|
|
||||||
"-DWITH_CUDNN=ON"
|
|
||||||
];
|
|
||||||
postPatch = lib.optionalString enableCuda ''
|
|
||||||
export LD_LIBRARY_PATH=${cudaPackages.cudatoolkit.lib}/lib:$LD_LIBRARY_PATH
|
|
||||||
'';
|
|
||||||
doCheck = false;
|
|
||||||
pythonImportsCheck = ["cv2"];
|
|
||||||
postFixup = ''
|
|
||||||
wrapPythonProgramsIn "$out/lib/python3.11/site-packages" "${stdenv.cc.cc.lib}${lib.optionalString enableCuda ":${cudaPackages.cudatoolkit.lib}/lib"}"
|
|
||||||
'';
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Wrapper package for OpenCV python bindings (headless)${lib.optionalString enableCuda " with CUDA support"}";
|
|
||||||
homepage = "https://github.com/opencv/opencv-python";
|
|
||||||
license = licenses.mit;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = ["Cobray"];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
python311Packages,
|
|
||||||
fetchPypi,
|
|
||||||
}:
|
|
||||||
python311Packages.buildPythonPackage rec {
|
|
||||||
pname = "pymatting";
|
|
||||||
version = "1.1.13";
|
|
||||||
format = "pyproject";
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
hash = "sha256-LNt8S++s3e9Netwt6ONKJy3mOdYIrlwKCGE9+kJTgQE=";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = with python311Packages; [
|
|
||||||
setuptools
|
|
||||||
poetry-core
|
|
||||||
];
|
|
||||||
propagatedBuildInputs = with python311Packages; [
|
|
||||||
numpy
|
|
||||||
scipy
|
|
||||||
pillow
|
|
||||||
numba
|
|
||||||
];
|
|
||||||
buildInputs = [
|
|
||||||
];
|
|
||||||
doCheck = false;
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A library for alpha matting";
|
|
||||||
homepage = "https://github.com/pymatting/pymatting";
|
|
||||||
license = licenses.mit;
|
|
||||||
platforms = platforms.all;
|
|
||||||
maintainers = ["Cobray"];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
python311Packages,
|
|
||||||
fetchPypi,
|
|
||||||
python-pymatting,
|
|
||||||
enableCuda ? false,
|
|
||||||
}:
|
|
||||||
python311Packages.buildPythonPackage rec {
|
|
||||||
pname = "rembg";
|
|
||||||
version = "2.0.66";
|
|
||||||
format = "pyproject";
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "sha256-hRBoq0zMY6artJs69z/cZntx41tmWGM9E/0HSFWPvZk=";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = with python311Packages; [
|
|
||||||
poetry-core
|
|
||||||
setuptools
|
|
||||||
];
|
|
||||||
propagatedBuildInputs = with python311Packages;
|
|
||||||
[
|
|
||||||
onnxruntime
|
|
||||||
pillow
|
|
||||||
pooch
|
|
||||||
scikit-image
|
|
||||||
scipy
|
|
||||||
tqdm
|
|
||||||
aiohttp
|
|
||||||
pytorch-bin
|
|
||||||
(opencv4.override {enableCuda = enableCuda;})
|
|
||||||
]
|
|
||||||
++ [
|
|
||||||
python-pymatting
|
|
||||||
];
|
|
||||||
pythonRemoveDeps = ["opencv-python-headless"];
|
|
||||||
dontPrecompilePages = true;
|
|
||||||
doInstallCheck = false;
|
|
||||||
doCheck = false;
|
|
||||||
dontCheck = true;
|
|
||||||
checkPhase = "echo 'Skipping tests'";
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Tool to remove image backgrounds${lib.optionalString enableCuda " with CUDA support"}";
|
|
||||||
homepage = "https://github.com/danielgatis/rembg";
|
|
||||||
license = licenses.mit;
|
|
||||||
platforms = platforms.all;
|
|
||||||
maintainers = ["Cobray"];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue