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

30 lines
911 B
Plaintext

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-routes
_pkgname=Routes
pkgver=2.5.1
pkgrel=2
pkgdesc="Routing Recognition and Generation Tools"
url="https://routes.readthedocs.io/en/latest/"
arch="noarch"
license="MIT"
depends="py3-repoze-lru py3-six"
makedepends="py3-setuptools"
checkdepends="py3-beautifulsoup4 py3-nose py3-pytest py3-webob py3-webtest"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/R/Routes/Routes-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 -m pytest -W ignore::DeprecationWarning
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="06ec9a8426ced86524096703de47e3da2fa08bd0ed8c962d451b4338966804245b5074077021fb58a5afcb63acd6dcffa05a89703b8b54841a69a4cdff12b755 py3-routes-2.5.1.tar.gz"