blob: 9a8ecea7b3c24ffb4fdaa7df9b8bb45bb9b1b015 (
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
54
55
56
57
58
59
|
{ lib
, betamax
, betamax-matchers
, betamax-serializers
, buildPythonPackage
, fetchFromGitHub
, flit-core
, mock
, pytestCheckHook
, pythonOlder
, requests
, requests-toolbelt
, testfixtures
}:
buildPythonPackage rec {
pname = "prawcore";
version = "2.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "praw-dev";
repo = "prawcore";
rev = "refs/tags/v${version}";
hash = "sha256-tECZRx6VgyiJDKHvj4Rf1sknFqUhz3sDFEsAMOeB7/g=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
requests
];
nativeCheckInputs = [
testfixtures
mock
betamax
betamax-serializers
betamax-matchers
requests-toolbelt
pytestCheckHook
];
pythonImportsCheck = [
"prawcore"
];
meta = with lib; {
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 = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};
}
|