forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.setuptools: fix NixOS#353830
- Loading branch information
1 parent
41179d8
commit a304314
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/setuptools/_vendor/importlib_metadata/__init__.py b/setuptools/_vendor/importlib_metadata/__init__.py | ||
index ed4813551..790513de1 100644 | ||
--- a/setuptools/_vendor/importlib_metadata/__init__.py | ||
+++ b/setuptools/_vendor/importlib_metadata/__init__.py | ||
@@ -836,7 +836,7 @@ class Prepared: | ||
""" | ||
PEP 503 normalization plus dashes as underscores. | ||
""" | ||
- return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_') | ||
+ return re.sub(r"[-_.]+", "-", str(name)).lower().replace('-', '_') | ||
|
||
@staticmethod | ||
def legacy_normalize(name): |