2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-09-19 14:19:46 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
six,
|
|
|
|
pytz,
|
|
|
|
tzlocal,
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchPypi,
|
2024-09-19 14:19:46 +00:00
|
|
|
taskwarrior2,
|
2024-06-05 15:53:02 +00:00
|
|
|
writeShellScriptBin,
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tasklib";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "2.5.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
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 = [
|
2024-09-19 14:19:46 +00:00
|
|
|
taskwarrior2
|
|
|
|
# stub
|
|
|
|
(writeShellScriptBin "wsl" "true")
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
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}";
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with lib.maintainers; [ arcnmx ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
license = lib.licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|