a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
43 lines
823 B
Nix
43 lines
823 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ratelimiter";
|
|
version = "1.2.0.post0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-XDldyr273i5ReO8/ibVoowZkVKbdwiO3ZHPawi+JtPc=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"ratelimiter"
|
|
];
|
|
|
|
preCheck = ''
|
|
# Uses out-dated options
|
|
rm tests/conftest.py
|
|
'';
|
|
|
|
disabledTests = [
|
|
# TypeError: object Lock can't be used in 'await' expression
|
|
"test_alock"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Simple python rate limiting object";
|
|
homepage = "https://github.com/RazerM/ratelimiter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ helkafen ];
|
|
};
|
|
}
|