Merge pull request #310945 from TomaSajt/makejinja
makejinja: init at 2.6.0
This commit is contained in:
commit
13a0ff7c47
52
pkgs/by-name/ma/makejinja/package.nix
Normal file
52
pkgs/by-name/ma/makejinja/package.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "makejinja";
|
||||
version = "2.6.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mirkolenz";
|
||||
repo = "makejinja";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-sH4m+rcHA6nW21xEJon10lS7e5QiFwUyvV49NZ3UY+s=";
|
||||
};
|
||||
|
||||
build-system = with python3Packages; [ poetry-core ];
|
||||
|
||||
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;
|
||||
|
||||
preCheck = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "--cov makejinja --cov-report term-missing" ""
|
||||
'';
|
||||
|
||||
nativeCheckInputs = with python3Packages; [ 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user