2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lazy-loader";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.4";
|
|
|
|
pyproject = true;
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scientific-python";
|
|
|
|
repo = "lazy_loader";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-4Kid6yhm9C2liPoW+NlCsOiBZvv6iYt7hDunARc4PRY=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
pythonImportsCheck = [ "lazy_loader" ];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Populate library namespace without incurring immediate import costs";
|
|
|
|
homepage = "https://github.com/scientific-python/lazy_loader";
|
|
|
|
changelog = "https://github.com/scientific-python/lazy_loader/releases/tag/v${version}";
|
|
|
|
license = licenses.bsd3;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
}
|