nixpkgs/pkgs/development/python-modules/python-telegram-bot/default.nix
Jelle Besseling 5b49946723
python3Packages.python-telegram-bot: 12.3.0 -> 12.7 (#86652)
* python3Packages.python-telegram-bot: 12.3.0 -> 12.7

* Update pkgs/development/python-modules/python-telegram-bot/default.nix

Co-authored-by: Jon <jonringer@users.noreply.github.com>

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Co-authored-by: Jon <jonringer@users.noreply.github.com>
2020-05-03 11:51:49 -07:00

37 lines
834 B
Nix

{ stdenv
, fetchPypi
, buildPythonPackage
, certifi
, decorator
, future
, urllib3
, tornado
, pytest
}:
buildPythonPackage rec {
pname = "python-telegram-bot";
version = "12.7";
src = fetchPypi {
inherit pname version;
sha256 = "1vwf4pgjrg9a6w51ds9wmzq31bmi3f7xs79gdzzfxfmqmy1hb2r1";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ certifi future urllib3 tornado decorator ];
pipInstallFlags = "--install-option '--with-upstream-urllib3'";
# tests not included with release
doCheck = false;
pythonImportsCheck = [ "telegram" ];
meta = with stdenv.lib; {
description = "This library provides a pure Python interface for the Telegram Bot API.";
homepage = "https://python-telegram-bot.org";
license = licenses.lgpl3;
maintainers = with maintainers; [ veprbl pingiun ];
};
}