diff options
author | Marius Bakke <mbakke@fastmail.com> | 2018-02-28 02:54:41 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2018-02-28 13:59:01 +0100 |
commit | 8e6177204e9f3cb5ff2651153a7388796ebccbb8 (patch) | |
tree | 78ff2f527f08c9168f0462617ff82185f262c3ed | |
parent | ea4be20af07ded69670b38fb321e3f5874f7ad41 (diff) | |
download | patches-8e6177204e9f3cb5ff2651153a7388796ebccbb8.tar patches-8e6177204e9f3cb5ff2651153a7388796ebccbb8.tar.gz |
gnu: Add python-gitpython.
* gnu/packages/version-control.scm (python-gitpython, python2-gitpython): New
public variables.
-rw-r--r-- | gnu/packages/version-control.scm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index adf28ed1ed..ef19382365 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -691,6 +691,50 @@ allowing to handle large objects with a small memory footprint.") (define-public python2-gitdb (package-with-python2 python-gitdb)) +(define-public python-gitpython + (package + (name "python-gitpython") + (version "2.1.8") + (source (origin + (method url-fetch) + (uri (pypi-uri "GitPython" version)) + (sha256 + (base32 + "1sbn018mn3y2r58ix5z12na1s02ccprhckb88yq3bdddvqjvqqdd")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ;XXX: Tests can only be run within the GitPython repository. + #:phases (modify-phases %standard-phases + (add-after 'unpack 'embed-git-reference + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "git/cmd.py" + (("git_exec_name = \"git\"") + (string-append "git_exec_name = \"" + (assoc-ref inputs "git") + "/bin/git\""))) + #t))))) + (inputs + `(("git" ,git))) + (propagated-inputs + `(("python-gitdb" ,python-gitdb))) + (native-inputs + `(("python-ddt" ,python-ddt) + ("python-nose" ,python-nose))) + (home-page "https://github.com/gitpython-developers/GitPython") + (synopsis "Python library for interacting with Git repositories") + (description + "GitPython is a python library used to interact with Git repositories, +high-level like git-porcelain, or low-level like git-plumbing. + +It provides abstractions of Git objects for easy access of repository data, +and additionally allows you to access the Git repository more directly using +either a pure Python implementation, or the faster, but more resource intensive +@command{git} command implementation.") + (license license:bsd-3))) + +(define-public python2-gitpython + (package-with-python2 python-gitpython)) + (define-public shflags (package (name "shflags") |