···1-{ lib, fetchurl, buildPythonApplication, pbr, requests, setuptools }:
00000023buildPythonApplication rec {
4 pname = "git-review";
5- version = "2.0.0";
67 # Manually set version because prb wants to get it from the git
8 # upstream repository (and we are installing from tarball instead)
···1011 src = fetchurl {
12 url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz";
13- sha256 = "0dkyd5g2xmvsa114is3cd9qmki3hi6c06wjnra0f4xq3aqm0ajnj";
14 };
1516- propagatedBuildInputs = [ pbr requests setuptools ];
00000001718- # Don't do tests because they require gerrit which is not packaged
0019 doCheck = false;
200021 meta = with lib; {
022 homepage = "https://opendev.org/opendev/git-review";
23- description = "Tool to submit code to Gerrit";
24 license = licenses.asl20;
25 maintainers = with maintainers; [ metadark ];
26 };
···1+{ lib
2+, fetchurl
3+, buildPythonApplication
4+, pbr
5+, requests
6+, setuptools
7+}:
89buildPythonApplication rec {
10 pname = "git-review";
11+ version = "2.1.0";
1213 # Manually set version because prb wants to get it from the git
14 # upstream repository (and we are installing from tarball instead)
···1617 src = fetchurl {
18 url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz";
19+ hash = "sha256-3A1T+/iXhNeMS2Aww5jISoiNExdv9N9/kwyATSuwVTE=";
20 };
2122+ nativeBuildInputs = [
23+ pbr
24+ ];
25+26+ propagatedBuildInputs = [
27+ requests
28+ setuptools # implicit dependency, used to get package version through pkg_resources
29+ ];
3031+ # Don't run tests because they pull in external dependencies
32+ # (a specific build of gerrit + maven plugins), and I haven't figured
33+ # out how to work around this yet.
34 doCheck = false;
3536+ pythonImportsCheck = [ "git_review" ];
37+38 meta = with lib; {
39+ description = "Tool to submit code to Gerrit";
40 homepage = "https://opendev.org/opendev/git-review";
041 license = licenses.asl20;
42 maintainers = with maintainers; [ metadark ];
43 };