Merge pull request #120485 from MetaDark/git-review

git-review: 2.0.0 -> 2.1.0

authored by Fabian Affolter and committed by GitHub 632292a4 6e9671b6

+23 -6
+23 -6
pkgs/applications/version-management/git-review/default.nix
··· 1 - { lib, fetchurl, buildPythonApplication, pbr, requests, setuptools }: 1 + { lib 2 + , fetchurl 3 + , buildPythonApplication 4 + , pbr 5 + , requests 6 + , setuptools 7 + }: 2 8 3 9 buildPythonApplication rec { 4 10 pname = "git-review"; 5 - version = "2.0.0"; 11 + version = "2.1.0"; 6 12 7 13 # Manually set version because prb wants to get it from the git 8 14 # upstream repository (and we are installing from tarball instead) ··· 10 16 11 17 src = fetchurl { 12 18 url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz"; 13 - sha256 = "0dkyd5g2xmvsa114is3cd9qmki3hi6c06wjnra0f4xq3aqm0ajnj"; 19 + hash = "sha256-3A1T+/iXhNeMS2Aww5jISoiNExdv9N9/kwyATSuwVTE="; 14 20 }; 15 21 16 - propagatedBuildInputs = [ pbr requests setuptools ]; 22 + nativeBuildInputs = [ 23 + pbr 24 + ]; 25 + 26 + propagatedBuildInputs = [ 27 + requests 28 + setuptools # implicit dependency, used to get package version through pkg_resources 29 + ]; 17 30 18 - # Don't do tests because they require gerrit which is not packaged 31 + # 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. 19 34 doCheck = false; 20 35 36 + pythonImportsCheck = [ "git_review" ]; 37 + 21 38 meta = with lib; { 39 + description = "Tool to submit code to Gerrit"; 22 40 homepage = "https://opendev.org/opendev/git-review"; 23 - description = "Tool to submit code to Gerrit"; 24 41 license = licenses.asl20; 25 42 maintainers = with maintainers; [ metadark ]; 26 43 };