Files
nixpkgs/pkgs/by-name/my/mycli/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

67 lines
1.3 KiB
Nix

{
lib,
fetchFromGitHub,
python3Packages,
writableTmpDirAsHomeHook,
}:
python3Packages.buildPythonApplication rec {
pname = "mycli";
version = "1.31.2";
pyproject = true;
src = fetchFromGitHub {
owner = "dbcli";
repo = "mycli";
tag = "v${version}";
hash = "sha256-s5PzWrxG2z0sOyQIyACLkG7dau+MHYLtLNLig6UfuCs=";
};
pythonRelaxDeps = [
"sqlparse"
"click"
];
build-system = with python3Packages; [
setuptools
setuptools-scm
];
dependencies =
with python3Packages;
[
cli-helpers
click
configobj
cryptography
paramiko
prompt-toolkit
pyaes
pygments
pymysql
pyperclip
sqlglot
sqlparse
pyfzf
]
++ cli-helpers.optional-dependencies.styles;
nativeCheckInputs = [ writableTmpDirAsHomeHook ] ++ (with python3Packages; [ pytestCheckHook ]);
disabledTestPaths = [
"mycli/packages/paramiko_stub/__init__.py"
];
meta = {
description = "Command-line interface for MySQL";
mainProgram = "mycli";
longDescription = ''
Rich command-line interface for MySQL with auto-completion and
syntax highlighting.
'';
homepage = "http://mycli.net";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ jojosch ];
};
}