nixpkgs/pkgs/development/python-modules/limiter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
817 B
Nix
Raw Normal View History

2021-10-09 21:49:13 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, strenum
2021-10-09 21:49:13 +00:00
, token-bucket
}:
buildPythonPackage rec {
pname = "limiter";
version = "0.3.1";
format = "setuptools";
2021-10-09 21:49:13 +00:00
disabled = pythonOlder "3.10";
2021-10-09 21:49:13 +00:00
src = fetchFromGitHub {
owner = "alexdelorenzo";
repo = pname;
rev = "v${version}";
hash = "sha256-2Et4ozVf9t+tp2XtLbDk/LgLIU+jQAEAlU8hA5lpxdk=";
2021-10-09 21:49:13 +00:00
};
propagatedBuildInputs = [
strenum
2021-10-09 21:49:13 +00:00
token-bucket
];
# Module has no tests
2021-10-09 21:49:13 +00:00
doCheck = false;
pythonImportsCheck = [
"limiter"
];
meta = with lib; {
description = "Python rate-limiting, thread-safe and asynchronous decorators and context managers";
homepage = "https://github.com/alexdelorenzo/limiter";
license = with licenses; [ agpl3Only ];
maintainers = with maintainers; [ fab ];
};
}