biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / aioesphomeapi / default.nix
blob4d6f597fb2a9febe3f2dab2b35dce6615c73953f
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
7   # build-system
8   cython,
9   setuptools,
11   # dependencies
12   aiohappyeyeballs,
13   async-interrupt,
14   async-timeout,
15   chacha20poly1305-reuseable,
16   cryptography,
17   noiseprotocol,
18   protobuf,
19   zeroconf,
21   # tests
22   mock,
23   pytest-asyncio,
24   pytestCheckHook,
27 buildPythonPackage rec {
28   pname = "aioesphomeapi";
29   version = "27.0.0";
30   pyproject = true;
32   disabled = pythonOlder "3.9";
34   src = fetchFromGitHub {
35     owner = "esphome";
36     repo = "aioesphomeapi";
37     rev = "refs/tags/v${version}";
38     hash = "sha256-2FA0QleMJG69vhyC85tO4ZAY0U8qPIdyJROHKxC35GM=";
39   };
41   build-system = [
42     setuptools
43     cython
44   ];
46   pythonRelaxDeps = [ "cryptography" ];
48   dependencies = [
49     aiohappyeyeballs
50     async-interrupt
51     chacha20poly1305-reuseable
52     cryptography
53     noiseprotocol
54     protobuf
55     zeroconf
56   ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
58   nativeCheckInputs = [
59     mock
60     pytest-asyncio
61     pytestCheckHook
62   ];
64   disabledTests = [
65     # https://github.com/esphome/aioesphomeapi/issues/837
66     "test_reconnect_logic_stop_callback"
67     # python3.12.4 regression
68     # https://github.com/esphome/aioesphomeapi/issues/889
69     "test_start_connection_cannot_increase_recv_buffer"
70     "test_start_connection_can_only_increase_buffer_size_to_262144"
71   ];
73   pythonImportsCheck = [ "aioesphomeapi" ];
75   meta = with lib; {
76     description = "Python Client for ESPHome native API";
77     homepage = "https://github.com/esphome/aioesphomeapi";
78     changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/v${version}";
79     license = licenses.mit;
80     maintainers = with maintainers; [
81       fab
82       hexa
83     ];
84   };