Blame SOURCES/easy_install-fips-mode.patch

b56321
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
b56321
index 9c9d76a..b641d21 100644
b56321
--- a/setuptools/package_index.py
b56321
+++ b/setuptools/package_index.py
b56321
@@ -232,7 +232,10 @@ class HashChecker(ContentChecker):
b56321
 
b56321
     def __init__(self, hash_name, expected):
b56321
         self.hash_name = hash_name
b56321
-        self.hash = hashlib.new(hash_name)
b56321
+        if hash_name == 'md5':
b56321
+            self.hash = hashlib.new(hash_name, usedforsecurity=False)
b56321
+        else:
b56321
+            self.hash = hashlib.new(hash_name)
b56321
         self.expected = expected
b56321
 
b56321
     @classmethod