1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, aiofiles
7, aiohttp
8, click-log
9, emoji
10, glom
11, jinja2
12, pyyaml
13}:
14
15buildPythonPackage rec {
16 pname = "dinghy";
17 version = "0.15.0";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "nedbat";
24 repo = pname;
25 rev = version;
26 hash = "sha256-bfB1VVeIl1KzjY0oQ0jQ8M/fK5LZQqYU7AX201QX+Mk=";
27 };
28
29 propagatedBuildInputs = [
30 aiofiles
31 aiohttp
32 click-log
33 emoji
34 glom
35 jinja2
36 pyyaml
37 ];
38
39 checkInputs = [
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [
44 "dinghy.cli"
45 ];
46
47 meta = with lib; {
48 description = "A GitHub activity digest tool";
49 homepage = "https://github.com/nedbat/dinghy";
50 license = licenses.asl20;
51 maintainers = with maintainers; [ trundle veehaitch ];
52 };
53}