2021-07-01 17:29:59 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-07-27 13:23:35 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
2021-09-09 19:02:36 +01:00
|
|
|
, noiseprotocol
|
2021-07-01 17:29:59 +01:00
|
|
|
, protobuf
|
2021-07-27 13:23:35 +01:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-07-01 17:29:59 +01:00
|
|
|
, zeroconf
|
|
|
|
}:
|
2019-04-01 16:25:50 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioesphomeapi";
|
2021-09-14 18:34:29 +01:00
|
|
|
version = "9.1.0";
|
2021-07-01 17:29:59 +01:00
|
|
|
format = "setuptools";
|
2019-04-22 22:35:37 +01:00
|
|
|
|
2021-07-01 17:29:59 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
2019-04-01 16:25:50 +01:00
|
|
|
|
2021-07-27 13:23:35 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "esphome";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-14 18:34:29 +01:00
|
|
|
sha256 = "sha256-MuQQ9IpLjsAStpdG8Q0uOzLQl02afStVb52/Rtd+IIs=";
|
2019-04-01 16:25:50 +01:00
|
|
|
};
|
|
|
|
|
2021-07-01 17:29:59 +01:00
|
|
|
propagatedBuildInputs = [
|
2021-09-09 19:02:36 +01:00
|
|
|
noiseprotocol
|
2021-07-01 17:29:59 +01:00
|
|
|
protobuf
|
|
|
|
zeroconf
|
|
|
|
];
|
2019-04-01 16:25:50 +01:00
|
|
|
|
2021-07-27 13:23:35 +01:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2019-04-04 07:47:11 +01:00
|
|
|
|
2021-07-01 17:29:59 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aioesphomeapi"
|
|
|
|
];
|
2020-08-29 19:27:03 +01:00
|
|
|
|
2019-04-04 07:47:11 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Client for ESPHome native API";
|
2019-09-15 16:21:04 +01:00
|
|
|
homepage = "https://github.com/esphome/aioesphomeapi";
|
2019-04-04 07:47:11 +01:00
|
|
|
license = licenses.mit;
|
2021-05-04 13:32:37 +01:00
|
|
|
maintainers = with maintainers; [ fab hexa ];
|
2019-04-04 07:47:11 +01:00
|
|
|
};
|
2019-04-01 16:25:50 +01:00
|
|
|
}
|