freebsd-ports/security/py-merkletools/Makefile
Muhammad Moinur Rahman 9aca78ddf6
security/py-merkletools: Refactor
Before python 3.6 version pysha3 was required as a runtime dependency
however after the import of sha3 this can be skipped. Additionally this
port has not been updated since 2019 and should be deprecated.

Approved by:	portmgr (blanket)
2024-01-16 18:47:42 +01:00

31 lines
675 B
Makefile

PORTNAME= merkletools
DISTVERSION= 1.0.3
PORTREVISION= 2
CATEGORIES= security python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Tools for working with Merkle trees
WWW= https://github.com/Tierion/pymerkletools
LICENSE= MIT
USES= python
USE_PYTHON= distutils autoplist
NO_ARCH= yesA
POST_PLIST= rm-tests-from-plist
post-patch:
@${RM} ${WRKSRC}/requirements.txt ${WRKSRC}/merkletools.egg-info/requires.txt
@${REINPLACE_CMD} -e '/pysha3/d' ${WRKSRC}/setup.py
post-install:
@${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/tests
rm-tests-from-plist:
@${REINPLACE_CMD} '/\/tests\//d' ${TMPPLIST}
.include <bsd.port.mk>