diff options
author | Kira Bruneau <kira.bruneau@pm.me> | 2021-11-26 21:55:50 -0500 |
---|---|---|
committer | Kira Bruneau <kira.bruneau@pm.me> | 2021-11-26 22:39:40 -0500 |
commit | 32f21eefab39537224743b664a03800d0c566ba7 (patch) | |
tree | 9d1ff5f2d907223ccb51530ba6d90a9789bce601 /pkgs/applications/version-management/git-review | |
parent | 47b35f569e84eb6dbbcf0a9fc75d8729ab8837fd (diff) |
git-review: 2.1.0 → 2.2.0
Diffstat (limited to 'pkgs/applications/version-management/git-review')
-rw-r--r-- | pkgs/applications/version-management/git-review/default.nix | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/pkgs/applications/version-management/git-review/default.nix b/pkgs/applications/version-management/git-review/default.nix index 410d8d49e4c9c..40061baca53e7 100644 --- a/pkgs/applications/version-management/git-review/default.nix +++ b/pkgs/applications/version-management/git-review/default.nix @@ -1,24 +1,31 @@ { lib -, fetchurl +, fetchFromGitea , buildPythonApplication , pbr , requests , setuptools +, genericUpdater +, common-updater-scripts }: buildPythonApplication rec { pname = "git-review"; - version = "2.1.0"; + version = "2.2.0"; # 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 = fetchurl { - url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz"; - hash = "sha256-3A1T+/iXhNeMS2Aww5jISoiNExdv9N9/kwyATSuwVTE="; + src = fetchFromGitea { + domain = "opendev.org"; + owner = "opendev"; + repo = pname; + rev = version; + sha256 = "sha256-2+X5fPxB2FIp1fwqEUc+W0gH2NjhF/V+La+maE+XEpo="; }; + outputs = [ "out" "man" ]; + nativeBuildInputs = [ pbr ]; @@ -35,6 +42,11 @@ buildPythonApplication rec { pythonImportsCheck = [ "git_review" ]; + passthru.updateScript = genericUpdater { + inherit pname version; + versionLister = "${common-updater-scripts}/bin/list-git-tags ${src.meta.homepage}"; + }; + meta = with lib; { description = "Tool to submit code to Gerrit"; homepage = "https://opendev.org/opendev/git-review"; |