87 lines
2.2 KiB
Bash
87 lines
2.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=python-pytest
|
|
_name=${pkgname#python-}
|
|
pkgver=7.4.4
|
|
pkgrel=01
|
|
epoch=1
|
|
pkgdesc="Simple powerful testing with Python"
|
|
url="https://pytest.org/"
|
|
depends=('python-iniconfig' 'python-packaging' 'python-pluggy') # 'python-attrs' 'python-exceptiongroup' 'python-tomli')
|
|
makedepends=(
|
|
'git'
|
|
'python-build'
|
|
'python-installer'
|
|
'python-setuptools'
|
|
'python-setuptools-scm'
|
|
'python-wheel'
|
|
)
|
|
#checkdepends=(
|
|
# 'python-argcomplete'
|
|
# 'python-attrs'
|
|
# 'python-hypothesis'
|
|
# 'python-nose'
|
|
# 'python-pygments'
|
|
# 'python-requests'
|
|
# 'python-xmlschema'
|
|
# # Unlisted, but actually used. Check again after a while:
|
|
# 'lsof'
|
|
# 'python-decorator'
|
|
# 'python-docutils'
|
|
# 'python-exceptiongroup'
|
|
# 'python-jinja'
|
|
# 'python-numpy'
|
|
# 'python-pexpect'
|
|
# 'python-pytest-xdist'
|
|
# 'python-twisted'
|
|
#)
|
|
source=("git+https://github.com/$_name-dev/$_name.git#tag=$pkgver")
|
|
|
|
## Remove dep on setuptools_scm
|
|
#prepare() {
|
|
# cd "$_name"
|
|
# sed -i "/^\[metadata\]/a version = $pkgver
|
|
# /setuptools-scm/d" setup.cfg
|
|
# sed -i '/setuptools-scm\|wheel/d
|
|
# /\[tool.setuptools_scm\]/,/^$/d' pyproject.toml
|
|
#
|
|
#}
|
|
|
|
build() {
|
|
cd "$_name"
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
|
}
|
|
|
|
#check() {
|
|
# cd "$_name"
|
|
# # https://github.com/pytest-dev/pytest/issues/10042
|
|
# PYTHONPATH="$PWD/src:$PYTHONPATH" pytest -o xfail_strict=False
|
|
#}
|
|
|
|
package() {
|
|
cd "$_name"
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
|
|
# Symlink license file
|
|
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
|
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
|
ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE \
|
|
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('MIT')
|
|
|
|
sha256sums=(SKIP) # pytest
|
|
|
|
## 2bed0d6c2d603a63437dd54260dd36324feabfa4997527c83f8dc267cc7f99c1 python-pytest-1_7.4.4-01-x86_64.pkg.tar.lz
|
|
|