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