nixpkgs/pkgs/development/python-modules/aioesphomeapi/default.nix

30 lines
716 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, attrs, protobuf, zeroconf }:
buildPythonPackage rec {
pname = "aioesphomeapi";
version = "2.6.3";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "esphome";
repo = pname;
rev = "v${version}";
sha256 = "1lbjxqdx63fc7qxx7xwq4b9dafmdafj7p1ggs48hyhbqfwkrv9p7";
};
propagatedBuildInputs = [ attrs protobuf zeroconf ];
2019-04-04 07:47:11 +01:00
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "aioesphomeapi" ];
2019-04-04 07:47:11 +01:00
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 ];
};
}