2017-09-06 16:52:41 +02:00
|
|
|
{ lib
|
2018-08-07 08:40:56 +02:00
|
|
|
, python3
|
|
|
|
, glibcLocales
|
2017-09-06 16:52:41 +02:00
|
|
|
}:
|
|
|
|
|
2018-08-07 08:40:56 +02:00
|
|
|
with python3.pkgs;
|
2017-09-06 16:52:41 +02:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "mycli";
|
2022-10-10 12:54:40 +02:00
|
|
|
version = "1.26.1";
|
2017-09-06 16:52:41 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-10 12:54:40 +02:00
|
|
|
sha256 = "sha256-jAMDXJtFJtv6CwhZZU4pdKDndZKp6bJ/QPWo2q6DvrE=";
|
2017-09-06 16:52:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-01-15 14:50:31 +01:00
|
|
|
cli-helpers
|
|
|
|
click
|
|
|
|
configobj
|
2021-03-05 09:09:51 +01:00
|
|
|
importlib-resources
|
2021-01-15 14:50:31 +01:00
|
|
|
paramiko
|
2021-07-22 17:02:31 +02:00
|
|
|
prompt-toolkit
|
2021-03-05 09:09:51 +01:00
|
|
|
pyaes
|
2021-01-15 14:50:31 +01:00
|
|
|
pycrypto
|
|
|
|
pygments
|
|
|
|
pymysql
|
|
|
|
pyperclip
|
2022-10-10 12:54:40 +02:00
|
|
|
sqlglot
|
2021-01-15 14:50:31 +01:00
|
|
|
sqlparse
|
2017-09-06 16:52:41 +02:00
|
|
|
];
|
|
|
|
|
2022-01-12 19:48:08 +01:00
|
|
|
checkInputs = [ pytest glibcLocales ];
|
2018-08-07 08:40:56 +02:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export HOME=.
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
2017-09-06 16:52:41 +02:00
|
|
|
|
2020-07-27 12:28:48 +02:00
|
|
|
py.test \
|
|
|
|
--ignore=mycli/packages/paramiko_stub/__init__.py
|
2020-07-01 12:30:23 +02:00
|
|
|
'';
|
|
|
|
|
2020-12-09 06:00:55 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2022-10-10 12:54:40 +02:00
|
|
|
--replace "cryptography == 36.0.2" "cryptography"
|
2020-12-09 06:00:55 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-09-06 16:52:41 +02: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 03:11:51 +02:00
|
|
|
homepage = "http://mycli.net";
|
2020-12-09 06:00:55 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ jojosch ];
|
2017-09-06 16:52:41 +02:00
|
|
|
};
|
|
|
|
}
|