diff options
author | iarspider <iarspider@gmail.com> | 2021-11-24 20:40:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 11:40:06 -0800 |
commit | e7eaebebd4a99088c0c1ce52afe23497450d2dd0 (patch) | |
tree | 79178713dbbe43375760a3f66a6511ea55eff991 | |
parent | 76ad803f25484612da2aa4523565d8b700419dc4 (diff) | |
download | spack-e7eaebebd4a99088c0c1ce52afe23497450d2dd0.tar.gz spack-e7eaebebd4a99088c0c1ce52afe23497450d2dd0.tar.bz2 spack-e7eaebebd4a99088c0c1ce52afe23497450d2dd0.tar.xz spack-e7eaebebd4a99088c0c1ce52afe23497450d2dd0.zip |
py-yarl package: add version 1.7.2 (#27643)
-rw-r--r-- | var/spack/repos/builtin/packages/py-yarl/package.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-yarl/package.py b/var/spack/repos/builtin/packages/py-yarl/package.py index ccd33ef75a..1d71a9910c 100644 --- a/var/spack/repos/builtin/packages/py-yarl/package.py +++ b/var/spack/repos/builtin/packages/py-yarl/package.py @@ -10,19 +10,27 @@ class PyYarl(PythonPackage): homepage = "https://github.com/aio-libs/yarl" url = "https://github.com/aio-libs/yarl/archive/v1.4.2.tar.gz" + version('1.7.2', sha256='19b94c68e8eda5731f87d79e3c34967a11e69695965113c4724d2491f76ad461') version('1.4.2', sha256='a400eb3f54f7596eeaba8100a8fa3d72135195423c52808dc54a43c6b100b192') depends_on('python@3.5:', type=('build', 'run')) depends_on('py-setuptools', type='build') + depends_on('py-setuptools@40:', type='build', when='@1.7.2:') depends_on('py-cython', type='build') depends_on('py-multidict@4.0:', type=('build', 'run')) depends_on('py-idna@2.0:', type=('build', 'run')) + depends_on('py-typing-extensions@3.7.4:', type=('build', 'run'), when='@1.7.2:') @run_before('build') def fix_cython(self): + if self.spec.satisfies('@1.7.2:'): + pyxfile = 'yarl/_quoting_c' + else: + pyxfile = 'yarl/_quoting' + cython = self.spec['py-cython'].command cython('-3', '-o', - 'yarl/_quoting.c', - 'yarl/_quoting.pyx', + pyxfile + '.c', + pyxfile + '.pyx', '-Iyarl') |