anchor.diff:  
     NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s";
   
  +  # Determinism: The interpreter is patched to write null timestamps when compiling python files.
  +  # This way python doesn't try to update them when we freeze timestamps in nix store.
  +  DETERMINISTIC_BUILD=1;
  +  # Determinism: We fix the hashes of str, bytes and datetime objects.
  +  PYTHONHASHSEED=0;
  +
     prePatch = optionalString stdenv.isDarwin ''
       substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
       substituteInPlace configure --replace '-Wl,-stack_size,1000000' ' '
  
positive.code:     ln -s "$out/bin/python3" "$out/bin/python"
      ln -s "$out/bin/python3-config" "$out/bin/python-config"
      ln -s "$out/lib/pkgconfig/python3.pc" "$out/lib/pkgconfig/python.pc"
    '';
  
    postFixup = ''
  
negative.code:     # Python on Nix is not manylinux1 compatible. https://github.com/NixOS/nixpkgs/issues/18484
      echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
  
      # Determinism: Windows installers were not deterministic.
      # We're also not interested in building Windows installers.
      find "$out" -name 'wininst*.exe' | xargs -r rm -f
  
      # Use Python3 as default python
      ln -s "$out/bin/idle3" "$out/bin/idle"
      ln -s "$out/bin/pip3" "$out/bin/pip"
  