psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

33 lines
1.0 KiB
Plaintext

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-pecan
pkgver=1.4.2
pkgrel=1
pkgdesc="A WSGI object-dispatching web framework, designed to be lean and fast, with few dependencies"
url="https://github.com/pecan/pecan"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-logutils py3-mako py3-six py3-webob"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-webtest"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/pecan/pecan-$pkgver.tar.gz"
builddir="$srcdir/pecan-$pkgver"
build() {
python3 setup.py build
}
# deselect test which looks like it should pass
check() {
rm pecan/tests/__init__.py
python3 -m pytest --deselect=pecan/tests/test_base.py::TestAppRoot::test_controller_lookup_by_string_path
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
cea290db5b7c4664057ec326e1f9ac11d4b523e2df83a84c3b47acbce0520f248bbd33de0f66379409a4ff463b6408b587238917362572479288d36843542ab0 py3-pecan-1.4.2.tar.gz
"