1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 grpcio, 6 hatchling, 7 hatch-vcs, 8 protobuf, 9}: 10 11buildPythonPackage rec { 12 pname = "ghome-foyer-api"; 13 version = "1.2.3"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "KapJI"; 18 repo = "ghome-foyer-api"; 19 tag = "v${version}"; 20 hash = "sha256-hIprnkfAUbKoAp++sxu+T7MuGqLKOM1N1hqGBDOSo3k="; 21 }; 22 23 buildInputs = [ 24 hatchling 25 hatch-vcs 26 ]; 27 28 dependencies = [ 29 grpcio 30 protobuf 31 ]; 32 33 doCheck = false; # no tests 34 35 pythonRelaxDeps = [ "protobuf" ]; 36 37 meta = { 38 description = "Generated Python protobuf stubs for Google Home internal API"; 39 homepage = "https://github.com/KapJI/ghome-foyer-api"; 40 changelog = "https://github.com/KapJI/ghome-foyer-api/releases/tag/${src.tag}"; 41 license = lib.licenses.mit; 42 maintainers = with lib.maintainers; [ 43 hensoko 44 ]; 45 }; 46}