Files
nixpkgs/pkgs/development/python-modules/gitpython/default.nix
Julian Stecklina 240a51bb13 python3Packages.gitpython: 3.1.62 -> 3.2.1
Changelog:
https://github.com/gitpython-developers/GitPython/blob/3.2.0/doc/source/changes.rst
https://github.com/gitpython-developers/GitPython/blob/3.2.1/doc/source/changes.rst

Fixes:
CVE-2026-110855 GHSA-fx3j-rwgx-fr94
CVE-2026-110856 GHSA-m64x-33q8-m5h7
CVE-2026-110857 GHSA-w8jc-g24h-crhw
CVE-2026-110858 GHSA-f9j4-qggq-h239
CVE-2026-110860 GHSA-gq48-pqfc-9p58
CVE-2026-114145 GHSA-83vg-56qc-22m7
GHSA-23mf-xhv8-69c2 (no CVE assigned)
2026-11-06 15:32:09 +01:00

46 lines
1008 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
gitdb,
gitMinimal,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "gitpython";
version = "3.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "gitpython-developers";
repo = "GitPython";
tag = finalAttrs.version;
hash = "sha256-LqHpvJLe5LqPca6FIH3NoOXVdV7LPojixg4sLPgLC8Q=";
};
postPatch = ''
substituteInPlace git/cmd.py \
--replace-fail 'git_exec_name = "git"' 'git_exec_name = "${lib.getExe gitMinimal}"'
'';
build-system = [ setuptools ];
dependencies = [
gitdb
];
# 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 ];
};
})