perl-mime-types: New package (#41612)
This commit is contained in:
parent
a0a2cd6a1a
commit
0e96dfaeef
26
var/spack/repos/builtin/packages/perl-mime-types/package.py
Normal file
26
var/spack/repos/builtin/packages/perl-mime-types/package.py
Normal file
@ -0,0 +1,26 @@
|
||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||
# Copyright 2023 EMBL-European Bioinformatics Institute
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack.package import *
|
||||
|
||||
|
||||
class PerlMimeTypes(PerlPackage):
|
||||
"""Definition of MIME types"""
|
||||
|
||||
homepage = "https://metacpan.org/pod/MIME::Types"
|
||||
url = "https://cpan.metacpan.org/authors/id/M/MA/MARKOV/MIME-Types-2.24.tar.gz"
|
||||
|
||||
maintainers("EbiArnie")
|
||||
|
||||
version("2.24", sha256="629e361f22b220be50c2da7354e23c0451757709a03c25a22f3160edb94cb65f")
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use MIME::Types; 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