Name: python-pysnooper Version: 0.4.1 Release: %autorelease Summary: Poor man's debugger for Python License: MIT URL: https://github.com/cool-RR/pysnooper Source0: https://github.com/cool-RR/pysnooper/archive/%{version}/python-pysnooper-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: PySnooper is a replacement for debug print statements in code. After decorating a function it automatically logs which lines were run and any changes to local variables.} %description %_description %package -n python3-pysnooper Summary: %{summary} %{?python_provides python3-pysnooper} %description -n python3-pysnooper %_description %prep %autosetup -n PySnooper-%{version} %build %py3_build %install %py3_install %check PYTHONPATH=%{buildroot}%{python3_sitelib} %__python3 -m pytest -v tests/ %files -n python3-pysnooper %license LICENSE %doc README.md %{python3_sitelib}/pysnooper/ %{python3_sitelib}/PySnooper-%{version}-py%{python3_version}.egg-info/ %changelog %autochangelog