aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-hatch-nodejs-version/APKBUILD
blob: 148f24eebb94e91d7e412cd8181f5a557019cdfc (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
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-hatch-nodejs-version
pkgver=0.3.1
pkgrel=1
pkgdesc="Hatch plugin for versioning from a Node.js package.json"
url="https://github.com/agoose77/hatch-nodejs-version"
arch="noarch"
license="MIT"
depends="py3-hatchling"
makedepends="py3-build py3-installer"
checkdepends="py3-pytest"
source="https://github.com/agoose77/hatch-nodejs-version/archive/v$pkgver/python-hatch-nodejs-version-$pkgver.tar.gz"
builddir="$srcdir/hatch-nodejs-version-$pkgver"

build() {
	python3 -m build --wheel --no-isolation --skip-dependency-check
}

check() {
	pytest
}

package() {
	python3 -m installer --destdir="$pkgdir" dist/*.whl
}

sha512sums="
98a0ecc4a4271073f4ae7c09d631cf29a2e7a3a52beed82ad7afddcbeb764993352224faf144eade37c48eb79106ad69424837197acb8ab755b18a62b4cae072  python-hatch-nodejs-version-0.3.1.tar.gz
"