mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
PORTNAME= swagger-spec-validator
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.7.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= kai@FreeBSD.org
|
|
COMMENT= Validation of Swagger specifications
|
|
WWW= https://github.com/Yelp/swagger_spec_validator
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Yelp
|
|
GH_PROJECT= swagger_spec_validator
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
NO_ARCH= yes
|
|
|
|
# Skip test "test_raise_SwaggerValidationError_on_urlopen_error" as it tries
|
|
# to open network connections to non-existent URLs.
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs \
|
|
-k 'not test_raise_SwaggerValidationError_on_urlopen_error'
|
|
|
|
.include <bsd.port.mk>
|