blob: d3d289204b7bcda6b495b1fcc71f96a1587149de (
plain) (
blame)
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
50
51
52
53
|
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiofiles";
version = "23.2.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Tinche";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-EbRQD/AoTMWAlPOMWmD0UdFjRyjt5MUBkJtcydUCdHM=";
};
nativeBuildInputs = [
hatchling
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = lib.optionals stdenv.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 = with lib; {
description = "File support for asyncio";
homepage = "https://github.com/Tinche/aiofiles";
license = with licenses; [ asl20 ];
};
}
|