Hue is not buildable under Debian 9 due to OpenSSL 1.1 being default.
You need to update cryptography and pyOpenSSL to newest versions and it will nearly work.
To get it fully working (I tested only with hue 3.11 so far) I had to edit cryptography-2.1.3/setup.py and remove line with "python_version" and next one. After that I managed to built hue.
Probably selected wrong component - sorry for that.