at 24.11-pre 1.1 kB view raw
1{ 2 lib, 3 betamax, 4 betamax-matchers, 5 betamax-serializers, 6 buildPythonPackage, 7 fetchFromGitHub, 8 mock, 9 prawcore, 10 pytestCheckHook, 11 pythonOlder, 12 requests-toolbelt, 13 update-checker, 14 websocket-client, 15}: 16 17buildPythonPackage rec { 18 pname = "praw"; 19 version = "7.7.1"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchFromGitHub { 25 owner = "praw-dev"; 26 repo = pname; 27 rev = "refs/tags/v${version}"; 28 hash = "sha256-L7wTHD/ypXVc8GMfl9u16VNb9caLJoXpaMEIzaVVUgo="; 29 }; 30 31 propagatedBuildInputs = [ 32 mock 33 prawcore 34 update-checker 35 websocket-client 36 ]; 37 38 nativeCheckInputs = [ 39 betamax 40 betamax-serializers 41 betamax-matchers 42 pytestCheckHook 43 requests-toolbelt 44 ]; 45 46 disabledTestPaths = [ 47 # tests requiring network 48 "tests/integration" 49 ]; 50 51 pythonImportsCheck = [ "praw" ]; 52 53 meta = with lib; { 54 description = "Python Reddit API wrapper"; 55 homepage = "https://praw.readthedocs.org/"; 56 changelog = "https://github.com/praw-dev/praw/blob/v${version}/CHANGES.rst"; 57 license = licenses.bsd2; 58 maintainers = with maintainers; [ fab ]; 59 }; 60}