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