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>
41 lines
821 B
Nix
41 lines
821 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
strenum,
|
|
token-bucket,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "limiter";
|
|
version = "0.3.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alexdelorenzo";
|
|
repo = "limiter";
|
|
rev = "v${version}";
|
|
hash = "sha256-2Et4ozVf9t+tp2XtLbDk/LgLIU+jQAEAlU8hA5lpxdk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
strenum
|
|
token-bucket
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "limiter" ];
|
|
|
|
meta = {
|
|
description = "Python rate-limiting, thread-safe and asynchronous decorators and context managers";
|
|
homepage = "https://github.com/alexdelorenzo/limiter";
|
|
license = with lib.licenses; [ agpl3Only ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|