mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
57 lines
1.6 KiB
Text
57 lines
1.6 KiB
Text
# Contributor: Andy Hawkins <andy@gently.org.uk>
|
|
# Maintainer: Andy Hawkins <andy@gently.org.uk>
|
|
pkgname=py3-parametrize-from-file
|
|
pkgver=0.17.0
|
|
pkgrel=3
|
|
pkgdesc="Parametrize From File"
|
|
url="https://parametrize-from-file.readthedocs.io/en/latest/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
python3>=3.6
|
|
py3-toml
|
|
py3-yaml
|
|
py3-nestedtext
|
|
py3-tidyexc
|
|
py3-more-itertools>=8.10
|
|
py3-decopatch
|
|
"
|
|
makedepends="
|
|
py3-flit-core
|
|
py3-gpep517
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-pytest-cov
|
|
py3-coveralls
|
|
py3-numpy
|
|
"
|
|
source="https://github.com/kalekundert/parametrize_from_file/archive/v$pkgver/parametrize_from_file-v$pkgver.tar.gz
|
|
contextlib.patch
|
|
"
|
|
builddir="$srcdir/parametrize_from_file-$pkgver"
|
|
# E AssertionError: Regex pattern did not match.
|
|
# E Regex: 'attempted to load file with: nestedtext.load\\(\\)'
|
|
# E Input: 'failed to load parametrization file\n• attempted to load file with: nestedtext.nestedtext.load()\n✖ /tmp/pytest-of-demon/pytest-4/test_load_suite_params_err_loa2/err.nt, 1: unrecognized line.\n'
|
|
#
|
|
options="!check"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$PWD/build/lib" pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/parametrize_from_file*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
3c3e3c80fa7a5d288824462bfa5c3d4c158fd7fc70a5e1616060db40ba546b182edd4cfb7e73d39123eb12b772bc120dbab3ddf03242ff931a4540dd70fe176b parametrize_from_file-v0.17.0.tar.gz
|
|
9b411d626a6724a69c73ebca2df9284f9c9c579dae45b3c2f218d0362f74d58c5f86358dd848c247b45daab8e881f933693163bfe2ccf4e6fbc1f117cfad237d contextlib.patch
|
|
"
|