{% set name = "pyrodigal" %}
{% set version = "3.2.2" %}

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

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

build:
  number: 0
  skip: True  # [py < 36]
  script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --use-pep517 -vvv"
  entry_points:
    - pyrodigal = pyrodigal.cli:main
  run_exports:
    - {{ pin_subpackage("pyrodigal", max_pin="x.x") }}

requirements:
  build:
    - {{ compiler('c') }}
  host:
    - python
    - pip
    - cython
    - setuptools
  run:
    - python
    - archspec >=0.2.0

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

about:
  home: https://github.com/althonos/pyrodigal
  license: GPL-3
  license_family: GPL
  license_file: COPYING
  summary: Python bindings to Prodigal, an ORF finder for microbial sequences.
  doc_url: https://pyrodigal.readthedocs.org/

extra:
  recipe-maintainers:
    - althonos
  identifiers:
    - doi:10.21105/joss.04296  # JOSS paper
