Merge pull request #260820 from natsukium/textual/update

python311Packages.textual: 0.37.1 -> 0.40.0
This commit is contained in:
Weijia Wang 2023-10-14 01:44:55 +02:00 committed by GitHub
commit 2ac1f0aee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 18 deletions

View File

@ -6,6 +6,7 @@
, flit-core
, linkify-it-py
, markdown
, mdit-py-plugins
, mdurl
, mistletoe
, mistune
@ -69,6 +70,7 @@ buildPythonPackage rec {
passthru.optional-dependencies = {
compare = [ commonmark markdown mistletoe mistune panflute ];
linkify = [ linkify-it-py ];
plugins = [ mdit-py-plugins ];
rtd = [ attrs myst-parser pyyaml sphinx sphinx-copybutton sphinx-design sphinx-book-theme ];
};

View File

@ -1,15 +1,9 @@
{ lib
, aiohttp
, buildPythonPackage
, click
, fetchFromGitHub
, importlib-metadata
, jinja2
, linkify-it-py
, markdown-it-py
, mdit-py-plugins
, mkdocs-exclude
, msgpack
, poetry-core
, pytest-aiohttp
, pytestCheckHook
@ -17,13 +11,14 @@
, rich
, syrupy
, time-machine
, tree-sitter
, typing-extensions
}:
buildPythonPackage rec {
pname = "textual";
version = "0.37.1";
format = "pyproject";
version = "0.40.0";
pyproject = true;
disabled = pythonOlder "3.7";
@ -31,7 +26,7 @@ buildPythonPackage rec {
owner = "Textualize";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-4ehq36j2n2wRMgos5x4LQ0QeELpWAOgpgTxEWjqFLJs=";
hash = "sha256-+3bxc0ryHtbEJkB+EqjJhW+yWJWxMkxlSav4v6D3/gw=";
};
nativeBuildInputs = [
@ -39,18 +34,19 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
aiohttp
click
importlib-metadata
linkify-it-py
markdown-it-py
mdit-py-plugins
mkdocs-exclude
msgpack
rich
] ++ lib.optionals (pythonOlder "3.11") [
typing-extensions
];
] ++ markdown-it-py.optional-dependencies.plugins
++ markdown-it-py.optional-dependencies.linkify;
passthru.optional-dependencies = {
syntax = [
tree-sitter
# tree-sitter-languages
];
};
nativeCheckInputs = [
jinja2
@ -58,7 +54,7 @@ buildPythonPackage rec {
pytestCheckHook
syrupy
time-machine
];
] ++ passthru.optional-dependencies.syntax;
disabledTestPaths = [
# snapshot tests require syrupy<4
@ -69,6 +65,9 @@ buildPythonPackage rec {
# Assertion issues
"test_textual_env_var"
"test_softbreak_split_links_rendered_correctly"
# requires tree-sitter-languages which is not packaged in nixpkgs
"test_register_language"
];
pythonImportsCheck = [