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