3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/aioesphomeapi/default.nix

30 lines
875 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, isPy3k, attrs, protobuf, zeroconf }:
buildPythonPackage rec {
pname = "aioesphomeapi";
version = "2.2.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0znal1hi964acc8bl3z0ikscax7zziks838ld099rjsbffjwmwn5";
};
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";
homepage = "https://github.com/esphome/aioesphomeapi";
2019-04-04 07:47:11 +01:00
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;
2019-04-04 07:47:11 +01:00
};
}