{% set version = "0.4.4" %}
{% set sha256 = "e25e7423119aec5e574324c403f8ae36d93c0ce1497853d42c1a49a2a924a1f4" %}

package:
  name: unicycler
  version: {{ version }}

source:
  - url: https://github.com/rrwick/Unicycler/archive/v{{ version }}.tar.gz
    sha256: {{ sha256 }}
    patches:
      - Makefile.patch
      - misc.py.patch

build:
  number: 5
  skip: True  # [py<34]

requirements:
  build:
    - {{ compiler("c") }}
    - {{ compiler("cxx") }}
    - make
  host:
    - python
    - pip
    - zlib
  run:
    - python
    - spades >=3.6.2
    - pilon
    - openjdk
    - bowtie2
    - samtools >=1.0
    - blast
    - freebayes
    - racon
    - miniasm
    - zlib

test:
  commands:
    - COLUMNS=80 unicycler -h
    - COLUMNS=80 unicycler_align -h
    - COLUMNS=80 unicycler_check -h
    - COLUMNS=80 unicycler_polish -h

about:
  home: https://github.com/rrwick/Unicycler
  license: GPL-3.0
  license_family: GPL
  license_file: LICENSE
  summary: Hybrid assembly pipeline for bacterial genomes
