{% set version="202503" %}

package:
  name: sentieon
  version: {{ version }}
source:
  - url: https://s3.amazonaws.com/sentieon-release/software/sentieon-genomics-{{ version }}.tar.gz  #[linux and x86_64]
    sha256: da8fd40e8fe86e0d52ac7023b2ee561d5eb4a89f15afe79ef2ff1d3a13cea73d  #[linux and x86_64]
  - url: https://s3.amazonaws.com/sentieon-release/software/arm-sentieon-genomics-{{ version }}.tar.gz  #[linux and aarch64]
    sha256: 491e03786a92dd821803d407da6a9880a68e19d8626c29b3f1503b45d1f8e9fd  #[linux and aarch64]
    patches:
      - sentieon_symlinks.patch
build:
  number: 0
  skip: True  # [not linux]
  binary_relocation: false
  run_exports:
    - {{ pin_subpackage('sentieon', max_pin='x') }}

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - libudev
  host:
    - zlib
    - libudev
  run:
    - python >=2.7
    - zlib
    - libudev

test:
  commands:
    - sentieon driver
    - sentieon driver --help --algo TNscope
    - sentieon STAR --help  # [linux and x86_64]
    - sentieon umi --help
    - sentieon util --help

about:
  home: https://www.sentieon.com
  license: Commercial (requires license for use; redistribution allowed)
  summary: Accelerated performance bioinformatics tools for mapping and variant calling

extra:
  additional-platforms:
    - linux-aarch64
  skip-lints:
    - should_be_noarch_generic  # uses per platform binaries
    - should_not_be_noarch_source  # uses binaries
