summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-bx-python/package.py
blob: e37f48f4f77824b1b84c8d74e08ab81a6eb82600 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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 PyBxPython(PythonPackage):
    """The bx-python project is a python library and associated set of scripts
    to allow for rapid implementation of genome scale analyses."""

    homepage = "https://github.com/bxlab/bx-python"
    pypi = "bx-python/bx-python-0.8.8.tar.gz"

    license("MIT")

    version("0.9.0", sha256="fe545c44d2ea74b239d41e9090618aaf6a859d1a1f64b4a21b133cb602dfdb49")
    version("0.8.8", sha256="ad0808ab19c007e8beebadc31827e0d7560ac0e935f1100fb8cc93607400bb47")

    # See https://pypi.org/project/bx-python/(version)/#files for which Python versions
    # work with which releases.
    depends_on("python@3.7:3.11", when="@=0.9.0", type=("build", "run"))
    depends_on("python@3.5:3.8", when="@=0.8.8", type=("build", "run"))
    depends_on("py-setuptools", type="build")
    depends_on("py-cython", type="build")
    depends_on("py-numpy", type=("build", "run"))
    depends_on("py-six", when="@:0.8.9", type=("build", "run"))
    # py-python-lzo is listed as a dependency in `tox.ini` rather than in `setup.cfg`
    depends_on("py-python-lzo@1.14:", type=("build", "run"))
    depends_on("zlib", type="link")