Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, fetchPypi 3, buildPythonPackage 4, certifi 5, decorator 6, future 7, urllib3 8, tornado 9, pytest 10, isPy3k 11}: 12 13buildPythonPackage rec { 14 pname = "python-telegram-bot"; 15 version = "12.8"; 16 disabled = !isPy3k; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "1hzdnjxqgqv868agaipga4padq2q5s4hd1yzvh3n48b9ck2qcw9j"; 21 }; 22 23 checkInputs = [ pytest ]; 24 propagatedBuildInputs = [ certifi future urllib3 tornado decorator ]; 25 26 # --with-upstream-urllib3 is not working properly 27 postPatch = '' 28 rm -rf telegram/vendor 29 ''; 30 setupPyGlobalFlags = "--with-upstream-urllib3"; 31 32 # tests not included with release 33 doCheck = false; 34 pythonImportsCheck = [ "telegram" ]; 35 36 meta = with stdenv.lib; { 37 description = "This library provides a pure Python interface for the Telegram Bot API."; 38 homepage = "https://python-telegram-bot.org"; 39 license = licenses.lgpl3; 40 maintainers = with maintainers; [ veprbl pingiun ]; 41 }; 42}