flake8 package provides the actual binary, python3-flake8 is a dependency for this and provides the module