Files
nixpkgs/pkgs/development/python-modules/dinghy/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

67 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.4.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "nedbat";
repo = "dinghy";
tag = version;
hash = "sha256-51BXQdDxlI6+3ctDSa/6tyRXBb1E9BVej9qy7WtkOGM=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
aiofiles
aiohttp
backports-datetime-fromisoformat
click
click-log
emoji
glom
jinja2
pyyaml
];
nativeCheckInputs = [
freezegun
pytestCheckHook
];
pythonImportsCheck = [ "dinghy.cli" ];
meta = {
description = "GitHub activity digest tool";
mainProgram = "dinghy";
homepage = "https://github.com/nedbat/dinghy";
changelog = "https://github.com/nedbat/dinghy/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
trundle
veehaitch
];
};
}