depot/third_party/nixpkgs/pkgs/development/python-modules/lazy-loader/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

35 lines
811 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "lazy-loader";
version = "0.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "scientific-python";
repo = "lazy_loader";
rev = "refs/tags/v${version}";
hash = "sha256-zMmDvAyCaTSMOXgCiLQ4Z/9Ro3k0qJxJPLLoNmK/dmE=";
};
nativeBuildInputs = [
flit-core
];
nativeCheckInputs = [
pytestCheckHook
];
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; [ hexa ];
};
}