{% set version = "1.0.7" %}
{% set name = "rust-ncbitaxonomy" %}
{% set sha256 = "fc78c0db6b2bac71db449f2da44740f08c192362a5dae516834d8f37fdacd801" %}

package:
  name: "{{ name }}"
  version: "{{ version }}"

build:
  number: 2

source:
  url: "https://github.com/pvanheus/ncbitaxonomy/archive/{{ version }}.tar.gz"
  sha256: "{{ sha256 }}"

requirements:
  build:
    - {{ compiler('c') }}
    - rust >=1.43
  host:
    - sqlite
  run:
    - sqlite

test:
  commands:
    - taxonomy_util --help | grep NCBI
    - taxonomy_filter_refseq --help | grep NCBI
    - taxonomy_filter_fastq --help | grep FASTQ

about:
  home: https://github.com/pvanheus/ncbitaxonomy
  doc_url: "https://docs.rs/crate/ncbitaxonomy/{{ version }}"
  license: MIT
  summary: |
    A Rust crate for working with a local copy of the NCBI Taxonomy database, which provides utilities for taxonomic filtering.
