aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hy/APKBUILD
blob: e12239ade68a0fc015280a582c7b8a76762a1c7d (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=hy
pkgver=0.17.0
pkgrel=0
pkgdesc="Dialect of Lisp that's embedded in Python"
url="http://hylang.org/"
arch="noarch"
license="MIT"
depends="python3 py3-funcparserlib py3-astor py3-rply py3-clint"
makedepends="py3-setuptools"
checkdepends="python3-tests py3-pytest py3-pytest-runner py3-setuptools py3-tox"
source="$pkgname-$pkgver.tar.gz::https://github.com/hylang/$pkgname/archive/$pkgver.tar.gz
	do-not-invoke-git-describe.patch"

prepare() {
	default_prepare
	echo "__version__ = '$pkgver'" > "$builddir"/hy/version.py
}

build() {
	python3 setup.py build
}

check() {
	# Ignore tests requiring binaries to be installed
	py.test-3 --ignore tests/test_bin.py \
		--ignore tests/test_hy2py.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	# This file is only needed for setuptools-produced source
	# distributions <https://github.com/hylang/hy/commit/bd7b8bf5e19e>.
	rm -rf "$pkgdir"/usr/get_version
}

sha512sums="18601bf47df2120f8833a1ae211c416dc90825f31cd50b259adfe0585089a623d0fea13512b2935b093e14d8595c93bc1610939d5f1d664f6acf7ddf7e341542  hy-0.17.0.tar.gz
75256a4f35f97b71abc0bf111bfd6c7d7a4173dde346fb293eceecbc8fe3c550c00265625663f446771b8336711e8821da1179dc32da32d10c85a802d190efff  do-not-invoke-git-describe.patch"