For those using poetry this might help
CFLAGS="-I$(brew --prefix graphviz)/include/ -L$(brew --prefix graphviz)/lib/" poetry install