blob: ca456b9eb6ee2ef9e456bf6700f6fd4343abf961 (
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
35
36
37
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-asyncio,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "asyncio-throttle";
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "hallazzang";
repo = "asyncio-throttle";
tag = "v${finalAttrs.version}";
hash = "sha256-u1qminadb29zh90k+L5KSK0jkU2OaWQocRBU1qpnUsM=";
};
build-system = [ setuptools ];
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 ];
};
})
|