summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-blosc2/package.py
blob: 238a963f362218f84ffbd1993d30205f1596a5a6 (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
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 PyBlosc2(PythonPackage):
    """Python wrapper for the C-Blosc2 library."""

    homepage = "https://github.com/Blosc/python-blosc2"
    pypi = "blosc2/blosc2-2.2.8.tar.gz"

    license("BSD-3-Clause")

    version("2.2.8", sha256="59065aac5e9b01b0e9f3825d8e7f69f64b59bbfab148a47c54e4115f62a97474")
    version("2.0.0", sha256="f19b0b3674f6c825b490f00d8264b0c540c2cdc11ec7e81178d38b83c57790a1")

    depends_on("python@3.9:3", when="@2.2:", type=("build", "link", "run"))
    depends_on("python@3.8:3", when="@2.0", type=("build", "link", "run"))
    depends_on("py-setuptools", type="build")
    depends_on("py-scikit-build", type="build")
    depends_on("py-cython", type="build")
    # FIXME: why doesn't this work?
    # depends_on("py-cmake", type="build")
    depends_on("cmake@3.11:", type="build")
    depends_on("py-ninja", type="build")
    depends_on("py-numpy@1.20.3:", type=("build", "link", "run"))
    depends_on("py-ndindex@1.4:", when="@2.2:", type=("build", "run"))
    depends_on("py-msgpack", type=("build", "run"))
    depends_on("py-py-cpuinfo", when="@2.2:", type=("build", "run"))