From 6cfe1ea73bc4c9513e18f29e572378d8a2ab1279 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 3 Jul 2024 21:10:44 -0500 Subject: [PATCH 1/2] Add siphash24 --- recipes/siphash24/meta.yaml | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 recipes/siphash24/meta.yaml diff --git a/recipes/siphash24/meta.yaml b/recipes/siphash24/meta.yaml new file mode 100644 index 0000000000000..37ed112f86495 --- /dev/null +++ b/recipes/siphash24/meta.yaml @@ -0,0 +1,59 @@ +{% set name = "siphash24" %} +{% set version = "1.6" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/siphash24-{{ version }}.tar.gz + sha256: 242d6901a81260f618938635a25ae7f208e744f7ee6c571f1b255c1c4c62917d + +build: + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + number: 0 + skip: true # [win] + +requirements: + build: + - python # [build_platform != target_platform] + - cross-python_{{ target_platform }} # [build_platform != target_platform] + - {{ compiler('c') }} + - {{ stdlib('c') }} + - meson >=1.0.0 # [build_platform != target_platform] + - cython >=3.0.2 # [build_platform != target_platform] + - meson-python >=0.14.0 # [build_platform != target_platform] + host: + - python + - cython >=3.0.2 + - meson >=1.0.0 + - meson-python >=0.14.0 + - pip + run: + - python + +test: + imports: + - siphash24 + commands: + - "PYTHONHASHSEED=0 python check.py" + - python test.py + source_files: + - test.py + - check.py + requires: + - pip + +about: + summary: Streaming-capable SipHash-1-3 and SipHash-2-4 Implementation + home: https://github.com/dnicolodi/python-siphash24/ + dev_url: https://github.com/dnicolodi/python-siphash24/ + license: 'Apache-2.0 or LGPL-2.1-or-later' + license_file: + - LICENSES/Apache-2.0.txt + - LICENSES/LGPL-2.1-or-later.txt + +extra: + recipe-maintainers: + - inducer + - matthiasdiener From a29f4747f390a05def36983d759aeb631ebd982e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kl=C3=B6ckner?= Date: Mon, 8 Jul 2024 12:14:37 -0500 Subject: [PATCH 2/2] Fix YAML indentation Co-authored-by: Isuru Fernando --- recipes/siphash24/meta.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/siphash24/meta.yaml b/recipes/siphash24/meta.yaml index 37ed112f86495..a26ac2dd5f674 100644 --- a/recipes/siphash24/meta.yaml +++ b/recipes/siphash24/meta.yaml @@ -36,11 +36,11 @@ test: imports: - siphash24 commands: - - "PYTHONHASHSEED=0 python check.py" - - python test.py + - "PYTHONHASHSEED=0 python check.py" + - python test.py source_files: - - test.py - - check.py + - test.py + - check.py requires: - pip