perl-email-address-xs: New package (#41692)

* perl-email-address-xs: New package

Adds Email::Address::XS

* Removed copyright line

* New year
This commit is contained in:
Arne Becker 2024-01-10 23:54:06 +00:00 committed by GitHub
parent 43c9abcea6
commit ec758bfd5b
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 PerlEmailAddressXs(PerlPackage):
"""Parse and format RFC 5322 email addresses and groups"""
homepage = "https://metacpan.org/pod/Email::Address::XS"
url = "https://cpan.metacpan.org/authors/id/P/PA/PALI/Email-Address-XS-1.05.tar.gz"
maintainers("EbiArnie")
version("1.05", sha256="1510b7f10d67201037cd50d22c9d6b26eeca55ededa4cdb46bbca27e59a4ea16")
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
def test_use(self):
"""Test 'use module'"""
options = ["-we", 'use strict; use Email::Address::XS; print("OK\n")']
perl = self.spec["perl"].command
out = perl(*options, output=str.split, error=str.split)
assert "OK" in out