Create a convenience function to filter a given `repodata.json` file and return all `PackageCandidate`s matching the `MatchSpec`.