f5bf0e5
# Enabled by default
74df32d
%bcond_without tests
f5bf0e5
86932b9
Name:           python-pytest-lazy-fixture
2c69f38
Version:        0.6.3
bea0c4d
Release:        %autorelease
f5bf0e5
Summary:        Use fixtures in pytest.mark.parametrize
f5bf0e5
f5bf0e5
License:        MIT
86932b9
URL:            https://github.com/tvorog/pytest-lazy-fixture
86932b9
Source0:        %{pypi_source pytest-lazy-fixture}
f5bf0e5
f5bf0e5
BuildArch:      noarch
f5bf0e5
86932b9
BuildRequires:  python3-devel
86932b9
86932b9
%global _description %{expand:
86932b9
Use fixtures in pytest.mark.parametrize.}
86932b9
f5bf0e5
%description %_description
f5bf0e5
86932b9
%package -n python3-pytest-lazy-fixture
f5bf0e5
Summary:        %{summary}
f5bf0e5
86932b9
%description -n python3-pytest-lazy-fixture %_description
f5bf0e5
f5bf0e5
%prep
86932b9
%autosetup -n pytest-lazy-fixture-%{version}
86932b9
86932b9
%generate_buildrequires
86932b9
%pyproject_buildrequires
f5bf0e5
f5bf0e5
%build
86932b9
%pyproject_wheel
f5bf0e5
f5bf0e5
%install
86932b9
%pyproject_install
47dd15a
%pyproject_save_files -l pytest_lazyfixture
f5bf0e5
f5bf0e5
%check
f5bf0e5
%if %{with tests}
86932b9
%pytest
f5bf0e5
%endif
f5bf0e5
86932b9
%files -n python3-pytest-lazy-fixture -f %{pyproject_files}
f5bf0e5
%doc README.rst
f5bf0e5
f5bf0e5
%changelog
bea0c4d
%autochangelog