testing/py3-swagger-spec-validator: move from user
This commit is contained in:
parent
2602322a8c
commit
0e8074ffce
1 changed files with 20 additions and 11 deletions
|
@ -4,29 +4,38 @@
|
||||||
_pyname=swagger-spec-validator
|
_pyname=swagger-spec-validator
|
||||||
pkgname="py3-$_pyname"
|
pkgname="py3-$_pyname"
|
||||||
pkgver=3.0.3
|
pkgver=3.0.3
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
pkgdesc="Validation of Swagger specifications"
|
pkgdesc="Validation of Swagger specifications"
|
||||||
url="https://pypi.python.org/project/$_pyname"
|
url="https://pypi.python.org/project/$_pyname"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
depends="py3-jsonschema py3-yaml py3-six"
|
depends="
|
||||||
makedepends="py3-setuptools"
|
py3-jsonschema
|
||||||
checkdepends="py3-pytest"
|
py3-yaml
|
||||||
|
py3-six
|
||||||
|
"
|
||||||
|
makedepends="
|
||||||
|
py3-setuptools
|
||||||
|
py3-gpep517
|
||||||
|
py3-wheel
|
||||||
|
py3-installer
|
||||||
|
"
|
||||||
|
options="!check" # No testsuite
|
||||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pyname-$pkgver
|
builddir="$srcdir"/$_pyname-$pkgver
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
}
|
--wheel-dir dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
check() {
|
|
||||||
PYTHONPATH="$srcdir" pytest || true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --root="$pkgdir"/ --optimize=1
|
python3 -m installer -d "$pkgdir" \
|
||||||
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
|
dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
21d849f3b7631c1bced3831728852d953063f28d918e5b409ac302781769a495536869bf3e042692d70e5a589a9db5306986aebb4cd0e363e6f80e1330a753f2 py3-swagger-spec-validator-3.0.3.tar.gz
|
21d849f3b7631c1bced3831728852d953063f28d918e5b409ac302781769a495536869bf3e042692d70e5a589a9db5306986aebb4cd0e363e6f80e1330a753f2 py3-swagger-spec-validator-3.0.3.tar.gz
|
||||||
"
|
"
|
Loading…
Reference in a new issue