evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / aiohasupervisor / default.nix
blob2f906fef19549fd71398c950acd4cc840f9c983a
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,
18 buildPythonPackage rec {
19   pname = "aiohasupervisor";
20   version = "0.2.1";
21   pyproject = true;
23   disabled = pythonOlder "3.12";
25   src = fetchPypi {
26     inherit pname version;
27     hash = "sha256-oSQhZf0lV5bJYdrfu4j8Hw1F+EQfivEPQomatHixy9k=";
28   };
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   '';
36   build-system = [ setuptools ];
38   dependencies = [
39     aiohttp
40     mashumaro
41     orjson
42     yarl
43   ];
45   nativeCheckInputs = [
46     aioresponses
47     pytest-aiohttp
48     pytest-cov-stub
49     pytest-timeout
50     pytestCheckHook
51   ];
53   # Import issue, check with next release
54   doCheck = false;
56   pythonImportsCheck = [ "aiohasupervisor" ];
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   };