Merge pull request #121856 from fabaff/motioneye-client
This commit is contained in:
commit
94a52465b7
52
pkgs/development/python-modules/motioneye-client/default.nix
Normal file
52
pkgs/development/python-modules/motioneye-client/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 ];
|
||||
|
@ -311,6 +311,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||
"mobile_app"
|
||||
"modbus"
|
||||
"moon"
|
||||
"motioneye"
|
||||
"mqtt"
|
||||
"mqtt_eventstream"
|
||||
"mqtt_json"
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user