depot/third_party/nixpkgs/pkgs/development/python-modules/lazy-loader/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

34 lines
819 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 = [ ];
};
}