2021-07-24 12:14:16 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-08-05 21:33:18 +00:00
|
|
|
, fetchFromGitHub
|
2023-04-12 12:48:02 +00:00
|
|
|
, async-timeout
|
2023-07-15 17:15:38 +00:00
|
|
|
, chacha20poly1305-reuseable
|
2021-08-05 21:33:18 +00:00
|
|
|
, mock
|
2021-09-18 10:52:07 +00:00
|
|
|
, noiseprotocol
|
2021-07-24 12:14:16 +00:00
|
|
|
, protobuf
|
2021-08-05 21:33:18 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-07-24 12:14:16 +00:00
|
|
|
, zeroconf
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioesphomeapi";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "16.0.1";
|
2021-07-24 12:14:16 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "esphome";
|
|
|
|
repo = pname;
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-DxEfkM//WvGqS/iWb6RIvE2raIYb/I0bcwrLqLBjCmw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-04-12 12:48:02 +00:00
|
|
|
async-timeout
|
2023-07-15 17:15:38 +00:00
|
|
|
chacha20poly1305-reuseable
|
2021-09-18 10:52:07 +00:00
|
|
|
noiseprotocol
|
2023-05-24 13:37:59 +00:00
|
|
|
protobuf
|
2021-07-24 12:14:16 +00:00
|
|
|
zeroconf
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-08-05 21:33:18 +00:00
|
|
|
mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aioesphomeapi"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Client for ESPHome native API";
|
|
|
|
homepage = "https://github.com/esphome/aioesphomeapi";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-05-04 21:07:42 +00:00
|
|
|
maintainers = with maintainers; [ fab hexa ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|