* add python-sphinx-notfound-page
This commit is contained in:
parent
7824765705
commit
129e142349
19
python/python-sphinx-notfound-page/.SRCINFO
Normal file
19
python/python-sphinx-notfound-page/.SRCINFO
Normal file
@ -0,0 +1,19 @@
|
||||
pkgbase = python-sphinx-notfound-page
|
||||
pkgdesc = Create a custom 404 page with absolute URLs hardcoded
|
||||
pkgver = 1.1.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/readthedocs/sphinx-notfound-page
|
||||
arch = any
|
||||
license = MIT
|
||||
checkdepends = python-pytest
|
||||
makedepends = git
|
||||
makedepends = python-build
|
||||
makedepends = python-flit-core
|
||||
makedepends = python-installer
|
||||
depends = python
|
||||
depends = python-docutils
|
||||
depends = python-sphinx
|
||||
source = git+https://github.com/readthedocs/sphinx-notfound-page#tag=1.1.0
|
||||
sha512sums = 09275ace82f302748fe1d264601c6f1ac78b8447e50c28930902dc795fc37a88ac3f8ee4304024285e20af881e0ded6bd730b432650dfcf16ab0618ec5dfb72f
|
||||
|
||||
pkgname = python-sphinx-notfound-page
|
3
python/python-sphinx-notfound-page/.nvchecker.toml
Normal file
3
python/python-sphinx-notfound-page/.nvchecker.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[python-sphinx-notfound-page]
|
||||
source = "git"
|
||||
git = "https://github.com/readthedocs/sphinx-notfound-page.git"
|
44
python/python-sphinx-notfound-page/PKGBUILD
Normal file
44
python/python-sphinx-notfound-page/PKGBUILD
Normal file
@ -0,0 +1,44 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer:
|
||||
|
||||
pkgname=python-sphinx-notfound-page
|
||||
_pyname=${pkgname/python-/}
|
||||
pkgver=1.1.0
|
||||
pkgrel=1
|
||||
pkgdesc='Create a custom 404 page with absolute URLs hardcoded'
|
||||
url='https://github.com/readthedocs/sphinx-notfound-page'
|
||||
arch=(any)
|
||||
license=(MIT)
|
||||
depends=(python
|
||||
python-docutils
|
||||
python-sphinx)
|
||||
makedepends=(git
|
||||
python-build
|
||||
python-flit-core
|
||||
python-installer)
|
||||
checkdepends=(python-pytest)
|
||||
source=(git+https://github.com/readthedocs/sphinx-notfound-page#tag=$pkgver)
|
||||
sha512sums=('09275ace82f302748fe1d264601c6f1ac78b8447e50c28930902dc795fc37a88ac3f8ee4304024285e20af881e0ded6bd730b432650dfcf16ab0618ec5dfb72f')
|
||||
|
||||
prepare() {
|
||||
cd $_pyname
|
||||
git cherry-pick -n 8af414e0f76dddd64143090a7eb9ff9d3f1de2d1 # Fix tests
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $_pyname
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $_pyname
|
||||
python -m installer --destdir=tmp-install dist/*.whl
|
||||
PYTHONPATH="$PWD"/tmp-install`python -c "import site; print(site.getsitepackages()[0])"` \
|
||||
pytest -v
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $_pyname
|
||||
python -m installer --destdir="${pkgdir}" dist/*.whl
|
||||
install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user