2022-09-02 12:56:04 +03:00
|
|
|
{ lib, python3Packages, fetchFromGitHub, glibcLocales }:
|
2017-09-22 00:16:35 +03:00
|
|
|
|
2017-09-22 10:44:04 +03:00
|
|
|
with python3Packages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2017-09-22 00:16:35 +03:00
|
|
|
pname = "topydo";
|
2022-01-19 18:27:12 +03:00
|
|
|
version = "0.14";
|
2017-09-22 00:16:35 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bram85";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-01-19 18:27:12 +03:00
|
|
|
sha256 = "1lpfdai0pf90ffrzgmmkadbd86rb7250i3mglpkc82aj6prjm6yb";
|
2017-09-22 00:16:35 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
arrow
|
|
|
|
icalendar
|
|
|
|
glibcLocales
|
2021-07-22 18:02:31 +03:00
|
|
|
prompt-toolkit
|
2017-09-22 00:16:35 +03:00
|
|
|
urwid
|
|
|
|
watchdog
|
|
|
|
];
|
2017-09-22 10:44:04 +03:00
|
|
|
|
2023-01-21 15:00:00 +03:00
|
|
|
nativeCheckInputs = [ unittestCheckHook mock freezegun pylint ];
|
2020-09-16 19:37:02 +03:00
|
|
|
|
|
|
|
# Skip test that has been reported multiple times upstream without result:
|
|
|
|
# bram85/topydo#271, bram85/topydo#274.
|
2022-08-06 19:32:04 +03:00
|
|
|
preCheck = ''
|
2020-09-16 19:37:02 +03:00
|
|
|
substituteInPlace test/test_revert_command.py --replace 'test_revert_ls' 'dont_test_revert_ls'
|
|
|
|
'';
|
2017-09-22 00:16:35 +03:00
|
|
|
|
2022-08-06 19:32:04 +03:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
2017-09-22 00:16:35 +03:00
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2017-09-22 00:16:35 +03:00
|
|
|
description = "A cli todo application compatible with the todo.txt format";
|
|
|
|
homepage = "https://github.com/bram85/topydo";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|