perl-moox-types-mooselike: new package (#41705)
This commit is contained in:
parent
e50b758e12
commit
2f712060bd
@ -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 PerlMooxTypesMooselike(PerlPackage):
|
||||
"""Some Moosish types and a type builder"""
|
||||
|
||||
homepage = "https://metacpan.org/pod/MooX::Types::MooseLike"
|
||||
url = "https://cpan.metacpan.org/authors/id/M/MA/MATEU/MooX-Types-MooseLike-0.29.tar.gz"
|
||||
|
||||
maintainers("EbiArnie")
|
||||
|
||||
version("0.29", sha256="1d3780aa9bea430afbe65aa8c76e718f1045ce788aadda4116f59d3b7a7ad2b4")
|
||||
|
||||
depends_on("perl-module-runtime@0.014:", type=("build", "run", "test"))
|
||||
depends_on("perl-moo@1.004002:", type=("build", "test"))
|
||||
depends_on("perl-test-fatal@0.003:", type=("build", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use MooX::Types::MooseLike; 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