{% set version = "0.2.1.0" %}
{% set sha256 = "df287d06b9079ab329bb185ceb5f893dc0afb02ffd21d267166641b575a591f6" %}

package:
  name: prophyle
  version: {{ version }}

source:
  fn: prophyle-{{ version }}.tar.gz
  url: https://pypi.io/packages/source/p/prophyle/prophyle-{{version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 0
  skip: True # [py27]
  script:
  entry_points:
    - prophyle = prophyle.prophyle:main
    - prophyle_analyze.py = prophyle.prophyle_analyze:main
    - prophyle_assignment.py = prophyle.prophyle_assignment:main
    - prophyle_ncbi_tree.py = prophyle.prophyle_ncbi_tree:main
    - prophyle_otu_table.py = prophyle.prophyle_otu_table:main
    - prophyle_paired_end.py = prophyle.prophyle_paired_end:main
    - prophyle_plot_tree.py = prophyle.prophyle_plot_tree:main
    - prophyle_propagation_makefile.py = prophyle.prophyle_propagation_makefile:main
    - prophyle_propagation_postprocessing.py = prophyle.prophyle_propagation_postprocessing:main
    - prophyle_propagation_preprocessing.py = prophyle.prophyle_propagation_preprocessing:main
    - prophyle_split_allseq.py = prophyle.prophyle_split_allseq:main

requirements:
  build:
    - gcc  # [linux]
    - llvm # [osx]
    - python
    - samtools
    - ete3
    - bitarray
    - scipy
    - wheel
    - zlib
    - psutil
    - pysam
  run:
    - libgcc # [linux]
    - python
    - samtools
    - ete3
    - bitarray
    - scipy
    - wheel
    - zlib
    - psutil
    - pysam

test:
  imports:
    - prophyle
  commands:
    - prophyle --help
    - prophyle download --help
    - prophyle index --help
    - prophyle classify --help
    - prophyle analyze --help
    - prophyle compress --help
    - prophyle decompress --help
    - prophyle compile --help

    - prophyle_analyze.py --help
    - prophyle_assignment.py --help
    - prophyle_ncbi_tree.py --help
    - prophyle_otu_table.py --help
    - prophyle_paired_end.py --help
    - prophyle_plot_tree.py --help
    - prophyle_propagation_makefile.py --help
    - prophyle_propagation_postprocessing.py --help || true # todo: once fixed, remove '|| true'
    - prophyle_propagation_preprocessing.py --help
    - prophyle_split_allseq.py --help

about:
  home: https://github.com/karel-brinda/prophyle
  license: MIT
  summary: ProPhyle is an accurate, resource-frugal and deterministic phylogeny-based metagenomic classifier.

