mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: Dhruvin Gandhi <contact@dhruvin.dev>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-license-expression
|
|
_pkgname=license-expression
|
|
pkgver=30.1.0
|
|
pkgrel=0
|
|
pkgdesc="Library to parse, compare, simplify and normalize license expressions"
|
|
url="https://github.com/nexB/license-expression"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3 py3-boolean.py"
|
|
makedepends="py3-setuptools py3-setuptools_scm py3-gpep517 py3-wheel"
|
|
checkdepends="py3-pytest py3-pytest-xdist"
|
|
source="https://files.pythonhosted.org/packages/source/l/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
8d05a04a2b753be1a50d58b622d9493948f0c70d834ee871e2814a1fcbdab6177a10733d6f1a8a19bd9cb741e2b5fe6edc73e8d15fb61f952283aa8053fc7090 license-expression-30.1.0.tar.gz
|
|
"
|