parent
66f078ff84
commit
49b38e3a78
29
var/spack/repos/builtin/packages/perl-yaml-syck/package.py
Normal file
29
var/spack/repos/builtin/packages/perl-yaml-syck/package.py
Normal 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
|
Loading…
Reference in New Issue
Block a user