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,
betamax-matchers,
betamax-serializers,
betamax,
buildPythonPackage,
fetchFromGitHub,
flit-core,
mock,
prawcore,
pytestCheckHook,
requests-toolbelt,
update-checker,
websocket-client,
}:
buildPythonPackage rec {
pname = "praw";
version = "7.8.1";
pyproject = true;
src = fetchFromGitHub {
owner = "praw-dev";
repo = "praw";
tag = "v${version}";
hash = "sha256-jxF7rlMwKIKwyYv35vYWAdtClsVhnIkywoyMQeggGBc=";
};
build-system = [ flit-core ];
dependencies = [
mock
prawcore
update-checker
websocket-client
];
nativeCheckInputs = [
betamax
betamax-serializers
betamax-matchers
pytestCheckHook
requests-toolbelt
];
disabledTestPaths = [
# tests requiring network
"tests/integration"
];
pythonImportsCheck = [ "praw" ];
meta = {
description = "Python Reddit API wrapper";
homepage = "https://praw.readthedocs.org/";
changelog = "https://github.com/praw-dev/praw/blob/v${version}/CHANGES.rst";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ fab ];
};
}
|