nixpkgs-suyu/pkgs/tools/admin/mycli/default.nix

57 lines
1 KiB
Nix
Raw Normal View History

{ lib
2018-08-07 08:40:56 +02:00
, python3
, glibcLocales
}:
2018-08-07 08:40:56 +02:00
with python3.pkgs;
buildPythonApplication rec {
pname = "mycli";
2021-01-16 19:25:30 +01:00
version = "1.23.2";
src = fetchPypi {
inherit pname version;
2021-01-16 19:25:30 +01:00
sha256 = "sha256-auGbFAvwLR7aDChhgeNZPZPNGJo+b9Q4TFDaOrmU2zI=";
};
propagatedBuildInputs = [
2021-01-15 14:50:31 +01:00
cli-helpers
click
configobj
paramiko
prompt_toolkit
pycrypto
pygments
pymysql
pyperclip
sqlparse
];
2018-08-07 08:40:56 +02:00
checkInputs = [ pytest mock glibcLocales ];
checkPhase = ''
export HOME=.
export LC_ALL="en_US.UTF-8"
2020-07-27 12:28:48 +02:00
py.test \
--ignore=mycli/packages/paramiko_stub/__init__.py
2020-07-01 12:30:23 +02:00
'';
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 ];
};
}