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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
{
lib,
aiofiles,
aiohttp,
asyncprawcore,
buildPythonPackage,
coverage,
defusedxml,
fetchFromGitHub,
hatchling,
pytestCheckHook,
pytest-asyncio,
pytest-vcr,
update-checker,
vcrpy,
}:
buildPythonPackage rec {
pname = "asyncpraw";
version = "7.8.1-unstable-2025-10-08";
pyproject = true;
src = fetchFromGitHub {
owner = "praw-dev";
repo = "asyncpraw";
rev = "9221cbef5d94fce9ecc92376cbab084f0082502d";
hash = "sha256-/7x7XYw1JDVaoc2+wKWW3iUkyfI6MVtBNP9G1AEUp4Y=";
};
pythonRelaxDeps = [
"coverage"
"defusedxml"
];
build-system = [ hatchling ];
dependencies = [
aiofiles
aiohttp
asyncprawcore
coverage
defusedxml
update-checker
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-vcr
vcrpy
];
disabledTestPaths = [
# Ignored due to error with request cannot pickle 'BufferedReader' instances
# Upstream issue: https://github.com/kevin1024/vcrpy/issues/737
"tests/integration/models/reddit/test_emoji.py"
"tests/integration/models/reddit/test_submission.py"
"tests/integration/models/reddit/test_subreddit.py"
"tests/integration/models/reddit/test_widgets.py"
"tests/integration/models/reddit/test_wikipage.py"
];
pythonImportsCheck = [ "asyncpraw" ];
meta = {
description = "Asynchronous Python Reddit API Wrapper";
homepage = "https://asyncpraw.readthedocs.io/";
changelog = "https://github.com/praw-dev/asyncpraw/blob/${src.rev}/CHANGES.rst";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.amadejkastelic ];
};
}
|