2018-10-17 09:17:50 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-spotipy
|
|
|
|
#
|
2025-01-07 14:33:59 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-10-17 09:17:50 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2025-01-07 14:33:59 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-10-17 09:17:50 +00:00
|
|
|
Name: python-spotipy
|
2025-02-28 05:09:56 +00:00
|
|
|
Version: 2.25.1
|
2018-10-17 09:17:50 +00:00
|
|
|
Release: 0
|
2018-12-19 16:57:46 +00:00
|
|
|
Summary: Client for the Spotify Web API
|
2018-10-17 09:17:50 +00:00
|
|
|
License: MIT
|
2020-03-17 14:11:54 +00:00
|
|
|
URL: https://spotipy.readthedocs.org/
|
|
|
|
# https://github.com/plamere/spotipy/issues/454
|
|
|
|
Source: https://github.com/plamere/spotipy/archive/%{version}.tar.gz
|
2024-06-10 09:23:24 +00:00
|
|
|
BuildRequires: %{python_module devel >= 3.8}
|
2025-01-07 14:33:59 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2022-09-29 19:06:35 +00:00
|
|
|
BuildRequires: %{python_module redis}
|
2018-10-17 09:17:50 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-01-07 14:33:59 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-10-17 09:17:50 +00:00
|
|
|
BuildRequires: fdupes
|
2020-03-17 14:11:54 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-09-29 19:06:35 +00:00
|
|
|
Requires: python-redis >= 3.5.3
|
|
|
|
Requires: python-requests >= 2.25.0
|
|
|
|
Requires: python-urllib3 >= 1.26.0
|
2018-10-17 09:17:50 +00:00
|
|
|
BuildArch: noarch
|
2020-03-17 14:11:54 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module requests >= 2.20.0}
|
|
|
|
# /SECTION
|
2018-10-17 09:17:50 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-12-19 16:57:46 +00:00
|
|
|
Spotipy is a Python library for the Spotify Web API.
|
|
|
|
With Spotipy, the user gets access to the music data
|
2018-12-19 13:08:12 +00:00
|
|
|
provided by the Spotify platform.
|
|
|
|
|
2018-12-19 16:57:46 +00:00
|
|
|
Documentation is available at
|
2018-12-19 13:08:12 +00:00
|
|
|
https://spotipy.readthedocs.io/
|
2018-10-17 09:17:50 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n spotipy-%{version}
|
|
|
|
|
|
|
|
%build
|
2025-01-07 14:33:59 +00:00
|
|
|
%pyproject_wheel
|
2018-10-17 09:17:50 +00:00
|
|
|
|
|
|
|
%install
|
2025-01-07 14:33:59 +00:00
|
|
|
%pyproject_install
|
2018-10-17 09:17:50 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2020-03-17 14:11:54 +00:00
|
|
|
%check
|
2020-07-07 06:58:55 +00:00
|
|
|
%pytest tests/unit/ -k 'not credentials_get_access_token'
|
2020-03-17 14:11:54 +00:00
|
|
|
|
2018-10-17 09:17:50 +00:00
|
|
|
%files %{python_files}
|
2020-03-17 14:11:54 +00:00
|
|
|
%license LICENSE.md
|
|
|
|
%doc CHANGELOG.md
|
2024-09-03 23:21:27 +00:00
|
|
|
%{python_sitelib}/spotipy
|
2025-02-28 05:09:56 +00:00
|
|
|
%{python_sitelib}/spotipy-%{version}.dist-info
|
2018-10-17 09:17:50 +00:00
|
|
|
|
|
|
|
%changelog
|