2018-10-25 18:13:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
2020-05-03 18:51:49 +00:00
|
|
|
, decorator
|
2018-10-25 18:13:59 +00:00
|
|
|
, future
|
|
|
|
, urllib3
|
|
|
|
, tornado
|
|
|
|
, pytest
|
|
|
|
}:
|
2018-01-18 16:22:53 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-telegram-bot";
|
2020-05-03 18:51:49 +00:00
|
|
|
version = "12.7";
|
2018-01-18 16:22:53 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-03 18:51:49 +00:00
|
|
|
sha256 = "1vwf4pgjrg9a6w51ds9wmzq31bmi3f7xs79gdzzfxfmqmy1hb2r1";
|
2018-01-18 16:22:53 +00:00
|
|
|
};
|
|
|
|
|
2018-10-25 18:13:59 +00:00
|
|
|
checkInputs = [ pytest ];
|
2020-05-03 18:51:49 +00:00
|
|
|
propagatedBuildInputs = [ certifi future urllib3 tornado decorator ];
|
|
|
|
|
|
|
|
pipInstallFlags = "--install-option '--with-upstream-urllib3'";
|
2018-01-20 23:03:35 +00:00
|
|
|
|
2018-10-25 18:13:59 +00:00
|
|
|
# tests not included with release
|
2018-01-20 23:03:35 +00:00
|
|
|
doCheck = false;
|
2020-05-03 18:51:49 +00:00
|
|
|
pythonImportsCheck = [ "telegram" ];
|
2018-01-18 16:22:53 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "This library provides a pure Python interface for the Telegram Bot API.";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://python-telegram-bot.org";
|
2018-01-18 16:22:53 +00:00
|
|
|
license = licenses.lgpl3;
|
2020-01-24 19:38:27 +00:00
|
|
|
maintainers = with maintainers; [ veprbl pingiun ];
|
2018-01-18 16:22:53 +00:00
|
|
|
};
|
|
|
|
}
|