{% set version = "1.0.1" %}

package:
  name: gambit
  version: "{{ version }}"

source:
  url: https://github.com/jlumpe/gambit/archive/v{{ version }}.tar.gz
  sha256: d99285b1b8df971d36292ca3639bab5998b501262db8c72769dc1287920f73e8

build:
  number: 1
  script: "{{ PYTHON }} -m pip install --no-deps --no-build-isolation . -vvv"
  entry_points:
    - gambit = gambit.cli:cli
  run_exports:
    - {{ pin_subpackage("gambit", max_pin="x") }}

requirements:
  build:
    - {{ compiler('c') }}
  host:
    - python
    - pip
    - numpy >=1.13
    - cython >=0.27,<1
  run:
    - python
    - {{ pin_compatible('numpy') }}
    - sqlalchemy >=1.1,<2.dev0
    - biopython >=1.69
    - alembic >=1.0
    - attrs >=20
    - cattrs >=1.0
    - click >=7.0
    - h5py >=3.0
    - setuptools
    - scipy >=1.7

test:
  requires:
    - pytest
  source_files:
    - tests/
  imports:
    - gambit
  commands:
    # Just check command is available
    - gambit --help

about:
  home: https://github.com/jlumpe/gambit
  summary: Tool for rapid taxonomic identification of microbial pathogens
  description: |
    GAMBIT (Genomic Approximation Method for Bacterial Identification and Tracking)
    is a tool for rapid taxonomic identification of microbial pathogens. It uses an
    extremely efficient genomic distance metric along with a curated database of
    approximately 50,000 reference genomes (derived from NCBI RefSeq) to identify
    unknown bacterial genomes within seconds.
  license: AGPL-3.0-or-later
  license_family: AGPL
  license_file: LICENSE
  doc_url: https://gambit-genomics.readthedocs.io/en/latest
  dev_url: https://github.com/jlumpe/gambit

extra:
  recipe-maintainers:
    - jlumpe
  skip-lints:
    - uses_setuptools  # uses pkg_resoures during run time
  identifiers:
    - doi:10.1371/journal.pone.0277575
    - biotools:gambit_bacterial
