2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
2023-03-15 16:39:30 +00:00
|
|
|
, mkdocs-exclude
|
|
|
|
, markdown-it-py
|
|
|
|
, mdit-py-plugins
|
|
|
|
, linkify-it-py
|
2023-01-20 10:41:00 +00:00
|
|
|
, importlib-metadata
|
2022-03-05 16:20:37 +00:00
|
|
|
, rich
|
|
|
|
, typing-extensions
|
2023-01-20 10:41:00 +00:00
|
|
|
, aiohttp
|
|
|
|
, click
|
|
|
|
, jinja2
|
|
|
|
, msgpack
|
|
|
|
, pytest-aiohttp
|
2022-03-05 16:20:37 +00:00
|
|
|
, pytestCheckHook
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonOlder
|
2023-01-20 10:41:00 +00:00
|
|
|
, syrupy
|
|
|
|
, time-machine
|
2022-03-05 16:20:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "textual";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.24.1";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Textualize";
|
|
|
|
repo = pname;
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-nFio45LxoVQK/IzVo2ZHGYzG6bHHr3yvA7P3kMZOUso=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2022-03-05 16:20:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
rich
|
2023-03-15 16:39:30 +00:00
|
|
|
markdown-it-py
|
|
|
|
mdit-py-plugins
|
|
|
|
linkify-it-py
|
|
|
|
importlib-metadata
|
|
|
|
aiohttp
|
|
|
|
click
|
|
|
|
msgpack
|
|
|
|
mkdocs-exclude
|
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
2022-03-05 16:20:37 +00:00
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
jinja2
|
|
|
|
pytest-aiohttp
|
2022-03-05 16:20:37 +00:00
|
|
|
pytestCheckHook
|
2023-01-20 10:41:00 +00:00
|
|
|
syrupy
|
|
|
|
time-machine
|
2022-03-05 16:20:37 +00:00
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# snapshot tests require syrupy<4
|
|
|
|
"tests/snapshot_tests/test_snapshots.py"
|
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"textual"
|
|
|
|
];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "TUI framework for Python inspired by modern web development";
|
|
|
|
homepage = "https://github.com/Textualize/textual";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/Textualize/textual/releases/tag/v${version}";
|
2022-03-05 16:20:37 +00:00
|
|
|
license = licenses.mit;
|
2023-01-20 10:41:00 +00:00
|
|
|
maintainers = with maintainers; [ joelkoen ];
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
}
|