1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "lazy-loader";
11 version = "0.4";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "scientific-python";
16 repo = "lazy_loader";
17 tag = "v${version}";
18 hash = "sha256-4Kid6yhm9C2liPoW+NlCsOiBZvv6iYt7hDunARc4PRY=";
19 };
20
21 build-system = [ setuptools ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "lazy_loader" ];
26
27 meta = with lib; {
28 description = "Populate library namespace without incurring immediate import costs";
29 homepage = "https://github.com/scientific-python/lazy_loader";
30 changelog = "https://github.com/scientific-python/lazy_loader/releases/tag/v${version}";
31 license = licenses.bsd3;
32 maintainers = [ ];
33 };
34}