Loading pkgs/development/python-modules/textual-dev/default.nix +14 −10 Original line number Diff line number Diff line { lib, aiohttp, buildPythonPackage, click, fetchFromGitHub, msgpack, # build-system poetry-core, pythonOlder, # dependencies aiohttp, click, msgpack, textual, textual-serve, typing-extensions, versionCheckHook, }: buildPythonPackage rec { Loading @@ -16,8 +21,6 @@ buildPythonPackage rec { version = "1.7.0"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "Textualize"; repo = "textual-dev"; Loading @@ -32,6 +35,7 @@ buildPythonPackage rec { click msgpack textual textual-serve typing-extensions ]; Loading @@ -40,12 +44,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "textual_dev" ]; meta = with lib; { meta = { description = "Development tools for Textual"; homepage = "https://github.com/Textualize/textual-dev"; changelog = "https://github.com/Textualize/textual-dev/releases/tag/${src.tag}"; license = licenses.mit; maintainers = with maintainers; [ yannip ]; changelog = "https://github.com/Textualize/textual-dev/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ yannip ]; mainProgram = "textual"; }; } pkgs/development/python-modules/textual-serve/default.nix 0 → 100644 +54 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, # build-system hatchling, # dependencies aiohttp, aiohttp-jinja2, jinja2, rich, textual, }: buildPythonPackage rec { pname = "textual-serve"; version = "1.1.1"; pyproject = true; # No tags on GitHub src = fetchPypi { pname = "textual_serve"; inherit version; hash = "sha256-ccZiRyxGLl42je/GYO5ujq47/aiMpAwFDFVHRobrDFQ="; }; build-system = [ hatchling ]; dependencies = [ aiohttp aiohttp-jinja2 jinja2 rich textual ]; pythonImportsCheck = [ "textual_serve" ]; # No tests in the pypi archive doCheck = false; meta = { description = "Turn your Textual TUIs in to web applications"; homepage = "https://pypi.org/project/textual-serve/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; }; } pkgs/development/python-modules/textual/default.nix +12 −9 Original line number Diff line number Diff line { lib, stdenv, buildPythonPackage, fetchFromGitHub, jinja2, Loading @@ -10,7 +11,6 @@ pytest-xdist, pytestCheckHook, pythonAtLeast, pythonOlder, rich, syrupy, time-machine, Loading @@ -24,8 +24,6 @@ buildPythonPackage rec { version = "1.0.0"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "Textualize"; repo = "textual"; Loading Loading @@ -61,9 +59,14 @@ buildPythonPackage rec { tree-sitter ]; disabledTestPaths = [ disabledTestPaths = [ # Snapshot tests require syrupy<4 "tests/snapshot_tests/test_snapshots.py" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # RuntimeError: There is no current event loop in thread 'MainThread'. "tests/test_focus.py" ]; disabledTests = Loading Loading @@ -93,11 +96,11 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; meta = with lib; { meta = { 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; license = lib.licenses.mit; maintainers = [ ]; }; } pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -16249,6 +16249,8 @@ self: super: with self; { textual-fastdatatable = callPackage ../development/python-modules/textual-fastdatatable { }; textual-serve = callPackage ../development/python-modules/textual-serve { }; textual-slider = callPackage ../development/python-modules/textual-slider { }; textual-universal-directorytree = callPackage ../development/python-modules/textual-universal-directorytree { }; Loading
pkgs/development/python-modules/textual-dev/default.nix +14 −10 Original line number Diff line number Diff line { lib, aiohttp, buildPythonPackage, click, fetchFromGitHub, msgpack, # build-system poetry-core, pythonOlder, # dependencies aiohttp, click, msgpack, textual, textual-serve, typing-extensions, versionCheckHook, }: buildPythonPackage rec { Loading @@ -16,8 +21,6 @@ buildPythonPackage rec { version = "1.7.0"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "Textualize"; repo = "textual-dev"; Loading @@ -32,6 +35,7 @@ buildPythonPackage rec { click msgpack textual textual-serve typing-extensions ]; Loading @@ -40,12 +44,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "textual_dev" ]; meta = with lib; { meta = { description = "Development tools for Textual"; homepage = "https://github.com/Textualize/textual-dev"; changelog = "https://github.com/Textualize/textual-dev/releases/tag/${src.tag}"; license = licenses.mit; maintainers = with maintainers; [ yannip ]; changelog = "https://github.com/Textualize/textual-dev/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ yannip ]; mainProgram = "textual"; }; }
pkgs/development/python-modules/textual-serve/default.nix 0 → 100644 +54 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, # build-system hatchling, # dependencies aiohttp, aiohttp-jinja2, jinja2, rich, textual, }: buildPythonPackage rec { pname = "textual-serve"; version = "1.1.1"; pyproject = true; # No tags on GitHub src = fetchPypi { pname = "textual_serve"; inherit version; hash = "sha256-ccZiRyxGLl42je/GYO5ujq47/aiMpAwFDFVHRobrDFQ="; }; build-system = [ hatchling ]; dependencies = [ aiohttp aiohttp-jinja2 jinja2 rich textual ]; pythonImportsCheck = [ "textual_serve" ]; # No tests in the pypi archive doCheck = false; meta = { description = "Turn your Textual TUIs in to web applications"; homepage = "https://pypi.org/project/textual-serve/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; }; }
pkgs/development/python-modules/textual/default.nix +12 −9 Original line number Diff line number Diff line { lib, stdenv, buildPythonPackage, fetchFromGitHub, jinja2, Loading @@ -10,7 +11,6 @@ pytest-xdist, pytestCheckHook, pythonAtLeast, pythonOlder, rich, syrupy, time-machine, Loading @@ -24,8 +24,6 @@ buildPythonPackage rec { version = "1.0.0"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "Textualize"; repo = "textual"; Loading Loading @@ -61,9 +59,14 @@ buildPythonPackage rec { tree-sitter ]; disabledTestPaths = [ disabledTestPaths = [ # Snapshot tests require syrupy<4 "tests/snapshot_tests/test_snapshots.py" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # RuntimeError: There is no current event loop in thread 'MainThread'. "tests/test_focus.py" ]; disabledTests = Loading Loading @@ -93,11 +96,11 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; meta = with lib; { meta = { 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; license = lib.licenses.mit; maintainers = [ ]; }; }
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -16249,6 +16249,8 @@ self: super: with self; { textual-fastdatatable = callPackage ../development/python-modules/textual-fastdatatable { }; textual-serve = callPackage ../development/python-modules/textual-serve { }; textual-slider = callPackage ../development/python-modules/textual-slider { }; textual-universal-directorytree = callPackage ../development/python-modules/textual-universal-directorytree { };