1{ lib
2, stdenv
3, buildPythonPackage
4, fetchFromGitHub
5, pytestCheckHook
6, packaging
7}:
8let
9 pname = "lazy_imports";
10 version = "0.3.1";
11in
12buildPythonPackage {
13 inherit pname version;
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "telekom";
18 repo = "lazy-imports";
19 rev = "refs/tags/${version}";
20 hash = "sha256-i+VPlBoxNqk56U4oiEgS1Ayhi1t2O8PtLZ/bzEurUY8=";
21 };
22
23 pythonImportsCheck = [
24 "lazy_imports"
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 packaging
30 ];
31
32 meta = with lib; {
33 description = "Python tool to support lazy imports.";
34 homepage = "https://github.com/telekom/lazy-imports";
35 changelog = "https://github.com/telekom/lazy-imports/releases/tag/${version}";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ happysalada ];
38 };
39}