File python-music_assistant_client.spec of Package python-music_assistant_client

#
# spec file for package python-music-assistant-client
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define         skip_python2 1
%define         skip_python36 1
%define         skip_python38 1
%define         skip_python39 1
%define         skip_python310 1
%define         skip_python311 1
Name:           python-music_assistant_client
Version:        1.3.3
Release:        0
License:        Apache-2.0
Summary:        Python client to interact with the Music Assistant Server API
Group:          Development/Languages/Python
Url:            https://pypi.org/project/music-assistant-client/
Source:         https://files.pythonhosted.org/packages/source/m/music_assistant_client/music_assistant_client-%{version}.tar.gz
BuildRequires:  %{python_module hatchling}
BuildRequires:  %{python_module poetry-core}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module aiohttp >= 3.10}
Provides:       python-music-assistant-client = %version
Requires:       python-aiohttp >= 3.8.6
Requires:       python-orjson >= 3.9
Requires:       python-music_assistant_models >= 1.1.51
BuildArch:      noarch
%python_subpackages

%description
Python client to interact with the Music Assistant Server API

%prep
%setup -q -n music_assistant_client-%{version}
sed -i -e 's,music_assistant_models==,music_assistant_models>=,' pyproject.toml PKG-INFO

%build
%pyproject_wheel
               
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%doc README.md
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by