diff options
-rw-r--r-- | var/spack/repos/builtin/packages/perl-email-mime-encodings/package.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-email-mime-encodings/package.py b/var/spack/repos/builtin/packages/perl-email-mime-encodings/package.py new file mode 100644 index 0000000000..7be7b58329 --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-email-mime-encodings/package.py @@ -0,0 +1,27 @@ +# 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 PerlEmailMimeEncodings(PerlPackage): + """A unified interface to MIME encoding and decoding""" + + homepage = "https://metacpan.org/pod/Email::MIME::Encodings" + url = "https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-MIME-Encodings-1.317.tar.gz" + + maintainers("EbiArnie") + + version("1.317", sha256="4a9a41671a9d1504c4da241be419a9503fa3486262526edb81eca9e2ebea0baf") + + depends_on("perl@5.12.0:", type=("build", "link", "run", "test")) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use Email::MIME::Encodings; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out |