2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, pythonPackages} :
|
2015-11-30 17:57:23 +00:00
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2015-11-30 17:57:23 +00:00
|
|
|
name = "git-review-${version}";
|
2018-10-16 06:04:05 +01:00
|
|
|
version = "1.27.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)
|
|
|
|
PBR_VERSION = "${version}";
|
|
|
|
|
2017-08-29 12:15:54 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '/argparse/d' requirements.txt
|
|
|
|
'';
|
|
|
|
|
2015-11-30 17:57:23 +00:00
|
|
|
src = fetchurl rec {
|
|
|
|
url = "https://github.com/openstack-infra/git-review/archive/${version}.tar.gz";
|
2018-10-16 06:04:05 +01:00
|
|
|
sha256 = "0smdkps9avnj58izyfc5m0amq8nafgs9iqlyaf7ncrlvypia1f3q";
|
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 = {
|
2017-08-01 21:03:30 +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;
|
|
|
|
};
|
|
|
|
}
|