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.
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchFromGitHub
|
|
, git
|
|
, pytest
|
|
, pyyaml
|
|
, setuptools
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
version = "0.11.9";
|
|
pname = "gita";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "9+zuLAx9lMfltsBqjvsivJ5wPnStPfq11XgGMv/JDpY=";
|
|
rev = version;
|
|
repo = "gita";
|
|
owner = "nosarthur";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
setuptools
|
|
];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postUnpack = ''
|
|
for case in "\n" ""; do
|
|
substituteInPlace source/tests/test_main.py \
|
|
--replace "'gita$case'" "'source$case'"
|
|
done
|
|
'';
|
|
|
|
checkInputs = [
|
|
git
|
|
pytest
|
|
];
|
|
|
|
checkPhase = ''
|
|
git init
|
|
pytest tests
|
|
'';
|
|
|
|
postInstall = ''
|
|
installShellCompletion --bash --name gita ${src}/.gita-completion.bash
|
|
installShellCompletion --zsh --name gita ${src}/.gita-completion.zsh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A command-line tool to manage multiple git repos";
|
|
homepage = "https://github.com/nosarthur/gita";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ seqizz ];
|
|
};
|
|
}
|