2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
aiofiles,
|
|
|
|
aiohttp,
|
|
|
|
backports-datetime-fromisoformat,
|
|
|
|
click,
|
|
|
|
click-log,
|
|
|
|
emoji,
|
|
|
|
glom,
|
|
|
|
jinja2,
|
|
|
|
pyyaml,
|
|
|
|
freezegun,
|
|
|
|
setuptools,
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dinghy";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.3.2";
|
|
|
|
pyproject = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nedbat";
|
|
|
|
repo = pname;
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-0U08QHQuNm7qaxhU8sNxeN0fZ4S8N0RYRsWjFUqhZSU=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
aiohttp
|
2023-11-16 04:20:00 +00:00
|
|
|
backports-datetime-fromisoformat
|
|
|
|
click
|
2022-08-21 13:32:41 +00:00
|
|
|
click-log
|
|
|
|
emoji
|
|
|
|
glom
|
|
|
|
jinja2
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
freezegun
|
2022-10-21 18:38:19 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dinghy.cli" ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A GitHub activity digest tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dinghy";
|
2022-08-21 13:32:41 +00:00
|
|
|
homepage = "https://github.com/nedbat/dinghy";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/nedbat/dinghy/blob/${version}/CHANGELOG.rst";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.asl20;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
trundle
|
|
|
|
veehaitch
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
}
|