2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, taskwarrior
|
|
|
|
, glibcLocales
|
|
|
|
}:
|
|
|
|
|
|
|
|
with python3Packages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "vit";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.3.2";
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = lib.versionOlder python.version "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-qDfY6GWnDQ44Sh540xQzDwANEI+mLjpy2a7G3sfKIzw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
tasklib
|
|
|
|
urwid
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ glibcLocales ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeWrapperArgs = [ "--suffix" "PATH" ":" "${taskwarrior}/bin" ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export TERM=''${TERM-linux}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/scottkosty/vit";
|
|
|
|
description = "Visual Interactive Taskwarrior";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "vit";
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ arcnmx ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|