diff options
Diffstat (limited to 'pkgs/applications/version-management/git-and-tools/git-review/default.nix')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/git-review/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/git-review/default.nix b/pkgs/applications/version-management/git-and-tools/git-review/default.nix new file mode 100644 index 0000000000000..2650f330c0a99 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/git-review/default.nix @@ -0,0 +1,52 @@ +{ lib +, fetchFromGitea +, buildPythonApplication +, pbr +, requests +, setuptools +, gitUpdater +}: + +buildPythonApplication rec { + pname = "git-review"; + version = "2.3.1"; + + # Manually set version because prb wants to get it from the git + # upstream repository (and we are installing from tarball instead) + PBR_VERSION = version; + + src = fetchFromGitea { + domain = "opendev.org"; + owner = "opendev"; + repo = pname; + rev = version; + sha256 = "sha256-C8M4b/paHJB9geizc1eIhXsTuLeeS4dDisCfCQF1RuU="; + }; + + outputs = [ "out" "man" ]; + + nativeBuildInputs = [ + pbr + ]; + + propagatedBuildInputs = [ + requests + setuptools # implicit dependency, used to get package version through pkg_resources + ]; + + # Don't run tests because they pull in external dependencies + # (a specific build of gerrit + maven plugins), and I haven't figured + # out how to work around this yet. + doCheck = false; + + pythonImportsCheck = [ "git_review" ]; + + passthru.updateScript = gitUpdater { }; + + meta = with lib; { + description = "Tool to submit code to Gerrit"; + homepage = "https://opendev.org/opendev/git-review"; + license = licenses.asl20; + maintainers = with maintainers; [ kira-bruneau ]; + }; +} |