1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, poetry-core 6, pytest-aiohttp 7, pytest-timeout 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "motioneye-client"; 14 version = "0.3.12"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "dermotduffy"; 21 repo = pname; 22 rev = "v${version}"; 23 sha256 = "sha256-vEB9ztz0RTGoolFUVQcMV7DUthCEAx1kpwkAS2186OU="; 24 }; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 propagatedBuildInputs = [ 31 aiohttp 32 ]; 33 34 checkInputs = [ 35 pytest-aiohttp 36 pytest-timeout 37 pytestCheckHook 38 ]; 39 40 postPatch = '' 41 substituteInPlace pyproject.toml \ 42 --replace " --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov-report=term-missing --cov=motioneye_client --cov-fail-under=100" "" 43 ''; 44 45 pythonImportsCheck = [ 46 "motioneye_client" 47 ]; 48 49 meta = with lib; { 50 description = "Python library for motionEye"; 51 homepage = "https://github.com/dermotduffy/motioneye-client"; 52 license = with licenses; [ mit ]; 53 maintainers = with maintainers; [ fab ]; 54 }; 55}