From 652c037649e2e4922f33710b82004ceb4cbe73e5 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sun, 18 May 2025 13:38:39 -0400 Subject: [PATCH] New package: python3-siphash24-1.7 --- srcpkgs/python3-siphash24/template | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 srcpkgs/python3-siphash24/template diff --git a/srcpkgs/python3-siphash24/template b/srcpkgs/python3-siphash24/template new file mode 100644 index 00000000000..9e465be4a55 --- /dev/null +++ b/srcpkgs/python3-siphash24/template @@ -0,0 +1,42 @@ +# Template file for 'python3-siphash24' +pkgname=python3-siphash24 +version=1.7 +revision=1 +_c_siphash_ver="1.1.0" +_c_stdaux_ver="1.5.0" +build_style=python3-pep517 +build_helper="meson" +hostmakedepends="python3-Cython python3-meson-python pkg-config" +makedepends="python3-devel" +depends="python3" +short_desc="Streaming-capable SipHash implementation" +maintainer="Andrew J. Hesford " +license="Apache-2.0 OR LGPL-2.0-or-later" +homepage="https://github.com/dnicolodi/python-siphash24" +changelog="https://raw.githubusercontent.com/dnicolodi/python-siphash24/refs/heads/master/CHANGELOG.rst" +distfiles=" + ${PYPI_SITE}/s/siphash24/siphash24-${version}.tar.gz + https://github.com/c-util/c-siphash/archive/v${_c_siphash_ver}.tar.gz>c-siphash-v${_c_siphash_ver}.tar.gz + https://github.com/c-util/c-stdaux/archive/v${_c_stdaux_ver}.tar.gz>c-stdaux-v${_c_stdaux_ver}.tar.gz +" +checksum="6e90fee5f199ea25b4e7303646b31872a437174fe885a93dbd4cf7784eb48164 + a70c71effbcd553858250d109dd39599b9e3d5a91d46f0beb731bf6799893e63 + 19fb163160c25babf1f2ecf817e6eb696decfb5e33490dcd9cf68c2ecae97d13" +skip_extraction=" + c-siphash-v${_c_siphash_ver}.tar.gz + c-stdaux-v${_c_stdaux_ver}.tar.gz +" + +post_extract() { + vsrcextract -C subprojects/libcsiphash-1 c-siphash-v${_c_siphash_ver}.tar.gz + vsrcextract -C subprojects/libcstdaux-1 c-stdaux-v${_c_stdaux_ver}.tar.gz +} + +do_check() { + local testdir="${wrksrc}/.xbps-testdir/$(date +%s)" + python3 -m venv --system-site-packages --without-pip "${testdir}" + + local testpy="${testdir}/bin/python3" + "${testpy}" -m installer dist/*.whl + "${testpy}" ./test.py +}