summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/version-management/git-review
diff options
context:
space:
mode:
authorAntoine Eiche <lewo@abesis.fr>2015-11-30 18:57:23 +0100
committerAntoine Eiche <lewo@abesis.fr>2015-12-02 12:36:01 +0100
commite78fb0d59acabbd237cd5aad2513cc8bb7f723bd (patch)
tree15e44f6b79eb5c1844ac77bb50306c3adb7a0415 /pkgs/applications/version-management/git-review
parent777d3e5927d6bff63dd0993937a73ea4943c70b7 (diff)
git-review: init at 1.25.0
This provides a git command for submitting branches to Gerrit.
Diffstat (limited to 'pkgs/applications/version-management/git-review')
-rw-r--r--pkgs/applications/version-management/git-review/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-review/default.nix b/pkgs/applications/version-management/git-review/default.nix
new file mode 100644
index 000000000000..fb6d542f4790
--- /dev/null
+++ b/pkgs/applications/version-management/git-review/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl, pythonPackages, python} :
+
+pythonPackages.buildPythonPackage rec {
+ name = "git-review-${version}";
+ version = "1.25.0";
+
+ # Manually set version because prb wants to get it from the git
+ # upstream repository (and we are installing from tarball instead)
+ PBR_VERSION = "${version}";
+
+ src = fetchurl rec {
+ url = "https://github.com/openstack-infra/git-review/archive/${version}.tar.gz";
+ sha256 = "aa594690ed586041a524d6e5ae76152cbd53d4f03a98b20b213d15cecbe128ce";
+ };
+
+ propagatedBuildInputs = [ pythonPackages.pbr pythonPackages.requests2 pythonPackages.argparse pythonPackages.setuptools ];
+
+ # Don't do tests because they require gerrit which is not packaged
+ doCheck = false;
+
+ meta = {
+ homepage = "https://github.com/openstack-infra/git-review";
+ description = "Tool to submit code to Gerrit";
+ license = stdenv.lib.licenses.asl20;
+ };
+}