diff options
| author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-12-06 12:01:09 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-06 12:01:09 +0000 |
| commit | 2dc0fa05501e7a9725a50094dbe88fbc0a2ab69e (patch) | |
| tree | 7f2708467b6e6d7546c80b0dcdfe14bab10a945d /pkgs/development/python-modules/gitpython | |
| parent | a4405929328b8a6604a1c969c0f4bb6d2442ae60 (diff) | |
| parent | 6c7e76ea91c8e0b99f96b1052c5bdda0b67830f3 (diff) | |
Merge master into staging-next
Diffstat (limited to 'pkgs/development/python-modules/gitpython')
| -rw-r--r-- | pkgs/development/python-modules/gitpython/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/gitpython/default.nix b/pkgs/development/python-modules/gitpython/default.nix new file mode 100644 index 000000000000..e577a1e508a4 --- /dev/null +++ b/pkgs/development/python-modules/gitpython/default.nix @@ -0,0 +1,52 @@ +{ lib +, buildPythonPackage +, ddt +, fetchFromGitHub +, gitdb +, pkgs +, pythonOlder +, substituteAll +, typing-extensions +}: + +buildPythonPackage rec { + pname = "gitpython"; + version = "3.1.29"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "gitpython-developers"; + repo = "GitPython"; + rev = version; + hash = "sha256-RNDBoGWnkirPZjxn5oqH3zwYqVFLedNrSRpZOHU0j+w="; + }; + + 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"; + license = licenses.bsd3; + maintainers = with maintainers; [ fab ]; + }; +} |
