blob: b6a34a6a2b9a3cfa04d4b7195114efbbb65442fe (
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
50
51
52
53
54
55
56
57
58
59
60
|
{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pytestCheckHook,
pytest-asyncio,
pytest-vcr,
vcrpy,
yarl,
}:
buildPythonPackage rec {
pname = "asyncprawcore";
version = "3.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "praw-dev";
repo = "asyncprawcore";
tag = "v${version}";
hash = "sha256-0FOMY/0LXGcHwDe4t+NMAovMhX83/mMv8sWvIf5gxok=";
};
build-system = [ flit-core ];
dependencies = [
aiohttp
yarl
];
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/test_sessions.py"
];
disabledTests = [
# Test requires network access
"test_initialize"
];
pythonImportsCheck = [ "asyncprawcore" ];
meta = {
description = "Low-level asynchronous communication layer for Async PRAW";
homepage = "https://asyncpraw.readthedocs.io/";
changelog = "https://github.com/praw-dev/asyncprawcore/blob/v${version}/CHANGES.rst";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.amadejkastelic ];
};
}
|