1{ lib
2, pythonPackages
3, taskwarrior
4, writeShellScriptBin
5}:
6
7with pythonPackages;
8
9let
10
11wsl_stub = writeShellScriptBin "wsl" "true";
12
13in buildPythonPackage rec {
14 pname = "tasklib";
15 version = "2.5.1";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-XM1zG1JjbdEEV6i42FjLDQJv+qsePnUbr3kb+APjfXs=";
20 };
21
22 propagatedBuildInputs = [
23 six
24 pytz
25 tzlocal
26 ];
27
28 nativeCheckInputs = [
29 taskwarrior
30 wsl_stub
31 ];
32
33 meta = with lib; {
34 homepage = "https://github.com/robgolding/tasklib";
35 description = "Library for interacting with taskwarrior databases";
36 changelog = "https://github.com/GothenburgBitFactory/tasklib/releases/tag/${version}";
37 maintainers = with maintainers; [ arcnmx ];
38 platforms = platforms.all;
39 license = licenses.bsd3;
40 };
41}