aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-nodeenv/APKBUILD
blob: 794fc2d1ba2964a929ec4eabc6f601c2180a6a0d (plain) (blame)
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
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-nodeenv
_pkgname=nodeenv
pkgver=1.6.0
pkgrel=1
pkgdesc="Node.js virtual environment builder"
url="https://ekalinin.github.io/nodeenv/"
arch="all !mips64" # no nodejs
license="BSD-3-Clause"
depends="bash python3"
makedepends="python3-dev py3-setuptools"
checkdepends="nodejs py3-pytest py3-mock py3-pytest-cov"
source="$_pkgname-$pkgver.tar.gz::https://github.com/ekalinin/nodeenv/archive/$pkgver.tar.gz
	11-alpine-prebuilt.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir/src" python3 -m pytest .
}

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

sha512sums="abf4fe55ba478570a32ff3bb24fc3c60ba2d100822f8295c4c55c301ccdff2dc2d20ef76990ea3ac203e30db8a1e85f3ef2df671f87c0cf7305cf1aeb788efdd  nodeenv-1.6.0.tar.gz
e92b8f702965faeae10263f991d942234fad1b8687e1c1d151860a3a5e5f90b802de4869a3f2995ee915a622167be8fc7df6532f3d106a33538a61cd20b52802  11-alpine-prebuilt.patch"