1ae14203fc
GitOrigin-RevId: 68398d2dd50efc2d878bf0f83bbc8bc323b6b0e0
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{ lib
|
|
, python3
|
|
, glibcLocales
|
|
}:
|
|
|
|
with python3.pkgs;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "mycli";
|
|
version = "1.23.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-auGbFAvwLR7aDChhgeNZPZPNGJo+b9Q4TFDaOrmU2zI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cli-helpers
|
|
click
|
|
configobj
|
|
paramiko
|
|
prompt_toolkit
|
|
pycrypto
|
|
pygments
|
|
pymysql
|
|
pyperclip
|
|
sqlparse
|
|
];
|
|
|
|
checkInputs = [ pytest mock glibcLocales ];
|
|
|
|
checkPhase = ''
|
|
export HOME=.
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
py.test \
|
|
--ignore=mycli/packages/paramiko_stub/__init__.py
|
|
'';
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "sqlparse>=0.3.0,<0.4.0" "sqlparse"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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 = licenses.bsd3;
|
|
maintainers = with maintainers; [ jojosch ];
|
|
};
|
|
}
|