blob: a5a32699dac3b4c70bae6c17285b86a001d30a2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-asyncio,
}:
buildPythonPackage rec {
pname = "asyncio-throttle";
version = "1.0.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "hallazzang";
repo = "asyncio-throttle";
rev = "v${version}";
sha256 = "1hsjcymdcm0hf4l68scf9n8j7ba89azgh96xhxrnyvwxfs5acnmv";
};
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "asyncio_throttle" ];
meta = {
description = "Simple, easy-to-use throttler for asyncio";
homepage = "https://github.com/hallazzang/asyncio-throttle";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
|