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:
parent
43c9abcea6
commit
ec758bfd5b
@ -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
|
Loading…
Reference in New Issue
Block a user