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