2019-10-15 19:10:36 +02:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
2020-01-25 12:58:13 +01:00
|
|
|
, taskwarrior
|
|
|
|
, glibcLocales
|
|
|
|
}:
|
2015-07-05 16:02:35 +02:00
|
|
|
|
2019-10-15 19:10:36 +02:00
|
|
|
with python3Packages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2019-03-11 04:17:42 +01:00
|
|
|
pname = "vit";
|
2019-10-15 19:10:36 +02:00
|
|
|
version = "2.0.0";
|
|
|
|
disabled = lib.versionOlder python.version "3.6";
|
2015-07-05 16:02:35 +02:00
|
|
|
|
2019-10-15 19:10:36 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "5282d8076d9814d9248071aec8784cffbd968601542533ccb28ca61d1d08205e";
|
2015-07-05 16:02:35 +02:00
|
|
|
};
|
|
|
|
|
2019-10-15 19:10:36 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytz
|
|
|
|
tasklib
|
|
|
|
tzlocal
|
|
|
|
urwid
|
|
|
|
];
|
2015-07-05 16:02:35 +02:00
|
|
|
|
2020-01-25 12:58:13 +01:00
|
|
|
checkInputs = [ glibcLocales ];
|
|
|
|
|
2019-10-15 19:10:36 +02:00
|
|
|
makeWrapperArgs = [ "--suffix" "PATH" ":" "${taskwarrior}/bin" ];
|
2015-07-05 16:02:35 +02:00
|
|
|
|
2019-10-15 19:10:36 +02:00
|
|
|
preCheck = ''
|
|
|
|
export TERM=''${TERM-linux}
|
|
|
|
'';
|
2015-07-05 16:02:35 +02:00
|
|
|
|
2019-10-15 19:10:36 +02:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/scottkosty/vit";
|
2015-07-05 16:02:35 +02:00
|
|
|
description = "Visual Interactive Taskwarrior";
|
2019-10-15 19:10:36 +02:00
|
|
|
maintainers = with maintainers; [ dtzWill arcnmx ];
|
2019-03-11 04:17:42 +01:00
|
|
|
platforms = platforms.all;
|
2019-10-15 19:10:36 +02:00
|
|
|
license = licenses.mit;
|
2015-07-05 16:02:35 +02:00
|
|
|
};
|
|
|
|
}
|