mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-23 00:13:02 +03:00
pip: fix bug with parsing requirements
When parsing the pip report, parsing some requirements could fail, as the packaging library used for the parsing was different from the one used by pip internally. This makes sure that always the pip internals packaging library is used, which should prevent inconsistencies like that.
This commit is contained in:
parent
3dd23864cb
commit
66658fb429
@ -1,10 +1,8 @@
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
from packaging.requirements import Requirement
|
||||
from pip._vendor.packaging.requirements import Requirement
|
||||
from packaging.utils import (
|
||||
canonicalize_name,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user