python3Packages.pygit2: 1.9.2 -> 1.10.1

This commit is contained in:
Martin Weinelt 2022-09-14 23:36:16 +02:00
parent b226724c85
commit 7466b96d59

View file

@ -4,7 +4,6 @@
, cacert
, cached-property
, cffi
, fetchpatch
, fetchPypi
, isPyPy
, libgit2
@ -15,25 +14,16 @@
buildPythonPackage rec {
pname = "pygit2";
version = "1.9.2";
version = "1.10.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-IIlEM98RRkgarK434rDzu7/eoCbbL1UGEXC9mCPkCxk=";
hash = "sha256-NUZRvwYsAtHwgEHW+/GptL96k6/OZZeb3Ai9xlZTqi4=";
};
patches = [
# libgit 2 fix
(fetchpatch {
url = "https://github.com/libgit2/pygit2/commit/14b1df84060ea4ab085202382e80672ec1a104e3.patch";
includes = [ "src/types.h" ];
sha256 = "sha256-2krkyAT30l/olSEl2ugWCsylvGuT7VvkuSFVshIXktA=";
})
];
preConfigure = lib.optionalString stdenv.isDarwin ''
export DYLD_LIBRARY_PATH="${libgit2}/lib"
'';