Name: python-jinja2-ansible-filters Version: 1.3.2 Release: %autorelease Summary: Port of Ansible's jinja2 filters without requiring ansible core License: GPL-3.0-or-later AND BSD-2-Clause URL: https://gitlab.com/dreamer-labs/libraries/jinja2-ansible-filters VCS: git:%{url}.git Source: %{url}/-/archive/v%{version}/jinja2-ansible-filters-v%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Tests BuildRequires: python3dist(pytest) %global _description %{expand: Jinja2 Ansible Filters is a port of the ansible filters provided by Ansible's templating engine. This repository is not inteded to supplant ansible functionality however there are a lot of filters ansible provides that are not present in upstream Jinja2 so you may find these helpful.} %description %_description %package -n python3-jinja2-ansible-filters Summary: %{summary} %description -n python3-jinja2-ansible-filters %_description %prep %autosetup -p1 -n jinja2-ansible-filters-v%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l jinja2_ansible_filters %check %pyproject_check_import # One test fails with # RuntimeError: dictionary keys changed during iteration %pytest -k "not test_extension_collision" %files -n python3-jinja2-ansible-filters -f %{pyproject_files} %doc README.md %doc CHANGELOG.md %license LICENSE %changelog %autochangelog