python3Packages.pytelegrambotapi: add pythonImportsCheck
- disable on older Python releases - adjust license
This commit is contained in:
parent
73481d9e38
commit
9e0568f781
|
@ -1,20 +1,36 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, aiohttp, requests }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, aiohttp
|
||||||
|
, requests
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyTelegramBotAPI";
|
pname = "pyTelegramBotAPI";
|
||||||
version = "4.4.1";
|
version = "4.4.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-3Qppp/UDKiGChnvMOgW8EKygI75gYzv37c0ctExmK+g=";
|
hash = "sha256-3Qppp/UDKiGChnvMOgW8EKygI75gYzv37c0ctExmK+g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ aiohttp requests ];
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"telebot"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/eternnoir/pyTelegramBotAPI";
|
homepage = "https://github.com/eternnoir/pyTelegramBotAPI";
|
||||||
description = "A simple, but extensible Python implementation for the Telegram Bot API";
|
description = "A simple, but extensible Python implementation for the Telegram Bot API";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Only;
|
||||||
maintainers = with maintainers; [ das_j ];
|
maintainers = with maintainers; [ das_j ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue