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";
|
2018-12-15 10:42:38 +00:00
|
|
|
version = "1.19.0";
|
2017-09-06 15:52:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-12-15 10:42:38 +00:00
|
|
|
sha256 = "0x5vzl4vvirqy03fnjwkamhzrqkknlajamwz1rmbnqh4bfmijh9m";
|
2017-09-06 15:52:41 +01:00
|
|
|
};
|
|
|
|
|
2019-03-15 20:08:10 +00:00
|
|
|
patches = [ ./fix-tests.patch ];
|
|
|
|
|
2017-09-06 15:52:41 +01:00
|
|
|
propagatedBuildInputs = [
|
2018-11-21 11:37:26 +00:00
|
|
|
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
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = "Command-line interface for MySQL";
|
|
|
|
longDescription = ''
|
|
|
|
Rich command-line interface for MySQL with auto-completion and
|
|
|
|
syntax highlighting.
|
|
|
|
'';
|
|
|
|
homepage = http://mycli.net;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|