# Created by pyp2rpm-3.3.2 %global pypi_name injector Name: python-%{pypi_name} Version: 0.14.1 Release: 1%{?dist} Summary: Injector - Python dependency injection framework, inspired by Guice License: BSD URL: http://github.com/alecthomas/injector Source0: https://files.pythonhosted.org/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description Injector - Python dependency injection framework, inspired by Guice [![image]( Dependency injection as a formal pattern is less useful in Python than in other languages, primarily due to its support for keyword arguments, the ease with which objects can be mocked, and its dynamic nature.That said, a framework for assisting in this process can remove a lot of boiler-plate from larger... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(typing) %description -n python3-%{pypi_name} Injector - Python dependency injection framework, inspired by Guice [![image]( Dependency injection as a formal pattern is less useful in Python than in other languages, primarily due to its support for keyword arguments, the ease with which objects can be mocked, and its dynamic nature.That said, a framework for assisting in this process can remove a lot of boiler-plate from larger... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %doc README.md %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Thu Nov 08 2018 Miroslav Suchy - 0.14.1-1 - Initial package.