python3Packages.aioesphomeapi: fix build

This commit is contained in:
Jonathan Ringer 2020-08-29 11:27:03 -07:00 committed by Frederik Rietdijk
parent fb6d6a518c
commit d49fc3600e

View File

@ -1,14 +1,16 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, attrs, protobuf, zeroconf }: { lib, buildPythonPackage, fetchFromGitHub, isPy3k, attrs, protobuf, zeroconf }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioesphomeapi"; pname = "aioesphomeapi";
version = "2.6.1"; version = "2.6.3";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "esphome";
sha256 = "139d1d348fcfe2f34926a210a32dff069935d17167c4e1cb66e8b039cbb4d6c1"; repo = pname;
rev = "v${version}";
sha256 = "1lbjxqdx63fc7qxx7xwq4b9dafmdafj7p1ggs48hyhbqfwkrv9p7";
}; };
propagatedBuildInputs = [ attrs protobuf zeroconf ]; propagatedBuildInputs = [ attrs protobuf zeroconf ];
@ -16,14 +18,12 @@ buildPythonPackage rec {
# no tests implemented # no tests implemented
doCheck = false; doCheck = false;
pythonImportsCheck = [ "aioesphomeapi" ];
meta = with lib; { meta = with lib; {
description = "Python Client for ESPHome native API"; description = "Python Client for ESPHome native API";
homepage = "https://github.com/esphome/aioesphomeapi"; homepage = "https://github.com/esphome/aioesphomeapi";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ dotlambda ]; maintainers = with maintainers; [ dotlambda ];
# 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;
}; };
} }