blob: 118736f944790517addbf84aa0215bfc45cfe8cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
kitchen,
packaging,
poetry-core,
poetry-dynamic-versioning,
python-dateutil,
pytz,
taskwarrior2,
}:
buildPythonPackage rec {
pname = "taskw-ng";
version = "0.2.7";
pyproject = true;
src = fetchFromGitHub {
owner = "bergercookie";
repo = "taskw-ng";
tag = "v${version}";
hash = "sha256-KxXLSDvUclQlNbMR+Zzl6tgBrH2QxqjLVoyBK3OiKVU=";
};
pythonRelaxDeps = [
"packaging"
"pytz"
];
build-system = [
poetry-core
poetry-dynamic-versioning
];
propagatedBuildInputs = [
kitchen
packaging
python-dateutil
pytz
];
checkInputs = [ taskwarrior2 ];
# TODO: doesn't pass because `can_use` fails and `task --version` seems not to be answering.
# pythonImportsCheck = [ "taskw_ng" ];
meta = {
description = "Module to interact with the Taskwarrior API";
homepage = "https://github.com/bergercookie/taskw-ng";
changelog = "https://github.com/bergercookie/taskw-ng/blob/${src.rev}/CHANGELOG.rst";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ raitobezarius ];
};
}
|