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
56
57
58
59
60
61
62
63
64
|
{
lib,
asgineer,
bcrypt,
buildPythonPackage,
fetchFromGitHub,
iptools,
itemdb,
jinja2,
markdown,
nodejs,
pscript,
pyjwt,
pytestCheckHook,
pythonOlder,
requests,
uvicorn,
}:
buildPythonPackage rec {
pname = "timetagger";
version = "24.4.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "almarklein";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-Qt6VKExigzMaEb5ZEEPHCe5DSYdx5KPIfVC0khx7pP4=";
};
propagatedBuildInputs = [
asgineer
bcrypt
iptools
itemdb
jinja2
markdown
pscript
pyjwt
uvicorn
];
preCheck = ''
export HOME=$(mktemp -d)
'';
nativeCheckInputs = [
nodejs
pytestCheckHook
requests
];
meta = with lib; {
description = "Library to interact with TimeTagger";
mainProgram = "timetagger";
homepage = "https://github.com/almarklein/timetagger";
changelog = "https://github.com/almarklein/timetagger/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ matthiasbeyer ];
};
}
|