{% set name = "quast" %}
{% set version = "4.6.3" %}
{% set hash = "177d3c5ad03ef13089aaf348e3250177" %}

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

build:
  number: 2
  # skip Python 3 builds due to test failures in vendored libs
  skip: True  # [py3k]
  noarch: generic

source:
  url: http://downloads.sourceforge.net/project/{{ name|lower }}/{{ name|lower }}-{{ version }}.tar.gz
  md5: {{ hash }}
  patches:
    - gnuplot-issue_disable-mummer-plots.patch
    - genemark-issue_disable-and-exclude-from-package.patch
    - add-gage-to-regular-install.patch

requirements:
  build:
    - {{ compiler('c') }}
  host:
    - boost
    - perl
    - python
    - setuptools
    - matplotlib
    - openjdk
    - joblib
    - simplejson
    - blast
  run:
    - boost
    - perl
    - python
    - matplotlib
    - openjdk
    - joblib
    - simplejson
    - blast

test:
  source_files:
    - test_data
  commands:
    - quast --version
    - metaquast --version

about:
  home: https://sourceforge.net/projects/{{ name|lower }}/
  license: Custom
  license_file: LICENSE.txt
  summary: Quality Assessment Tool for Genome Assemblies

extra:
  notes: |
    - drawing MUMmer plots is disabled due to issues with gnuplot
    - GeneMark gene prediction software is disabled due to licensing issues
  identifiers:
    - biotools:quast
