1{ lib
2, python
3}:
4
5with python.pkgs;
6
7buildPythonApplication rec {
8 pname = "mycli";
9 version = "1.6.0";
10 name = "${pname}-${version}";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "0qg4b62kizyb16kk0cvpk70bfs3gg4q4hj2b15nnc7a3gqqfp67j";
15 };
16
17 propagatedBuildInputs = [
18 pymysql configobj sqlparse prompt_toolkit pygments click pycrypto
19 ];
20
21 postPatch = ''
22 substituteInPlace setup.py --replace "==" ">="
23 '';
24
25 # No tests in archive. Newer versions do include tests
26 doCheck = false;
27
28 meta = {
29 inherit version;
30 description = "Command-line interface for MySQL";
31 longDescription = ''
32 Rich command-line interface for MySQL with auto-completion and
33 syntax highlighting.
34 '';
35 homepage = http://mycli.net;
36 license = lib.licenses.bsd3;
37 };
38}