# This file created by conda-build 24.7.1
# meta.yaml template originally from:
# /opt/recipe, last modified Wed Jun 18 19:26:14 2025
# ------------------------------------------------

package:
  name: sra-tools
  version: 3.2.1
source:
  - folder: sra-tools
    sha256: 2558683c217ad2318833ab7731939617ed91dc79a6b1dee92bf88b56a1dc142a
    url: https://github.com/ncbi/sra-tools/archive/refs/tags/3.2.1.tar.gz
build:
  number: '1'
  run_exports:
    - sra-tools >=3.2.1,<4.0a0
  string: h4304569_1
requirements:
  build:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 2_gnu
    - binutils_impl_linux-64 2.40 ha1999f0_7
    - binutils_linux-64 2.40 hb3c18ed_4
    - bison 3.8.2 h59595ed_0
    - bzip2 1.0.8 h4bc722e_7
    - c-ares 1.34.5 hb9d3cd8_0
    - ca-certificates 2025.6.15 hbd8a1cb_0
    - cmake 4.0.3 h74e3db0_0
    - flex 2.6.4 h58526e2_1004
    - gcc_impl_linux-64 11.4.0 h00c12a0_13
    - gcc_linux-64 11.4.0 ha077dfb_4
    - gxx_impl_linux-64 11.4.0 h634f3ee_13
    - gxx_linux-64 11.4.0 h35bfe5d_4
    - kernel-headers_linux-64 3.10.0 he073ed8_18
    - keyutils 1.6.1 h166bdaf_0
    - krb5 1.21.3 h659f571_0
    - ld_impl_linux-64 2.40 hf3520f5_7
    - libcurl 8.14.1 h332b0f4_0
    - libedit 3.1.20250104 pl5321h7949ede_0
    - libev 4.33 hd590300_2
    - libexpat 2.7.0 h5888daf_0
    - libgcc 15.1.0 h767d61c_2
    - libgcc-devel_linux-64 11.4.0 h8f596e0_113
    - libgcc-ng 15.1.0 h69a702a_2
    - libgomp 15.1.0 h767d61c_2
    - liblzma 5.8.1 hb9d3cd8_2
    - libnghttp2 1.64.0 h161d5f1_0
    - libsanitizer 11.4.0 h5763a12_13
    - libssh2 1.11.1 hcf80075_0
    - libstdcxx 15.1.0 h8f9b012_2
    - libstdcxx-devel_linux-64 11.4.0 h8f596e0_113
    - libstdcxx-ng 15.1.0 h4852527_2
    - libuv 1.51.0 hb9d3cd8_0
    - libzlib 1.3.1 hb9d3cd8_2
    - m4 1.4.20 hb9d3cd8_0
    - make 4.4.1 hb9d3cd8_2
    - ncurses 6.5 h2d0b736_3
    - openssl 3.5.0 h7b32b05_1
    - rhash 1.4.6 hb9d3cd8_1
    - sysroot_linux-64 2.17 h0157908_18
    - tzdata 2025b h78e105d_0
    - zstd 1.5.7 hb8e6e7a_2
  host:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 2_gnu
    - libgcc 15.1.0 h767d61c_2
    - libgcc-ng 15.1.0 h69a702a_2
    - libgomp 15.1.0 h767d61c_2
    - libstdcxx 15.1.0 h8f9b012_2
    - libstdcxx-ng 15.1.0 h4852527_2
    - ncbi-vdb 3.2.1 h9948957_0
  run:
    - ca-certificates
    - curl
    - libgcc
    - libgcc-ng >=12
    - libstdcxx
    - libstdcxx-ng >=12
    - ncbi-vdb >=3.2.1
    - ncbi-vdb >=3.2.1,<4.0a0
    - ossuuid
    - perl
    - perl-uri
    - perl-xml-libxml
test:
  commands:
    - if ! grep "/LIBS/GUID" ~/.ncbi/user-settings.mkfg &> /dev/null; then mkdir -p
      ~/.ncbi && printf '/LIBS/GUID = "%s"\n' `uuid` > ~/.ncbi/user-settings.mkfg;
      fi
    - fastq-dump --help > /dev/null
    - fasterq-dump --help > /dev/null
    - prefetch --help > /dev/null
    - sam-dump --help > /dev/null
    - sra-pileup --help > /dev/null
    - vdb-config --help > /dev/null
    - vdb-decrypt --help > /dev/null
    - fastq-dump SRR002702 && grep '@SRR002702.1 EX35NVW14INCVK' SRR002702.fastq &&
      rm SRR002702.fastq
    - prefetch SRR002702 -O ./ && test -d SRR002702 && rm -r SRR002702
    - sam-dump SRR002702 | grep 'EX35NVW14ISYAK'
about:
  description: '"The SRA Toolkit and SDK from NCBI is a collection of tools and libraries

    for using data in the INSDC Sequence Read Archives."

    '
  dev_url: https://github.com/ncbi/sra-tools
  doc_url: https://github.com/ncbi/sra-tools/wiki
  home: https://github.com/ncbi/sra-tools
  license: Public Domain
  summary: The SRA Toolkit and SDK from NCBI.
extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64
  copy_test_source_files: true
  final: true
  identifiers:
    - biotools:sra-tools
  notes: 'After installation, you should run the configuration tool: ./vdb-config
    -i. This tool will setup your download/cache area for downloaded files and references.'
