1{ lib, pythonPackages, taskwarrior, writeShellScriptBin }:
2
3with pythonPackages;
4
5let
6
7wsl_stub = writeShellScriptBin "wsl" "true";
8
9in buildPythonPackage rec {
10 pname = "tasklib";
11 version = "1.3.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "19yra86g3wz2xgk22dnrjjh3gla969vb8jrps5rf0cdmsm9qqisv";
16 };
17
18 propagatedBuildInputs = [
19 six
20 pytz
21 tzlocal
22 ];
23
24 checkInputs = [
25 taskwarrior
26 wsl_stub
27 ];
28
29 meta = with lib; {
30 homepage = https://github.com/robgolding/tasklib;
31 description = "A library for interacting with taskwarrior databases";
32 maintainers = with maintainers; [ arcnmx ];
33 platforms = platforms.all;
34 license = licenses.bsd3;
35 };
36}