f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
34 lines
837 B
Nix
34 lines
837 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lazy-loader";
|
|
version = "0.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scientific-python";
|
|
repo = "lazy_loader";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-4Kid6yhm9C2liPoW+NlCsOiBZvv6iYt7hDunARc4PRY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "lazy_loader" ];
|
|
|
|
meta = with lib; {
|
|
description = "Populate library namespace without incurring immediate import costs";
|
|
homepage = "https://github.com/scientific-python/lazy_loader";
|
|
changelog = "https://github.com/scientific-python/lazy_loader/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|