1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 appdirs,
6 click,
7 flit-core,
8 pytestCheckHook,
9 freezegun,
10}:
11
12buildPythonPackage rec {
13 pname = "taxi";
14 version = "6.3.1";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "sephii";
19 repo = "taxi";
20 rev = version;
21 hash = "sha256-QB88RpgzrQy7DGeRdMHC2SV5Esp/r5LZtlaY5C8vJxw=";
22 };
23
24 build-system = [ flit-core ];
25
26 dependencies = [
27 appdirs
28 click
29 ];
30
31 nativeCheckInputs = [
32 freezegun
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "taxi" ];
37
38 meta = with lib; {
39 homepage = "https://github.com/sephii/taxi/";
40 description = "Timesheeting made easy";
41 mainProgram = "taxi";
42 license = licenses.wtfpl;
43 maintainers = with maintainers; [ jocelynthode ];
44 };
45}