summaryrefslogtreecommitdiff
path: root/testing/whipper/APKBUILD
blob: 2cecc0474dd397f037ba11482bc90cf7a523e385 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=whipper
pkgver=0.10.0
pkgrel=2
pkgdesc="python CD-DA ripper preferring accuracy over speed"
# https://github.com/whipper-team/whipper/issues/515
options="net !check"
url="https://github.com/whipper-team/whipper"
arch="all !armhf !armv7 !x86" # TODO tests fail on armv7 and x86, ref whipper issue #429
license="GPL-3.0-only"
depends="
	python3
	libcdio-paranoia
	cdrdao
	gobject-introspection
	py3-gobject3
	py3-musicbrainzngs
	py3-mutagen
	py3-requests
	py3-cdio
	py3-discid
	py3-ruamel.yaml
	flac
	sox
"
makedepends="py3-setuptools py3-setuptools_scm python3-dev py3-wheel libsndfile-dev"
checkdepends="py3-twisted"
source="$pkgname-$pkgver.tar.gz::https://github.com/whipper-team/whipper/archive/v$pkgver.tar.gz"

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"

	python3 setup.py build
}

check() {
	PYTHONPATH="$(echo $PWD/build/lib.*)" python3 -m unittest discover
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
728ad98185aa2d29f4fb215a597136691bb2c3590b3cac4f659238f90a3b4328c377fafe830a725b655f050538739f404b3eca853db4c39001d1b9d721dc7fd8  whipper-0.10.0.tar.gz
"