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