Unverified Commit 35bd00d6 authored by Alyssa Ross's avatar Alyssa Ross Committed by GitHub
Browse files

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

parents 343f544d 5cd8d9c3
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 { };