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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# 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 PyFenicsBasix(PythonPackage):
"""Python interface to Basix, a finite element definition and tabulation runtime library"""
homepage = "https://github.com/FEniCS/basix"
url = "https://github.com/FEniCS/basix/archive/v0.1.0.tar.gz"
git = "https://github.com/FEniCS/basix.git"
maintainers("chrisrichardson", "mscroggs", "garth-wells", "jhale")
license("MIT")
version("main", branch="main")
version("0.7.0", sha256="9bee81b396ee452eec8d9735f278cb44cb6994c6bc30aec8ed9bb4b12d83fa7f")
version("0.6.0", sha256="687ae53153c98facac4080dcdc7081701db1dcea8c5e7ae3feb72aec17f83304")
version("0.5.1", sha256="69133476ac35f0bd0deccb480676030378c341d7dfb2adaca22cd16b7e1dc1cb")
version("0.4.2", sha256="a54f5e442b7cbf3dbb6319c682f9161272557bd7f42e2b8b8ccef88bc1b7a22f")
depends_on("fenics-basix@main", type=("build", "run"), when="@main")
depends_on("fenics-basix@0.7.0", type=("build", "run"), when="@0.7.0")
depends_on("fenics-basix@0.6.0", type=("build", "run"), when="@0.6.0")
depends_on("fenics-basix@0.5.1", type=("build", "run"), when="@0.5.1")
depends_on("fenics-basix@0.4.2", type=("build", "run"), when="@0.4.2")
# See python/CMakeLists.txt
depends_on("cmake@3.16:", when="@:0.7", type="build")
depends_on("cmake@3.19:", when="@0.8:", type="build")
# See python/pyproject.toml
depends_on("python@3.8:", when="@0.7:", type=("build", "run"))
depends_on("py-numpy@1.21:", type=("build", "run"))
depends_on("py-pybind11@2.9.1:", when="@:0.7", type="build")
depends_on("py-setuptools@42:", when="@:0.7", type="build")
depends_on("py-nanobind@1.6.0:", when="@0.8:", type="build")
depends_on("py-scikit-build-core+pyproject@0.5.0:", when="@0.8:", type="build")
depends_on("xtensor@0.23.10:", type="build", when="@:0.4")
build_directory = "python"
|