22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
36 lines
701 B
Nix
36 lines
701 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, aiohttp
|
|
, requests
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyTelegramBotAPI";
|
|
version = "4.5.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Jonbb26MbK/LKztFkB7IlaHQm98DPYn4lYK4ikDPpaE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
requests
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"telebot"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/eternnoir/pyTelegramBotAPI";
|
|
description = "A simple, but extensible Python implementation for the Telegram Bot API";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ das_j ];
|
|
};
|
|
}
|