mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 21:18:28 +03:00
python310Packages.GitPython: 3.1.27 -> 3.1.29
This commit is contained in:
parent
f2dc6ffea1
commit
e75cfd2174
@ -1,44 +1,47 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, substituteAll
|
||||
, git
|
||||
, gitdb
|
||||
, ddt
|
||||
, fetchFromGitHub
|
||||
, gitdb
|
||||
, pkgs
|
||||
, pythonOlder
|
||||
, substituteAll
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gitpython";
|
||||
version = "3.1.27";
|
||||
version = "3.1.29";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gitpython-developers";
|
||||
repo = "GitPython";
|
||||
rev = version;
|
||||
sha256 = "sha256-RA+6JFXHUQoXGErV8+aYuJPsfXzNSZK3kTm6eMbQIss=";
|
||||
hash = "sha256-RNDBoGWnkirPZjxn5oqH3zwYqVFLedNrSRpZOHU0j+w=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./hardcode-git-path.patch;
|
||||
inherit git;
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
gitdb
|
||||
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" ];
|
||||
pythonImportsCheck = [
|
||||
"git"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Git Library";
|
||||
|
@ -1,13 +0,0 @@
|
||||
diff --git a/git/cmd.py b/git/cmd.py
|
||||
index a4faefe..51ad442 100644
|
||||
--- a/git/cmd.py
|
||||
+++ b/git/cmd.py
|
||||
@@ -175,7 +175,7 @@ class Git(LazyMixin):
|
||||
|
||||
# CONFIGURATION
|
||||
|
||||
- git_exec_name = "git" # default that should work on linux and windows
|
||||
+ git_exec_name = "@git@/bin/git"
|
||||
|
||||
# Enables debugging of GitPython's git commands
|
||||
GIT_PYTHON_TRACE = os.environ.get("GIT_PYTHON_TRACE", False)
|
Loading…
Reference in New Issue
Block a user