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";
|
2020-07-01 11:30:23 +01:00
|
|
|
version = "1.21.1";
|
2017-09-06 15:52:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-01 11:30:23 +01:00
|
|
|
sha256 = "1q9p0yik9cpvpxjs048anvhicfcna84mpl7axv9bwgr48w40lqwg";
|
2017-09-06 15:52:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-01-12 09:13:53 +00:00
|
|
|
paramiko pymysql configobj sqlparse prompt_toolkit pygments click pycrypto cli-helpers
|
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
|
|
|
|
2018-08-07 07:40:56 +01:00
|
|
|
py.test
|
|
|
|
'';
|
2017-09-06 15:52:41 +01:00
|
|
|
|
2020-07-01 11:30:23 +01:00
|
|
|
# TODO: remove with next release
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "prompt_toolkit>=2.0.6,<3.0.0" "prompt_toolkit"
|
|
|
|
'';
|
|
|
|
|
2017-09-06 15:52:41 +01: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 02:11:51 +01:00
|
|
|
homepage = "http://mycli.net";
|
2017-09-06 15:52:41 +01:00
|
|
|
license = lib.licenses.bsd3;
|
2019-10-09 08:00:03 +01:00
|
|
|
maintainers = [ lib.maintainers.jojosch ];
|
2017-09-06 15:52:41 +01:00
|
|
|
};
|
|
|
|
}
|