File python-pyramid_mako.spec of Package python-pyramid_mako

#
# spec file for package python-pyramid_mako
#
# Copyright (c) 2021 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/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name:           python-pyramid_mako
Version:        1.1.0
Release:        0
Summary:        Mako template bindings for the Pyramid web framework
License:        SUSE-Repoze
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
BuildRequires:  %{python_module Mako >= 0.8}
# Testing requirements
BuildRequires:  %{python_module WebTest >= 1.3.1}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module hupper}
# Not yet packaged
BuildRequires:  %{python_module plaster-pastedeploy}
BuildRequires:  %{python_module pyramid}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-Mako >= 0.8
Requires:       python-pyramid
BuildArch:      noarch
%python_subpackages

%description
pyramid_mako is a set of bindings that makes templates written for the
Mako templating system work under the Pyramid web framework.
Mako is a templating system written by Mike Bayer.

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

%build
%python_build

%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}

# %%check
# Disabled on 20210909 not compatible pyramid>2
# %%python_exec setup.py nosetests

%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE.txt
%doc CHANGES.txt CONTRIBUTORS.txt COPYRIGHT.txt
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by