Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / textual / default.nix
blobc9303d198b62c5186697b7d2ad1ad8b9adf3985e
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , jinja2
5 , markdown-it-py
6 , poetry-core
7 , pytest-aiohttp
8 , pytestCheckHook
9 , pythonOlder
10 , rich
11 , syrupy
12 , time-machine
13 , tree-sitter
14 , typing-extensions
17 buildPythonPackage rec {
18   pname = "textual";
19   version = "0.53.1";
20   pyproject = true;
22   disabled = pythonOlder "3.8";
24   src = fetchFromGitHub {
25     owner = "Textualize";
26     repo = "textual";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-73qEogHe69B66r4EJOj2RAP95O5z7v/UYARTIEPxrcA=";
29   };
31   build-system = [
32     poetry-core
33   ];
35   dependencies = [
36     markdown-it-py
37     rich
38     typing-extensions
39   ] ++ markdown-it-py.optional-dependencies.plugins
40     ++ markdown-it-py.optional-dependencies.linkify;
42   optional-dependencies = {
43     syntax = [
44       tree-sitter
45       # tree-sitter-languages
46     ];
47   };
49   nativeCheckInputs = [
50     jinja2
51     pytest-aiohttp
52     pytestCheckHook
53     syrupy
54     time-machine
55   ] ++ optional-dependencies.syntax;
57   disabledTestPaths = [
58     # snapshot tests require syrupy<4
59     "tests/snapshot_tests/test_snapshots.py"
60   ];
62   disabledTests = [
63     # Assertion issues
64     "test_textual_env_var"
65     "test_softbreak_split_links_rendered_correctly"
67     # requires tree-sitter-languages which is not packaged in nixpkgs
68     "test_register_language"
69     "test_language_binary_missing"
70   ];
72   pythonImportsCheck = [
73     "textual"
74   ];
76   __darwinAllowLocalNetworking = true;
78   meta = with lib; {
79     description = "TUI framework for Python inspired by modern web development";
80     homepage = "https://github.com/Textualize/textual";
81     changelog = "https://github.com/Textualize/textual/releases/tag/v${version}";
82     license = licenses.mit;
83     maintainers = with maintainers; [ joelkoen ];
84   };