blob: e64310f29f0d3e243ffa5d0db40f500420c99f40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
stdenv,
}:
buildPythonPackage rec {
pname = "cv2_enumerate_cameras";
version = "1.3.3";
src = fetchFromGitHub {
owner = "lukehugh";
repo = "cv2_enumerate_cameras";
tag = "v${version}";
hash = "sha256-4QB/yWpurH/ai49PBRECdCfRRQ0tAvzGnpXj+DeP1pE=";
};
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;
};
}
|