Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 29 lines 887 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k, attrs, protobuf, zeroconf }: 2 3buildPythonPackage rec { 4 pname = "aioesphomeapi"; 5 version = "2.6.1"; 6 7 disabled = !isPy3k; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "139d1d348fcfe2f34926a210a32dff069935d17167c4e1cb66e8b039cbb4d6c1"; 12 }; 13 14 propagatedBuildInputs = [ attrs protobuf zeroconf ]; 15 16 # no tests implemented 17 doCheck = false; 18 19 meta = with lib; { 20 description = "Python Client for ESPHome native API"; 21 homepage = "https://github.com/esphome/aioesphomeapi"; 22 license = licenses.mit; 23 maintainers = with maintainers; [ dotlambda ]; 24 25 # Home Assistant should pin protobuf to the correct version. Can be tested using 26 # nix-build -E "with import ./. {}; home-assistant.override { extraPackages = ps: [ ps.aioesphomeapi ]; }" 27 broken = !lib.hasPrefix "3.6.1" protobuf.version; 28 }; 29}