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