54 lines
1.1 KiB
RPMSpec
54 lines
1.1 KiB
RPMSpec
# Enabled by default
|
|
%bcond_without tests
|
|
|
|
%global pypi_name pytest-lazy-fixture
|
|
|
|
%global _description %{expand:
|
|
Use fixtures in pytest.mark.parametrize.}
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 0.6.3
|
|
Release: %autorelease
|
|
Summary: Use fixtures in pytest.mark.parametrize
|
|
|
|
License: MIT
|
|
URL: https://pypi.python.org/pypi/%{pypi_name}
|
|
Source0: %pypi_source %{pypi_name}
|
|
|
|
BuildArch: noarch
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: %{summary}
|
|
BuildRequires: python3-devel
|
|
BuildRequires: %{py3_dist pytest}
|
|
BuildRequires: %{py3_dist setuptools}
|
|
|
|
%description -n python3-%{pypi_name} %_description
|
|
|
|
%prep
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%check
|
|
%if %{with tests}
|
|
PYTHONPATH="%{buildroot}/%{python3_sitelib}/" pytest-3
|
|
%endif
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python3_sitelib}/pytest_lazy_fixture-%{version}-py%{python3_version}.egg-info
|
|
%{python3_sitelib}/pytest_lazyfixture.py
|
|
%{python3_sitelib}/__pycache__
|
|
|
|
%changelog
|
|
%autochangelog
|