summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 228a562c5bc7b9be43be67ca92afdcf968339299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Aalivexy <aalivexy@outlook.com>
pkgname=python-pyncm
_name=${pkgname#python-}
pkgver=1.7.1
pkgrel=1
pkgdesc="NeteaseCloudMusic APIs for Python 3.x 适用于 Python 3 的网易云音乐 API"
arch=(any)
url=https://github.com/mos9527/pyncm
license=('Apache-2.0')
depends=(python-requests)
makedepends=(python-build python-installer python-wheel python-setuptools)
optdepends=(
    'python-mutagen: Metadata modification support'
    'python-tqdm: Downlopython-setuptoolsad progress bar support'
    'python-coloredlogs: Colored terminal output support'
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz")
sha256sums=('0056761862d15dec3c29e506e903135b51d1d5521da7a46fc3cc0d2e97d9dce2')
build() {
    cd $_name-$pkgver
    rm -r demos
    python -m build --wheel --no-isolation
}
package() {
    cd $_name-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
}