{% set name = "MACS2" %}
{% set version = "2.2.9.1" %}
{% set sha256 = "8d56bc37fb823fc6387d78138ce968405c54a0a8cd9776682705fd0983252d16" %}

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

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/MACS2-{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 1
  script: {{ PYTHON }} -m pip install . --use-pep517 --no-deps --no-cache-dir -vvv
  skip: True  # [py == 312]
  run_exports:
    - {{ pin_subpackage('macs2', max_pin="x") }}

requirements:
  build:
    - {{ compiler('c') }}
  host:
    - python
    - cython <3.0.0
    - pip
    - cykhash >=2.0.0
    - hmmlearn >=0.3.0
    - numpy >=1.19.0
    - wheel
  run:
    - python
    - {{ pin_compatible('numpy') }}
    - r-base

test:
  imports:
    - MACS2
  commands:
    - macs2 -h

about:
  home: 'https://pypi.org/project/MACS2/'
  summary: 'Model Based Analysis for ChIP-Seq data'
  license: BSD-3-Clause
  license_family: BSD
  license_file: LICENSE
  doc_url: 'https://macs3-project.github.io/MACS/'
  dev_url: 'https://github.com/macs3-project/MACS/'

extra:
  identifiers:
    - usegalaxy-eu:peakcalling_macs
    - biotools:macs
    - doi:10.1186/gb-2008-9-9-r137
