madpah / requirements-parser

A Pip requirements file parser.
https://requirements-parser.readthedocs.io
Apache License 2.0
128 stars 42 forks source link

Can not parse --hash=sha256: ... #51

Closed hexagonrecursion closed 7 months ago

hexagonrecursion commented 4 years ago
import requirements
list(requirements.parse('cffi==1.14.3 --hash=sha256:22399ff4870fb4c7ef19fff6eeb20a8bbf15571913c181c78cb361024d574579'))

Throws an exception

InvalidRequirement: Parse error at "'--hash=s'": Expected stringEnd