Skip to content

Commit

Permalink
khmer: new package @2.1.1 (spack#42450)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Feb 13, 2024
1 parent 7b04910 commit d1e01d5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions var/spack/repos/builtin/packages/khmer/package.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit d1e01d5

Please sign in to comment.