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