2015-11-30 18:57:23 +01:00
|
|
|
{ stdenv, fetchurl, pythonPackages, python} :
|
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2015-11-30 18:57:23 +01:00
|
|
|
name = "git-review-${version}";
|
|
|
|
version = "1.25.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}";
|
|
|
|
|
2017-08-29 13:15:54 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '/argparse/d' requirements.txt
|
|
|
|
'';
|
|
|
|
|
2015-11-30 18:57:23 +01:00
|
|
|
src = fetchurl rec {
|
|
|
|
url = "https://github.com/openstack-infra/git-review/archive/${version}.tar.gz";
|
|
|
|
sha256 = "aa594690ed586041a524d6e5ae76152cbd53d4f03a98b20b213d15cecbe128ce";
|
|
|
|
};
|
|
|
|
|
2017-08-29 13:15:54 +02:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ 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;
|
|
|
|
|
|
|
|
meta = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/openstack-infra/git-review;
|
2015-11-30 18:57:23 +01:00
|
|
|
description = "Tool to submit code to Gerrit";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|