{% set version = "3.16.0" %}
{% set sha256 = "f006257aafc6a89bd5cdf291d5f8764537224c4be863386cd4936f874f58090c" %}

package:
  name: orange3
  version: {{ version }}

source:
  fn: Orange3-{{ version }}.tar.gz
  url: https://github.com/biolab/orange3/archive/{{ version }}.tar.gz
  sha256: {{ sha256 }}
  patches:
    - 0001-disable-tests-using-long-file-names.patch  # [not win]
    - 0002-Disable-test-involving-broken-elf.patch

build:
  number: 0
  script:
    - python setup.py install --single-version-externally-managed --record=record.txt
    - rm ${SP_DIR}/Orange/tests/binary-blob.tab  # [unix]
    - del /s /q %SP_DIR%\Orange\tests\binary-blob.tab  # [win]
  entry_points:
    - orange-canvas = Orange.canvas.__main__:main
  osx_is_app: True
  skip: True        # [py2k]

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
  host:
    - python
    - setuptools
    - numpy
  run:
    - python
    - {{ pin_compatible('numpy') }}
    - setuptools    >=36.3
    - scipy         >=0.16.1
    - scikit-learn  >=0.18.1
    - bottleneck    >=1.0.0
    - chardet       >=3.0.2
    - docutils
    - xlrd          >=0.9.2
    - anyqt         >=0.0.8
    - pyqtgraph     >=0.10.0
    - joblib        >=0.9.4
    - keyring
    - keyrings.alt
    - dill
    - pip
    - python.app    # [osx]
    - commonmark    >=0.5.5
    - serverfiles
    - python-louvain
    - matplotlib    >=2.0.0

test:
  # Numpy's testing module has made some changes in 1.15+
  requires:
    - numpy <1.15
  commands:
    - orange-canvas --help
    - MPLBACKEND=Agg python -m unittest -v Orange.tests  # [not win and not linux32]
    - python -m unittest -v Orange.tests  # [win]
  imports:
    - Orange

app:
  entry: orange-canvas
  summary: 'data visualization and data analysis tool'
  icon: icon_48x48.png

about:
  home: http://orange.biolab.si/
  license: GPL3
  license_family: GPL3
  license_file: LICENSE
  summary: component-based data mining framework
  description: |
    Open source data visualization and data analysis for novice and expert.
    Interactive workflows with a large toolbox.
  doc_url: http://orange.biolab.si/docs/
  dev_url: https://github.com/biolab/orange3

extra:
  recipe-maintainers:
    - astaric
    - lanzagar
    - ales-erjavec
    - nikicc
    - markotoplak
    - primozgodec
