Name: python-pytest-subprocess Version: 1.1.2 Release: 1%{?dist} Summary: A plugin to fake subprocess for pytest License: MIT URL: https://github.com/aklajnert/pytest-subprocess Source0: %{url}/archive/%{version}/pytest-subprocess-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Needed for tests: BuildRequires: /usr/bin/python %global _description %{expand: The plugin adds the fake_subprocess fixture. It can be used it to register subprocess results so you won't need to rely on the real processes. The plugin hooks on the subprocess.Popen(), which is the base for other subprocess functions. That makes the subprocess.run(), subprocess.call(), subprocess.check_call() and subprocess.check_output() methods also functional.} %description %_description %package -n python3-pytest-subprocess Summary: %{summary} %description -n python3-pytest-subprocess %_description %prep %autosetup -p1 -n pytest-subprocess-%{version} %generate_buildrequires %pyproject_buildrequires -rx test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pytest_subprocess %check %pytest %files -n python3-pytest-subprocess -f %{pyproject_files} %doc README.rst HISTORY.rst %changelog * Mon Jul 26 2021 Miro HronĨok - 1.1.2-1 - Initial package