Files
Robert Schütz 3a0cd48f0c python3Packages.mysql-connector-python: rename from mysql-connector
The project name (e.g. on PyPI) is mysql-connector-python.
2026-06-21 13:30:44 -07:00

70 lines
1.5 KiB
Nix

{
fetchFromGitHub,
lib,
python3Packages,
writableTmpDirAsHomeHook,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "sqlit-tui";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Maxteabag";
repo = "sqlit";
tag = "v${finalAttrs.version}";
hash = "sha256-lcZe7EiN/wZllRO7KnXryoeGiUVBhSE4AYaRniZV6Cw=";
};
build-system = with python3Packages; [
hatch-vcs
hatchling
setuptools-scm
];
dependencies = with python3Packages; [
docker
duckdb
keyring
mariadb
mysql-connector-python
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/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gaelj ];
mainProgram = "sqlit";
};
})