From 8221f1e025fb754f284be899aee5f5ecdf8a011c Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 25 Jun 2026 12:20:06 +0200 Subject: [PATCH] motioneye: add versionCheckHook --- pkgs/by-name/mo/motioneye/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/mo/motioneye/package.nix b/pkgs/by-name/mo/motioneye/package.nix index 721cc8d75f9d..a947a722d8c1 100644 --- a/pkgs/by-name/mo/motioneye/package.nix +++ b/pkgs/by-name/mo/motioneye/package.nix @@ -2,6 +2,7 @@ lib, python3Packages, fetchFromGitHub, + versionCheckHook, }: python3Packages.buildPythonApplication rec { @@ -34,10 +35,17 @@ python3Packages.buildPythonApplication rec { pytestCheckHook ]; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + pythonImportsCheck = [ "motioneye" ]; + versionCheckProgram = "${placeholder "out"}/bin/meyectl"; + versionCheckProgramArg = "-v"; + meta = { description = "Web frontend for the motion daemon"; homepage = "https://github.com/motioneye-project/motioneye";