perl-text-csv-xs: new package (#43030)

Adds Text::CSV_XS
This commit is contained in:
Arne Becker 2024-03-05 19:22:38 +00:00 committed by GitHub
parent 18ab14e659
commit dd59f4ba34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 PerlTextCsvXs(PerlPackage):
"""Comma-Separated Values manipulation routines"""
homepage = "https://metacpan.org/pod/Text::CSV_XS"
url = "https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/Text-CSV_XS-1.53.tgz"
maintainers("EbiArnie")
license("Artistic-1.0-Perl OR GPL-1.0-or-later")
version("1.53", sha256="ba3231610fc755a69e14eb4a3c6d8cce46cc4fd32853777a6c9ce485a8878b42")
depends_on("perl@5.6.1:", type=("build", "link", "run", "test"))
def test_use(self):
"""Test 'use module'"""
options = ["-we", 'use strict; use Text::CSV_XS; print("OK\n")']
perl = self.spec["perl"].command
out = perl(*options, output=str.split, error=str.split)
assert "OK" in out