567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
38 lines
793 B
Nix
38 lines
793 B
Nix
{
|
|
lib,
|
|
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";
|
|
tag = version;
|
|
hash = "sha256-i+VPlBoxNqk56U4oiEgS1Ayhi1t2O8PtLZ/bzEurUY8=";
|
|
};
|
|
|
|
pythonImportsCheck = [ "lazy_imports" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
packaging
|
|
];
|
|
|
|
meta = {
|
|
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 = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ happysalada ];
|
|
};
|
|
}
|