Merge pull request #121856 from fabaff/motioneye-client

This commit is contained in:
Martin Weinelt 2021-05-10 20:48:41 +02:00 committed by GitHub
commit 94a52465b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 56 additions and 1 deletions

View File

@ -0,0 +1,52 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-timeout
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "motioneye-client";
version = "0.3.6";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "dermotduffy";
repo = pname;
rev = "v${version}";
sha256 = "0j28rn7059km7q6z1kalp0pjcrd42wcm5mnbi94j93bvfld97w70";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytest-aiohttp
pytest-timeout
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov-report=term-missing --cov=motioneye_client --cov-fail-under=100" ""
'';
pythonImportsCheck = [ "motioneye_client" ];
meta = with lib; {
description = "Python library for motionEye";
homepage = "https://github.com/dermotduffy/motioneye-client";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -521,7 +521,7 @@
"monoprice" = ps: with ps; [ ]; # missing inputs: pymonoprice
"moon" = ps: with ps; [ ];
"motion_blinds" = ps: with ps; [ ]; # missing inputs: motionblinds
"motioneye" = ps: with ps; [ ]; # missing inputs: motioneye-client
"motioneye" = ps: with ps; [ motioneye-client ];
"mpchc" = ps: with ps; [ ];
"mpd" = ps: with ps; [ mpd2 ];
"mqtt" = ps: with ps; [ aiohttp-cors paho-mqtt ];

View File

@ -311,6 +311,7 @@ in with py.pkgs; buildPythonApplication rec {
"mobile_app"
"modbus"
"moon"
"motioneye"
"mqtt"
"mqtt_eventstream"
"mqtt_json"

View File

@ -4273,6 +4273,8 @@ in {
mortgage = callPackage ../development/python-modules/mortgage { };
motioneye-client = callPackage ../development/python-modules/motioneye-client { };
moto = callPackage ../development/python-modules/moto { };
moviepy = callPackage ../development/python-modules/moviepy { };