9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
81 lines
1.5 KiB
Nix
81 lines
1.5 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, mkdocs-exclude
|
|
, markdown-it-py
|
|
, mdit-py-plugins
|
|
, linkify-it-py
|
|
, importlib-metadata
|
|
, rich
|
|
, typing-extensions
|
|
, aiohttp
|
|
, click
|
|
, jinja2
|
|
, msgpack
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, syrupy
|
|
, time-machine
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "textual";
|
|
version = "0.28.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Textualize";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-tSCMKM9Wv4crl6SLcIc2r6QY6U3RBTW8yfAjkYLV3eE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
rich
|
|
markdown-it-py
|
|
mdit-py-plugins
|
|
linkify-it-py
|
|
importlib-metadata
|
|
aiohttp
|
|
click
|
|
msgpack
|
|
mkdocs-exclude
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
jinja2
|
|
pytest-aiohttp
|
|
pytestCheckHook
|
|
syrupy
|
|
time-machine
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# snapshot tests require syrupy<4
|
|
"tests/snapshot_tests/test_snapshots.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"textual"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = with lib; {
|
|
description = "TUI framework for Python inspired by modern web development";
|
|
homepage = "https://github.com/Textualize/textual";
|
|
changelog = "https://github.com/Textualize/textual/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ joelkoen ];
|
|
};
|
|
}
|