{% set name = "pyhmmer" %}
{% set version = "0.11.1" %}

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

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

build:
  number: 2
  skip: True  # [win]
  script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation --no-cache-dir -vvv
  run_exports:
    - {{ pin_subpackage('pyhmmer', max_pin="x.x") }}

requirements:
  build:
    - {{ compiler('c') }}
    - cmake >=3.20
    - make
  host:
    - python {{ python }}
    - pip
    - setuptools
    - cython >=3.0
    - scikit-build-core
  run:
    - {{ pin_compatible("python") }}
    - psutil >=6.0,<8.0

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

about:
  home: "https://github.com/althonos/pyhmmer"
  license: MIT
  license_family: MIT
  license_file: COPYING
  summary: "Cython bindings and Python interface to HMMER3."
  doc_url: "https://pyhmmer.readthedocs.io"
  dev_url: "https://github.com/althonos/pyhmmer"

extra:
  recipe-maintainers:
    - althonos
  identifiers:
    - doi:10.1093/bioinformatics/btad214
    - biotools:pyhmmer
  additional-platforms:
    - linux-aarch64
    - osx-arm64
