{% set name = "BioExt" %}
{% set version = "0.21.7" %}
{% set sha256 = "2265c9b6cb5b4a6400635a5d21f32ca1d693b97431ad188965150fc5d6b28ab6" %}

package:
  name: python-{{ name|lower }}
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/bioext-{{ version }}.tar.gz
  sha256: {{ sha256 }}
  patches:
    - cythonize.patch
    - osx-freetype.patch # [osx]

build:
  number: 0
  skip: True # [py2k]
  run_exports:
    - {{ pin_subpackage("python-bioext", max_pin="x.x") }}

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
  host:
    - freetype
    - python
    - cython >=0.28
    - setuptools
    - biopython >=1.58
    - numpy >1.20.3
    - scipy
    - pysam
  run:
    - freetype
    - python
    - biopython >=1.58
    - numpy >1.20.3
    - scipy
    - pysam
    - joblib
    - six

test:
  imports:
    - BioExt
    - BioExt.align
    - BioExt.args
    - BioExt.collections
    - BioExt.errorize
    - BioExt.freetype
    - BioExt.freetype.ft_enums
    - BioExt.io
    - BioExt.io.BamIO
    - BioExt.io.LazyAlignIO
    - BioExt.io.SamIO
    - BioExt.merge
    - BioExt.misc
    - BioExt.ndarray
    - BioExt.optimize
    - BioExt.orflist
    - BioExt.phylo
    - BioExt.rateclass
    - BioExt.references
    - BioExt.scorematrices
    - BioExt.stats
    - BioExt.tn93
    - BioExt.uds
    - BioExt.untranslate

  commands:
    - bam2fna 2>&1 | grep 'usage' > /dev/null
    - bam2msa 2>&1 | grep 'usage' > /dev/null
    - bealign 2>&1 | grep 'usage' > /dev/null
    - clipedge 2>&1 | grep 'usage' > /dev/null
    - msa2bam 2>&1 | grep 'usage' > /dev/null
    - seqmerge 2>&1 | grep 'usage' > /dev/null

about:
  home: https://github.com/veg/BioExt.git
  license: GPL-3
  license_family: GPL3
  summary: 'A few handy bioinformatics tools not already in BioPython'
