diff options
author | George Young <A-N-Other@users.noreply.github.com> | 2024-02-13 17:02:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 10:02:44 -0700 |
commit | d1e01d5646b43bf3afbd04f2593f529f606426ad (patch) | |
tree | 23257aaea47a3e32dac4cee85ce7c5098b4b6c36 | |
parent | 7b04910f84bac4bded016de39c79ef8095face53 (diff) | |
download | spack-d1e01d5646b43bf3afbd04f2593f529f606426ad.tar.gz spack-d1e01d5646b43bf3afbd04f2593f529f606426ad.tar.bz2 spack-d1e01d5646b43bf3afbd04f2593f529f606426ad.tar.xz spack-d1e01d5646b43bf3afbd04f2593f529f606426ad.zip |
khmer: new package @2.1.1 (#42450)
* khmer: new package @2.1.1
* rationalising patch
* adding dep, modifying patch
* Update var/spack/repos/builtin/packages/khmer/package.py
Indeed!
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Update package.py
---------
Co-authored-by: LMS Bioinformatics <bioinformatics@lms.mrc.ac.uk>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/khmer/package.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/khmer/package.py b/var/spack/repos/builtin/packages/khmer/package.py new file mode 100644 index 0000000000..c93b4fbacd --- /dev/null +++ b/var/spack/repos/builtin/packages/khmer/package.py @@ -0,0 +1,32 @@ +# 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 Khmer(PythonPackage): + """khmer is a software library and toolkit for k-mer based analysis and transformation + of nucleotide sequence data""" + + homepage = "https://khmer.readthedocs.io/en/latest/" + pypi = "khmer/khmer-2.1.1.tar.gz" + + license("BSD-3-Clause", checked_by="A-N-Other") + + version("2.1.1", sha256="a709606910bb8679bd8525e9d2bf6d1421996272e343b54cc18090feb2fdbe24") + + # https://github.com/dib-lab/khmer/pull/1922 ... + conflicts("^python@3.12:") + + depends_on("py-setuptools@3.4.1:", type="build") + depends_on("py-pytest-runner@2", type="build") + depends_on("py-screed@1:", type=("build", "run")) + # abandoned `bz2file` dependency dropped in favour of the patch below + + depends_on("openmpi") + + def patch(self): + filter_file("bz2file", "bz2", join_path("khmer", "kfile.py")) + filter_file("'bz2file', ", "", "setup.py") |