Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "makejinja";
|
|
version = "2.8.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mirkolenz";
|
|
repo = "makejinja";
|
|
tag = "v${version}";
|
|
hash = "sha256-vK5MJb4n3/NmkohpJ1shEexvjHlEAfwZJWy2oL+rzRk=";
|
|
};
|
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
dependencies =
|
|
with python3Packages;
|
|
[
|
|
jinja2
|
|
pyyaml
|
|
rich-click
|
|
typed-settings
|
|
immutables
|
|
]
|
|
++ typed-settings.optional-dependencies.attrs
|
|
++ typed-settings.optional-dependencies.cattrs
|
|
++ typed-settings.optional-dependencies.click;
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
description = "Generate entire directory structures using Jinja templates with support for external data and custom plugins";
|
|
homepage = "https://github.com/mirkolenz/makejinja";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "makejinja";
|
|
maintainers = with lib.maintainers; [
|
|
tomasajt
|
|
mirkolenz
|
|
];
|
|
platforms = lib.platforms.darwin ++ lib.platforms.linux;
|
|
changelog = "https://github.com/mirkolenz/makejinja/blob/${src.tag}/CHANGELOG.md";
|
|
};
|
|
}
|