186346e
# this is BRed by pytest, so we need to run without tests when bootstrapping
186346e
# also pygments-ansi-color is not available in Fedora yet
186346e
%bcond_with tests
186346e
fca6d7b
Name:           python-pygments-pytest
482137f
Version:        2.3.0
b2dbe8a
Release:        %autorelease
186346e
Summary:        A pygments lexer for pytest output
186346e
License:        MIT
186346e
URL:            https://github.com/asottile/pygments-pytest
f13e99b
Source:         %{url}/archive/v%{version}/pygments-pytest-%{version}.tar.gz
186346e
BuildArch:      noarch
186346e
186346e
BuildRequires:  python3-devel
7579642
BuildRequires:  pyproject-rpm-macros
186346e
186346e
%description
186346e
This library provides a pygments lexer called pytest.
186346e
This library also provides a sphinx extension.
186346e
fca6d7b
%package -n     python3-pygments-pytest
186346e
Summary:        %{summary}
186346e
fca6d7b
%description -n python3-pygments-pytest
186346e
This library provides a pygments lexer called pytest.
186346e
This library also provides a sphinx extension.
186346e
186346e
186346e
%prep
fca6d7b
%autosetup -n pygments-pytest-%{version}
186346e
7579642
%generate_buildrequires
7579642
%pyproject_buildrequires %{?with_tests:-t}
7579642
186346e
%build
7579642
%pyproject_wheel
186346e
186346e
%install
7579642
%pyproject_install
fca6d7b
%pyproject_save_files pygments_pytest
186346e
186346e
%if %{with tests}
186346e
%check
311086a
%pytest -v
186346e
%endif
186346e
15aa319
%files -n python3-pygments-pytest -f %{pyproject_files}
186346e
%doc README.md
186346e
186346e
%changelog
b2dbe8a
%autochangelog