about summary refs log tree commit diff
path: root/pkgs/development/python-modules/lazy-imports/default.nix
blob: 4efed32b70d660c69eceda0c378c9267cca9fdc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  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 ];
  };
}