mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
security/py-siphash24: Add new port
Streaming-capable SipHash-1-3 and SipHash-2-4 Implementation WWW: https://pypi.org/project/siphash24/ PR: 294570 Co-authored-by: Max Brazhnikov <makc@FreeBSD.org>
This commit is contained in:
committed by
Max Brazhnikov
parent
4d9790ae61
commit
3e8d16f02b
@@ -1089,6 +1089,7 @@
|
||||
SUBDIR += py-shamir-mnemonic
|
||||
SUBDIR += py-signedjson
|
||||
SUBDIR += py-signxml
|
||||
SUBDIR += py-siphash24
|
||||
SUBDIR += py-slip10
|
||||
SUBDIR += py-social-auth-core
|
||||
SUBDIR += py-spake2
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
PORTNAME= siphash24
|
||||
DISTVERSION= 1.8
|
||||
CATEGORIES= security devel python
|
||||
MASTER_SITES= PYPI
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= python@FreeBSD.org
|
||||
COMMENT= Streaming-capable SipHash-1-3 and SipHash-2-4 Implementation
|
||||
WWW= https://pypi.org/project/siphash24/
|
||||
|
||||
LICENSE= APACHE20 LGPL21+
|
||||
LICENSE_COMB= dual
|
||||
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSES/Apache-2.0.txt
|
||||
LICENSE_FILE_LGPL21+ = ${WRKSRC}/LICENSES/LGPL-2.1-or-later.txt
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/c-stdaux.h:devel/c-stdaux \
|
||||
${PYTHON_PKGNAMEPREFIX}meson-python>=0.18.0:devel/meson-python@${PY_FLAVOR}
|
||||
LIB_DEPENDS= libcsiphash-1.so:security/c-siphash
|
||||
|
||||
USES= compiler:c11 pkgconfig python
|
||||
USE_PYTHON= autoplist concurrent cython pep517 pytest
|
||||
|
||||
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
|
||||
|
||||
BINARY_ALIAS= cython=cython-${PYTHON_VER}
|
||||
|
||||
do-test:
|
||||
(cd ${WRKSRC} && \
|
||||
${SETENV} ${TEST_ENV} ${PYTHON_CMD} ./test.py)
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1776312955
|
||||
SHA256 (siphash24-1.8.tar.gz) = aa932f0af4a7335caef772fdaf73a433a32580405c41eb17ff24077944b0aa97
|
||||
SIZE (siphash24-1.8.tar.gz) = 19946
|
||||
@@ -0,0 +1,4 @@
|
||||
This module provides a C-based implementation of SipHash with an interface
|
||||
compatible with the hash functions provided by the hashlib standard library
|
||||
module. SipHash-1-3 and SipHash-2-4 variants are currently implemented. The
|
||||
module documentation provides a detailed description of the API.
|
||||
Reference in New Issue
Block a user