{% set version = "1.11.1" %}
{% set sha256 = "e7a389d1d3d617a94fe10dc6d7c1442758a9506861323b29b8a1fba39938b7ab" %}

package:
  name: "gnparser"
  version: {{ version }}

source:
  url:
    - https://github.com/gnames/gnparser/archive/refs/tags/v{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 0
  run_exports:
    - {{ pin_subpackage('gnparser', max_pin="x") }}

requirements:
  build:
    - {{ compiler('go') }}

test:
  commands:
    - gnparser -V
    - gnparser "Homo sapiens Linnaeus 1758"

about:
  home: https://parser.globalnames.org/
  dev_url: https://github.com/gnames/gnparser
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: "GNparser normalises scientific names and extracts their semantic elements"


extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64
  identifiers:
    - doi:https://doi.org/10.5281/zenodo.5111569
