depot/third_party/nixpkgs/pkgs/development/python-modules/lazy-loader/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

35 lines
811 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "lazy-loader";
version = "0.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "scientific-python";
repo = "lazy_loader";
rev = "refs/tags/v${version}";
hash = "sha256-QiRJt2aR2mY1f9ci/p6jOyMeyrHPqRdh43l4Th5PYf8=";
};
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 ];
};
}