2021-04-24 02:18:03 +02:00
|
|
|
{ lib
|
2021-11-27 03:55:50 +01:00
|
|
|
, fetchFromGitea
|
2021-04-24 02:18:03 +02:00
|
|
|
, buildPythonApplication
|
|
|
|
, pbr
|
|
|
|
, requests
|
|
|
|
, setuptools
|
2022-02-21 02:11:49 +01:00
|
|
|
, gitUpdater
|
2021-04-24 02:18:03 +02:00
|
|
|
}:
|
2015-11-30 18:57:23 +01:00
|
|
|
|
2020-10-29 23:10:39 +01:00
|
|
|
buildPythonApplication rec {
|
2019-04-25 23:50:43 +02:00
|
|
|
pname = "git-review";
|
2024-03-20 14:50:15 +01:00
|
|
|
version = "2.4.0";
|
2015-11-30 18:57:23 +01:00
|
|
|
|
|
|
|
# Manually set version because prb wants to get it from the git
|
|
|
|
# upstream repository (and we are installing from tarball instead)
|
2019-09-09 01:38:31 +02:00
|
|
|
PBR_VERSION = version;
|
2015-11-30 18:57:23 +01:00
|
|
|
|
2021-11-27 03:55:50 +01:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "opendev.org";
|
|
|
|
owner = "opendev";
|
2024-03-20 14:50:15 +01:00
|
|
|
repo = "git-review";
|
2021-11-27 03:55:50 +01:00
|
|
|
rev = version;
|
2024-03-20 14:50:15 +01:00
|
|
|
hash = "sha256-UfYc662NqnQt0+CKc+18jXnNTOcZv8urCNBsWd6x0VQ=";
|
2015-11-30 18:57:23 +01:00
|
|
|
};
|
|
|
|
|
2021-11-27 03:55:50 +01:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-04-24 02:18:03 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
];
|
2015-11-30 18:57:23 +01:00
|
|
|
|
2021-04-24 02:18:03 +02:00
|
|
|
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.
|
2015-11-30 18:57:23 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-04-24 02:18:03 +02:00
|
|
|
pythonImportsCheck = [ "git_review" ];
|
|
|
|
|
2022-09-27 23:12:05 +02:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2021-11-27 03:55:50 +01:00
|
|
|
|
2020-10-29 23:10:39 +01:00
|
|
|
meta = with lib; {
|
2015-11-30 18:57:23 +01:00
|
|
|
description = "Tool to submit code to Gerrit";
|
2021-04-24 02:18:03 +02:00
|
|
|
homepage = "https://opendev.org/opendev/git-review";
|
2020-10-29 23:10:39 +01:00
|
|
|
license = licenses.asl20;
|
2021-05-22 16:47:40 +02:00
|
|
|
maintainers = with maintainers; [ kira-bruneau ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "git-review";
|
2015-11-30 18:57:23 +01:00
|
|
|
};
|
|
|
|
}
|