34 buildPythonPackage rec {
35 pname = "pyunifiprotect";
39 disabled = pythonOlder "3.9";
41 src = fetchFromGitHub {
43 repo = "pyunifiprotect";
44 rev = "refs/tags/v${version}";
45 hash = "sha256-DtQm6u3O0kdVJ23Ch+hJQ6HTOt5iAMdhCzC1K/oICWk=";
48 env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
51 substituteInPlace pyproject.toml \
52 --replace-fail "--strict-markers -ra -Wd --ignore=.* --no-cov-on-fail --cov=pyunifiprotect --cov-append --maxfail=10 -n=auto" ""
73 ] ++ typer.optional-dependencies.all
74 ++ lib.optionals (pythonOlder "3.11") [
78 passthru.optional-dependencies = {
87 ffmpeg # Required for command ffprobe
97 pythonImportsCheck = [
102 "--benchmark-disable"
106 description = "Library for interacting with the Unifi Protect API";
107 mainProgram = "unifi-protect";
108 homepage = "https://github.com/briis/pyunifiprotect";
109 changelog = "https://github.com/AngellusMortis/pyunifiprotect/releases/tag/v${version}";
110 license = with licenses; [ mit ];
111 maintainers = with maintainers; [ fab ];