From b381962059956997fc08ceb88f3c43b0118bfe3b Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Thu, 30 Mar 2023 02:00:57 -0400 Subject: [PATCH] +jinja2 --- .../mattrobenolt/jinja2-cli/package.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 projects/github.com/mattrobenolt/jinja2-cli/package.yml diff --git a/projects/github.com/mattrobenolt/jinja2-cli/package.yml b/projects/github.com/mattrobenolt/jinja2-cli/package.yml new file mode 100644 index 00000000..075adfcd --- /dev/null +++ b/projects/github.com/mattrobenolt/jinja2-cli/package.yml @@ -0,0 +1,25 @@ +distributable: + url: https://github.com/mattrobenolt/jinja2-cli/archive/refs/tags/{{version}}.tar.gz + strip-components: 1 + +versions: + github: mattrobenolt/jinja2-cli/tags + +dependencies: + python.org: '>=3.7' + +build: python-venv.sh {{prefix}}/bin/jinja2 + +provides: + - bin/jinja2 + +test: + script: | + echo "{{ title }}" > test.tmpl + OUT="$(jinja2 test.tmpl $FIXTURE --format=json)" + test "$OUT" = "tea.xyz" + fixture: | + { + "title": "tea.xyz", + "url": "https://tea.xyz" + } \ No newline at end of file