From c6b1a63a10c2b691ff282f3901aaf413838f097a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20James?= Date: Fri, 19 Dec 2025 00:29:57 +0100 Subject: [PATCH] sqlit-tui: init at 1.0.1 --- pkgs/by-name/sq/sqlit-tui/package.nix | 67 +++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 pkgs/by-name/sq/sqlit-tui/package.nix diff --git a/pkgs/by-name/sq/sqlit-tui/package.nix b/pkgs/by-name/sq/sqlit-tui/package.nix new file mode 100644 index 000000000000..eee59fbfce9e --- /dev/null +++ b/pkgs/by-name/sq/sqlit-tui/package.nix @@ -0,0 +1,67 @@ +{ + lib, + fetchFromGitHub, + python3Packages, + writableTmpDirAsHomeHook, +}: + +python3Packages.buildPythonApplication rec { + pname = "sqlit-tui"; + version = "1.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Maxteabag"; + repo = "sqlit"; + tag = "v${version}"; + hash = "sha256-O2/kbKXSjsdSrTFnnNwif2IfV0HG4IPYLrD1eznuhuo="; + }; + + build-system = with python3Packages; [ + hatchling + uv-build + ]; + + dependencies = with python3Packages; [ + duckdb + keyring + mariadb + mysql-connector + oracledb + paramiko + psycopg2 + pyodbc + pyperclip + sshtunnel + textual + ]; + + pythonRelaxDeps = [ + "paramiko" + ]; + + nativeCheckInputs = with python3Packages; [ + pytestCheckHook + pytest-asyncio + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ + "sqlit" + ]; + + disabledTests = [ + # UI tests fail in the sandbox + "tests/ui/" + "test_installer_cancel_terminates_process" # timeout error + ]; + + meta = { + description = "Lightweight TUI for SQL Server, PostgreSQL, MySQL, SQLite, and more"; + homepage = "https://github.com/Maxteabag/sqlit"; + changelog = "https://github.com/Maxteabag/sqlit/releases/tag/${src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ gaelj ]; + mainProgram = "sqlit"; + }; +}