audio/py-spotipy: New port: Python library for Spotify Web API

Spotipy is a lightweight Python library for the Spotify Web API. With Spotipy
you get full access to all of the music data provided by the Spotify platform.

https://github.com/spotipy-dev/spotipy
This commit is contained in:
Nicola Vitale 2022-12-17 16:27:34 +01:00
parent 3a8101a26b
commit df0ac288bf
No known key found for this signature in database
GPG Key ID: A51E190C4C0808D0
5 changed files with 54 additions and 0 deletions

View File

@ -667,6 +667,7 @@
SUBDIR += py-sounddevice
SUBDIR += py-soundscrape
SUBDIR += py-speechrecognition
SUBDIR += py-spotipy
SUBDIR += py-tagpy
SUBDIR += py-wavio
SUBDIR += py-webrtcvad

37
audio/py-spotipy/Makefile Normal file
View File

@ -0,0 +1,37 @@
PORTNAME= spotipy
DISTVERSION= 2.22.0
CATEGORIES= audio python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= Light weight Python library for the Spotify Web API
WWW= https://github.com/spotipy-dev/spotipy
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}redis>=3.5.3:databases/py-redis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.25.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.15.0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}urllib3>=1.26.0:net/py-urllib3@${PY_FLAVOR}
USES= python
USE_GITHUB= yes
GH_ACCOUNT= spotipy-dev
USE_PYTHON= autoplist distutils
NO_ARCH= yes
OPTIONS_DEFINE= DOCS EXAMPLES
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.8.0,1:textproc/py-sphinx@${PY_FLAVOR}
DOCS_PORTDOCS= * .buildinfo
EXAMPLES_PORTEXAMPLES= *
post-install-DOCS-on:
${LOCALBASE}/bin/sphinx-build-${PYTHON_VER} -d ${WRKDIR} -b html ${WRKSRC}/docs ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}/${EXAMPLESDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1671214324
SHA256 (spotipy-dev-spotipy-2.22.0_GH0.tar.gz) = d5cc2672f249d339ba2054d4a0228a1670bc43fd9942f0e7c62fbe99e16f97e2
SIZE (spotipy-dev-spotipy-2.22.0_GH0.tar.gz) = 109714

View File

@ -0,0 +1,11 @@
--- docs/conf.py.orig 2022-12-10 15:31:47 UTC
+++ docs/conf.py
@@ -17,7 +17,7 @@ import sys, os
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
-sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath(os.path.join('..')))
import spotipy
# -- General configuration -----------------------------------------------------

View File

@ -0,0 +1,2 @@
Spotipy is a lightweight Python library for the Spotify Web API. With Spotipy
you get full access to all of the music data provided by the Spotify platform.