2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
packaging,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
let
|
2023-10-19 13:55:26 +00:00
|
|
|
pname = "lazy-imports";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.3.1";
|
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "telekom";
|
|
|
|
repo = "lazy-imports";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-i+VPlBoxNqk56U4oiEgS1Ayhi1t2O8PtLZ/bzEurUY8=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "lazy_imports" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python tool to support lazy imports";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/telekom/lazy-imports";
|
|
|
|
changelog = "https://github.com/telekom/lazy-imports/releases/tag/${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|