{% set name = "odgi" %}
{% set version = "0.9.0" %}

package:
  name: "{{ name }}"
  version: "{{ version }}"

source:
  url: https://github.com/pangenome/{{ name }}/releases/download/v{{ version }}/{{ name }}-v{{ version }}.tar.gz
  sha256: 73b181c371e619b5e3e5ee87649cb8de82b054e492dcd128d93cec42be062f2f

build:
  skip: True  # [osx]
  number: 0
  run_exports:
    - {{ pin_subpackage(name, max_pin="x.x") }}

requirements:
  build:
    - {{ compiler('cxx') }}
    - cmake
    - make
  host:
    - llvm-openmp  # [osx]
    - libgomp      # [linux]
    - zlib
    - jemalloc
    - python
    - pybind11
  run:
    - llvm-openmp  # [osx]
    - libgomp      # [linux]
    - python
    - jemalloc
    - pybind11

test:
  commands:
    - odgi test

about:
  home: "https://github.com/pangenome/odgi"
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: "An optimized dynamic genome/graph implementation."
  dev_url: "https://github.com/pangenome/odgi"
  doc_url: "https://github.com/pangenome/odgi/blob/v{{ version }}/README.md"

extra:
  recipe-maintainers:
    - AndreaGuarracino
  identifiers:
    - doi:10.1093/bioinformatics/btac308
    - biotools:odgi
    - usegalaxy-eu:odgi_viz
    - usegalaxy-eu:odgi_build
