{% set name = "staramr" %}
{% set version = "0.1.0" %}
{% set hash_type = "sha256" %}
{% set hash_value = "7bec42eff451b6556a04aaca2e24584f4b4a4bf46e84c954345331f20ac11cbf" %}

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

source:
  fn: '{{ name }}-{{ version }}.tar.gz'
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  '{{ hash_type }}': '{{ hash_value }}'

build:
  skip: True # [py27]
  number: 0
  script: $PYTHON setup.py install --single-version-externally-managed --record=record.txt

requirements:
  build:
    - python
    - setuptools
    - biopython >=1.70
    - pandas >=0.22.0
    - gitpython >=2.1.3
    - xlsxwriter >=1.0.2
    - libgcc
  run:
    - python
    - biopython >=1.70
    - pandas >=0.22.0
    - gitpython >=2.1.3
    - xlsxwriter >=1.0.2
    - blast >=2.2.31
    - git
    - libgcc
test:
  imports:
    - staramr
    - staramr.blast
    - staramr.blast.pointfinder
    - staramr.blast.resfinder
    - staramr.blast.results
    - staramr.blast.results.pointfinder
    - staramr.blast.results.pointfinder.codon
    - staramr.blast.results.pointfinder.nucleotide
    - staramr.blast.results.resfinder
    - staramr.databases
    - staramr.detection
    - staramr.exceptions
    - staramr.results
    - staramr.subcommand
    - staramr.tests
    - staramr.tests.integration
    - staramr.tests.integration.detection
    - staramr.tests.unit
    - staramr.tests.unit.blast
    - staramr.tests.unit.blast.pointfinder
    - staramr.tests.unit.blast.results
    - staramr.tests.unit.blast.results.pointfinder
    - staramr.tests.unit.blast.results.pointfinder.codon
    - staramr.tests.unit.blast.results.pointfinder.nucleotide
    - staramr.tests.unit.results
  commands:
    - staramr --version
    - staramr db info
    - staramr search --help

about:
  home: https://github.com/phac-nml/staramr
  license: Apache Software License
  license_family: APACHE
  license_file: 'LICENSE'
  summary: 'Scan genome contigs against the ResFinder and PointFinder databases'
  author: Aaron Petkau, Gary van Domselaar
  dev_url: https://github.com/phac-nml/staramr
  doc_url: https://github.com/phac-nml/staramr
