
* py-pyshacl: patch dependency typo * py-pyshacl: satisfy flake8 * Update var/spack/repos/builtin/packages/py-pyshacl/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> --------- Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
30 lines
1.3 KiB
Python
30 lines
1.3 KiB
Python
# Copyright 2013-2023 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 PyPyshacl(PythonPackage):
|
|
"""A Python validator for SHACL."""
|
|
|
|
homepage = "https://github.com/RDFLib/pySHACL"
|
|
pypi = "pyshacl/pyshacl-0.17.2.tar.gz"
|
|
|
|
version("0.20.0", sha256="47f014c52cc69167b902c89b3940dd400f7f5d2169a62f97f837f3419b4a737d")
|
|
version("0.17.2", sha256="46f31c7a7f7298aa5b483d92dbc850ff79a144d26f1f41e83267ed84b4d6ae23")
|
|
|
|
depends_on("py-poetry-core@1.1:1", type="build")
|
|
depends_on("python@3.7:3", type=("build", "run"))
|
|
depends_on("py-rdflib@6.0.0:6", when="@0.17.2", type=("build", "run"))
|
|
depends_on("py-rdflib@6.2.0:6", when="@0.20.0:", type=("build", "run"))
|
|
depends_on("py-html5lib@1.1:1", when="@0.20.0:", type=("build", "run"))
|
|
depends_on("py-owlrl@5.2.3:6", when="@0.17.2", type=("build", "run"))
|
|
depends_on("py-owlrl@6.0.2:6", when="@0.20.0:", type=("build", "run"))
|
|
depends_on("py-packaging@21.3:", when="@0.20.0:", type=("build", "run"))
|
|
depends_on("py-prettytable@2.2.1:2", type=("build", "run"))
|
|
|
|
def patch(self):
|
|
if self.spec.satisfies("@0.17.2"):
|
|
filter_file("^5.2.3,<7", ">=5.2.3,<7", "pyproject.toml", string=True)
|