cache update
This commit is contained in:
parent
a2bb35055f
commit
49ea73dd6f
3 changed files with 41 additions and 2 deletions
|
|
@ -6,6 +6,10 @@
|
||||||
inherit (pkgs) lib fetchPypi;
|
inherit (pkgs) lib fetchPypi;
|
||||||
python310Packages = pkgs.python310.pkgs;
|
python310Packages = pkgs.python310.pkgs;
|
||||||
};
|
};
|
||||||
|
python-opencv-headless = pkgs.callPackage ./python-opencv-headless {
|
||||||
|
inherit (pkgs) lib fetchPypi;
|
||||||
|
python310Packages = pkgs.python310.pkgs;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
fish-rust = pkgs.callPackage ./fish-rust {};
|
fish-rust = pkgs.callPackage ./fish-rust {};
|
||||||
python-pymatting = python-pymatting;
|
python-pymatting = python-pymatting;
|
||||||
|
|
|
||||||
34
pkgs/python-opencv-headless/default.nix
Normal file
34
pkgs/python-opencv-headless/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
{ lib
|
||||||
|
, python310Packages
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
|
||||||
|
python310Packages.buildPythonPackage rec {
|
||||||
|
pname = "opencv-python-headless";
|
||||||
|
version = "4.9.0.80";
|
||||||
|
format = "wheel";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version format;
|
||||||
|
dist = "cp310";
|
||||||
|
abi = "cp310";
|
||||||
|
platform = "manylinux_2_17_x86_64.manylinux2014_x86_64";
|
||||||
|
hash = "sha256-a1uEcgIUu7qxcJCyX+4umIOGa4bsRdfgSBn6jO0PnoM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python310Packages; [
|
||||||
|
numpy
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "cv2" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Wrapper package for OpenCV python bindings";
|
||||||
|
homepage = "https://github.com/opencv/opencv-python";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ "Cobray" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
python310Packages,
|
python310Packages,
|
||||||
fetchPypi,
|
fetchPypi,
|
||||||
python-pymatting,
|
python-pymatting,
|
||||||
|
python-opencv-headless,
|
||||||
}:
|
}:
|
||||||
python310Packages.buildPythonPackage rec {
|
python310Packages.buildPythonPackage rec {
|
||||||
pname = "rembg";
|
pname = "rembg";
|
||||||
|
|
@ -23,7 +24,7 @@ python310Packages.buildPythonPackage rec {
|
||||||
numpy
|
numpy
|
||||||
pillow
|
pillow
|
||||||
onnxruntime
|
onnxruntime
|
||||||
opencv4
|
python-opencv-headless
|
||||||
requests
|
requests
|
||||||
aiohttp
|
aiohttp
|
||||||
asynctest
|
asynctest
|
||||||
|
|
@ -47,6 +48,6 @@ python310Packages.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