# When updating, check the @jbrowse/cli version in build.sh too
{% set version = "2.10.2" %}

package:
  name: jbrowse2
  version: {{ version }}

source:
  sha256: 06e6054086ae0a1aa3bcd55ed6fe475fc23b5960a9907c25c0d3cadfab2c6db7
  url: https://github.com/GMOD/jbrowse-components/releases/download/v{{ version }}/jbrowse-web-v{{ version }}.zip

build:
  noarch: generic
  number: 0
  run_exports:
    - {{ pin_subpackage('jbrowse2', max_pin="x") }}

requirements:
  host:
    - nodejs
  run:
    - nodejs
    - bcftools # For VCF sorting/compression
    - gff3sort # For GFF sorting
    - htslib # Need this to compress fasta file with bgzip
    - samtools # Need this to produce fasta fai index with samtools faidx

test:
  commands:
    - jbrowse help | grep "command line tool for working with JBrowse"

about:
  home: https://jbrowse.org/
  license: Apache-2.0
  license_family: Apache
  summary: The JBrowse 2 Genome Browser

extra:
  identifiers:
    - biotools:jbrowse
    - doi:10.1101/gr.094607.109
