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 nafcodec #53448

Merged
merged 4 commits into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions recipes/nafcodec/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{% set name = "nafcodec" %}
{% set version = "0.2.0" %}

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

source:
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/nafcodec-{{ version }}.tar.gz
sha256: 8194203409f9e0b7aa762530747da4db4dc4c19de0b8fb0419b894e89368e6b8

build:
number: 0
script:
- {{ PYTHON }} -m pip install . --no-deps --no-build-isolation --disable-pip-version-check
- cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
run_exports:
- {{ pin_subpackage(name|lower, max_pin="x.x") }}

requirements:
build:
- {{ compiler("rust") }}
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- crossenv # [build_platform != target_platform]
- setuptools-rust >=1.10,<2
- cargo-bundle-licenses
host:
- python
- pip
- setuptools-rust >=1.10,<2
run:
- python

test:
imports:
- {{ name }}
commands:
- python -m unittest -vv {{ name }}.tests

about:
home: https://github.com/althonos/nafcodec
doc_url: https://nafcodec.readthedocs.io/
dev_url: https://github.com/althonos/nafcodec
summary: >
PyO3 bindings and Python interface to nafcodec, an encoder/decoder for
Nucleotide Archive Format (NAF) files.
license: MIT
license_family: MIT
license_file:
- COPYING
- THIRDPARTY.yml

extra:
additional-platforms:
- osx-arm64
recipe-maintainers:
- apcamargo
skip-lints:
- version_constraints_missing_whitespace # see https://github.com/bioconda/bioconda-recipes/issues/51185