depot/pkgs/applications/version-management/gita/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

42 lines
917 B
Nix

{ lib
, buildPythonApplication
, fetchFromGitHub
, pyyaml
, setuptools
, installShellFiles
}:
buildPythonApplication rec {
version = "0.16.6.1";
pname = "gita";
src = fetchFromGitHub {
sha256 = "sha256-kPyk13yd4rc63Nh73opuHsCTj4DgYAVfro8To96tteA=";
rev = "v${version}";
repo = "gita";
owner = "nosarthur";
};
propagatedBuildInputs = [
pyyaml
setuptools
];
nativeBuildInputs = [ installShellFiles ];
# 3 of the tests are failing
doCheck = false;
postInstall = ''
installShellCompletion --bash --name gita ${src}/.gita-completion.bash
installShellCompletion --zsh --name gita ${src}/.gita-completion.zsh
'';
meta = with lib; {
description = "Command-line tool to manage multiple git repos";
homepage = "https://github.com/nosarthur/gita";
license = licenses.mit;
maintainers = with maintainers; [ seqizz ];
mainProgram = "gita";
};
}