nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 betamax,
4 betamax-matchers,
5 betamax-serializers,
6 buildPythonPackage,
7 fetchFromGitHub,
8 flit-core,
9 mock,
10 pytestCheckHook,
11 requests,
12 requests-toolbelt,
13 testfixtures,
14}:
15
16buildPythonPackage rec {
17 pname = "prawcore";
18 version = "2.4.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "praw-dev";
23 repo = "prawcore";
24 tag = "v${version}";
25 hash = "sha256-tECZRx6VgyiJDKHvj4Rf1sknFqUhz3sDFEsAMOeB7/g=";
26 };
27
28 nativeBuildInputs = [ flit-core ];
29
30 propagatedBuildInputs = [ requests ];
31
32 nativeCheckInputs = [
33 testfixtures
34 mock
35 betamax
36 betamax-serializers
37 betamax-matchers
38 requests-toolbelt
39 pytestCheckHook
40 ];
41
42 disabledTestPaths = [
43 # tests requiring network
44 "tests/integration"
45 ];
46
47 pythonImportsCheck = [ "prawcore" ];
48
49 meta = {
50 description = "Low-level communication layer for PRAW";
51 homepage = "https://praw.readthedocs.org/";
52 changelog = "https://github.com/praw-dev/prawcore/blob/v${version}/CHANGES.rst";
53 license = lib.licenses.bsd2;
54 maintainers = with lib.maintainers; [ fab ];
55 };
56}