# As soon as PyQt6 is available as a Conda package, this recipe can be
# updated as follows:
# - use "pip install .[full]"
# - add pyqt6 (or possibly pyqt>=6) dependency
# Until then, only the "tissuumaps_server" script is available, not "tissuumaps"

{% set version = "3.2.1.14" %}

package:
  name: tissuumaps
  version: {{ version }}

source:
  url: https://github.com/TissUUmaps/TissUUmaps/archive/refs/tags/{{ version }}.tar.gz
  sha256: 131b0d316ffcd41a39ce4e65f79e40fc92e74bcd9afbcbf5bc0ba3f5d15a9c15

build:
  number: 0
  script: "{{ PYTHON }} -m pip install --no-deps -vv ."
  noarch: python
  run_exports:
    - {{ pin_subpackage("tissuumaps", max_pin="x") }}

requirements:
  host:
    - pip
    - python
  run:
    - python
    - flask >=2
    - openslide-python >=1.1.2
    - pillow >=8.2.0
    - ipython >=7.0
    - pyyaml >=6.0
    - h5py >=3.6.0
    - scipy >=1.7.2
    - pyvips

test:
  commands:
    - "tissuumaps_server --help 2>&1 > /dev/null | grep 'version: {{ version }}'"

about:
  home: https://tissuumaps.research.it.uu.se/
  license: MIT
  license_file: LICENSE
  summary: >
    TissUUmaps is a lightweight viewer that uses basic web tools to visualize
    gene expression data or any kind of point data on top of whole slide images

extra:
  identifiers:
    - doi:10.1101/2022.01.28.478131
