aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-nodeenv/APKBUILD
blob: 3c44d73467de5348209474c07cc1859bf9edbc2e (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
33
34
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-nodeenv
_pkgname=nodeenv
pkgver=1.5.0
pkgrel=3
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
	10-alpine.patch
	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="645911f6ab173bf0e7b68fca9741f1deeb2d486dea99f43d542f86b2ac34439e03da18a6e4de49e3dd45fb89b3c87005b184ca4b73aa0549e75a86191e045e02  nodeenv-1.5.0.tar.gz
0888c64246aa664d7289c66e3765ee576930788f526db620c9ff92708121a5e1a3d96c44d5453371c77bedc6ded6d9a2c9dfb1bf6e77aa669653584ab1ebe65b  10-alpine.patch
e92b8f702965faeae10263f991d942234fad1b8687e1c1d151860a3a5e5f90b802de4869a3f2995ee915a622167be8fc7df6532f3d106a33538a61cd20b52802  11-alpine-prebuilt.patch"