# $NetBSD: Makefile,v 1.92 2022/11/28 08:49:08 adam Exp $ DISTNAME= cryptography-38.0.4 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= security python MASTER_SITES= ${MASTER_SITE_PYPI:=c/cryptography/} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://github.com/pyca/cryptography COMMENT= Cryptographic recipes and primitives for Python LICENSE= apache-2.0 OR modified-bsd TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-rust-[0-9]*:../../devel/py-setuptools-rust DEPENDS+= ${PYPKGPREFIX}-cffi>=1.11.4:../../devel/py-cffi DEPENDS+= ${PYPKGPREFIX}-six>=1.4.1:../../lang/py-six TEST_DEPENDS+= ${PYPKGPREFIX}-cryptography_vectors-[0-9]*:../../security/py-cryptography_vectors TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=3.79.3:../../devel/py-hypothesis TEST_DEPENDS+= ${PYPKGPREFIX}-iso8601-[0-9]*:../../time/py-iso8601 TEST_DEPENDS+= ${PYPKGPREFIX}-pretend-[0-9]*:../../devel/py-pretend TEST_DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz TEST_DEPENDS+= ${PYPKGPREFIX}-test>=6.2.0:../../devel/py-test TEST_DEPENDS+= ${PYPKGPREFIX}-test-benchmark-[0-9]*:../../devel/py-test-benchmark TEST_DEPENDS+= ${PYPKGPREFIX}-test-subtests-[0-9]*:../../devel/py-test-subtests CARGO_WRKSRC= ${WRKSRC}/src/rust MAKE_ENV+= CARGO_NET_OFFLINE=true PYTHON_VERSIONS_INCOMPATIBLE= 27 pre-build: cd ${WRKSRC} && ${LN} -f -s src/rust/.cargo .cargo .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "Darwin" post-install: install_name_tool -id ${PREFIX}/${PYSITELIB}/cryptography/hazmat/bindings/_rust.abi3.so \ ${DESTDIR}${PREFIX}/${PYSITELIB}/cryptography/hazmat/bindings/_rust.abi3.so .endif do-test: cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests .include "cargo-depends.mk" .include "../../lang/python/egg.mk" .include "../../lang/rust/cargo.mk" .include "../../security/openssl/buildlink3.mk" .include "../../mk/bsd.pkg.mk"