blob: c571e198c68e40aa1bc26c4e7584171b726d06e2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "makejinja";
version = "2.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mirkolenz";
repo = "makejinja";
rev = "refs/tags/v${version}";
hash = "sha256-F56y+TxDD/B67ncnBTOd0FZGmXO/zjXitwbk/5aiekM=";
};
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;
};
}
|