Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
ddt,
|
|
fetchFromGitHub,
|
|
gitdb,
|
|
pkgs,
|
|
pythonOlder,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gitpython";
|
|
version = "3.1.45";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gitpython-developers";
|
|
repo = "GitPython";
|
|
tag = version;
|
|
hash = "sha256-VHnuHliZEc/jiSo/Zi9J/ipAykj7D6NttuzPZiE8svM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
ddt
|
|
gitdb
|
|
pkgs.gitMinimal
|
|
]
|
|
++ lib.optionals (pythonOlder "3.10") [ typing-extensions ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace git/cmd.py \
|
|
--replace 'git_exec_name = "git"' 'git_exec_name = "${pkgs.gitMinimal}/bin/git"'
|
|
'';
|
|
|
|
# Tests require a git repo
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "git" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python Git Library";
|
|
homepage = "https://github.com/gitpython-developers/GitPython";
|
|
changelog = "https://github.com/gitpython-developers/GitPython/blob/${src.tag}/doc/source/changes.rst";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|