diff options
| author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-04-18 16:30:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-18 16:30:34 +0200 |
| commit | 9e0568f78101f5d3cc03ec5987f130ddd16460cd (patch) | |
| tree | 73cc0601584a7a350bd439c344b70bf6d3cefd28 /pkgs/development/python-modules/pyTelegramBotAPI | |
| parent | 73481d9e3823fa07605f0c6db1ad309362aa2818 (diff) | |
python3Packages.pytelegrambotapi: add pythonImportsCheck
- disable on older Python releases
- adjust license
Diffstat (limited to 'pkgs/development/python-modules/pyTelegramBotAPI')
| -rw-r--r-- | pkgs/development/python-modules/pyTelegramBotAPI/default.nix | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/pyTelegramBotAPI/default.nix b/pkgs/development/python-modules/pyTelegramBotAPI/default.nix index 4073d951780b..508e6f71d11f 100644 --- a/pkgs/development/python-modules/pyTelegramBotAPI/default.nix +++ b/pkgs/development/python-modules/pyTelegramBotAPI/default.nix @@ -1,20 +1,36 @@ -{ lib, buildPythonPackage, fetchPypi, aiohttp, requests }: +{ lib +, buildPythonPackage +, fetchPypi +, aiohttp +, requests +, pythonOlder +}: buildPythonPackage rec { pname = "pyTelegramBotAPI"; version = "4.4.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-3Qppp/UDKiGChnvMOgW8EKygI75gYzv37c0ctExmK+g="; + hash = "sha256-3Qppp/UDKiGChnvMOgW8EKygI75gYzv37c0ctExmK+g="; }; - propagatedBuildInputs = [ aiohttp requests ]; + 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.gpl2; + license = licenses.gpl2Only; maintainers = with maintainers; [ das_j ]; }; } |
