From 93887edba81d68abe915f8f05deb7fe43e9e7549 Mon Sep 17 00:00:00 2001 From: Erik Heeren Date: Wed, 15 Mar 2023 01:18:27 +0100 Subject: [PATCH] py-pyshacl: patch dependency typo (#36084) * 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 --------- Co-authored-by: Adam J. Stewart --- var/spack/repos/builtin/packages/py-pyshacl/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/py-pyshacl/package.py b/var/spack/repos/builtin/packages/py-pyshacl/package.py index fb742ee2c8..aad6b182a0 100644 --- a/var/spack/repos/builtin/packages/py-pyshacl/package.py +++ b/var/spack/repos/builtin/packages/py-pyshacl/package.py @@ -23,3 +23,7 @@ class PyPyshacl(PythonPackage): 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)