{% set name = "PhyloAcc" %}
{% set version = "2.4.2" %}
{% set sha256 = "effa443400fa1ebfa43de1daf551c8344f883bcf8d048a11e64fca64243a93fe" %}

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

source:
  url: https://github.com/phyloacc/PhyloAcc/archive/refs/tags/v{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 1
  skip: True  # [py < 311]
  run_exports:
    - {{ pin_subpackage('phyloacc', max_pin="x") }}

requirements:
  build:
    - {{ compiler('cxx') }}
    - make
  host:
    - python
    - gsl
    - openblas
    - blis
    - liblapack
    - armadillo
    - libgomp  # [linux]
    - llvm-openmp  # [osx]
  run:
    - python
    - blis
    - matplotlib-base >=3.5
    - biopython >=1.79
    - numpy >=1.22
    - snakemake-minimal >=8.0
    - snakemake-executor-plugin-slurm
    - libgomp  # [linux]
    - llvm-openmp  # [osx]

test:
  requires:
    - wget

about:
  home: https://phyloacc.github.io/
  license: GPL-3.0-or-later
  license_family: GPL3
  license_file: LICENSE.md
  summary: 'Bayesian estimation of substitution rate shifts in non-coding regions'
  description: 'Bayesian estimation of substitution rate shifts in non-coding regions'
  doc_url: https://phyloacc.github.io/readme.html
  dev_url: https://github.com/phyloacc/PhyloAcc

extra:
  additional-platforms:
    - linux-aarch64
  recipe-maintainers:
    - gwct
