2017-09-06 14:52:41 +00:00
|
|
|
{ lib
|
2018-08-07 06:40:56 +00:00
|
|
|
, python3
|
|
|
|
, glibcLocales
|
2017-09-06 14:52:41 +00:00
|
|
|
}:
|
|
|
|
|
2018-08-07 06:40:56 +00:00
|
|
|
with python3.pkgs;
|
2017-09-06 14:52:41 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "mycli";
|
2020-08-04 10:24:55 +00:00
|
|
|
version = "1.22.2";
|
2017-09-06 14:52:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-04 10:24:55 +00:00
|
|
|
sha256 = "1lq2x95553vdmhw13cxcgsd2g2i32izhsb7hxd4m1iwf9b3msbpv";
|
2017-09-06 14:52:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-01-12 09:13:53 +00:00
|
|
|
paramiko pymysql configobj sqlparse prompt_toolkit pygments click pycrypto cli-helpers
|
2017-09-06 14:52:41 +00:00
|
|
|
];
|
|
|
|
|
2018-08-07 06:40:56 +00:00
|
|
|
checkInputs = [ pytest mock glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export HOME=.
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
2017-09-06 14:52:41 +00:00
|
|
|
|
2020-07-27 10:28:48 +00:00
|
|
|
py.test \
|
|
|
|
--ignore=mycli/packages/paramiko_stub/__init__.py
|
2020-07-01 10:30:23 +00:00
|
|
|
'';
|
|
|
|
|
2017-09-06 14:52:41 +00:00
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = "Command-line interface for MySQL";
|
|
|
|
longDescription = ''
|
|
|
|
Rich command-line interface for MySQL with auto-completion and
|
|
|
|
syntax highlighting.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://mycli.net";
|
2017-09-06 14:52:41 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2019-10-09 07:00:03 +00:00
|
|
|
maintainers = [ lib.maintainers.jojosch ];
|
2017-09-06 14:52:41 +00:00
|
|
|
};
|
|
|
|
}
|