1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 7 # build-system 8 poetry-core, 9 10 # dependencies 11 aiohttp, 12 yarl, 13 mashumaro, 14 orjson, 15 16 # tests 17 pytestCheckHook, 18 aioresponses, 19 pytest-cov-stub, 20 pytest-asyncio, 21 syrupy, 22}: 23 24buildPythonPackage rec { 25 pname = "python-homeassistant-analytics"; 26 version = "0.9.0"; 27 pyproject = true; 28 29 disabled = pythonOlder "3.11"; 30 31 src = fetchFromGitHub { 32 owner = "joostlek"; 33 repo = "python-homeassistant-analytics"; 34 tag = "v${version}"; 35 hash = "sha256-Deh3pZKpqdrlgv6LQk3NHuATz3porWiM8dewjbdbR7M="; 36 }; 37 38 build-system = [ poetry-core ]; 39 40 dependencies = [ 41 aiohttp 42 yarl 43 mashumaro 44 orjson 45 ]; 46 47 nativeCheckInputs = [ 48 pytestCheckHook 49 aioresponses 50 pytest-cov-stub 51 pytest-asyncio 52 syrupy 53 ]; 54 55 pythonImportsCheck = [ "python_homeassistant_analytics" ]; 56 57 meta = with lib; { 58 description = "Asynchronous Python client for Home Assistant Analytics"; 59 changelog = "https://github.com/joostlek/python-homeassistant-analytics/releases/tag/v${version}"; 60 homepage = "https://github.com/joostlek/python-homeassistant-analytics"; 61 license = licenses.mit; 62 maintainers = with maintainers; [ jamiemagee ]; 63 }; 64}