mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 02:05:16 +03:00
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
34 lines
1.3 KiB
Text
34 lines
1.3 KiB
Text
# Contributor: Anjandev Momi <anjan@momi.ca>
|
|
# Maintainer: Anjandev Momi <anjan@momi.ca>
|
|
pkgname=py3-flask-restx
|
|
pkgver=0.5.1
|
|
pkgrel=2
|
|
pkgdesc="Fully featured framework for fast, easy and documented API development with Flask"
|
|
url="https://flask-restx.readthedocs.io/en/latest/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3 py3-flask py3-aniso8601 py3-jsonschema py3-tz py3-six py3-werkzeug"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest py3-faker py3-blinker py3-mock py3-pytest-cov py3-pytest-mock"
|
|
source="flask-restx-$pkgver.tar.gz::https://github.com/python-restx/flask-restx/archive/refs/tags/$pkgver.tar.gz
|
|
$pkgname-werkzeug-2.2.patch::https://github.com/python-restx/flask-restx/commit/a017c3ce7b98391bced80f7dae9e8b261123effd.patch
|
|
"
|
|
builddir="$srcdir/flask-restx-$pkgver"
|
|
options="!check" # cannot get checks working
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
0e4ca95a6bb45f7dfba1758387aded6215ec64fa55060889e6843fb50eed09fda96ba936eacd0d8f27b29f5dec2468d4945386f25ff4de6a51f571e16617cf52 flask-restx-0.5.1.tar.gz
|
|
09c5638c2c2332af1b982ba8f501300fcfc2243ce671de04e18b319f046c2f38603117b47c55f4b73c3f10f63a704edadc6d394d77edad56c5d1816122768dfb py3-flask-restx-werkzeug-2.2.patch
|
|
"
|