32 buildPythonPackage rec {
33 pname = "pyunifiprotect";
37 disabled = pythonOlder "3.9";
39 src = fetchFromGitHub {
42 rev = "refs/tags/v${version}";
43 hash = "sha256-BFcICpWq0aBjEww9EuO6UH8oGX8fufernFqh/gihIrM=";
47 substituteInPlace pyproject.toml \
48 --replace "--cov=pyunifiprotect --cov-append" ""
51 SETUPTOOLS_SCM_PRETEND_VERSION = version;
58 propagatedBuildInputs = [
70 ] ++ typer.optional-dependencies.all;
72 passthru.optional-dependencies = {
81 ffmpeg # Required for command ffprobe
91 pythonImportsCheck = [
100 description = "Library for interacting with the Unifi Protect API";
101 homepage = "https://github.com/briis/pyunifiprotect";
102 changelog = "https://github.com/AngellusMortis/pyunifiprotect/releases/tag/v${version}";
103 license = with licenses; [ mit ];
104 maintainers = with maintainers; [ fab ];