python-Flask-SQLAlchemy/python-Flask-SQLAlchemy.spec
Matej Cepl 8e2bd8c0c6 Accepting request 958741 from home:dimstar:Factory
- Work around test suite failure inside OBS: BuildRequire krb5.
  krb5 is a dependency to python (via tirpc), and inside OBS we get
  a slightly limited version of it as krb5-mini. The test suite of
  this package fails to pass with the mini flavor though. As -mini
  is never offered to actual users, we can get away with this
  workaround.

OBS-URL: https://build.opensuse.org/request/show/958741
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=15
2022-03-03 11:47:30 +00:00

69 lines
2.2 KiB
RPMSpec

#
# spec file for package python-Flask-SQLAlchemy
#
# Copyright (c) 2022 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-%{**}}
Name: python-Flask-SQLAlchemy
Version: 2.5.1
Release: 0
Summary: SQLAlchemy support for Flask
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/mitsuhiko/flask-sqlalchemy
Source: https://files.pythonhosted.org/packages/source/F/Flask-SQLAlchemy/Flask-SQLAlchemy-%{version}.tar.gz
# BR krb5 - the test suite falis with krb5-mini (and users in any case will only ever get krb5, never krb5-mini)
BuildRequires: krb5
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Flask >= 0.10
Requires: python-SQLAlchemy >= 0.8.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Flask >= 0.10}
BuildRequires: %{python_module SQLAlchemy >= 0.8.0}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
Adds SQLAlchemy support to your Flask application.
%prep
%setup -q -n Flask-SQLAlchemy-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE.rst
%doc CHANGES.rst README.rst
%dir %{python_sitelib}/flask_sqlalchemy
%{python_sitelib}/flask_sqlalchemy/*
%dir %{python_sitelib}/Flask_SQLAlchemy-%{version}-py*.egg-info
%{python_sitelib}/Flask_SQLAlchemy-%{version}-py*.egg-info/*
%changelog