Merge pull request #147564 from kira-bruneau/git-review

git-review: 2.1.0 → 2.2.0
This commit is contained in:
Maximilian Bosch 2021-11-28 14:48:36 +01:00 committed by GitHub
commit 122321a5cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,31 @@
{ lib { lib
, fetchurl , fetchFromGitea
, buildPythonApplication , buildPythonApplication
, pbr , pbr
, requests , requests
, setuptools , setuptools
, genericUpdater
, common-updater-scripts
}: }:
buildPythonApplication rec { buildPythonApplication rec {
pname = "git-review"; pname = "git-review";
version = "2.1.0"; version = "2.2.0";
# Manually set version because prb wants to get it from the git # Manually set version because prb wants to get it from the git
# upstream repository (and we are installing from tarball instead) # upstream repository (and we are installing from tarball instead)
PBR_VERSION = version; PBR_VERSION = version;
src = fetchurl { src = fetchFromGitea {
url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz"; domain = "opendev.org";
hash = "sha256-3A1T+/iXhNeMS2Aww5jISoiNExdv9N9/kwyATSuwVTE="; owner = "opendev";
repo = pname;
rev = version;
sha256 = "sha256-2+X5fPxB2FIp1fwqEUc+W0gH2NjhF/V+La+maE+XEpo=";
}; };
outputs = [ "out" "man" ];
nativeBuildInputs = [ nativeBuildInputs = [
pbr pbr
]; ];
@ -35,6 +42,11 @@ buildPythonApplication rec {
pythonImportsCheck = [ "git_review" ]; pythonImportsCheck = [ "git_review" ];
passthru.updateScript = genericUpdater {
inherit pname version;
versionLister = "${common-updater-scripts}/bin/list-git-tags ${src.meta.homepage}";
};
meta = with lib; { meta = with lib; {
description = "Tool to submit code to Gerrit"; description = "Tool to submit code to Gerrit";
homepage = "https://opendev.org/opendev/git-review"; homepage = "https://opendev.org/opendev/git-review";