Files
nixpkgs/pkgs/development/python-modules/gitpython/default.nix
Gerhard Schwanzer 2740d7bc78 python3Packages.gitpython: 3.1.57 -> 3.1.58
Includes the six security fixes published in GitPython 3.1.58.

https://redirect.github.com/gitpython-developers/GitPython/blob/3.1.58/doc/source/changes.rst

Assisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol)
2026-08-04 23:22:55 +02:00

49 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
ddt,
fetchFromGitHub,
gitdb,
pkgs,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "gitpython";
version = "3.1.58";
pyproject = true;
src = fetchFromGitHub {
owner = "gitpython-developers";
repo = "GitPython";
tag = finalAttrs.version;
hash = "sha256-C6hrN7SRWngwkD/NYvsoEVQUagdurkxzWbnn42EJOHE=";
};
postPatch = ''
substituteInPlace git/cmd.py \
--replace 'git_exec_name = "git"' 'git_exec_name = "${pkgs.gitMinimal}/bin/git"'
'';
build-system = [ setuptools ];
dependencies = [
ddt
gitdb
pkgs.gitMinimal
];
# Tests require a git repo
doCheck = false;
pythonImportsCheck = [ "git" ];
meta = {
description = "Python Git Library";
homepage = "https://github.com/gitpython-developers/GitPython";
changelog = "https://github.com/gitpython-developers/GitPython/blob/${finalAttrs.src.tag}/doc/source/changes.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
})