nixpkgs/pkgs/tools/admin/mycli/default.nix
Johannes Schleifenbaum 32fc1d6b91
mycli: 1.21.1 -> 1.22.1
2020-07-27 12:28:48 +02:00

43 lines
903 B
Nix

{ lib
, python3
, glibcLocales
}:
with python3.pkgs;
buildPythonApplication rec {
pname = "mycli";
version = "1.22.1";
src = fetchPypi {
inherit pname version;
sha256 = "18qxxrpdksg3s73va7nkbkwi34kg9m1pls7w4fh5f4jk4p434zsf";
};
propagatedBuildInputs = [
paramiko pymysql configobj sqlparse prompt_toolkit pygments click pycrypto cli-helpers
];
checkInputs = [ pytest mock glibcLocales ];
checkPhase = ''
export HOME=.
export LC_ALL="en_US.UTF-8"
py.test \
--ignore=mycli/packages/paramiko_stub/__init__.py
'';
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;
maintainers = [ lib.maintainers.jojosch ];
};
}