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";
|
2021-04-12 18:23:04 +00:00
|
|
|
version = "2.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# 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";
|
2021-04-12 18:23:04 +00:00
|
|
|
sha256 = "0dkyd5g2xmvsa114is3cd9qmki3hi6c06wjnra0f4xq3aqm0ajnj";
|
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
|
|
|
};
|
|
|
|
}
|