1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 aiofiles,
8 aiohttp,
9 backports-datetime-fromisoformat,
10 click,
11 click-log,
12 emoji,
13 glom,
14 jinja2,
15 pyyaml,
16 freezegun,
17 setuptools,
18}:
19
20buildPythonPackage rec {
21 pname = "dinghy";
22 version = "1.4.1";
23 pyproject = true;
24
25 disabled = pythonOlder "3.8";
26
27 src = fetchFromGitHub {
28 owner = "nedbat";
29 repo = "dinghy";
30 tag = version;
31 hash = "sha256-51BXQdDxlI6+3ctDSa/6tyRXBb1E9BVej9qy7WtkOGM=";
32 };
33
34 nativeBuildInputs = [ setuptools ];
35
36 propagatedBuildInputs = [
37 aiofiles
38 aiohttp
39 backports-datetime-fromisoformat
40 click
41 click-log
42 emoji
43 glom
44 jinja2
45 pyyaml
46 ];
47
48 nativeCheckInputs = [
49 freezegun
50 pytestCheckHook
51 ];
52
53 pythonImportsCheck = [ "dinghy.cli" ];
54
55 meta = with lib; {
56 description = "GitHub activity digest tool";
57 mainProgram = "dinghy";
58 homepage = "https://github.com/nedbat/dinghy";
59 changelog = "https://github.com/nedbat/dinghy/blob/${src.tag}/CHANGELOG.rst";
60 license = licenses.asl20;
61 maintainers = with maintainers; [
62 trundle
63 veehaitch
64 ];
65 };
66}