{ fetchFromGitHub, lib, python3Packages, writableTmpDirAsHomeHook, }: python3Packages.buildPythonApplication rec { pname = "sqlit-tui"; version = "1.2.11"; pyproject = true; src = fetchFromGitHub { owner = "Maxteabag"; repo = "sqlit"; tag = "v${version}"; hash = "sha256-zPkBdGq4PoAWonMq5FWGaz19QWiZsHuVQcW/45ynqq4="; }; build-system = with python3Packages; [ hatch-vcs hatchling setuptools-scm ]; dependencies = with python3Packages; [ docker duckdb keyring mariadb mysql-connector oracledb paramiko psycopg2 pyodbc pyperclip sqlparse sshtunnel textual textual-fastdatatable ]; pythonRelaxDeps = [ "paramiko" ]; nativeCheckInputs = with python3Packages; [ pytest-asyncio pytestCheckHook writableTmpDirAsHomeHook ]; pythonImportsCheck = [ "sqlit" ]; disabledTests = [ "tests/ui/" # UI tests fail in the sandbox "test_installer_cancel_terminates_process" # timeout error "test_detect_strategy_pip_user_fallback" # AssertionError: assert 'externally-managed' == 'pip-user' ]; 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"; }; }