nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, python3, fetchFromGitHub, fetchpatch, glibcLocales }:
2
3python3.pkgs.buildPythonApplication rec {
4 pname = "topydo";
5 version = "0.14";
6
7 src = fetchFromGitHub {
8 owner = "topydo";
9 repo = pname;
10 rev = version;
11 sha256 = "1lpfdai0pf90ffrzgmmkadbd86rb7250i3mglpkc82aj6prjm6yb";
12 };
13
14 patches = [
15 # fixes a failing test
16 (fetchpatch {
17 name = "update-a-test-reference-ics-file.patch";
18 url = "https://github.com/topydo/topydo/commit/9373bb4702b512b10f0357df3576c129901e3ac6.patch";
19 hash = "sha256-JpyQfryWSoJDdyzbrESWY+RmRbDw1myvTlsFK7+39iw=";
20 })
21 ];
22
23 propagatedBuildInputs = with python3.pkgs; [
24 arrow
25 glibcLocales
26 icalendar
27 prompt-toolkit
28 urwid
29 watchdog
30 ];
31
32 nativeCheckInputs = with python3.pkgs; [
33 freezegun
34 unittestCheckHook
35 ];
36
37 # Skip test that has been reported multiple times upstream without result:
38 # bram85/topydo#271, bram85/topydo#274.
39 preCheck = ''
40 substituteInPlace test/test_revert_command.py --replace 'test_revert_ls' 'dont_test_revert_ls'
41 '';
42
43 LC_ALL = "en_US.UTF-8";
44
45 meta = with lib; {
46 description = "A cli todo application compatible with the todo.txt format";
47 homepage = "https://github.com/topydo/topydo";
48 changelog = "https://github.com/topydo/topydo/blob/${src.rev}/CHANGES.md";
49 license = licenses.gpl3Plus;
50 maintainers = with maintainers; [ ];
51 };
52}