{% set version = "16.2" %}
{% set date = "20211103" %}
{% set sha256 = "42124ac5aa9aed2bb399b064ad4dfe418b9facb6f61eef95ac7e92e7cc410dd3" %}

package:
  name: entrez-direct
  version: {{ version }}

build:
  number: 1

source:
  url: https://raw.githubusercontent.com/biostars/conda-ready-entrez-direct/main/dist/edirect-16.2.20211103.tar.gz
  sha256: {{ sha256 }}

requirements:
  build:
    # The installer script downloads statically compiled binaries, so this is effectively just avoiding linter errors
    - {{ compiler('go') }}
  run:
    - wget

test:
  commands:
    - efetch --help
    - epost --help
    - efilter --help
    - einfo --help
    - esearch --help
    - elink --help
    - esummary --help
    - xtract -version

about:
  home: ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/{{ version }}.{{ date }}/README
  license: PUBLIC DOMAIN
  summary: Entrez Direct (EDirect) is an advanced method for accessing the NCBI's set of interconnected databases (publication, sequence, structure, gene, variation, expression, etc.) from a UNIX terminal window. Functions take search terms from command-line arguments. Individual operations are combined to build multi-step queries. Record retrieval and formatting normally complete the process.

extra:
  container:
    extended-base: True
