View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=maturin
DISTUTILS_EXT=1
PYTHON_COMPAT=( python3_{12..14} )
CRATES="actix-codec@0.5.2
actix-http@3.11.0
actix-macros@0.2.4
actix-router@0.5.3
actix-rt@2.10.0
actix-server@2.6.0
actix-service@2.0.3
actix-utils@3.0.1
actix-web-codegen@4.3.0
actix-web@4.11.0
addr2line@0.24.2
adler2@2.0.0
aho-corasick@1.1.3
alloc-no-stdlib@2.0.4
alloc-stdlib@0.2.2
android-tzdata@0.1.1
android_system_properties@0.1.5
anes@0.1.6
anstyle@1.0.11
anyhow@1.0.98
anymap2@0.13.0
argh@0.1.13
argh_derive@0.1.13
argh_shared@0.1.13
askama@0.12.1
askama_derive@0.12.5
askama_escape@0.10.3
askama_parser@0.2.1
autocfg@1.4.0
backtrace@0.3.75
base64@0.22.1
basic-toml@0.1.10
bincode@1.3.3
bit-set@0.5.3
bit-vec@0.6.3
bitflags@1.3.2
bitflags@2.9.1
block-buffer@0.10.4
brotli-decompressor@5.0.0
brotli@8.0.1
bstr@1.12.0
bumpalo@3.18.1
bytes@1.10.1
bytestring@1.4.0
cast@0.3.0
cc@1.2.26
cfg-if@1.0.0
cfg_aliases@0.1.1
chrono-tz-build@0.3.0
chrono-tz@0.9.0
chrono@0.4.41
ciborium-io@0.2.2
ciborium-ll@0.2.2
ciborium@0.2.2
clap@4.5.39
clap_builder@4.5.39
clap_complete@4.5.52
clap_complete_fig@4.5.2
clap_complete_nushell@4.5.6
clap_lex@0.7.4
clap_mangen@0.2.26
clipboard-win@5.4.0
configparser@3.1.0
console@0.15.11
console_error_panic_hook@0.1.7
cookie@0.16.2
core-foundation-sys@0.8.7
cpufeatures@0.2.17
crc32fast@1.4.2
criterion-plot@0.5.0
criterion@0.5.1
crossbeam-deque@0.8.6
crossbeam-epoch@0.9.18
crossbeam-utils@0.8.21
crunchy@0.2.3
crypto-common@0.1.6
darling@0.20.11
darling_core@0.20.11
darling_macro@0.20.11
deranged@0.4.0
derive_builder@0.20.2
derive_builder_core@0.20.2
derive_builder_macro@0.20.2
derive_more-impl@2.0.1
derive_more@2.0.1
deunicode@1.6.2
digest@0.10.7
displaydoc@0.2.5
dunce@1.0.5
either@1.15.0
encode_unicode@1.0.0
encoding_rs@0.8.35
endian-type@0.1.2
equivalent@1.0.2
errno@0.3.12
error-code@3.3.2
fancy-regex@0.11.0
fastrand@2.3.0
fd-lock@4.0.4
filetime@0.2.25
flate2@1.1.2
fnv@1.0.7
foldhash@0.1.5
form_urlencoded@1.2.1
fragile@2.0.1
fsevent-sys@4.1.0
futures-core@0.3.31
futures-sink@0.3.31
futures-task@0.3.31
futures-util@0.3.31
generic-array@0.14.7
getrandom@0.2.16
getrandom@0.3.3
gimli@0.31.1
globset@0.4.16
globwalk@0.9.1
h2@0.3.26
half@2.6.0
handlebars@6.3.2
hashbrown@0.15.3
heck@0.5.0
hermit-abi@0.5.1
home@0.5.11
http@0.2.12
httparse@1.10.1
httpdate@1.0.3
humansize@2.1.3
iana-time-zone-haiku@0.1.2
iana-time-zone@0.1.63
icu_collections@2.0.0
icu_locale_core@2.0.0
icu_normalizer@2.0.0
icu_normalizer_data@2.0.0
icu_properties@2.0.1
icu_properties_data@2.0.1
icu_provider@2.0.0
ident_case@1.0.1
idna@1.0.3
idna_adapter@1.2.1
ignore@0.4.23
impl-more@0.1.9
indexmap@2.9.0
indoc@2.0.6
inotify-sys@0.1.5
inotify@0.11.0
insta-cmd@0.6.0
insta@1.43.1
is-terminal@0.4.16
itertools@0.10.5
itertools@0.14.0
itoa@1.0.15
jobserver@0.1.33
js-sys@0.3.77
kqueue-sys@1.0.4
kqueue@1.1.1
kstring@2.0.2
language-tags@0.3.2
lazy_static@1.5.0
libc@0.2.172
libm@0.2.15
libredox@0.1.3
linked-hash-map@0.5.6
linux-raw-sys@0.9.4
liquid-core@0.26.11
liquid-derive@0.26.10
liquid-lib@0.26.11
liquid@0.26.11
litemap@0.8.0
local-channel@0.1.5
local-waker@0.1.4
lock_api@0.4.13
log@0.4.27
memchr@2.7.4
memo-map@0.3.3
memoffset@0.9.1
mime@0.3.17
mime_guess@2.0.5
minicov@0.3.7
minimal-lexical@0.2.1
miniz_oxide@0.8.8
mio@1.0.4
nibble_vec@0.1.0
nix@0.28.0
nom@7.1.3
notify-types@2.0.0
notify@8.0.0
num-conv@0.1.0
num-modular@0.6.1
num-order@1.2.0
num-traits@0.2.19
object@0.36.7
once_cell@1.21.3
oorandom@11.1.5
parking_lot@0.12.4
parking_lot_core@0.9.11
parse-zoneinfo@0.3.1
percent-encoding@2.3.1
pest@2.8.0
pest_derive@2.8.0
pest_generator@2.8.0
pest_meta@2.8.0
phf@0.11.3
phf_codegen@0.11.3
phf_generator@0.11.3
phf_shared@0.11.3
pin-project-lite@0.2.16
pin-utils@0.1.0
pkg-config@0.3.32
plist@1.7.1
plotters-backend@0.3.7
plotters-svg@0.3.7
plotters@0.3.7
portable-atomic@1.11.1
potential_utf@0.1.2
powerfmt@0.2.0
ppv-lite86@0.2.21
proc-macro2@1.0.95
psm@0.1.26
pyo3-build-config@0.27.0
pyo3-ffi@0.27.0
pyo3-macros-backend@0.27.0
pyo3-macros@0.27.0
pyo3@0.27.0
quick-xml@0.32.0
quote@1.0.40
r-efi@5.2.0
radix_trie@0.2.1
rand@0.8.5
rand@0.9.1
rand_chacha@0.3.1
rand_chacha@0.9.0
rand_core@0.6.4
rand_core@0.9.3
rayon-core@1.12.1
rayon@1.10.0
redox_syscall@0.5.12
regex-automata@0.4.9
regex-lite@0.1.6
regex-syntax@0.8.5
regex@1.11.1
rinja@0.3.5
rinja_derive@0.3.5
rinja_parser@0.3.5
roff@0.2.2
rust-fuzzy-search@0.1.1
rustc-demangle@0.1.24
rustc-hash@2.1.1
rustix@1.0.7
rustversion@1.0.21
rustyline@14.0.0
ryu@1.0.20
same-file@1.0.6
scopeguard@1.2.0
self_cell@1.2.0
serde-wasm-bindgen@0.6.5
serde-xml-rs@0.5.1
serde@1.0.219
serde_derive@1.0.219
serde_json5@0.1.0
serde_json@1.0.140
serde_qs@0.12.0
serde_spanned@0.6.9
serde_urlencoded@0.7.1
serde_yaml@0.9.34+deprecated
sha1@0.10.6
sha2@0.10.9
shlex@1.3.0
signal-hook-registry@1.4.5
similar-asserts@1.7.0
similar@2.7.0
siphasher@1.0.1
slab@0.4.9
slug@0.1.6
smallvec@1.15.1
smawk@0.3.2
socket2@0.5.10
stable_deref_trait@1.2.0
stacker@0.1.21
static_assertions@1.1.0
strsim@0.11.1
syn@2.0.101
synstructure@0.13.2
syntect@5.2.0
target-lexicon@0.13.3
tempfile@3.20.0
tera@1.20.0
terminal_size@0.4.2
textwrap@0.16.2
thiserror-impl@1.0.69
thiserror-impl@2.0.12
thiserror@1.0.69
thiserror@2.0.12
time-core@0.1.4
time-macros@0.2.22
time-tz@2.0.0
time@0.3.41
tinystr@0.8.1
tinytemplate@1.2.1
tokio-macros@2.5.0
tokio-util@0.7.15
tokio@1.45.1
toml@0.7.8
toml_datetime@0.6.11
toml_edit@0.19.15
tracing-attributes@0.1.29
tracing-core@0.1.34
tracing@0.1.41
typenum@1.18.0
ucd-trie@0.1.7
unic-char-property@0.9.0
unic-char-range@0.9.0
unic-common@0.9.0
unic-segment@0.9.0
unic-ucd-segment@0.9.0
unic-ucd-version@0.9.0
unicase@2.8.1
unicode-ident@1.0.18
unicode-linebreak@0.1.5
unicode-segmentation@1.12.0
unicode-width@0.1.14
unicode-width@0.2.0
unicode-xid@0.2.6
unicode_categories@0.1.1
unindent@0.2.4
unsafe-libyaml@0.2.11
url@2.5.4
utf8_iter@1.0.4
utf8parse@0.2.2
v_htmlescape@0.15.8
version_check@0.9.5
walkdir@2.5.0
wasi@0.11.0+wasi-snapshot-preview1
wasi@0.14.2+wasi-0.2.4
wasm-bindgen-backend@0.2.100
wasm-bindgen-futures@0.4.50
wasm-bindgen-macro-support@0.2.100
wasm-bindgen-macro@0.2.100
wasm-bindgen-shared@0.2.100
wasm-bindgen-test-macro@0.3.50
wasm-bindgen-test@0.3.50
wasm-bindgen@0.2.100
web-sys@0.3.77
winapi-util@0.1.9
windows-core@0.61.2
windows-implement@0.60.0
windows-interface@0.59.1
windows-link@0.1.1
windows-result@0.3.4
windows-strings@0.4.2
windows-sys@0.52.0
windows-sys@0.59.0
windows-targets@0.52.6
windows_aarch64_gnullvm@0.52.6
windows_aarch64_msvc@0.52.6
windows_i686_gnu@0.52.6
windows_i686_gnullvm@0.52.6
windows_i686_msvc@0.52.6
windows_x86_64_gnu@0.52.6
windows_x86_64_gnullvm@0.52.6
windows_x86_64_msvc@0.52.6
winnow@0.5.40
wit-bindgen-rt@0.39.0
writeable@0.6.1
xml-rs@0.8.26
yaml-rust@0.4.5
yoke-derive@0.8.0
yoke@0.8.0
zerocopy-derive@0.8.25
zerocopy@0.8.25
zerofrom-derive@0.1.6
zerofrom@0.1.6
zerotrie@0.2.2
zerovec-derive@0.11.1
zerovec@0.11.2
zstd-safe@7.2.4
zstd-sys@2.0.15+zstd.1.5.7
zstd@0.13.3"
RUST_MIN_VER="1.83.0"
inherit cargo distutils-r1 pypi
DESCRIPTION="Powerful template engine for Rust with minimal dependencies"
HOMEPAGE="https://github.com/mitsuhiko/minijinja"
SRC_URI+="
${CARGO_CRATE_URIS}
"
LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 CC0-1.0 ISC MIT Unicode-3.0 ZLIB"
SLOT="0"
KEYWORDS="~amd64"
QA_FLAGS_IGNORED="usr/lib/python3.*/site-packages/minijinja/_lowlevel.abi3.so"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_prepare() {
default
# adjust path to templates
sed -i 's|tests/templates|minijinja-py/tests/templates|' \
minijinja-py/tests/test_basic.py || die "sed failed for test_basic.py"
}