[py-tensorflow-hub] applied patch for newer version of zlib (#30664)

* [py-tensorflow-hub] applied patch for newer version of zlib

* [py-tensorflow-hub] patch also applies to 0.11.0

* [py-tensorflow-hub] Audit fix

1. patch URL in package py-tensorflow-hub must end with ?full_index=1
This commit is contained in:
Jen Herting 2022-05-18 16:21:21 -04:00 committed by GitHub
parent f9aa7c611c
commit b1ef5a75f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,10 @@ class PyTensorflowHub(Package):
depends_on('py-numpy@1.12.0:', type=('build', 'run'))
depends_on('py-protobuf@3.8.0:', type=('build', 'run'))
patch("https://github.com/tensorflow/hub/commit/049192a7edd3e80eebf1735b93f57c7965381bdb.patch?full_index=1",
sha256="a825b2dd96d8f1ff1aaf2e4c9e2cbb52d3d75609909fce960e1cfa681040c4c3",
when="@:0.12")
def install(self, spec, prefix):
tmp_path = tempfile.mkdtemp(prefix='spack')
env['TEST_TMPDIR'] = tmp_path