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