summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/GitPython
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2018-08-30 18:30:32 +0200
committerVladimír Čunát <vcunat@gmail.com>2018-08-30 18:30:32 +0200
commit3f80b81ece62fc7d09240ab012ef049208e56cbd (patch)
treed76827cc93abe2cc27a01570bbc5274484933483 /pkgs/development/python-modules/GitPython
parent4b7c52e010b0aba3bada8f2bce85818475c6dfb1 (diff)
parent2a391742555c2fea413289f31f1308d12ebdb454 (diff)
Merge branch 'staging' into #38486
Diffstat (limited to 'pkgs/development/python-modules/GitPython')
-rw-r--r--pkgs/development/python-modules/GitPython/default.nix28
1 files changed, 28 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..aef59ba2ab91
--- /dev/null
+++ b/pkgs/development/python-modules/GitPython/default.nix
@@ -0,0 +1,28 @@
+{ lib, buildPythonPackage, fetchPypi, git, gitdb2, mock, nose, ddt }:
+
+buildPythonPackage rec {
+ version = "2.1.11";
+ pname = "GitPython";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "8237dc5bfd6f1366abeee5624111b9d6879393d84745a507de0fda86043b65a8";
+ };
+
+ checkInputs = [ mock nose ddt ];
+ propagatedBuildInputs = [ gitdb2 ];
+
+ postPatch = ''
+ sed -i "s|^refresh()$|refresh(path='${git}/bin/git')|" git/__init__.py
+ '';
+
+ # Tests require a git repo
+ doCheck = false;
+
+ meta = {
+ description = "Python Git Library";
+ maintainers = [ ];
+ homepage = https://github.com/gitpython-developers/GitPython;
+ license = lib.licenses.bsd3;
+ };
+}