summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6452bf18ef2064c2e063987b2ebae7a5b6376107 (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
28
29
30
31
32
33
# Contributor: Gleb Liutsko <gleb290303@gmail.com>

pkgname=python-yandex-music-api
_name=${pkgname#python-}
pkgver=2.1.0
pkgrel=1
pkgdesc="Unofficial Python library for the Yandex.Music API"
arch=('any')
url="https://github.com/MarshalX/yandex-music-api"
license=('LGPL3')
depends=('python' 'python-requests' 'python-aiohttp' 'python-aiofiles')
makedepends=('python-setuptools')
checkdepends=('python-pytest')
source=("https://github.com/MarshalX/$_name/archive/v$pkgver.tar.gz")
md5sums=('62b60e48a1bd9a085b65b4185c49d548')

build() {
  cd $srcdir/$_name-$pkgver
  python setup.py build
}

package() {
  cd $srcdir/$_name-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build

  rm $pkgdir/usr/lib/python*/site-packages/tests -r
}

check() {
  cd $srcdir/$_name-$pkgver

  pytest tests
}