NAME

Bioconda::Packages::RecipeParser - Extract structured metadata from a Bioconda meta.yaml recipe file.

SYNOPSIS

use Bioconda::Packages::RecipeParser qw(parse_file);

my $info = parse_file('bioconda-recipes/recipes/samtools/meta.yaml');
print $info->{name};             # samtools
print $info->{version};          # 1.25
print "@{ $info->{depends}{run} }";

DESCRIPTION

Bioconda recipes are Jinja2-templated YAML, which is not valid YAML on its own. This module does just enough Jinja rendering and a deliberately small YAML-subset walk to pull out the handful of fields we care about. It is intentionally dependency-free (core Perl only) and forgiving: anything it cannot resolve is flagged rather than fatal.

Extracted fields (hashref):

name version package_names build_number noarch
summary license license_family home dev_url doc_url
identifiers outputs depends {build,host,run}
warnings   (arrayref of parse notes; empty on a clean parse)

Each dependency is { name => 'python', constraint => '>=3.9', platform => undef }.