1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 poetry-core,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "telegram-text";
12 version = "0.2.0";
13 pyproject = true;
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "SKY-ALIN";
18 repo = "telegram-text";
19 tag = "v${version}";
20 hash = "sha256-eUy4kyCmM/5Ag/0s9hYW2IIg+OTX2L7EsoOYivhd0pU=";
21 };
22
23 nativeBuildInputs = [ poetry-core ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 meta = with lib; {
28 description = "Python markup module for Telegram messenger";
29 downloadPage = "https://github.com/SKY-ALIN/telegram-text";
30 homepage = "https://telegram-text.alinsky.tech/";
31 changelog = "https://github.com/SKY-ALIN/telegram-text/blob/v${version}/CHANGELOG.md";
32 license = licenses.mit;
33 maintainers = with maintainers; [ sikmir ];
34 };
35}