What The Patch!? is a library for both parsing and applying patch files
conda install conda-forge::whatthepatch