Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add unishox2-py3 recipe #20798

Closed
wants to merge 10 commits into from
Closed
46 changes: 46 additions & 0 deletions recipes/unishox2-py3/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{% set name = "unishox2-py3" %}
{% set version = "1.0.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/unishox2-py3-{{ version }}.tar.gz
sha256: cd2595de196ffd8b93bea7a76f5796d8293f32d1f7c9d3660af0b764ab917963

build:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
build:
build:
ignore_run_exports_from:
- {{ compiler('cxx') }}

Because the standard library isn't used.

script: {{ PYTHON }} -m pip install . -vv
skip: True # [win or arm64]
number: 1
oschwengers marked this conversation as resolved.
Show resolved Hide resolved

requirements:
build:
- python
- pip
- {{ compiler('cxx') }}
host:
- python
- pip
run:
- python

test:
imports:
- unishox2
commands:
- pip check
requires:
- pip

about:
home: https://github.com/tweedge/unishox2-py3
summary: A package for Unicode-friendly string compression using Unishox2
dev_url: https://github.com/tweedge/unishox2-py3
license: Apache-2.0
license_file:
- LICENSE
Comment on lines +41 to +42
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This library is revendoring unishox2 which is not allowed. Typically, we would ask you to devendor unishox2 into its own package and dynamically link, but since unishox2 is so small we will treat it as a header-only library.

In this case, as explicitly mentioned in the checklist, you must include the license of the statically-linked/revendored library. The license of unishox2 and unishox2-py3 are different because the license holders are not the same, so please include both.


extra:
recipe-maintainers:
- tweedge