depot/third_party/nixpkgs/pkgs/development/python-modules/uvcclient/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

41 lines
813 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
mock,
pytestCheckHook
}:
buildPythonPackage rec {
pname = "uvcclient";
version = "0.11.1";
pyproject = true;
src = fetchFromGitHub {
owner = "kk7ds";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-0OUdBygL2AAtccL5hdyL+0PIRK4o+lNN3droWDysDeI=";
};
postPatch = ''
substituteInPlace tests/test_camera.py \
--replace-fail "assertEquals" "assertEqual"
'';
build-system = [ setuptools ];
nativeCheckInputs = [
mock
pytestCheckHook
];
meta = with lib; {
description = "Client for Ubiquiti's Unifi Camera NVR";
mainProgram = "uvc";
homepage = "https://github.com/kk7ds/uvcclient";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ hexa ];
};
}