{% set version = "0.13.0" %}

package:
  name: mykrobe
  version: {{ version }}

source:
  url: https://github.com/Mykrobe-tools/mykrobe/archive/v{{ version }}.tar.gz
  sha256: 49662937378a4ff10ffcb3876efcc069be58f0dc183615e9cffb57f51348a45e

build:
  number: 2
  entry_points:
    - mykrobe = mykrobe.cli:main
  run_exports:
    - {{ pin_subpackage("mykrobe", max_pin="x.x") }}
requirements:
  build:
    - make
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - numpy
    - biopython
  host:
    - python
    - pip
    - zlib
    - wget
    - cython
    - numpy
    - mongodb >3.0
    - mongoengine >=0.18.0
    - pyvcf3 >=1.0.3
    - biopython
    - anytree
    - requests
    - setuptools
  run:
    - python
    - mongodb >3.0
    - wget
    - zlib
    - numpy
    - mongoengine >=0.18.0
    - pyvcf3 >=1.0.3
    - biopython
    - anytree
    - requests
    - setuptools

test:
  imports:
    - mykrobe

  commands:
    - mykrobe --version
    - mykrobe --help
    - mykrobe predict --help
    - mykrobe variants --help
    - mykrobe panels describe
    - test -x $PREFIX/lib/python*/site-packages/mykrobe/cortex/mccortex31  # [py < 310]
    - $PREFIX/lib/python*/site-packages/mykrobe/cortex/mccortex31 uniqkmers -k 7 1  # [py < 310]

about:
  home: https://github.com/Mykrobe-tools/mykrobe
  license: MIT
  license_file: LICENSE
  summary: 'Antibiotic resistance prediction in minutes'
  description: 'Rapid antibiotic-resistance predictions from genome sequence data for Staphylococcus aureus and Mycobacterium tuberculosis.'

extra:
  additional-platforms:
    - linux-aarch64
  recipe-maintainers:
    - mbhall88
    - martinghunt
