2020-10-29 23:10:39 +01:00
|
|
|
{ lib, fetchurl, buildPythonApplication, pbr, requests, setuptools }:
|
2015-11-30 18:57:23 +01:00
|
|
|
|
2020-10-29 23:10:39 +01:00
|
|
|
buildPythonApplication rec {
|
2019-04-25 23:50:43 +02:00
|
|
|
pname = "git-review";
|
|
|
|
version = "1.28.0";
|
2015-11-30 18:57:23 +01:00
|
|
|
|
|
|
|
# Manually set version because prb wants to get it from the git
|
|
|
|
# upstream repository (and we are installing from tarball instead)
|
2019-09-09 01:38:31 +02:00
|
|
|
PBR_VERSION = version;
|
2015-11-30 18:57:23 +01:00
|
|
|
|
2020-10-29 23:10:39 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1y1jzb0hlprynwwr4q5y4x06641qrhj0k69mclabnmhfam9g8ygm";
|
2015-11-30 18:57:23 +01:00
|
|
|
};
|
|
|
|
|
2020-10-29 23:10:39 +01:00
|
|
|
propagatedBuildInputs = [ pbr requests setuptools ];
|
2015-11-30 18:57:23 +01:00
|
|
|
|
|
|
|
# Don't do tests because they require gerrit which is not packaged
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-10-29 23:10:39 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://opendev.org/opendev/git-review";
|
2015-11-30 18:57:23 +01:00
|
|
|
description = "Tool to submit code to Gerrit";
|
2020-10-29 23:10:39 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ metadark ];
|
2015-11-30 18:57:23 +01:00
|
|
|
};
|
|
|
|
}
|