17
0

Accepting request 977751 from home:pgajdos:python

- do not require python-mock for build
- added patches
  fix 20864ddfe4
  + python-Flask-SQLAlchemy-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/977751
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=17
This commit is contained in:
John Vandenberg
2022-05-17 12:13:37 +00:00
committed by Git OBS Bridge
parent 2b79156d46
commit 90d286e094
3 changed files with 31 additions and 1 deletions

View File

@@ -25,6 +25,8 @@ 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
# https://github.com/pallets-eco/flask-sqlalchemy/commit/20864ddfe4f9b70f20d38e5dc3f8d49c1ca99207
Patch0: python-Flask-SQLAlchemy-no-mock.patch
# 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}
@@ -36,7 +38,6 @@ 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
@@ -46,6 +47,7 @@ Adds SQLAlchemy support to your Flask application.
%prep
%setup -q -n Flask-SQLAlchemy-%{version}
%patch0 -p1
%build
%python_build