perl-yaml-syck: New package (#42892)

Adds YAML::Syck
This commit is contained in:
Arne Becker 2024-02-28 20:26:09 +00:00 committed by GitHub
parent 66f078ff84
commit 49b38e3a78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,29 @@
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PerlYamlSyck(PerlPackage):
"""Fast, lightweight YAML loader and dumper"""
homepage = "https://metacpan.org/pod/YAML::Syck"
url = "https://cpan.metacpan.org/authors/id/T/TO/TODDR/YAML-Syck-1.34.tar.gz"
maintainers("EbiArnie")
license("MIT")
version("1.34", sha256="cc9156ccaebda798ebfe2f31b619e806577f860ed1704262f17ffad3c6e34159")
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
def test_use(self):
"""Test 'use module'"""
options = ["-we", 'use strict; use YAML::Syck; print("OK\n")']
perl = self.spec["perl"].command
out = perl(*options, output=str.split, error=str.split)
assert "OK" in out