2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, pythonPackages
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2022-12-17 10:02:37 +00:00
|
|
|
, taskwarrior
|
|
|
|
, writeShellScriptBin
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
with pythonPackages;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
wsl_stub = writeShellScriptBin "wsl" "true";
|
|
|
|
|
|
|
|
in buildPythonPackage rec {
|
|
|
|
pname = "tasklib";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "2.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-XM1zG1JjbdEEV6i42FjLDQJv+qsePnUbr3kb+APjfXs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
pytz
|
|
|
|
tzlocal
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
taskwarrior
|
|
|
|
wsl_stub
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/robgolding/tasklib";
|
2022-12-17 10:02:37 +00:00
|
|
|
description = "Library for interacting with taskwarrior databases";
|
|
|
|
changelog = "https://github.com/GothenburgBitFactory/tasklib/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ arcnmx ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|