mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
6b7258e008
* +systemd * wip * no c compiler, eh? * prefixen * fix jinja pythonpath * Update package.yml * more deps (so many deps) * right, right * yep, i'm dumb * . * don't try to use /etc, pls * fix provides
36 lines
767 B
YAML
36 lines
767 B
YAML
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'
|
|
|
|
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
|
|
|
|
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"
|
|
}
|