Skip to content

Commit 14209a8

Browse files
authored
perl-bio-eutilities and deps: new packages (spack#42869)
This adds Spack packages for these Perl distributons: - Bio::DB::EUtilities and its dependencies: - Bio::ASN1::EntrezGene - Bio::Cluster - Bio::Variation
1 parent b7d9900 commit 14209a8

File tree

4 files changed

+132
-0
lines changed

4 files changed

+132
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
from spack.package import *
7+
8+
9+
class PerlBioAsn1Entrezgene(PerlPackage):
10+
"""Regular expression-based Perl Parser for NCBI Entrez Gene."""
11+
12+
homepage = "https://metacpan.org/pod/Bio::ASN1::EntrezGene"
13+
url = "https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/Bio-ASN1-EntrezGene-1.73.tar.gz"
14+
15+
maintainers("EbiArnie")
16+
17+
license("Artistic-1.0-Perl OR GPL-1.0-or-later")
18+
19+
version("1.73", sha256="f9e778db705ce5c35ad2798e38a8490b644edfdc14253aa1b74a1f5e79fc6a4b")
20+
21+
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
22+
depends_on("perl-bio-cluster", type=("build", "run", "test"))
23+
depends_on("perl-bioperl", type=("build", "run", "test"))
24+
25+
def test_use(self):
26+
"""Test 'use module'"""
27+
options = ["-we", 'use strict; use Bio::ASN1::EntrezGene; print("OK\n")']
28+
29+
perl = self.spec["perl"].command
30+
out = perl(*options, output=str.split, error=str.split)
31+
assert "OK" in out
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
from spack.package import *
7+
8+
9+
class PerlBioCluster(PerlPackage):
10+
"""BioPerl cluster modules"""
11+
12+
homepage = "https://metacpan.org/pod/Bio::Cluster"
13+
url = "https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/Bio-Cluster-1.7.3.tar.gz"
14+
15+
maintainers("EbiArnie")
16+
17+
license("Artistic-1.0-Perl OR GPL-1.0-or-later")
18+
19+
version("1.7.3", sha256="1967fb3899b92f245b5bf6cb64ef076fc3f8427b1a96ca5f7b74d220b6191fbb")
20+
21+
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
22+
depends_on("perl-bio-variation", type=("build", "run", "test"))
23+
depends_on("perl-bioperl", type=("build", "run", "test"))
24+
depends_on("perl-xml-sax", type=("build", "run", "test"))
25+
26+
def test_use(self):
27+
"""Test 'use module'"""
28+
options = ["-we", 'use strict; use Bio::Cluster; print("OK\n")']
29+
30+
perl = self.spec["perl"].command
31+
out = perl(*options, output=str.split, error=str.split)
32+
assert "OK" in out
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
from spack.package import *
7+
8+
9+
class PerlBioEutilities(PerlPackage):
10+
"""BioPerl low-level API for retrieving and storing data from NCBI eUtils"""
11+
12+
homepage = "https://metacpan.org/pod/Bio::DB::EUtilities"
13+
url = "https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/Bio-EUtilities-1.77.tar.gz"
14+
15+
maintainers("EbiArnie")
16+
17+
license("Artistic-1.0-Perl OR GPL-1.0-or-later")
18+
19+
version("1.77", sha256="4d018c8cbda73c3d71487165261a3dfc4e823f8e22747497f6a586d5ad6f737f")
20+
21+
depends_on("perl@5.10.0:", type=("build", "link", "run", "test"))
22+
depends_on("perl-bio-asn1-entrezgene", type=("build", "run", "test"))
23+
depends_on("perl-bioperl", type=("build", "run", "test"))
24+
depends_on("perl-http-message", type=("build", "run", "test"))
25+
depends_on("perl-libwww-perl", type=("build", "run", "test"))
26+
depends_on("perl-text-csv", type=("build", "run", "test"))
27+
depends_on("perl-uri", type=("build", "run", "test"))
28+
depends_on("perl-xml-simple", type=("build", "run", "test"))
29+
30+
def test_use(self):
31+
"""Test 'use module'"""
32+
options = ["-we", 'use strict; use Bio::DB::EUtilities; print("OK\n")']
33+
34+
perl = self.spec["perl"].command
35+
out = perl(*options, output=str.split, error=str.split)
36+
assert "OK" in out
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
from spack.package import *
7+
8+
9+
class PerlBioVariation(PerlPackage):
10+
"""BioPerl variation-related functionality"""
11+
12+
homepage = "https://metacpan.org/pod/Bio::Variation"
13+
url = "https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/Bio-Variation-1.7.5.tar.gz"
14+
15+
maintainers("EbiArnie")
16+
17+
license("Artistic-1.0-Perl OR GPL-1.0-or-later")
18+
19+
version("1.7.5", sha256="4bffdd060b5e793919f700e46056eb3f0195ed4df2e60ad68b383c31e51f824f")
20+
21+
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
22+
depends_on("perl-bioperl", type=("build", "run", "test"))
23+
depends_on("perl-io-string", type=("build", "run", "test"))
24+
depends_on("perl-xml-twig", type=("build", "run", "test"))
25+
depends_on("perl-xml-writer@0.4:", type=("build", "run", "test"))
26+
27+
def test_use(self):
28+
"""Test 'use module'"""
29+
options = ["-we", 'use strict; use Bio::Variation; print("OK\n")']
30+
31+
perl = self.spec["perl"].command
32+
out = perl(*options, output=str.split, error=str.split)
33+
assert "OK" in out

0 commit comments

Comments
 (0)