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

41 lines
789 B
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";
2018-08-07 08:40:56 +02:00
version = "1.17.0";
src = fetchPypi {
inherit pname version;
2018-08-07 08:40:56 +02:00
sha256 = "11d3ssjifms6bid77jk06zl5wl3srihijmv5kggxa0w2l59y8h9m";
};
propagatedBuildInputs = [
pymysql configobj sqlparse prompt_toolkit_1 pygments click pycrypto cli-helpers
];
2018-08-07 08:40:56 +02:00
checkInputs = [ pytest mock glibcLocales ];
checkPhase = ''
export HOME=.
export LC_ALL="en_US.UTF-8"
2018-08-07 08:40:56 +02: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;
};
}