mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
d994dabace
We do not use a "plugin system" for Git addons anymore, and therefore this directory is no longer useful. Indeed that directory is way more confusing, given that it includes more than mere Git addons, going from Bitbucket server command-line tools to complete rewrites of Git in exotic programming languages. Also, without this directory, the mental load of decision-making reduces a lot. When anyone is interested in including a new git-related tool, just put it into pkgs/applications/version-management, without apologies.
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ 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 ];
|
|
};
|
|
}
|