1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pyperclip,
7 pytest-asyncio,
8 pytestCheckHook,
9 pythonOlder,
10 textual,
11}:
12
13buildPythonPackage rec {
14 pname = "textual-textarea";
15 version = "0.14.4";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "tconbeer";
22 repo = "textual-textarea";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-tmbSCU1VgxR9aXG22UVpweD71dVmhKSRBTDm1Gf33jM=";
25 };
26
27 build-system = [ poetry-core ];
28
29 dependencies = [
30 pyperclip
31 textual
32 ] ++ textual.optional-dependencies.syntax;
33
34 nativeCheckInputs = [
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "textual_textarea" ];
40
41 meta = {
42 description = "A text area (multi-line input) with syntax highlighting for Textual";
43 homepage = "https://github.com/tconbeer/textual-textarea";
44 changelog = "https://github.com/tconbeer/textual-textarea/releases/tag/v${version}";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ pcboy ];
47 };
48}