python310Packages.pygit2: use libgit2_1_6

This commit is contained in:
figsoda
2023-08-05 18:08:33 -04:00
parent 765ccf25a9
commit 0712c5ffce
@@ -4,30 +4,14 @@
, cacert
, cached-property
, cffi
, fetchFromGitHub
, fetchPypi
, isPyPy
, libgit2
, libgit2_1_6
, pycparser
, pytestCheckHook
, pythonOlder
}:
let
libgit2' = libgit2.overrideAttrs (_: rec {
version = "1.6.4";
src = fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "v${version}";
hash = "sha256-lW3mokVKsbknVj2xsxEbeZH4IdKZ0aIgGutzenS0Eh0=";
};
patches = [];
});
in
buildPythonPackage rec {
pname = "pygit2";
version = "1.12.2";
@@ -41,11 +25,11 @@ buildPythonPackage rec {
};
preConfigure = lib.optionalString stdenv.isDarwin ''
export DYLD_LIBRARY_PATH="${libgit2}/lib"
export DYLD_LIBRARY_PATH="${libgit2_1_6}/lib"
'';
buildInputs = [
libgit2'
libgit2_1_6
];
propagatedBuildInputs = [