summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Young <A-N-Other@users.noreply.github.com>2023-08-03 00:11:18 +0100
committerGitHub <noreply@github.com>2023-08-02 19:11:18 -0400
commit41d2161b5b5a40e1912cd8deb81da331a5a25de9 (patch)
tree529c73c93c37d3c22966220fb2b868b5ca67d5eb /var
parentba936574fc8acf95a6a28e0438634b15d85af599 (diff)
downloadspack-41d2161b5b5a40e1912cd8deb81da331a5a25de9.tar.gz
spack-41d2161b5b5a40e1912cd8deb81da331a5a25de9.tar.bz2
spack-41d2161b5b5a40e1912cd8deb81da331a5a25de9.tar.xz
spack-41d2161b5b5a40e1912cd8deb81da331a5a25de9.zip
nextdenovo: new package @2.5.2 (and py-paralleltask) (#39139)
* py-paralleltask: new package @0.2.2 * adding hidden dependency * nextdenovo: new package @2.5.2 * style * Update var/spack/repos/builtin/packages/py-paralleltask/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> --------- Co-authored-by: LMS Bioinformatics <bioinformatics@lms.mrc.ac.uk> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/nextdenovo/package.py29
-rw-r--r--var/spack/repos/builtin/packages/py-paralleltask/package.py20
2 files changed, 49 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nextdenovo/package.py b/var/spack/repos/builtin/packages/nextdenovo/package.py
new file mode 100644
index 0000000000..51748f0e3a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/nextdenovo/package.py
@@ -0,0 +1,29 @@
+# Copyright 2013-2023 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 Nextdenovo(MakefilePackage):
+ """NextDenovo is a string graph-based de novo assembler for long reads."""
+
+ homepage = "https://nextdenovo.readthedocs.io/en/latest/index.html"
+ url = "https://github.com/Nextomics/NextDenovo/archive/refs/tags/2.5.2.tar.gz"
+
+ version("2.5.2", sha256="f1d07c9c362d850fd737c41e5b5be9d137b1ef3f1aec369dc73c637790611190")
+
+ depends_on("python", type="run")
+ depends_on("py-paralleltask", type="run")
+
+ def edit(self, spec, prefix):
+ makefile = FileFilter("Makefile")
+ makefile.filter(r"^TOP_DIR.*", "TOP_DIR={0}".format(self.build_directory))
+ runfile = FileFilter("nextDenovo")
+ runfile.filter(r"^SCRIPT_PATH.*", "SCRIPT_PATH = '{0}'".format(prefix))
+
+ def install(self, spec, prefix):
+ install_tree("bin", prefix.bin)
+ install("nextDenovo", prefix.bin)
+ install_tree("lib", prefix.lib)
diff --git a/var/spack/repos/builtin/packages/py-paralleltask/package.py b/var/spack/repos/builtin/packages/py-paralleltask/package.py
new file mode 100644
index 0000000000..53ce9066e9
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-paralleltask/package.py
@@ -0,0 +1,20 @@
+# Copyright 2013-2023 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 PyParalleltask(PythonPackage):
+ """Paralleltask is a simple and lightweight parallel task engine. It can launch a given
+ number of tasks from a batch of independent tasks, and keep this number of running tasks
+ until all tasks are completed."""
+
+ homepage = "https://github.com/moold/ParallelTask"
+ pypi = "Paralleltask/Paralleltask-0.2.2.tar.gz"
+
+ version("0.2.2", sha256="f00945e2bd5b6aff9cdc48fbd92aa7b48d23bb530d7f6643ac966fea11a7a9d5")
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-psutil", type=("build", "run"))