In whitelist.py, there is an import on pkg_resources from setuptools.
|
from pkg_resources import iter_entry_points |
This makes the code fail on environments without setuptools.
I suggest avoiding using the package altogether or making it a dependency (eventually optional)