python3Packages.cv2-enumerate-cameras: init at 1.2.2 (#439863)

This commit is contained in:
Alyssa Ross
2025-09-17 06:49:47 +00:00
committed by GitHub
2 changed files with 35 additions and 0 deletions
@@ -0,0 +1,33 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
stdenv,
}:
buildPythonPackage rec {
pname = "cv2_enumerate_cameras";
version = "1.2.2";
src = fetchFromGitHub {
owner = "lukehugh";
repo = "cv2_enumerate_cameras";
tag = "v${version}";
hash = "sha256-BInGgnsvRrfTaofqZzf5LawM/Lbr0vdgU/l7j/VQi1o=";
};
pyproject = true;
build-system = [ setuptools ];
pythonImportsCheck = [ "cv2_enumerate_cameras" ];
meta = {
homepage = "https://github.com/lukehugh/cv2_enumerate_cameras";
description = "Retrieve the connected camera's name, VID, PID, and the corresponding OpenCV index";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.qyliss ];
# Needs pyobjc-framework-avfoundation; not currently packaged.
broken = stdenv.hostPlatform.isDarwin;
};
}
+2
View File
@@ -3230,6 +3230,8 @@ self: super: with self; {
cut-cross-entropy = callPackage ../development/python-modules/cut-cross-entropy { };
cv2-enumerate-cameras = callPackage ../development/python-modules/cv2-enumerate-cameras { };
cvelib = callPackage ../development/python-modules/cvelib { };
cvss = callPackage ../development/python-modules/cvss { };