{% set name = "tw"%}
{% set version = "0.9.1" %}
{% set sha = "34ad5fe57df990605681c185691feef453902146564a8822938e4ed8fdfff60e" %}

package:
  name: tower-cli
  version: {{ version }}

build:
  number: 0
  noarch: generic
  run_exports:
    - {{ pin_subpackage("tower-cli", max_pin="x.x") }}
    
source:
  - url: https://github.com/seqeralabs/tower-cli/releases/download/v{{ version }}/tw.jar
    sha256: {{ sha }}

requirements:
  run:
    - openjdk >=17

test:
  commands:
    - tw --help

about:
  home: "https://github.com/seqeralabs/tower-cli"
  license: "MPL-2.0"
  summary: "The Tower CLI an interface to Nextflow Tower via the CLI"
extra:
  skip-lints:
    - should_be_noarch_generic
    - should_not_use_fn
