perl-email-messageid: New package (#41696)

* perl-email-messageid: New package

Adds Email::MessageID

* Removed copyright line

* New year
This commit is contained in:
Arne Becker 2024-01-10 23:52:40 +00:00 committed by GitHub
parent 780caa6617
commit 43c9abcea6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 PerlEmailMessageid(PerlPackage):
"""Generate world unique message-ids."""
homepage = "https://metacpan.org/pod/Email::MessageID"
url = "https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-MessageID-1.408.tar.gz"
maintainers("EbiArnie")
version("1.408", sha256="1f3d5b4ff0b1c7b39e9ac7c318fb37adcd0bac9556036546494d14f06dc5643c")
depends_on("perl@5.12.0:", type=("build", "link", "run", "test"))
def test_use(self):
"""Test 'use module'"""
options = ["-we", 'use strict; use Email::MessageID; print("OK\n")']
perl = self.spec["perl"].command
out = perl(*options, output=str.split, error=str.split)
assert "OK" in out