2017-09-06 15:52:41 +01:00
|
|
|
{ lib
|
2018-08-07 07:40:56 +01:00
|
|
|
, python3
|
|
|
|
, glibcLocales
|
2017-09-06 15:52:41 +01:00
|
|
|
}:
|
|
|
|
|
2018-08-07 07:40:56 +01:00
|
|
|
with python3.pkgs;
|
2017-09-06 15:52:41 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "mycli";
|
2021-01-16 18:25:30 +00:00
|
|
|
version = "1.23.2";
|
2017-09-06 15:52:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-16 18:25:30 +00:00
|
|
|
sha256 = "sha256-auGbFAvwLR7aDChhgeNZPZPNGJo+b9Q4TFDaOrmU2zI=";
|
2017-09-06 15:52:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-01-15 13:50:31 +00:00
|
|
|
cli-helpers
|
|
|
|
click
|
|
|
|
configobj
|
|
|
|
paramiko
|
|
|
|
prompt_toolkit
|
|
|
|
pycrypto
|
|
|
|
pygments
|
|
|
|
pymysql
|
|
|
|
pyperclip
|
|
|
|
sqlparse
|
2017-09-06 15:52:41 +01:00
|
|
|
];
|
|
|
|
|
2018-08-07 07:40:56 +01:00
|
|
|
checkInputs = [ pytest mock glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export HOME=.
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
2017-09-06 15:52:41 +01:00
|
|
|
|
2020-07-27 11:28:48 +01:00
|
|
|
py.test \
|
|
|
|
--ignore=mycli/packages/paramiko_stub/__init__.py
|
2020-07-01 11:30:23 +01:00
|
|
|
'';
|
|
|
|
|
2020-12-09 05:00:55 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "sqlparse>=0.3.0,<0.4.0" "sqlparse"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-09-06 15:52:41 +01:00
|
|
|
inherit version;
|
|
|
|
description = "Command-line interface for MySQL";
|
|
|
|
longDescription = ''
|
|
|
|
Rich command-line interface for MySQL with auto-completion and
|
|
|
|
syntax highlighting.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://mycli.net";
|
2020-12-09 05:00:55 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ jojosch ];
|
2017-09-06 15:52:41 +01:00
|
|
|
};
|
|
|
|
}
|