2019-04-25 22:50:43 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages} :
|
2015-11-30 17:57:23 +00:00
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2019-04-25 22:50:43 +01:00
|
|
|
pname = "git-review";
|
|
|
|
version = "1.28.0";
|
2015-11-30 17:57:23 +00: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 00:38:31 +01:00
|
|
|
PBR_VERSION = version;
|
2015-11-30 17:57:23 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-04-25 22:50:43 +01:00
|
|
|
owner = "openstack-infra";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1hgw1dkl94m3idv4izc7wf2j7al2c7nnsqywy7g53nzkv9pfv47s";
|
2015-11-30 17:57:23 +00:00
|
|
|
};
|
|
|
|
|
2017-08-29 12:15:54 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ pbr requests setuptools ];
|
2015-11-30 17:57:23 +00:00
|
|
|
|
|
|
|
# Don't do tests because they require gerrit which is not packaged
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/openstack-infra/git-review";
|
2015-11-30 17:57:23 +00:00
|
|
|
description = "Tool to submit code to Gerrit";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|