blob: 6cbe673d6ba6cb0b6cfac31807a23c984d7e47af (
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
|
{
async-timeout,
buildPythonPackage,
fetchFromGitHub,
lib,
pytest-asyncio,
pytestCheckHook,
setuptools,
setuptools-scm,
}:
buildPythonPackage (finalAttrs: {
pname = "looptime";
version = "0.7";
pyproject = true;
src = fetchFromGitHub {
owner = "nolar";
repo = "looptime";
tag = finalAttrs.version;
hash = "sha256-nQNGE/o5QNAw4OSs+O5oWiq+JX+ShV6njOHkn1IlvtE=";
};
build-system = [
setuptools
setuptools-scm
];
pythonImportsCheck = [ "looptime" ];
nativeCheckInputs = [
async-timeout
pytest-asyncio
pytestCheckHook
];
meta = {
changelog = "https://github.com/nolar/looptime/releases/tag/${finalAttrs.src.tag}";
description = "Time dilation & contraction in asyncio event loops (in tests)";
homepage = "https://github.com/nolar/looptime";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dotlambda ];
};
})
|