testing/py3-class-doc: new aport

This commit is contained in:
Lauren N. Liberda 2023-06-16 15:32:47 +00:00 committed by psykose
parent 913f5147f9
commit 6fff72e5f4
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,39 @@
# Contributor: Lauren N. Liberda <lauren@selfisekai.rocks>
# Maintainer: Lauren N. Liberda <lauren@selfisekai.rocks>
pkgname=py3-class-doc
pkgver=1.25
pkgrel=0
pkgdesc="Extract attributes docstrings defined in various ways"
url="https://github.com/danields761/class-doc"
arch="noarch"
license="MIT"
depends="py3-more-itertools"
makedepends="py3-gpep517 py3-poetry-core"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/danields761/class-doc/archive/refs/tags/$pkgver/class-doc-$pkgver.tar.gz
masonry.patch
"
builddir="$srcdir/class-doc-$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="
ee90100b8be199873c411ecb97915bc835c744d30e539eb661193224a200e66d66189857dc5043bd32f2f01c9ea852b9624d3b01d4236e2e3f93fe278d0da26a class-doc-1.25.tar.gz
f063b339531531a47a9a72f84a49374f6e8178d8901c207bcb7713a19c49ed72f54260937b5d5d106bc48c8d54e43eeef818c0d6a6a32f4edc06ce9f71962050 masonry.patch
"

View File

@ -0,0 +1,11 @@
--- ./pyproject.toml.orig
+++ ./pyproject.toml
@@ -31,7 +31,7 @@
[build-system]
requires = ["poetry>=0.12"]
-build-backend = "poetry.masonry.api"
+build-backend = "poetry.core.masonry.api"
[tool.black]
skip_string_normalization = true