summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-02-16 17:15:54 +0000
committerGitHub <noreply@github.com>2024-02-16 09:15:54 -0800
commitb4b53a9a9fd5172c68d4828467dd05d6771353bc (patch)
tree21c0493e6e2426e7f5947b48539d94b7a4f1fdee
parentbe1cfffa454cb4d5c81a28267acb49ce712c024a (diff)
downloadspack-b4b53a9a9fd5172c68d4828467dd05d6771353bc.tar.gz
spack-b4b53a9a9fd5172c68d4828467dd05d6771353bc.tar.bz2
spack-b4b53a9a9fd5172c68d4828467dd05d6771353bc.tar.xz
spack-b4b53a9a9fd5172c68d4828467dd05d6771353bc.zip
perl-datetime-format-iso8601: New package (#42719)
Adds DateTime::Format::ISO8601
-rw-r--r--var/spack/repos/builtin/packages/perl-datetime-format-iso8601/package.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-datetime-format-iso8601/package.py b/var/spack/repos/builtin/packages/perl-datetime-format-iso8601/package.py
new file mode 100644
index 0000000000..b816d6e01e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-datetime-format-iso8601/package.py
@@ -0,0 +1,34 @@
+# 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 PerlDatetimeFormatIso8601(PerlPackage):
+ """Parses ISO8601 formats"""
+
+ homepage = "https://metacpan.org/pod/DateTime::Format::ISO8601"
+ url = "https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-ISO8601-0.16.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("0.16", sha256="582847f6e029065334a00564f20cd7c28f4e5cd4ec21513d0f692531ed3b56e1")
+
+ depends_on("perl-datetime@1.45:", type=("build", "run", "test"))
+ depends_on("perl-datetime-format-builder@0.77:", type=("build", "run", "test"))
+ depends_on("perl-namespace-autoclean", type=("build", "run", "test"))
+ depends_on("perl-params-validationcompiler@0.26:", type=("build", "run", "test"))
+ depends_on("perl-specio@0.18:", type=("build", "run", "test"))
+ depends_on("perl-test2-suite", type=("build", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use DateTime::Format::ISO8601; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out