diff options
| author | Fabian Affolter <fabian@affolter-engineering.ch> | 2022-12-06 08:56:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-06 08:56:32 +0100 |
| commit | 26d68b5350e4c5f6e283f153d43d19083a1df450 (patch) | |
| tree | dd41b5f48936c217c7d63266b744a0cc832850a1 /pkgs/development/python-modules/gitpython | |
| parent | 5687071462c34ad077bcd80c61cf6a4979771238 (diff) | |
| parent | 969af5605d2fd9d8a50b5263a264d0c3ef9ebfbe (diff) | |
Merge pull request #198244 from fabaff/gitpython-bump
python310Packages.GitPython: 3.1.27 -> 3.1.29
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 ]; + }; +} |
