saunafs: 4.6.0 -> 4.7.0 (#379649)
[NixPkgs.git] / pkgs / development / python-modules / aiohasupervisor / default.nix
blob91f9a522916034037860ebc70fd3ec96ff6b5088
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,
18 buildPythonPackage rec {
19   pname = "aiohasupervisor";
20   version = "0.3.0";
21   pyproject = true;
23   disabled = pythonOlder "3.12";
25   src = fetchFromGitHub {
26     owner = "home-assistant-libs";
27     repo = "python-supervisor-client";
28     tag = version;
29     hash = "sha256-72YRaTlgRJ8liQ1q+Hx1iCG8Av7wWk61t306fYT9gss=";
30   };
32   postPatch = ''
33     substituteInPlace pyproject.toml \
34       --replace-fail 'version = "0.0.0"' 'version = "${version}"' \
35       --replace-fail "setuptools~=68.0.0" "setuptools>=68.0.0" \
36       --replace-fail "wheel~=0.40.0" "wheel>=0.40.0"
37   '';
39   build-system = [ setuptools ];
41   dependencies = [
42     aiohttp
43     mashumaro
44     orjson
45     yarl
46   ];
48   nativeCheckInputs = [
49     aioresponses
50     pytest-aiohttp
51     pytest-cov-stub
52     pytest-timeout
53     pytestCheckHook
54   ];
56   # Import issue, check with next release
57   doCheck = false;
59   pythonImportsCheck = [ "aiohasupervisor" ];
61   meta = {
62     changelog = "https://github.com/home-assistant-libs/python-supervisor-client/releases/tag/${src.tag}";
63     description = "Client for Home Assistant Supervisor";
64     homepage = "https://github.com/home-assistant-libs/python-supervisor-client";
65     license = lib.licenses.asl20;
66     maintainers = with lib.maintainers; [ fab ];
67   };