From faa5144a470d4a2ce8b6cc905cec89220e6ffde3 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 8 Mar 2026 16:02:05 +0100 Subject: [PATCH] motioneye: init at 0.43.1 --- pkgs/by-name/mo/motioneye/package.nix | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 pkgs/by-name/mo/motioneye/package.nix diff --git a/pkgs/by-name/mo/motioneye/package.nix b/pkgs/by-name/mo/motioneye/package.nix new file mode 100644 index 000000000000..7a5ee72311ef --- /dev/null +++ b/pkgs/by-name/mo/motioneye/package.nix @@ -0,0 +1,57 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + fetchpatch, +}: + +python3Packages.buildPythonApplication rec { + pname = "motioneye"; + version = "0.43.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "motioneye-project"; + repo = "motioneye"; + tag = version; + hash = "sha256-ckOgYmOP5irjNutcC3FMZPBexn/CldG0UtFZ+tPYNJ4="; + }; + + patches = [ + # fix pytest + # https://github.com/motioneye-project/motioneye/pull/3271 + (fetchpatch { + url = "https://github.com/motioneye-project/motioneye/commit/41c0727e2872af1b758743c41b529e76dcac6f84.patch"; + hash = "sha256-0zDveoAN1T0SuCob0U/9GEGTh7pj2CXH/j4YrjO0VE0="; + includes = [ "conftest.py" ]; + }) + ]; + + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = with python3Packages; [ + babel + boto3 + jinja2 + pillow + pycurl + tornado + ]; + + nativeCheckInputs = with python3Packages; [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "motioneye" + ]; + + meta = { + description = "Web frontend for the motion daemon"; + homepage = "https://github.com/motioneye-project/motioneye"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ marcel ]; + }; +}