2021-01-25 08:26:54 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub, glibcLocales }:
|
2017-09-21 22:16:35 +01:00
|
|
|
|
2017-09-22 08:44:04 +01:00
|
|
|
with python3Packages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2017-09-21 22:16:35 +01:00
|
|
|
pname = "topydo";
|
|
|
|
version = "0.13";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bram85";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0b3dz137lpbvpjvfy42ibqvj3yk526x4bpn819fd11lagn77w69r";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
arrow
|
|
|
|
icalendar
|
|
|
|
glibcLocales
|
2021-07-22 16:02:31 +01:00
|
|
|
prompt-toolkit
|
2017-09-21 22:16:35 +01:00
|
|
|
urwid
|
|
|
|
watchdog
|
|
|
|
];
|
2017-09-22 08:44:04 +01:00
|
|
|
|
2020-09-16 17:37:02 +01:00
|
|
|
checkInputs = [ mock freezegun pylint ];
|
|
|
|
|
|
|
|
# Skip test that has been reported multiple times upstream without result:
|
|
|
|
# bram85/topydo#271, bram85/topydo#274.
|
|
|
|
checkPhase = ''
|
|
|
|
substituteInPlace test/test_revert_command.py --replace 'test_revert_ls' 'dont_test_revert_ls'
|
|
|
|
python -m unittest discover
|
|
|
|
'';
|
2017-09-21 22:16:35 +01:00
|
|
|
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-21 22:16:35 +01:00
|
|
|
description = "A cli todo application compatible with the todo.txt format";
|
|
|
|
homepage = "https://github.com/bram85/topydo";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|