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