perl-datetime-format-mysql: New package (#42004)
Adds DateTime::Format::MySQL
This commit is contained in:
parent
ba547a7f51
commit
74de7c84b6
1 changed files with 30 additions and 0 deletions
|
@ -0,0 +1,30 @@
|
|||
# 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 PerlDatetimeFormatMysql(PerlPackage):
|
||||
"""Parse and format MySQL dates and times"""
|
||||
|
||||
homepage = "https://metacpan.org/pod/DateTime::Format::MySQL"
|
||||
url = "https://cpan.metacpan.org/authors/id/X/XM/XMIKEW/DateTime-Format-MySQL-0.08.tar.gz"
|
||||
|
||||
maintainers("EbiArnie")
|
||||
|
||||
license("Artistic-1.0-Perl OR GPL-1.0-or-later")
|
||||
|
||||
version("0.08", sha256="19cb70e98584655e354d2d6a8e71cc5ca902dddc3ac44416712f9163d122b9e8")
|
||||
|
||||
depends_on("perl-datetime", type=("build", "run", "test"))
|
||||
depends_on("perl-datetime-format-builder@0.6:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DateTime::Format::MySQL; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
Loading…
Reference in a new issue