blob: 35d5c5df60666870bd6742917fe37bf7f1ceb302 (
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
|
{
lib,
betamax,
betamax-matchers,
betamax-serializers,
buildPythonPackage,
fetchFromGitHub,
flit-core,
mock,
pytestCheckHook,
requests,
requests-toolbelt,
testfixtures,
}:
buildPythonPackage rec {
pname = "prawcore";
version = "2.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "praw-dev";
repo = "prawcore";
tag = "v${version}";
hash = "sha256-tECZRx6VgyiJDKHvj4Rf1sknFqUhz3sDFEsAMOeB7/g=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
testfixtures
mock
betamax
betamax-serializers
betamax-matchers
requests-toolbelt
pytestCheckHook
];
disabledTestPaths = [
# tests requiring network
"tests/integration"
];
pythonImportsCheck = [ "prawcore" ];
meta = {
description = "Low-level communication layer for PRAW";
homepage = "https://praw.readthedocs.org/";
changelog = "https://github.com/praw-dev/prawcore/blob/v${version}/CHANGES.rst";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ fab ];
};
}
|