aboutsummaryrefslogtreecommitdiff
path: root/security/py-securesystemslib/Makefile
blob: aa40c8c1b648aedc9bb5f8ec4af85da51b88ec63 (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
32
33
34
35
36
37
PORTNAME=	securesystemslib
PORTVERSION=	0.31.0
PORTREVISION=	1
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}
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pynacl>1.2.0:security/py-pynacl@${PY_FLAVOR}
TEST_DEPENDS=	${LOCALBASE}/bin/gpg:security/gnupg

USES=		python shebangfix
USE_PYTHON=	autoplist cryptography pep517 pytest

SHEBANG_FILES=	securesystemslib/settings.py \
	securesystemslib/schema.py \
	securesystemslib/_vendor/test-ed25519-upstream.sh \
	securesystemslib/keys.py \
	securesystemslib/rsa_keys.py \
	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>