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

42 lines
843 B
Nix
Raw Normal View History

{ lib
2018-08-07 07:40:56 +01:00
, python3
, glibcLocales
}:
2018-08-07 07:40:56 +01:00
with python3.pkgs;
buildPythonApplication rec {
pname = "mycli";
2019-10-09 08:00:03 +01:00
version = "1.20.1";
src = fetchPypi {
inherit pname version;
2019-10-09 08:00:03 +01:00
sha256 = "0vhwaqkx4njarm0wy8zg2hvzr2yl92y8gnwipcn7p59sazw4whfl";
};
propagatedBuildInputs = [
paramiko pymysql configobj sqlparse prompt_toolkit pygments click pycrypto cli-helpers
];
2018-08-07 07:40:56 +01:00
checkInputs = [ pytest mock glibcLocales ];
checkPhase = ''
export HOME=.
export LC_ALL="en_US.UTF-8"
2018-08-07 07:40:56 +01:00
py.test
'';
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;
2019-10-09 08:00:03 +01:00
maintainers = [ lib.maintainers.jojosch ];
};
}