# Maintainer: zoorat # Maintainer: Amin Vakil # Contributor: txtsd # Contributor: Tim Schumacher # Contributor: Felix Yan # Contributor: Gordian Edenhofer pkgname=python-spotdl pkgver=4.1.6 pkgrel=1 pkgdesc='Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).' arch=('any') url='https://github.com/spotDL/spotify-downloader' license=('MIT') depends=( 'ffmpeg' 'python' 'python-beautifulsoup4' 'python-fastapi' 'python-mutagen' 'python-platformdirs' 'python-pydantic' 'python-pykakasi' 'python-pytube' 'python-rapidfuzz' 'python-requests' 'python-rich' 'python-slugify' 'python-spotipy' 'python-syncedlyrics' 'python-typing-extensions' 'python-ytmusicapi' 'uvicorn' 'yt-dlp' ) makedepends=('python-build' 'python-installer' 'python-wheel' 'python-poetry-core') checkdepends=('python-pytest-asyncio') provides=("$pkgname" 'spotdl') options=(strip emptydirs zipman) # install="spotdl.install" source=("https://pypi.io/packages/source/s/spotdl/spotdl-$pkgver.tar.gz") # source=("https://github.com/spotDL/spotify-downloader/archive/refs/tags/v$pkgver.zip") b2sums=('35c651c78b02c2f38cfc43df80c5d2076a44a106b1ee9ba7bea276a02db8f19c1f11ba11f8942e42656b56f2b1a38874f28014fd5ca238a1b40fcb0a94dc7397') # Document: https://wiki.archlinux.org/title/Python_package_guidelines build() { pushd spotdl-$pkgver # https://github.com/python-poetry/poetry/issues/5547 GIT_DIR=. python -m build --wheel --no-isolation popd } check() { pushd spotdl-$pkgver pytest || echo 'Tests failed!' popd } package() { pushd spotdl-$pkgver python -m installer --destdir="$pkgdir" dist/*.whl install -vDm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" popd }