This reverts commit e9bba1cb01. python.pkgs.pygit2 has to be upgraded at the same time as libgit2.
e9bba1cb01