perl-type-tiny: New package (#41582)
This commit is contained in:
parent
ede36512e7
commit
3e7acf3e61
29
var/spack/repos/builtin/packages/perl-type-tiny/package.py
Normal file
29
var/spack/repos/builtin/packages/perl-type-tiny/package.py
Normal file
@ -0,0 +1,29 @@
|
||||
# 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 PerlTypeTiny(PerlPackage):
|
||||
"""Tiny, yet Moo(se)-compatible type constraint"""
|
||||
|
||||
homepage = "https://metacpan.org/pod/Type::Tiny"
|
||||
url = "https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/Type-Tiny-2.004000.tar.gz"
|
||||
|
||||
maintainers("EbiArnie")
|
||||
|
||||
version("2.004000", sha256="697e7f775edfc85f4cf07792d04fd19b09c25285f98f5938e8efc4f74507a128")
|
||||
|
||||
depends_on("perl@5.8.1:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-exporter-tiny@1.006000:", type=("run"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Type::Tiny; 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