mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-30 09:50:18 +00:00
and also use `srv.rev` instead of `src.tag` for changelog. See: https://github.com/NixOS/nixpkgs/pull/589544#discussion_r4613431256
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatch-vcs,
|
|
hatchling,
|
|
lib,
|
|
keyring,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "calendaring-config";
|
|
version = "0.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pycalendar";
|
|
repo = "calendaring-config";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-ZGMqkgJ5K5OYdGf7AsNP3tPjFS4JbruNlFlPvjvNrRI=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
pyyaml
|
|
];
|
|
|
|
optional-dependencies = {
|
|
keyring = [ keyring ];
|
|
};
|
|
|
|
pythonImportsCheck = [ "calendaring_config" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
]
|
|
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/PyCalendar/calendaring-config/blob/${finalAttrs.src.tag}/docs/changelog.rst";
|
|
description = "Shared configuration file of caldav, calendaring and calendaring-jmap: format, discovery and credentials";
|
|
homepage = "https://github.com/pycalendar/calendaring-config";
|
|
license =
|
|
with lib.licenses;
|
|
OR [
|
|
asl20
|
|
gpl3Plus
|
|
];
|
|
maintainers = [ lib.maintainers.dotlambda ];
|
|
teams = [ lib.teams.ngi ];
|
|
};
|
|
})
|