2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-10-19 13:55:26 +00:00
|
|
|
, zope-proxy
|
2020-04-24 23:36:52 +00:00
|
|
|
, zope_testrunner
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zope-deferredimport";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "zope.deferredimport";
|
|
|
|
inherit version;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-Orvw4YwfF2WRTs0dQbVJ5NBFshso5AZfsMHeCtc2ssM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
propagatedBuildInputs = [ zope-proxy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|