1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchPypi,
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.2.1";
21 pyproject = true;
22
23 disabled = pythonOlder "3.12";
24
25 src = fetchPypi {
26 inherit pname version;
27 hash = "sha256-oSQhZf0lV5bJYdrfu4j8Hw1F+EQfivEPQomatHixy9k=";
28 };
29
30 postPatch = ''
31 substituteInPlace pyproject.toml \
32 --replace-fail "setuptools~=68.0.0" "setuptools>=68.0.0" \
33 --replace-fail "wheel~=0.40.0" "wheel>=0.40.0"
34 '';
35
36 build-system = [ setuptools ];
37
38 dependencies = [
39 aiohttp
40 mashumaro
41 orjson
42 yarl
43 ];
44
45 nativeCheckInputs = [
46 aioresponses
47 pytest-aiohttp
48 pytest-cov-stub
49 pytest-timeout
50 pytestCheckHook
51 ];
52
53 # Import issue, check with next release
54 doCheck = false;
55
56 pythonImportsCheck = [ "aiohasupervisor" ];
57
58 meta = {
59 description = "Client for Home Assistant Supervisor";
60 homepage = "https://github.com/home-assistant-libs/python-supervisor-client";
61 license = lib.licenses.asl20;
62 maintainers = with lib.maintainers; [ fab ];
63 };
64}