The upstream patch for distutils does not apply cleanly to Python 3.7.3's sources. (The patch applies cleanly to Python 3.7.2's sources, but nixpkgs commit 0ddae82e6a upgraded Python to 3.7.3.) Fix the patch to make python37 build on macOS.
0ddae82e6a