There is now a `is_virtual` attribute to support this in https://github.com/nexB/scancode-toolkit/pull/3779, but we need to further update this based on the presence of installed dependencies.