blob: 66911a84e4f83a09763bf3fc749b3298e428bf1d (
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
38
39
40
41
42
43
44
45
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
pytestCheckHook,
pytest-asyncio,
pytest-mock,
}:
buildPythonPackage rec {
pname = "async-stagger";
version = "0.4.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "twisteroidambassador";
repo = "async_stagger";
tag = "v${version}";
hash = "sha256-qLeTP5FWHho/CbXth3OQNW15Y8uibOh35KqskoIUTHQ=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-mock
];
disabledTests = [
# "OSError: [Errno 0] fileno not supported" during teardown
"test_create_connected_sock_normal"
];
pythonImportsCheck = [ "async_stagger" ];
meta = {
description = "Happy Eyeballs connection algorithm and underlying scheduling logic in asyncio";
homepage = "https://github.com/twisteroidambassador/async_stagger";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
|