summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pure-eval/package.py
blob: 306ce185c5f54c98a83519d0187e799d814e62d5 (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
# 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 PyPureEval(PythonPackage):
    """Safely evaluate AST nodes without side effects."""

    homepage = "https://github.com/alexmojaki/pure_eval"
    git = "https://github.com/alexmojaki/pure_eval.git"
    pypi = "pure_eval/pure_eval-0.2.2.tar.gz"

    license("MIT")

    version("master", branch="master")
    version("0.2.2", sha256="2b45320af6dfaa1750f543d714b6d1c520a1688dec6fd24d339063ce0aaa9ac3")

    depends_on("python@3.5:", type=("build", "run"))
    depends_on("py-setuptools@44:", type="build")
    depends_on("py-setuptools-scm+toml@3.4.3:", type="build")