package:
  name: whatshap
  version: "2.0"

source:
  url: https://files.pythonhosted.org/packages/c3/10/b53674fa02c1d5b23887f5a6b0fbf6936ce35dcd08f65e994c18601b20cb/whatshap-2.0.tar.gz
  sha256: a23949e692047ab0549ea3309c2b70d95de17a01d00cbc8b2f4c8baf467f8e6a

build:
  script: python -m pip install --no-deps --ignore-installed .
  number: 0

requirements:
  build:
    - {{ compiler('cxx') }}
  host:
    - python
    - pip
    - cython
    - setuptools
    - setuptools-scm
  run:
    - python
    - pysam >=0.18
    - pyfaidx >=0.5.5.2
    - networkx >=2.4
    - biopython >=1.73
    - scipy
    - xopen >=1.2.0
    # This is not an actual requirement, but allows to run subsequent WhatsHap commands
    # in the same container (input files need to be indexed with tabix)
    - htslib
    - pulp >=2

test:
  imports:
    - whatshap
  commands:
    - whatshap --help > /dev/null

about:
  home: https://whatshap.readthedocs.io/
  license: MIT License
  summary: 'phase genomic variants using DNA sequencing reads (haplotype assembly)'

extra:
  identifiers:
    - biotools:whatshap
    - doi:10.1089/cmb.2014.0157
  recipe-maintainers:
    - marcelm
