{% set name = "genomedata" %}
{% set version = "1.7.3" %}
{% set sha256 = "308a2110ec14659f4a9e40d1515e5d9c95ebf808923f0cfbbe5cff4e7a8cce3c" %}

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

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

build:
  skip: True  # [osx or py < 39]
  number: 0
  entry_points:
    - genomedata-close-data = genomedata._close_data:main
    - genomedata-erase-data = genomedata._erase_data:main
    - genomedata-hardmask = genomedata._hardmask:main
    - genomedata-histogram = genomedata._histogram:main
    - genomedata-info = genomedata._info:main
    - genomedata-load = genomedata.load_genomedata:main
    - genomedata-load-assembly = genomedata._load_seq:main
    - genomedata-load-data = genomedata._load_data:main
    - genomedata-load-seq = genomedata._load_seq:main
    - genomedata-open-data = genomedata._open_data:main
    - genomedata-query = genomedata._query:main
    - genomedata-report = genomedata._report:main
  run_exports:
    - {{ pin_subpackage(name, max_pin="x") }}

requirements:
  build:
    - {{ compiler('c') }}
  host:
    - pip
    - python
    - setuptools_scm
    - hdf5
    - zlib
  run:
    - python
    - setuptools
    - six
    - hdf5
    - pytables >=3.4.3
    - pybigwig
    - path.py
    - textinput
    - bedtools
    - ucsc-bigwigtobedgraph >=377

test:
    # Copied to PATH in build.sh
    # source_files:
    # - test/*.py
    # - test/data/*
    commands:
    # Smoke test commands
    - genomedata-info --help
    - genomedata-query --help
    - genomedata-histogram --help
    - genomedata-load --help
    - genomedata-load-seq --help
    - genomedata-load-assembly --help
    - genomedata-open-data --help
    - genomedata-hardmask --help
    - genomedata-close-data --help
    - genomedata-report --help
    - genomedata-erase-data --help
    - genomedata-load-data --help
    # Test functionality
    - run_genomedata_tests.py

about:
  home: http://genomedata.hoffmanlab.org/
  license: GPL-2.0
  license_family: GPL2
  license_file: LICENSE
  summary: 'Tools for accessing large amounts of genomic data'
  doc_url: https://genomedata.readthedocs.io/en/latest/
  dev_url: https://github.com/hoffmangroup/genomedata

extra:
  additional-platforms:
    - linux-aarch64
  identifiers:
    - biotools:genomedata
    - doi:10.1093/bioinformatics/btq164
  skip-lints:
    - uses_setuptools
