def METHOD_NAME(self, run):
    self.collector.config = self._get_build_config(
        {"python": {"install": [{"requirements": "docs/requirements.txt"}]}}
    )
    out = dedent(
        """
        requests-mock==1.8.0
        requests-toolbelt==0.9.1
        rstcheck==3.3.1
        Sphinx>=5  # >= specs
        requests   # no specs
        """
    )
    run.return_value = (0, out, "")
    self.assertEqual(
        self.collector._get_user_pip_packages(),
        [
            {"name": "requests-mock", "version": "1.8.0"},
            {"name": "requests-toolbelt", "version": "0.9.1"},
            {"name": "rstcheck", "version": "3.3.1"},
            {"name": "sphinx", "version": "unknown"},  # >= specs
            {"name": "requests", "version": "undefined"},  # no specs
        ],
    )