File python-pyramid-mako.spec of Package python-pyramid-mako

#
# spec file for package python-pyramid-mako
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           python-pyramid-mako
Version:        1.1.0
Release:        0
Summary:        Mako template bindings for the Pyramid web framework
License:        BSD-3-Clause
Group:          Development/Languages/Python
URL:            https://github.com/Pylons/pyramid_mako
Source:         https://files.pythonhosted.org/packages/source/p/pyramid_mako/pyramid_mako-%{version}.tar.gz
Patch0:         pyramid2.patch
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-Mako >= 1.1.0
Requires:       python-pyramid >= 2.0
BuildArch:      noarch
# SECTION test requirements
BuildRequires:  %{python_module Mako >= 1.1.0}
BuildRequires:  %{python_module WebTest >= 1.3.1}
BuildRequires:  %{python_module pyramid >= 2.0}
# /SECTION
%python_subpackages

%description
Mako template bindings for the Pyramid web framework.

%prep
%setup -q -n pyramid_mako-%{version}
%autopatch -p1

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
%pyunittest discover -v

%files %{python_files}
%doc CHANGES.txt README.rst docs/*.rst
%license COPYRIGHT.txt LICENSE.txt CONTRIBUTORS.txt
%{python_sitelib}/pyramid[-_]mako
%{python_sitelib}/pyramid[-_]mako-%{version}*-info

%changelog
openSUSE Build Service is sponsored by