From 6d5758f272073cc0cf1e69eb2e27438e38fc9685eaf0ca96b1ff61f5aca63cfd Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Mon, 25 Jan 2021 12:15:36 +0000 Subject: [PATCH] Accepting request 866563 from home:jayvdb:branches:devel:languages:python - Fix Tumbleweed Python 3.6 build OBS-URL: https://build.opensuse.org/request/show/866563 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wsproto?expand=0&rev=18 --- python-wsproto.changes | 5 +++++ python-wsproto.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-wsproto.changes b/python-wsproto.changes index 8c126ae..8ee830b 100644 --- a/python-wsproto.changes +++ b/python-wsproto.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 25 11:33:52 UTC 2021 - John Vandenberg + +- Fix Tumbleweed Python 3.6 build + ------------------------------------------------------------------- Sat Nov 28 09:27:15 UTC 2020 - John Vandenberg diff --git a/python-wsproto.spec b/python-wsproto.spec index dc0de21..c4dfb60 100644 --- a/python-wsproto.spec +++ b/python-wsproto.spec @@ -34,11 +34,12 @@ BuildArch: noarch %if 0%{?suse_version} <= 1520 BuildRequires: %{python_module dataclasses} %endif +BuildRequires: (python36-dataclasses if python36-base) # SECTION test requirements BuildRequires: %{python_module h11 >= 0.8.1} BuildRequires: %{python_module pytest} # /SECTION -%if 0%{?suse_version} <= 1520 +%if 0%{?python_version_nodots} <= 36 Requires: python-dataclasses %endif %python_subpackages