lol
1{ stdenv, fetchurl, pythonPackages, python} :
2
3pythonPackages.buildPythonApplication rec {
4 name = "git-review-${version}";
5 version = "1.25.0";
6
7 # Manually set version because prb wants to get it from the git
8 # upstream repository (and we are installing from tarball instead)
9 PBR_VERSION = "${version}";
10
11 postPatch = ''
12 sed -i -e '/argparse/d' requirements.txt
13 '';
14
15 src = fetchurl rec {
16 url = "https://github.com/openstack-infra/git-review/archive/${version}.tar.gz";
17 sha256 = "aa594690ed586041a524d6e5ae76152cbd53d4f03a98b20b213d15cecbe128ce";
18 };
19
20 propagatedBuildInputs = with pythonPackages; [ pbr requests setuptools ];
21
22 # Don't do tests because they require gerrit which is not packaged
23 doCheck = false;
24
25 meta = {
26 homepage = https://github.com/openstack-infra/git-review;
27 description = "Tool to submit code to Gerrit";
28 license = stdenv.lib.licenses.asl20;
29 };
30}