2023-05-24 13:37:59 +00:00
|
|
|
{ lib, python3, fetchFromGitHub, fetchpatch, glibcLocales }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "topydo";
|
2022-01-25 03:21:06 +00:00
|
|
|
version = "0.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-05-24 13:37:59 +00:00
|
|
|
owner = "topydo";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-01-25 03:21:06 +00:00
|
|
|
sha256 = "1lpfdai0pf90ffrzgmmkadbd86rb7250i3mglpkc82aj6prjm6yb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
patches = [
|
|
|
|
# fixes a failing test
|
|
|
|
(fetchpatch {
|
|
|
|
name = "update-a-test-reference-ics-file.patch";
|
|
|
|
url = "https://github.com/topydo/topydo/commit/9373bb4702b512b10f0357df3576c129901e3ac6.patch";
|
|
|
|
hash = "sha256-JpyQfryWSoJDdyzbrESWY+RmRbDw1myvTlsFK7+39iw=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2020-04-24 23:36:52 +00:00
|
|
|
arrow
|
|
|
|
glibcLocales
|
2023-05-24 13:37:59 +00:00
|
|
|
icalendar
|
2021-08-05 21:33:18 +00:00
|
|
|
prompt-toolkit
|
2020-04-24 23:36:52 +00:00
|
|
|
urwid
|
|
|
|
watchdog
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
|
|
freezegun
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# Skip test that has been reported multiple times upstream without result:
|
|
|
|
# bram85/topydo#271, bram85/topydo#274.
|
2022-09-09 14:08:57 +00:00
|
|
|
preCheck = ''
|
2020-09-25 04:45:31 +00:00
|
|
|
substituteInPlace test/test_revert_command.py --replace 'test_revert_ls' 'dont_test_revert_ls'
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A cli todo application compatible with the todo.txt format";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/topydo/topydo";
|
|
|
|
changelog = "https://github.com/topydo/topydo/blob/${src.rev}/CHANGES.md";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|