pantry/projects/github.com/mattrobenolt/jinja2-cli/package.yml

36 lines
772 B
YAML
Raw Normal View History

2023-03-30 09:00:57 +03:00
distributable:
url: https://github.com/mattrobenolt/jinja2-cli/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
versions:
github: mattrobenolt/jinja2-cli/tags
dependencies:
2023-10-03 18:23:56 +03:00
python.org: '>=3.7<3.12'
2023-03-30 09:00:57 +03:00
runtime:
env:
PYTHONPATH: "{{prefix}}/venv/lib/python3/site-packages:$PYTHONPATH"
build:
- python-venv.sh {{prefix}}/bin/jinja2
- run: >
ln -s \
python{{deps.python.org.version.marketing}} \
python{{deps.python.org.version.major}}
working-directory: ${{prefix}}/venv/lib
2023-03-30 09:00:57 +03:00
provides:
- bin/jinja2
test:
script:
- echo "{{ title }}" > test.tmpl
- OUT="$(jinja2 test.tmpl $FIXTURE --format=json)"
- test "$OUT" = "tea.xyz"
2023-03-30 09:00:57 +03:00
fixture: |
{
"title": "tea.xyz",
"url": "https://tea.xyz"
}