···11-{ lib, fetchurl, buildPythonApplication, pbr, requests, setuptools }:
11+{ lib
22+, fetchurl
33+, buildPythonApplication
44+, pbr
55+, requests
66+, setuptools
77+}:
2839buildPythonApplication rec {
410 pname = "git-review";
55- version = "2.0.0";
1111+ version = "2.1.0";
612713 # Manually set version because prb wants to get it from the git
814 # upstream repository (and we are installing from tarball instead)
···10161117 src = fetchurl {
1218 url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz";
1313- sha256 = "0dkyd5g2xmvsa114is3cd9qmki3hi6c06wjnra0f4xq3aqm0ajnj";
1919+ hash = "sha256-3A1T+/iXhNeMS2Aww5jISoiNExdv9N9/kwyATSuwVTE=";
1420 };
15211616- propagatedBuildInputs = [ pbr requests setuptools ];
2222+ nativeBuildInputs = [
2323+ pbr
2424+ ];
2525+2626+ propagatedBuildInputs = [
2727+ requests
2828+ setuptools # implicit dependency, used to get package version through pkg_resources
2929+ ];
17301818- # Don't do tests because they require gerrit which is not packaged
3131+ # Don't run tests because they pull in external dependencies
3232+ # (a specific build of gerrit + maven plugins), and I haven't figured
3333+ # out how to work around this yet.
1934 doCheck = false;
20353636+ pythonImportsCheck = [ "git_review" ];
3737+2138 meta = with lib; {
3939+ description = "Tool to submit code to Gerrit";
2240 homepage = "https://opendev.org/opendev/git-review";
2323- description = "Tool to submit code to Gerrit";
2441 license = licenses.asl20;
2542 maintainers = with maintainers; [ metadark ];
2643 };