1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 zope-proxy,
6 zope-testrunner,
7}:
8
9buildPythonPackage rec {
10 pname = "zope-deferredimport";
11 version = "5.0";
12 format = "setuptools";
13
14 src = fetchPypi {
15 pname = "zope.deferredimport";
16 inherit version;
17 hash = "sha256-Orvw4YwfF2WRTs0dQbVJ5NBFshso5AZfsMHeCtc2ssM=";
18 };
19
20 propagatedBuildInputs = [ zope-proxy ];
21
22 nativeCheckInputs = [ zope-testrunner ];
23
24 checkPhase = ''
25 zope-testrunner --test-path=src []
26 '';
27
28 doCheck = false;
29
30 meta = with lib; {
31 description = "Allows you to perform imports names that will only be resolved when used in the code";
32 homepage = "https://github.com/zopefoundation/zope.deferredimport";
33 license = licenses.zpl21;
34 };
35}