2021-01-16 12:59:24 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, attrs, protobuf, zeroconf }:
|
2019-04-01 15:25:50 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioesphomeapi";
|
2021-05-12 18:29:25 +00:00
|
|
|
version = "2.7.0";
|
2019-04-22 21:35:37 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2019-04-01 15:25:50 +00:00
|
|
|
|
2021-01-16 12:59:24 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-12 18:29:25 +00:00
|
|
|
sha256 = "sha256-PCoSJnt8EptVq5u0+NgEBwY6zLkD87XqVRBDdqBziM8=";
|
2019-04-01 15:25:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ attrs protobuf zeroconf ];
|
|
|
|
|
2019-04-04 06:47:11 +00:00
|
|
|
# no tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-08-29 18:27:03 +00:00
|
|
|
pythonImportsCheck = [ "aioesphomeapi" ];
|
|
|
|
|
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
|
|
|
}
|