2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-10-19 13:55:26 +00:00
|
|
|
, zope-proxy
|
2024-01-13 08:15:51 +00:00
|
|
|
, zope-testrunner
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zope-deferredimport";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "5.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
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
|
|
|
|
2024-01-13 08:15:51 +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;
|
|
|
|
};
|
|
|
|
}
|