diff options
-rw-r--r-- | var/spack/repos/builtin/packages/perl-yaml-syck/package.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-yaml-syck/package.py b/var/spack/repos/builtin/packages/perl-yaml-syck/package.py new file mode 100644 index 0000000000..a75a57ef79 --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-yaml-syck/package.py @@ -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 |