* add python-legacy-cgi
This commit is contained in:
parent
eec0980017
commit
54fd701dc2
17
python/python-legacy-cgi/.SRCINFO
Normal file
17
python/python-legacy-cgi/.SRCINFO
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
pkgbase = python-legacy-cgi
|
||||||
|
pkgdesc = Fork of the standard library cgi and cgitb modules, being deprecated in PEP-594
|
||||||
|
pkgver = 2.6.1
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://github.com/jackrosenthal/legacy-cgi
|
||||||
|
arch = any
|
||||||
|
license = PSF-2.0
|
||||||
|
checkdepends = python-pytest
|
||||||
|
makedepends = python-build
|
||||||
|
makedepends = python-installer
|
||||||
|
makedepends = python-poetry-core
|
||||||
|
makedepends = python-wheel
|
||||||
|
depends = python
|
||||||
|
source = https://github.com/jackrosenthal/legacy-cgi/archive/v2.6.1/python-legacy-cgi-2.6.1.tar.gz
|
||||||
|
sha256sums = a24ec73e2d9639898245223ce73205d5cce8d15a6a3f2c2ce17cb0dffd5b59cf
|
||||||
|
|
||||||
|
pkgname = python-legacy-cgi
|
3
python/python-legacy-cgi/.nvchecker.toml
Normal file
3
python/python-legacy-cgi/.nvchecker.toml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[python-legacy-cgi]
|
||||||
|
source = "pypi"
|
||||||
|
pypi = "legacy-cgi"
|
38
python/python-legacy-cgi/PKGBUILD
Normal file
38
python/python-legacy-cgi/PKGBUILD
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||||
|
# Maintainer: Carl Smedstad <carsme@archlinux.org>
|
||||||
|
|
||||||
|
pkgname=python-legacy-cgi
|
||||||
|
_pkgname=${pkgname#python-}
|
||||||
|
pkgver=2.6.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Fork of the standard library cgi and cgitb modules, being deprecated in PEP-594"
|
||||||
|
arch=('any')
|
||||||
|
url="https://github.com/jackrosenthal/legacy-cgi"
|
||||||
|
license=('PSF-2.0')
|
||||||
|
depends=('python')
|
||||||
|
makedepends=(
|
||||||
|
'python-build'
|
||||||
|
'python-installer'
|
||||||
|
'python-poetry-core'
|
||||||
|
'python-wheel'
|
||||||
|
)
|
||||||
|
checkdepends=('python-pytest')
|
||||||
|
source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
|
||||||
|
sha256sums=('a24ec73e2d9639898245223ce73205d5cce8d15a6a3f2c2ce17cb0dffd5b59cf')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$_pkgname-$pkgver"
|
||||||
|
python -m build --wheel --no-isolation
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$_pkgname-$pkgver"
|
||||||
|
python -m installer --destdir="tmp_install" dist/*.whl
|
||||||
|
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||||
|
PYTHONPATH="$PWD/tmp_install/$site_packages" pytest
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$_pkgname-$pkgver"
|
||||||
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user