depot/third_party/nixpkgs/pkgs/development/python-modules/dinghy/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

66 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
aiofiles,
aiohttp,
backports-datetime-fromisoformat,
click,
click-log,
emoji,
glom,
jinja2,
pyyaml,
freezegun,
setuptools,
}:
buildPythonPackage rec {
pname = "dinghy";
version = "1.3.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "nedbat";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-0U08QHQuNm7qaxhU8sNxeN0fZ4S8N0RYRsWjFUqhZSU=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
aiofiles
aiohttp
backports-datetime-fromisoformat
click
click-log
emoji
glom
jinja2
pyyaml
];
nativeCheckInputs = [
freezegun
pytestCheckHook
];
pythonImportsCheck = [ "dinghy.cli" ];
meta = with lib; {
description = "GitHub activity digest tool";
mainProgram = "dinghy";
homepage = "https://github.com/nedbat/dinghy";
changelog = "https://github.com/nedbat/dinghy/blob/${version}/CHANGELOG.rst";
license = licenses.asl20;
maintainers = with maintainers; [
trundle
veehaitch
];
};
}