0dc243f
# Created by pyp2rpm-3.3.5
0dc243f
%global pypi_name hypothesmith
0dc243f
0dc243f
%global common_description %{expand:
0dc243f
Hypothesis strategies for generating Python programs, something like CSmith.}
0dc243f
bc7b9fa
%bcond tests 1
bc7b9fa
0dc243f
Name:           python-%{pypi_name}
61e1df1
Version:        0.3.3
a81569b
Release:        %autorelease
0dc243f
Summary:        Hypothesis strategies for generating Python programs
0dc243f
4360c3c
License:        MPL-2.0
0dc243f
URL:            https://github.com/Zac-HD/hypothesmith
0dc243f
Source0:        %{pypi_source}
0dc243f
BuildArch:      noarch
0dc243f
0dc243f
BuildRequires:  python3-devel
0dc243f
0dc243f
%description
0dc243f
%{common_description}
0dc243f
6b308f6
0dc243f
%package -n     python3-%{pypi_name}
0dc243f
Summary:        %{summary}
0dc243f
0dc243f
%description -n python3-%{pypi_name}
0dc243f
%{common_description}
0dc243f
6b308f6
0dc243f
%prep
0dc243f
%autosetup -n %{pypi_name}-%{version}
0dc243f
# Remove bundled egg-info
6b308f6
# rm -rf %{pypi_name}.egg-info
0dc243f
# Tox configuration is passing unsupported arguments to pytest
6b308f6
# rm tox.ini
6b308f6
6b308f6
%generate_buildrequires
bc7b9fa
%pyproject_buildrequires %{?with_tests: -r deps/test.in}
6b308f6
0dc243f
0dc243f
%build
6b308f6
%pyproject_wheel
6b308f6
0dc243f
0dc243f
%install
6b308f6
%pyproject_install
6b308f6
6b308f6
%pyproject_save_files %{pypi_name}
6b308f6
0dc243f
bc7b9fa
%if %{with tests}
0dc243f
%check
0dc243f
%pytest
bc7b9fa
%endif
0dc243f
6b308f6
6b308f6
%files -n python3-%{pypi_name} -f %{pyproject_files}
0dc243f
%license LICENSE
0dc243f
%doc README.md CHANGELOG.md
6b308f6
0dc243f
0dc243f
%changelog
a81569b
%autochangelog