51 lines
1021 B
RPMSpec
51 lines
1021 B
RPMSpec
# Enabled by default
|
|
%bcond_without tests
|
|
|
|
Name: python-pytest-lazy-fixture
|
|
Version: 0.6.3
|
|
Release: %autorelease
|
|
Summary: Use fixtures in pytest.mark.parametrize
|
|
|
|
License: MIT
|
|
URL: https://github.com/tvorog/pytest-lazy-fixture
|
|
Source0: %{pypi_source pytest-lazy-fixture}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
%global _description %{expand:
|
|
Use fixtures in pytest.mark.parametrize.}
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-pytest-lazy-fixture
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-pytest-lazy-fixture %_description
|
|
|
|
%prep
|
|
%autosetup -n pytest-lazy-fixture-%{version}
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files pytest_lazyfixture
|
|
|
|
%check
|
|
%if %{with tests}
|
|
%pytest
|
|
%endif
|
|
|
|
%files -n python3-pytest-lazy-fixture -f %{pyproject_files}
|
|
# pyproject_files handles LICENSE; verify with “rpm -qL -p …”
|
|
%doc README.rst
|
|
|
|
%changelog
|
|
%autochangelog
|