2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, glibcLocales
|
|
|
|
}:
|
|
|
|
|
|
|
|
with python3.pkgs;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "mycli";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "1.25.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-/vEu2BJf0T7fSgSXflq56Ilaih7RAhhilZUgbNzZYQg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-01-15 22:18:51 +00:00
|
|
|
cli-helpers
|
|
|
|
click
|
|
|
|
configobj
|
2021-03-09 03:18:52 +00:00
|
|
|
importlib-resources
|
2021-01-15 22:18:51 +00:00
|
|
|
paramiko
|
2021-08-05 21:33:18 +00:00
|
|
|
prompt-toolkit
|
2021-03-09 03:18:52 +00:00
|
|
|
pyaes
|
2021-01-15 22:18:51 +00:00
|
|
|
pycrypto
|
|
|
|
pygments
|
|
|
|
pymysql
|
|
|
|
pyperclip
|
|
|
|
sqlparse
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
checkInputs = [ pytest glibcLocales ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export HOME=.
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
py.test \
|
|
|
|
--ignore=mycli/packages/paramiko_stub/__init__.py
|
2020-07-18 16:06:22 +00:00
|
|
|
'';
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2021-03-09 03:18:52 +00:00
|
|
|
--replace "sqlparse>=0.3.0,<0.4.0" "sqlparse" \
|
|
|
|
--replace "importlib_resources >= 5.0.0" "importlib_resources"
|
2020-12-09 12:39:15 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit version;
|
|
|
|
description = "Command-line interface for MySQL";
|
|
|
|
longDescription = ''
|
|
|
|
Rich command-line interface for MySQL with auto-completion and
|
|
|
|
syntax highlighting.
|
|
|
|
'';
|
|
|
|
homepage = "http://mycli.net";
|
2020-12-09 12:39:15 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ jojosch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|