diff options
author | Clément Lassieur <clement@lassieur.org> | 2016-09-08 14:28:44 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2016-09-08 20:28:16 +0300 |
commit | d443199308a6451b8753cb1f4668b2a2d47af923 (patch) | |
tree | 9a4d979dad651e2cf27c2db4591f437017cc0c45 /gnu | |
parent | e56e5b129cc8259c9fa794471d57580219e295a0 (diff) | |
download | guix-d443199308a6451b8753cb1f4668b2a2d47af923.tar guix-d443199308a6451b8753cb1f4668b2a2d47af923.tar.gz |
gnu: Add python-git-review.
* gnu/packages/openstack.scm (python-git-review)
(python2-git-review): New variables.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/openstack.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 8474904265..4cb38a9fc8 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com> ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> +;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,6 +21,7 @@ (define-module (gnu packages openstack) #:use-module (gnu packages python) #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) #:use-module (guix build-system python) #:use-module (guix download) #:use-module ((guix licenses) @@ -781,3 +783,35 @@ permanence.") ("python2-oslosphinx" ,python2-oslosphinx) ,@(fold alist-delete (package-native-inputs swiftclient) '("python-keystoneclient" "python-oslosphinx"))))))) + +(define-public python-git-review + (package + (name "python-git-review") + (version "1.25.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "git-review" version)) + (sha256 + (base32 + "07d1jn9ryff5j5ic6qj5pbk10m1ccmpllj0wyalrcms1q9yhlzh8")))) + (build-system python-build-system) + (arguments `(#:tests? #f)) ; tests require a running Gerrit server + (native-inputs + `(("python-pbr" ,python-pbr))) + (inputs + `(("python-requests" ,python-requests) + ("git" ,git))) + (home-page "http://docs.openstack.org/infra/git-review/") + (synopsis "Command-line tool for Gerrit") + (description + "Git-review is a command-line tool that helps submitting Git branches to +Gerrit for review, or fetching existing ones.") + (license asl2.0))) + +(define-public python2-git-review + (let ((base (package-with-python2 (strip-python2-variant python-git-review)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) |