pip requirements parser - a mostly correct pip requirements parsing library because it uses pip's own code.
conda install conda-forge::pip-requirements-parser