blob: 5caa43377a0cef0311a55706a31ed25747c9ad03 (
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
48
49
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aiofiles";
version = "24.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Tinche";
repo = "aiofiles";
tag = "v${version}";
hash = "sha256-uDKDMSNbMIlAaifpEBh1+q2bdZNUia8pPb30IOIgOAE=";
};
build-system = [ hatchling ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
"test_sendfile_file"
# require loopback networking:
"test_sendfile_socket"
"test_serve_small_bin_file_sync"
"test_serve_small_bin_file"
"test_slow_file"
];
pythonImportsCheck = [ "aiofiles" ];
meta = {
description = "File support for asyncio";
homepage = "https://github.com/Tinche/aiofiles";
changelog = "https://github.com/Tinche/aiofiles/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
|