{% set version = "4.0.23" %}
{% set sha256 = "cbf789c18be6bb089e64c402aa680f11e83678620d2335a81a76f5fab65804d5" %}


package:
  name: ncbi-amrfinderplus
  version: {{ version }}

source:
  git_url: https://github.com/ncbi/amr.git
  git_rev: amrfinder_v{{ version }}
  sha256: unused

build:
  number: 0
  run_exports:
    - {{ pin_subpackage('ncbi-amrfinderplus', max_pin="x") }}

requirements:
  build:
    - git
    - make
    - {{ compiler('cxx') }}
    - coreutils
  host:
    - libcurl
  run:
    - blast >=2.9
    - hmmer >=3.2
    - curl

test:
  commands:
    - echo "PREFIX=$PREFIX   CONDA_PREFIX=$CONDA_PREFIX" # for debugging
    - amr_report -help
    - amrfinder_update --help
    - fasta_check -help
    - fasta2parts -help
    - gff_check -help
    - dna_mutation -help
    - amrfinder -U
    - |
        curl --silent \
         -O https://raw.githubusercontent.com/ncbi/amr/master/test_dna.fa \
         -O https://raw.githubusercontent.com/ncbi/amr/master/test_prot.fa \
         -O https://raw.githubusercontent.com/ncbi/amr/master/test_prot.gff \
         -O https://raw.githubusercontent.com/ncbi/amr/master/test_both.expected
        amrfinder --plus -n test_dna.fa -p test_prot.fa -g test_prot.gff -O Escherichia --print_node > test_both.got
        diff test_both.expected test_both.got

about:
  home: https://github.com/ncbi/amr
  license: "Public Domain"
  license_file: LICENSE
  summary: "AMRFinderPlus finds antimicrobial resistance and other genes in protein or nucleotide sequences."
  description: |
      This software and the accompanying database are designed to
      find acquired antimicrobial resistance genes in bacterial protein or
      nucleotide sequences as well as known point mutations for several taxa. With
      AMRFinderPlus we have added select members of additional classes of genes
      such as virulence factors, biocide, heat, acid, and metal resistance genes.
  doc_url: https://github.com/ncbi/amr/wiki
  dev_url: https://github.com/ncbi/amr

extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64
  recipe-maintainers:
    - evolarjun
  identifiers:
    - doi:10.1038/s41598-021-91456-0
  skip-lints:
    - uses_vcs_url
