mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-dep-logic
|
|
pkgver=0.4.11
|
|
pkgrel=0
|
|
pkgdesc="Python dependency specifications supporting logical operations"
|
|
url="https://github.com/pdm-project/dep-logic"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="py3-packaging"
|
|
makedepends="py3-gpep517 py3-pdm-backend py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/pdm-project/dep-logic/archive/$pkgver/py3-dep-logic-$pkgver.tar.gz
|
|
support-more-architectures.patch
|
|
"
|
|
builddir="$srcdir/dep-logic-$pkgver"
|
|
|
|
build() {
|
|
export PDM_BUILD_SCM_VERSION=$pkgver
|
|
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="
|
|
9bc6ba54d50f244fe4c5b1ec22229dbc05cd7e234b07d3ca79dbefbdb8e2f0dfd535401873db2c84aa08d9240ecf37ce4775bd8b64de4155afb5fb8d5b7d65c0 py3-dep-logic-0.4.11.tar.gz
|
|
2da3e850878eb3993412caf6dc8dbce007eea0334a405c4dc1929ff6fbd23250089b1c48232b3e3b48faa36f46b658c281eeb648c4ad4025297e510300873d72 support-more-architectures.patch
|
|
"
|