summaryrefslogtreecommitdiff
path: root/security/py-securesystemslib/Makefile
blob: a538021fdd4b0c4075f32138542f8bbf6b851198 (plain) (blame)
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
PORTNAME=	securesystemslib
DISTVERSION=	1.3.0
CATEGORIES=	security python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Cryptographic and general-purpose routines
WWW=		https://github.com/secure-systems-lab/securesystemslib

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asn1crypto>0:devel/py-asn1crypto@${PY_FLAVOR}

USES=		python shebangfix
USE_PYTHON=	autoplist cryptography pep517 pytest

SHEBANG_FILES=	securesystemslib/_vendor/test-ed25519-upstream.sh \
	securesystemslib/hash.py \
	securesystemslib/formats.py

NO_ARCH=	yes
TEST_ARGS=	tests

post-patch:
	@${REINPLACE_CMD} -e 's|hatchling==|hatchling>=|g' \
		${WRKSRC}/pyproject.toml

.include <bsd.port.mk>