mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
python310Packages.GitPython: 3.1.27 -> 3.1.29
This commit is contained in:
parent
f2dc6ffea1
commit
e75cfd2174
@ -1,44 +1,47 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
|
||||||
, substituteAll
|
|
||||||
, git
|
|
||||||
, gitdb
|
|
||||||
, ddt
|
, ddt
|
||||||
|
, fetchFromGitHub
|
||||||
|
, gitdb
|
||||||
|
, pkgs
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, substituteAll
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "gitpython";
|
pname = "gitpython";
|
||||||
version = "3.1.27";
|
version = "3.1.29";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gitpython-developers";
|
owner = "gitpython-developers";
|
||||||
repo = "GitPython";
|
repo = "GitPython";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-RA+6JFXHUQoXGErV8+aYuJPsfXzNSZK3kTm6eMbQIss=";
|
hash = "sha256-RNDBoGWnkirPZjxn5oqH3zwYqVFLedNrSRpZOHU0j+w=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
(substituteAll {
|
|
||||||
src = ./hardcode-git-path.patch;
|
|
||||||
inherit git;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
gitdb
|
|
||||||
ddt
|
ddt
|
||||||
|
gitdb
|
||||||
|
pkgs.gitMinimal
|
||||||
] ++ lib.optionals (pythonOlder "3.10") [
|
] ++ lib.optionals (pythonOlder "3.10") [
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace git/cmd.py \
|
||||||
|
--replace 'git_exec_name = "git"' 'git_exec_name = "${pkgs.gitMinimal}/bin/git"'
|
||||||
|
'';
|
||||||
|
|
||||||
# Tests require a git repo
|
# Tests require a git repo
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [ "git" ];
|
pythonImportsCheck = [
|
||||||
|
"git"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python Git Library";
|
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