diff options
author | Arne Becker <101113822+EbiArnie@users.noreply.github.com> | 2024-01-09 20:53:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 12:53:54 -0800 |
commit | 7f7fcde71e9a347799d5ff99d1a4302bcc924398 (patch) | |
tree | cc4caf606a033118e30433911a46166b33e88aa7 /var | |
parent | 346e04d14fe5823d1a057d746316bd51d4561735 (diff) | |
download | spack-7f7fcde71e9a347799d5ff99d1a4302bcc924398.tar.gz spack-7f7fcde71e9a347799d5ff99d1a4302bcc924398.tar.bz2 spack-7f7fcde71e9a347799d5ff99d1a4302bcc924398.tar.xz spack-7f7fcde71e9a347799d5ff99d1a4302bcc924398.zip |
perl-metacpan-client: New package (#41963)
Adds MetaCPAN::Client
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/perl-metacpan-client/package.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-metacpan-client/package.py b/var/spack/repos/builtin/packages/perl-metacpan-client/package.py new file mode 100644 index 0000000000..9b7cb2ef36 --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-metacpan-client/package.py @@ -0,0 +1,40 @@ +# 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 PerlMetacpanClient(PerlPackage): + """A comprehensive, DWIM-featured client to the MetaCPAN API""" + + homepage = "https://metacpan.org/pod/MetaCPAN::Client" + url = "https://cpan.metacpan.org/authors/id/M/MI/MICKEY/MetaCPAN-Client-2.031000.tar.gz" + + maintainers("EbiArnie") + + license("Artistic-1.0-Perl OR GPL-1.0-or-later") + + version("2.031000", sha256="c6ceaf886a74120e2bffe2ec1f09d0fdc330acbfdb9ec876ef925ee687ec7cf5") + + depends_on("perl@5.10.0:", type=("build", "link", "run", "test")) + depends_on("perl-io-socket-ssl@1.42:", type=("build", "run", "test")) + depends_on("perl-json-maybexs", type=("build", "run", "test")) + depends_on("perl-lwp-protocol-https", type=("build", "test")) + depends_on("perl-moo", type=("build", "run", "test")) + depends_on("perl-net-ssleay@1.49:", type=("build", "run", "test")) + depends_on("perl-ref-util", type=("build", "run", "test")) + depends_on("perl-safe-isa", type=("build", "run", "test")) + depends_on("perl-test-fatal", type=("build", "test")) + depends_on("perl-test-needs@0.002005:", type=("build", "test")) + depends_on("perl-type-tiny", type=("build", "run", "test")) + depends_on("perl-uri", type=("build", "run", "test")) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use MetaCPAN::Client; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out |