{% set name = "iced" %}
{% set version = "0.6.0" %}
{% set sha256 = "1572132827c49ef336f7f65b4dcb604ea6d53c8cb8d9a2fd457e9980bbc06bfe" %}

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

source:
  url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/iced-{{ version }}.tar.gz
  sha256: {{ sha256 }}
  patches:
    - 0001-setup.py.patch

build:
  number: 0
  script: {{ PYTHON }} -m pip install . -vvv --no-deps --no-build-isolation --no-cache-dir
  entry_points:
    - ice = iced.scripts.ice:main
  run_exports:
    - {{ pin_subpackage(name, max_pin="x.x") }}

requirements:
  build:
    - {{ compiler('c') }}
  host:
    - pip
    - python
    - cython
    - numpy >=1.16.0
    - scipy >=0.19.0
  run:
    - python
    - {{ pin_compatible('numpy') }}
    - scipy >=0.19.0
    - pandas
    - scikit-learn
    - matplotlib-base

test:
  imports:
    - iced
  commands:
    - ice --help

about:
  home: "https://github.com/hiclib/iced"
  license: "BSD-3-Clause"
  license_family: BSD
  license_file: LICENSE
  summary: "The python module iced implements the ICE normalization of hic data."
  dev_url: "https://github.com/hiclib/iced"
  doc_url: "https://members.cbio.mines-paristech.fr/~nvaroquaux/iced"

extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64
