Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 42 lines 880 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27 2, requests 3, testfixtures, mock, requests_toolbelt 4, betamax, betamax-serializers, betamax-matchers, pytest 5}: 6 7buildPythonPackage rec { 8 pname = "prawcore"; 9 version = "2.0.0"; 10 disabled = isPy27; # see https://github.com/praw-dev/prawcore/pull/101 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "sha256-tJjZtvVJkQBecn1SNcj0nqW6DJpteT+3Q7QPoInNNtE="; 15 }; 16 17 propagatedBuildInputs = [ 18 requests 19 ]; 20 21 checkInputs = [ 22 testfixtures 23 mock 24 betamax 25 betamax-serializers 26 betamax-matchers 27 requests_toolbelt 28 pytest 29 ]; 30 31 checkPhase = '' 32 pytest 33 ''; 34 35 meta = with lib; { 36 description = "Low-level communication layer for PRAW"; 37 homepage = "https://praw.readthedocs.org/"; 38 license = licenses.gpl3; 39 platforms = platforms.all; 40 maintainers = with maintainers; [ ]; 41 }; 42}