1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 packaging, 7}: 8let 9 pname = "lazy-imports"; 10 version = "0.3.1"; 11in 12buildPythonPackage { 13 inherit pname version; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "telekom"; 18 repo = "lazy-imports"; 19 tag = version; 20 hash = "sha256-i+VPlBoxNqk56U4oiEgS1Ayhi1t2O8PtLZ/bzEurUY8="; 21 }; 22 23 pythonImportsCheck = [ "lazy_imports" ]; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 packaging 28 ]; 29 30 meta = with lib; { 31 description = "Python tool to support lazy imports"; 32 homepage = "https://github.com/telekom/lazy-imports"; 33 changelog = "https://github.com/telekom/lazy-imports/releases/tag/${version}"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ happysalada ]; 36 }; 37}