1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 mashumaro, 8 orjson, 9 pytest-aiohttp, 10 pytest-cov-stub, 11 pytest-timeout, 12 pytestCheckHook, 13 pythonOlder, 14 setuptools, 15 yarl, 16}: 17 18buildPythonPackage rec { 19 pname = "aiohasupervisor"; 20 version = "0.3.1"; 21 pyproject = true; 22 23 disabled = pythonOlder "3.12"; 24 25 src = fetchFromGitHub { 26 owner = "home-assistant-libs"; 27 repo = "python-supervisor-client"; 28 tag = version; 29 hash = "sha256-CrcLyG8fpThYHFHH2w+UAlGxuqwpUCWsYUx2gaW9RLw="; 30 }; 31 32 postPatch = '' 33 substituteInPlace pyproject.toml \ 34 --replace-fail 'version = "0.0.0"' 'version = "${version}"' 35 ''; 36 37 build-system = [ setuptools ]; 38 39 dependencies = [ 40 aiohttp 41 mashumaro 42 orjson 43 yarl 44 ]; 45 46 nativeCheckInputs = [ 47 aioresponses 48 pytest-aiohttp 49 pytest-cov-stub 50 pytest-timeout 51 pytestCheckHook 52 ]; 53 54 pythonImportsCheck = [ "aiohasupervisor" ]; 55 56 meta = { 57 description = "Client for Home Assistant Supervisor"; 58 homepage = "https://github.com/home-assistant-libs/python-supervisor-client"; 59 changelog = "https://github.com/home-assistant-libs/python-supervisor-client/releases/tag/${src.tag}"; 60 license = lib.licenses.asl20; 61 maintainers = with lib.maintainers; [ fab ]; 62 }; 63}