1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/aioesphomeapi/default.nix
2019-10-27 15:29:11 +01:00

30 lines
887 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k, attrs, protobuf, zeroconf }:
buildPythonPackage rec {
pname = "aioesphomeapi";
version = "2.4.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "bef494dd39a12e2e76cf4ea772a2746f1669ee243f03ad3579085ca9605beccb";
};
propagatedBuildInputs = [ attrs protobuf zeroconf ];
# no tests implemented
doCheck = false;
meta = with lib; {
description = "Python Client for ESPHome native API";
homepage = "https://github.com/esphome/aioesphomeapi";
license = licenses.mit;
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;
};
}