2020-11-03 02:18:15 +00:00
|
|
|
{ lib, fetchurl, buildPythonApplication, pbr, requests, setuptools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "git-review";
|
|
|
|
version = "1.28.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;
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1y1jzb0hlprynwwr4q5y4x06641qrhj0k69mclabnmhfam9g8ygm";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
propagatedBuildInputs = [ pbr requests setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Don't do tests because they require gerrit which is not packaged
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://opendev.org/opendev/git-review";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tool to submit code to Gerrit";
|
2020-11-03 02:18:15 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ metadark ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|