2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
2020-07-18 16:06:22 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyyaml
|
|
|
|
, setuptools
|
2020-07-18 16:06:22 +00:00
|
|
|
, installShellFiles
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.16.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gita";
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
src = fetchFromGitHub {
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-kPyk13yd4rc63Nh73opuHsCTj4DgYAVfro8To96tteA=";
|
|
|
|
rev = "v${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
repo = "gita";
|
|
|
|
owner = "nosarthur";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
# 3 of the tests are failing
|
|
|
|
doCheck = false;
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --bash --name gita ${src}/.gita-completion.bash
|
2020-09-25 04:45:31 +00:00
|
|
|
installShellCompletion --zsh --name gita ${src}/.gita-completion.zsh
|
2020-07-18 16:06:22 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command-line tool to manage multiple git repos";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/nosarthur/gita";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ seqizz ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "gita";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|