diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-archspec/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-archspec/package.py b/var/spack/repos/builtin/packages/py-archspec/package.py index 5e208f20e1..6c14451ccc 100644 --- a/var/spack/repos/builtin/packages/py-archspec/package.py +++ b/var/spack/repos/builtin/packages/py-archspec/package.py @@ -20,3 +20,13 @@ class PyArchspec(PythonPackage): depends_on('py-six@1.13.0:1', type=('build', 'run')) depends_on('py-setuptools', type='build') + depends_on('py-poetry-core@1.0.0:', type='build') + + def patch(self): + # See https://python-poetry.org/docs/pyproject/#poetry-and-pep-517 + with working_dir(self.build_directory): + if self.spec.satisfies('@:0.1.3'): + filter_file("poetry>=0.12", "poetry_core>=1.0.0", 'pyproject.toml') + filter_file( + "poetry.masonry.api", "poetry.core.masonry.api", 'pyproject.toml' + ) |