blob: 292c1341a607f6b76ce66350b93e6ba4787ed05a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# 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
"
|