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>
47 lines
994 B
Nix
47 lines
994 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
typing-extensions,
|
|
pytestCheckHook,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytest-timeout,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "async-lru";
|
|
version = "2.0.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aio-libs";
|
|
repo = "async-lru";
|
|
tag = "v${version}";
|
|
hash = "sha256-FJ1q6W9IYs0OSMZc+bI4v22hOAAWAv2OW3BAqixm8Hs=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
pytest-cov-stub
|
|
pytest-timeout
|
|
];
|
|
|
|
pythonImportsCheck = [ "async_lru" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/aio-libs/async-lru/releases/tag/${src.tag}";
|
|
description = "Simple lru cache for asyncio";
|
|
homepage = "https://github.com/wikibusiness/async_lru";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|