504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
44 lines
934 B
Nix
44 lines
934 B
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchFromGitHub
|
|
, git
|
|
, pytest
|
|
, 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 = "A command-line tool to manage multiple git repos";
|
|
homepage = "https://github.com/nosarthur/gita";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ seqizz ];
|
|
mainProgram = "gita";
|
|
};
|
|
}
|