Something went wrong. Try again.
lol
Something went wrong. Try again.
910 B · 42 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243{ buildPythonPackage, fetchFromGitHub, lib,
# build system setuptools,
# test dependencies pytestCheckHook,}:let pname = "lazy-imports"; version = "1.2.0";
src = fetchFromGitHub { owner = "bachorp"; repo = "lazy-imports"; tag = version; hash = "sha256-3TKhPMtViebdFTR3timf0ulXMdKrpQZ22gj891xQHVI="; };inbuildPythonPackage { inherit pname version src; pyproject = true;
build-system = [ setuptools ];
pythonImportsCheck = [ "lazy_imports" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = { description = "Utility package to create lazy modules, deferring associated imports until attribute access"; homepage = "https://github.com/bachorp/lazy-imports"; changelog = "https://github.com/bachorp/lazy-imports/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ happysalada ]; };}