{% set version = "0.23.2" %}

package:
  name: pysam
  version: '{{ version }}'

source:
  url: https://github.com/pysam-developers/pysam/archive/v{{ version }}.tar.gz
  sha256: 12e5085a7dd0c0cb691706b78701b9463a14d35a08a5d724af03f22785e9ccfa
  patches:
    - arm_hwcap.patch

build:
  number: 0
  skip: True # [py2k]
  binary_relocation: False # [linux]
  run_exports:
    - {{ pin_subpackage('pysam', max_pin="x.x") }}

requirements:
  build:
    - {{ compiler('c') }}
    - make
  host:
    - cython
    - python
    - setuptools
    - zlib
    - xz
    - bzip2
    - libdeflate
    - libcurl
    - openssl  # [not osx]
  run:
    - python

about:
  home: https://github.com/pysam-developers/pysam
  license: MIT
  summary: "Pysam is a Python module for reading and manipulating SAM/BAM/VCF/BCF files. It's a lightweight wrapper of the htslib C-API, the same one that powers samtools, bcftools, and tabix."

extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64
  identifiers:
    - biotools:pysam
    - doi:10.1093/bioinformatics/btp352
