2017-09-06 17:52:41 +03:00
|
|
|
{ lib
|
2018-08-07 09:40:56 +03:00
|
|
|
, python3
|
|
|
|
, glibcLocales
|
2017-09-06 17:52:41 +03:00
|
|
|
}:
|
|
|
|
|
2018-08-07 09:40:56 +03:00
|
|
|
with python3.pkgs;
|
2017-09-06 17:52:41 +03:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "mycli";
|
2019-10-09 10:00:03 +03:00
|
|
|
version = "1.20.1";
|
2017-09-06 17:52:41 +03:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-09 10:00:03 +03:00
|
|
|
sha256 = "0vhwaqkx4njarm0wy8zg2hvzr2yl92y8gnwipcn7p59sazw4whfl";
|
2017-09-06 17:52:41 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-01-12 12:13:53 +03:00
|
|
|
paramiko pymysql configobj sqlparse prompt_toolkit pygments click pycrypto cli-helpers
|
2017-09-06 17:52:41 +03:00
|
|
|
];
|
|
|
|
|
2018-08-07 09:40:56 +03:00
|
|
|
checkInputs = [ pytest mock glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export HOME=.
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
2017-09-06 17:52:41 +03:00
|
|
|
|
2018-08-07 09:40:56 +03:00
|
|
|
py.test
|
|
|
|
'';
|
2017-09-06 17:52:41 +03: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 04:11:51 +03:00
|
|
|
homepage = "http://mycli.net";
|
2017-09-06 17:52:41 +03:00
|
|
|
license = lib.licenses.bsd3;
|
2019-10-09 10:00:03 +03:00
|
|
|
maintainers = [ lib.maintainers.jojosch ];
|
2017-09-06 17:52:41 +03:00
|
|
|
};
|
|
|
|
}
|