python311Packages.pygit2: refactor

This commit is contained in:
Fabian Affolter
2024-01-30 20:46:55 +01:00
parent 6ec9c7318d
commit 2add75a2cf
2 changed files with 10 additions and 4 deletions
@@ -10,14 +10,15 @@
, pycparser
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "pygit2";
version = "1.14.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
@@ -28,6 +29,10 @@ buildPythonPackage rec {
export DYLD_LIBRARY_PATH="${libgit2}/lib"
'';
nativeBuildInputs = [
setuptools
];
buildInputs = [
libgit2
];
@@ -65,6 +70,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "A set of Python bindings to the libgit2 shared library";
homepage = "https://github.com/libgit2/pygit2";
changelog = "https://github.com/libgit2/pygit2/blob/v${version}/CHANGELOG.md";
license = licenses.gpl2Only;
maintainers = with maintainers; [ ];
};
@@ -19,7 +19,7 @@
buildPythonPackage rec {
pname = "scmrepo";
version = "2.0.4";
version = "2.1.1";
format = "pyproject";
disabled = pythonOlder "3.7";
@@ -28,7 +28,7 @@ buildPythonPackage rec {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-gBGfL6Xet7ASdwRTFJ5nHpyeXi/pqlrL9o5nC3m48hk=";
hash = "sha256-KG7Y+1qqsgDwgRYsb3XbZnF6FduHJCAEizfuugBi0Go=";
};
nativeBuildInputs = [