2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, zope_proxy
|
|
|
|
, zope_testrunner
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zope-deferredimport";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "4.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "zope.deferredimport";
|
|
|
|
inherit version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "2ae3257256802787e52ad840032f39c1496d3ce0b7e11117f663420e4a4c9add";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ zope_proxy ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ zope_testrunner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
zope-testrunner --test-path=src []
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Allows you to perform imports names that will only be resolved when used in the code";
|
|
|
|
homepage = "https://github.com/zopefoundation/zope.deferredimport";
|
|
|
|
license = licenses.zpl21;
|
|
|
|
};
|
|
|
|
}
|