1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 zope-proxy, 7 unittestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "zope-deferredimport"; 12 version = "5.0"; 13 pyproject = true; 14 15 src = fetchPypi { 16 pname = "zope.deferredimport"; 17 inherit version; 18 hash = "sha256-Orvw4YwfF2WRTs0dQbVJ5NBFshso5AZfsMHeCtc2ssM="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ zope-proxy ]; 24 25 pythonImportsCheck = [ "zope.deferredimport" ]; 26 27 nativeCheckInputs = [ unittestCheckHook ]; 28 29 unittestFlagsArray = [ "src/zope/deferredimport" ]; 30 31 pythonNamespaces = [ "zope" ]; 32 33 meta = { 34 description = "Allows you to perform imports names that will only be resolved when used in the code"; 35 homepage = "https://github.com/zopefoundation/zope.deferredimport"; 36 changelog = "https://github.com/zopefoundation/zope.deferredimport/blob/${version}/CHANGES.rst"; 37 license = lib.licenses.zpl21; 38 }; 39}