1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/admin/mycli/default.nix

43 lines
903 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";
2020-08-04 11:24:55 +01:00
version = "1.22.2";
src = fetchPypi {
inherit pname version;
2020-08-04 11:24:55 +01:00
sha256 = "1lq2x95553vdmhw13cxcgsd2g2i32izhsb7hxd4m1iwf9b3msbpv";
};
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"
2020-07-27 11:28:48 +01:00
py.test \
--ignore=mycli/packages/paramiko_stub/__init__.py
2020-07-01 11:30:23 +01:00
'';
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 ];
};
}