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