File python-pyramid_mako.spec of Package python-pyramid_mako

# spec file for package python-pyramid_mako
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pyramid_mako
Version:        1.0.2
Release:        0
Summary:        Mako template bindings for the Pyramid web framework
License:        SUSE-Repoze
Group:          Development/Languages/Python
BuildRequires:  %{python_module Mako} >= 0.8
# Testing requirements
BuildRequires:  %{python_module WebTest} >= 1.3.1
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module hupper}
BuildRequires:  %{python_module nose}
# 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

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.

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


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

# Not done missing plaster-pastedeploy
%python_exec nosetests

%files %{python_files}
%license LICENSE.txt