@@ -208,7 +208,7 @@ in with passthru; stdenv.mkDerivation {
208208 # * https://bugs.python.org/issue35523
209209 # * https://github.com/python/cpython/commit/e6b247c8e524
210210 ./3.7/no-win64-workaround.patch
211− ] ++ optionals (isPy37 || isPy38 || isPy39) [
211+ ] ++ optionals (pythonAtLeast "3.7") [
212212 # Fix darwin build https://bugs.python.org/issue34027
213213 ./3.7/darwin-libutil.patch
214214 ] ++ optionals (pythonOlder "3.8") [
@@ -227,7 +227,7 @@ in with passthru; stdenv.mkDerivation {
227227 (
228228 if isPy35 then
229229 ./3.5/python-3.x-distutils-C++.patch
230− else if isPy37 || isPy38 || isPy39 then
230+ else if pythonAtLeast "3.7" then
231231 ./3.7/python-3.x-distutils-C++.patch
232232 else
233233 fetchpatch {