py-numcodecs: add v0.7.3, apple clang patch (#21944)

* py-numcodecs: add new version, apple clang patch

* py-numcodecs: add new version, apple clang patch
This commit is contained in:
Adam J. Stewart 2021-02-25 04:33:38 -06:00 committed by GitHub
parent 719bdb1673
commit 127a630ba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 3 deletions

View File

@ -0,0 +1,14 @@
https://github.com/Blosc/c-blosc/issues/316
diff --git a/c-blosc/internal-complibs/zlib-1.2.8/gzguts.h b/c-blosc/internal-complibs/zlib-1.2.8/gzguts.h
index d87659d..f6823ed 100644
--- a/c-blosc/internal-complibs/zlib-1.2.8/gzguts.h
+++ b/c-blosc/internal-complibs/zlib-1.2.8/gzguts.h
@@ -26,6 +26,7 @@
# include <limits.h>
#endif
#include <fcntl.h>
+#include <unistd.h>
#ifdef _WIN32
# include <stddef.h>

View File

@ -14,12 +14,20 @@ class PyNumcodecs(PythonPackage):
homepage = "https://github.com/zarr-developers/numcodecs"
pypi = "numcodecs/numcodecs-0.6.4.tar.gz"
git = "https://github.com/zarr-developers/numcodecs.git"
version('master', branch='master', submodules=True)
version('0.7.3', sha256='022b12ad83eb623ec53f154859d49f6ec43b15c36052fa864eaf2d9ee786dd85')
version('0.6.4', sha256='ef4843d5db4d074e607e9b85156835c10d006afc10e175bda62ff5412fca6e4d')
variant('msgpack', default=False, description='Codec to encode data as msgpacked bytes.')
depends_on('py-setuptools@18.0:', type='build')
depends_on('py-setuptools-scm@1.5.4:', type=('build', 'run'))
depends_on('py-numpy@1.7:', type=('build', 'run'))
depends_on('python@3.6:3.999', when='@0.7:', type=('build', 'link', 'run'))
depends_on('python@2.7:2.8,3.5:', when='@:0.6.999', type=('build', 'link', 'run'))
depends_on('py-setuptools@18.1:', type='build')
depends_on('py-setuptools-scm@1.5.5:', type='build')
depends_on('py-cython', type='build')
depends_on('py-numpy@1.7:', type=('build', 'run'))
depends_on('py-msgpack', type=('build', 'run'), when='+msgpack')
patch('apple-clang-12.patch', when='%apple-clang@12:')