From ab254e7d86aa1cdc35359ad4b99e5460c1e5e8ba Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Tue, 1 Jun 2021 03:00:53 -0500 Subject: [PATCH] py-numcodecs: fix import_modules tests (#24015) --- var/spack/repos/builtin/packages/py-numcodecs/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/py-numcodecs/package.py b/var/spack/repos/builtin/packages/py-numcodecs/package.py index d3b4c647f3..3a788b981c 100644 --- a/var/spack/repos/builtin/packages/py-numcodecs/package.py +++ b/var/spack/repos/builtin/packages/py-numcodecs/package.py @@ -16,6 +16,10 @@ class PyNumcodecs(PythonPackage): pypi = "numcodecs/numcodecs-0.6.4.tar.gz" git = "https://github.com/zarr-developers/numcodecs.git" + # 'numcodecs.tests' excluded from 'import_modules' because it requires + # an additional dependency on 'pytest' + import_modules = ['numcodecs'] + version('master', branch='master', submodules=True) version('0.7.3', sha256='022b12ad83eb623ec53f154859d49f6ec43b15c36052fa864eaf2d9ee786dd85') version('0.6.4', sha256='ef4843d5db4d074e607e9b85156835c10d006afc10e175bda62ff5412fca6e4d')