15
0
forked from pool/python-gTTS

- Make tests working at least a little bit. Requires two new patches:

- demock.patch (gh#pndurette/gTTS#343)
  - network-tests.patch (gh#pndurette/gTTS#344)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gTTS?expand=0&rev=19
This commit is contained in:
2022-03-21 15:02:22 +00:00
committed by Git OBS Bridge
parent 0478cee45e
commit 4ba6040537
4 changed files with 55 additions and 3 deletions

View File

@@ -25,6 +25,12 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/pndurette/gTTS
Source: https://github.com/pndurette/gTTS/archive/refs/tags/v%{version}.tar.gz#/gTTS-%{version}.tar.gz
# PATCH-FIX-UPSTREAM demock.patch gh#pndurette/gTTS#343 mcepl@suse.com
# remove dependency on the external mock package
Patch0: demock.patch
# PATCH-FIX-UPSTREAM network-tests.patch gh#pndurette/gTTS#344 mcepl@suse.com
# one more test marked as the network requiring
Patch1: network-tests.patch
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module click}
BuildRequires: %{python_module gTTS-token >= 1.1.3}
@@ -53,7 +59,7 @@ utility. It allows unlimited lengths to be spoken by tokenizing long
sentences where the speech would naturally pause.
%prep
%setup -q -n gTTS-%{version}
%autosetup -p1 -n gTTS-%{version}
%build
%python_build
@@ -65,8 +71,7 @@ sentences where the speech would naturally pause.
%check
# tests are sadly mostly online
# https://github.com/pndurette/gTTS/issues/343
#%%pytest
%pytest -k 'not net'
%post
%python_install_alternative gtts-cli