python310Packages.lazy_imports: ini at 0.3.1

This commit is contained in:
happysalada 2023-07-08 15:34:13 +08:00 committed by Yt
parent dab0c5cc6c
commit 9f915755ba
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, packaging
}:
let
pname = "lazy_imports";
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=";
};
pythonImportsCheck = [
"lazy_imports"
];
nativeCheckInputs = [
pytestCheckHook
packaging
];
meta = with lib; {
description = "Python tool to support lazy imports.";
homepage = "https://github.com/telekom/lazy-imports";
changelog = "https://github.com/telekom/lazy-imports/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
};
}

View File

@ -5652,6 +5652,8 @@ self: super: with self; {
lazy_import = callPackage ../development/python-modules/lazy_import { };
lazy_imports = callPackage ../development/python-modules/lazy_imports { };
lazy-loader = callPackage ../development/python-modules/lazy-loader { };
lazy-object-proxy = callPackage ../development/python-modules/lazy-object-proxy { };