summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-fenics-basix/package.py
blob: 9fec47e0db9e1e38daa34a20b10781873e99c387 (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
# Copyright 2013-2021 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 import *


class PyFenicsBasix(PythonPackage):
    """Python basis evaluation library for Next generation FEniCS problem solving
    environment"""

    homepage = "https://github.com/FEniCS/basix"
    git = "https://github.com/FEniCS/basix.git"
    maintainers = ["chrisrichardson", "mscroggs"]

    version("main", branch="main")

    depends_on("fenics-basix@main", type=("build", "run"))
    depends_on("python@3.6:", type=('build', 'run'))
    depends_on("eigen@3.3.7:")
    depends_on("py-setuptools", type="build")
    depends_on("cmake@3.18:", type="build")
    depends_on("py-pybind11@2.6.2:", type="build")

    phases = ['build_ext', 'build', 'install']

    build_directory = 'python'