fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
45 lines
977 B
Nix
45 lines
977 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pyrate-limiter,
|
|
requests,
|
|
pytestCheckHook,
|
|
requests-mock,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests-ratelimiter";
|
|
version = "0.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JWCook";
|
|
repo = "requests-ratelimiter";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ctCD+vlV90KCO7DdPUZJipBC/lz6NXx0gYuHHrs22IY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
pyrate-limiter
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
pythonImportsCheck = [ "requests_ratelimiter" ];
|
|
|
|
meta = with lib; {
|
|
description = "Easy rate-limiting for python requests";
|
|
homepage = "https://github.com/JWCook/requests-ratelimiter";
|
|
changelog = "https://github.com/JWCook/requests-ratelimiter/blob/${src.rev}/HISTORY.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mbalatsko ];
|
|
};
|
|
}
|