2019-04-22 22:35:37 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, attrs, protobuf, zeroconf }:
|
2019-04-01 16:25:50 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioesphomeapi";
|
2019-11-19 14:35:32 +00:00
|
|
|
version = "2.4.2";
|
2019-04-22 22:35:37 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2019-04-01 16:25:50 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-19 14:35:32 +00:00
|
|
|
sha256 = "e43e0fd628506f95752e90ab1579e5495183cc3c46915d0b0a062975cb5d181b";
|
2019-04-01 16:25:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ attrs protobuf zeroconf ];
|
|
|
|
|
2019-04-04 07:47:11 +01:00
|
|
|
# no tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2019-04-22 22:35:37 +01:00
|
|
|
|
|
|
|
# Home Assistant should pin protobuf to the correct version. Can be tested using
|
|
|
|
# nix-build -E "with import ./. {}; home-assistant.override { extraPackages = ps: [ ps.aioesphomeapi ]; }"
|
|
|
|
broken = !lib.hasPrefix "3.6.1" protobuf.version;
|
2019-04-04 07:47:11 +01:00
|
|
|
};
|
2019-04-01 16:25:50 +01:00
|
|
|
}
|