perl-alien-build-plugin-download-gitlab: New package (#41706)

* perl-alien-build-plugin-download-gitlab: New package

Adds Alien::Build::Plugin::Download::GitLab

* Remove copyright line

* New year
This commit is contained in:
Arne Becker 2024-01-10 23:43:02 +00:00 committed by GitHub
parent dbc283f0bd
commit e2b25b9acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,31 @@
# 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 PerlAlienBuildPluginDownloadGitlab(PerlPackage):
"""Alien::Build plugin to download from GitLab"""
homepage = "https://metacpan.org/pod/Alien::Build::Plugin::Download::GitLab"
url = "https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-Plugin-Download-GitLab-0.01.tar.gz"
maintainers("EbiArnie")
version("0.01", sha256="c1f089c8ea152a789909d48a83dbfcf2626f773daf30431c8622582b26aba902")
depends_on("perl@5.8.4:", type=("build", "link", "run", "test"))
depends_on("perl-alien-build", type=("build", "run", "test"))
depends_on("perl-path-tiny", type=("build", "run", "test"))
depends_on("perl-test2-suite", type=("build", "test"))
depends_on("perl-uri", type=("build", "run", "test"))
def test_use(self):
"""Test 'use module'"""
options = ["-we", 'use strict; use Alien::Build::Plugin::Download::GitLab; print("OK\n")']
perl = self.spec["perl"].command
out = perl(*options, output=str.split, error=str.split)
assert "OK" in out