nixpkgs/pkgs/applications/version-management/git-review/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.2 KiB
Nix
Raw Normal View History

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
, gitUpdater
2021-04-24 02:18:03 +02:00
}:
buildPythonApplication rec {
pname = "git-review";
2024-03-20 14:50:15 +01:00
version = "2.4.0";
# 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;
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=";
};
2021-11-27 03:55:50 +01:00
outputs = [ "out" "man" ];
2021-04-24 02:18:03 +02:00
nativeBuildInputs = [
pbr
];
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.
doCheck = false;
2021-04-24 02:18:03 +02:00
pythonImportsCheck = [ "git_review" ];
passthru.updateScript = gitUpdater { };
2021-11-27 03:55:50 +01:00
meta = with lib; {
description = "Tool to submit code to Gerrit";
2021-04-24 02:18:03 +02:00
homepage = "https://opendev.org/opendev/git-review";
license = licenses.asl20;
maintainers = with maintainers; [ kira-bruneau ];
2023-11-27 02:17:53 +01:00
mainProgram = "git-review";
};
}