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 = "1.2.0";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "nedbat";
24 repo = pname;
25 rev = "refs/tags/${version}";
26 hash = "sha256-xtcNcykfgcWvifso0xaeMT31+G5x4HCp+tLAIEEq4cw=";
27 };
28
29 propagatedBuildInputs = [
30 aiofiles
31 aiohttp
32 click-log
33 emoji
34 glom
35 jinja2
36 pyyaml
37 ];
38
39 nativeCheckInputs = [
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 changelog = "https://github.com/nedbat/dinghy/blob/${version}/CHANGELOG.rst";
51 license = licenses.asl20;
52 maintainers = with maintainers; [ trundle veehaitch ];
53 };
54}