From 3870afe870695d0bd53fe9cdfeb61f9a8850ea49 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sat, 30 Jul 2022 10:15:28 +0200 Subject: [PATCH] python310Packages.pyunifiprotect: Enable more tests --- .../python-modules/pyunifiprotect/default.nix | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/pyunifiprotect/default.nix b/pkgs/development/python-modules/pyunifiprotect/default.nix index 00721ea630a3..a7ba5252b4b0 100644 --- a/pkgs/development/python-modules/pyunifiprotect/default.nix +++ b/pkgs/development/python-modules/pyunifiprotect/default.nix @@ -22,6 +22,7 @@ , pytz , termcolor , typer +, ffmpeg }: buildPythonPackage rec { @@ -38,6 +39,13 @@ buildPythonPackage rec { hash = "sha256-q6fzP1wauwnRUByGc+EQ/vNJgoCWx22Qh2uZeUF4Abk="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "--cov=pyunifiprotect --cov-append" "" + substituteInPlace setup.cfg \ + --replace "pydantic!=1.9.1" "pydantic" + ''; + propagatedBuildInputs = [ aiofiles aiohttp @@ -60,6 +68,7 @@ buildPythonPackage rec { }; checkInputs = [ + ffmpeg # Required for command ffprobe pytest-aiohttp pytest-asyncio pytest-benchmark @@ -68,13 +77,6 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "--cov=pyunifiprotect --cov-append" "" - substituteInPlace setup.cfg \ - --replace "pydantic!=1.9.1" "pydantic" - ''; - pythonImportsCheck = [ "pyunifiprotect" ]; @@ -83,11 +85,6 @@ buildPythonPackage rec { "--benchmark-disable" ]; - disabledTests = [ - # Tests require ffprobe - "test_get_camera_video" - ]; - meta = with lib; { description = "Library for interacting with the Unifi Protect API"; homepage = "https://github.com/briis/pyunifiprotect";