{% set name = "pyfamsa" %}
{% set version = "0.5.3" %}

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

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

build:
  number: 1
  script: "{{ PYTHON }} -m pip install . --no-deps --no-build-isolation --no-cache-dir --use-pep517 -vvv"
  run_exports:
    - {{ pin_subpackage('pyfamsa', max_pin="x.x") }}

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - cmake
    - make
  host:
    - python
    - pip
    - cython
    - scikit-build-core
    - scoring-matrices >=0.2
  run:
    - python
    - scoring-matrices >=0.2

test:
  imports:
    - {{ name }}
  commands:
    - python -m unittest -vv {{ name }}.tests

about:
  home: https://github.com/althonos/pyfamsa
  license: GPL-3.0-or-later
  license_family: GPL3
  license_file: COPYING
  summary: "Cython bindings and Python interface to FAMSA, an algorithm for ultra-scale multiple sequence alignments."
  doc_url: https://pyfamsa.readthedocs.org
  dev_url: https://github.com/althonos/pyfamsa

extra:
  recipe-maintainers:
    - althonos
  additional-platforms:
    - linux-aarch64
    - osx-arm64
