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